-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from fink-lang/esm
publish esm
- Loading branch information
Showing
12 changed files
with
2,876 additions
and
677 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default { | ||
presets: [['@babel/preset-env', {targets: {node: 'current'}}]] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"type": "commonjs"} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,86 @@ | ||
module.exports = globalThis; | ||
const Object_ = Object; | ||
export {Object_ as Object}; | ||
|
||
export const Symbol = /*@__PURE__*/ (()=> globalThis.Symbol)(); | ||
export const Boolean = /*@__PURE__*/ (()=> globalThis.Boolean)(); | ||
export const Number = /*@__PURE__*/ (()=> globalThis.Number)(); | ||
export const BigInt = /*@__PURE__*/ (()=> globalThis.BigInt)(); | ||
export const String = /*@__PURE__*/ (()=> globalThis.String)(); | ||
export const RegExp = /*@__PURE__*/ (()=> globalThis.RegExp)(); | ||
export const Date = /*@__PURE__*/ (()=> globalThis.Date)(); | ||
export const Function = /*@__PURE__*/ (()=> globalThis.Function)(); | ||
|
||
export const NaN = /*@__PURE__*/ (()=> globalThis.NaN)(); | ||
export const isNaN = /*@__PURE__*/ (()=> globalThis.isNaN)(); | ||
export const isFinite = /*@__PURE__*/ (()=> globalThis.isFinite)(); | ||
export const parseFloat = /*@__PURE__*/ (()=> globalThis.parseFloat)(); | ||
export const parseInt = /*@__PURE__*/ (()=> globalThis.parseInt)(); | ||
export const Infinity = /*@__PURE__*/ (()=> globalThis.Infinity)(); | ||
|
||
export const Promise = /*@__PURE__*/ (()=> globalThis.Promise)(); | ||
export const Generator = /*@__PURE__*/ (()=> globalThis.Generator)(); | ||
export const GeneratorFunction = /*@__PURE__*/ (()=> globalThis.GeneratorFunction)(); | ||
export const AsyncFunction = /*@__PURE__*/ (()=> globalThis.AsyncFunction)(); | ||
export const AsyncGenerator = /*@__PURE__*/ (()=> globalThis.AsyncGenerator)(); | ||
export const AsyncGeneratorFunction = /*@__PURE__*/ (()=> globalThis.AsyncGeneratorFunction)(); | ||
|
||
export const Reflect = /*@__PURE__*/ (()=> globalThis.Reflect)(); | ||
export const Proxy = /*@__PURE__*/ (()=> globalThis.Proxy)(); | ||
|
||
export const Math = /*@__PURE__*/ (()=> globalThis.Math)(); | ||
|
||
export const Array = /*@__PURE__*/ (()=> globalThis.Array)(); | ||
export const Int8Array = /*@__PURE__*/ (()=> globalThis.Int8Array)(); | ||
export const Uint8Array = /*@__PURE__*/ (()=> globalThis.Uint8Array)(); | ||
export const Uint8ClampedArray = /*@__PURE__*/ (()=> globalThis.Uint8ClampedArray)(); | ||
export const Int16Array = /*@__PURE__*/ (()=> globalThis.Int16Array)(); | ||
export const Uint16Array = /*@__PURE__*/ (()=> globalThis.Uint16Array)(); | ||
export const Int32Array = /*@__PURE__*/ (()=> globalThis.Int32Array)(); | ||
export const Uint32Array = /*@__PURE__*/ (()=> globalThis.Uint32Array)(); | ||
export const Float32Array = /*@__PURE__*/ (()=> globalThis.Float32Array)(); | ||
export const Float64Array = /*@__PURE__*/ (()=> globalThis.Float64Array)(); | ||
export const BigInt64Array = /*@__PURE__*/ (()=> globalThis.BigInt64Array)(); | ||
export const BigUint64Array = /*@__PURE__*/ (()=> globalThis.BigUint64Array)(); | ||
|
||
export const Map = /*@__PURE__*/ (()=> globalThis.Map)(); | ||
export const Set = /*@__PURE__*/ (()=> globalThis.Set)(); | ||
export const WeakMap = /*@__PURE__*/ (()=> globalThis.WeakMap)(); | ||
export const WeakSet = /*@__PURE__*/ (()=> globalThis.WeakSet)(); | ||
|
||
export const ArrayBuffer = /*@__PURE__*/ (()=> globalThis.ArrayBuffer)(); | ||
export const SharedArrayBuffer = /*@__PURE__*/ (()=> globalThis.SharedArrayBuffer)(); | ||
export const Atomics = /*@__PURE__*/ (()=> globalThis.Atomics)(); | ||
export const DataView = /*@__PURE__*/ (()=> globalThis.DataView)(); | ||
export const JSON = /*@__PURE__*/ (()=> globalThis.JSON)(); | ||
|
||
export const Intl = /*@__PURE__*/ (()=> globalThis.Intl)(); | ||
|
||
export const WebAssembly = /*@__PURE__*/ (()=> globalThis.WebAssembly)(); | ||
|
||
export const Error = /*@__PURE__*/ (()=> globalThis.Error)(); | ||
export const InternalError = /*@__PURE__*/ (()=> globalThis.InternalError)(); | ||
export const RangeError = /*@__PURE__*/ (()=> globalThis.RangeError)(); | ||
export const ReferenceError = /*@__PURE__*/ (()=> globalThis.ReferenceError)(); | ||
export const SyntaxError = /*@__PURE__*/ (()=> globalThis.SyntaxError)(); | ||
export const TypeError = /*@__PURE__*/ (()=> globalThis.TypeError)(); | ||
export const URIError = /*@__PURE__*/ (()=> globalThis.URIError)(); | ||
|
||
export const encodeURI = /*@__PURE__*/ (()=> globalThis.encodeURI)(); | ||
export const encodeURIComponent = /*@__PURE__*/ (()=> globalThis.encodeURIComponent)(); | ||
export const decodeURI = /*@__PURE__*/ (()=> globalThis.decodeURI)(); | ||
export const decodeURIComponent = /*@__PURE__*/ (()=> globalThis.decodeURIComponent)(); | ||
|
||
|
||
export const console = /*@__PURE__*/ (()=> globalThis.console)(); | ||
export const window = /*@__PURE__*/ (()=> globalThis.window)(); | ||
export const document = /*@__PURE__*/ (()=> globalThis.document)(); | ||
export const crypto = /*@__PURE__*/ (()=> globalThis.crypto)(); | ||
export const fetch = /*@__PURE__*/ (()=> globalThis.fetch)(); | ||
export const TextDecoder = /*@__PURE__*/ (()=> globalThis.TextDecoder)(); | ||
export const TextEncoder = /*@__PURE__*/ (()=> globalThis.TextEncoder)(); | ||
export const setTimeout = /*@__PURE__*/ (()=> globalThis.setTimeout)(); | ||
export const setImmediate = /*@__PURE__*/ (()=> globalThis.setImmediate)(); | ||
export const setInterval = /*@__PURE__*/ (()=> globalThis.setInterval)(); | ||
export const process = /*@__PURE__*/ (()=> globalThis.process)(); | ||
|
||
export const globals = /*@__PURE__*/ (()=> globalThis)(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
exports.ˆnull = null; | ||
exports.ˆundefined = (void 0); | ||
export const ˆnull = null; | ||
export const ˆundefined = (void 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,21 @@ | ||
export const ˆnew = (cls, ...args)=> Reflect.construct(cls, args); | ||
|
||
exports.ˆnew = (cls, ...args)=> Reflect.construct(cls, args); | ||
|
||
exports.apply = Reflect.apply; | ||
export const apply = /*@__PURE__*/ (()=> Reflect.apply)(); | ||
export const has = /*@__PURE__*/ (()=> Reflect.has)(); | ||
export const get = /*@__PURE__*/ (()=> Reflect.get)(); | ||
export const set = /*@__PURE__*/ (()=> Reflect.set)(); | ||
export const own_keys = /*@__PURE__*/ (()=> Reflect.ownKeys)(); | ||
export const delete_property = /*@__PURE__*/ (()=> Reflect.deleteProperty)(); | ||
export const define_property = /*@__PURE__*/ (()=> Reflect.defineProperty)(); | ||
export const get_own_property_descriptor = /*@__PURE__*/ (()=> Reflect.getOwnPropertyDescriptor)(); | ||
export const get_prototype_of = /*@__PURE__*/ (()=> Reflect.getPrototypeOf)(); | ||
export const set_prototype_of = /*@__PURE__*/ (()=> Reflect.setPrototypeOf)(); | ||
export const is_extensible = /*@__PURE__*/ (()=> Reflect.isExtensible)(); | ||
export const prevent_extensions = /*@__PURE__*/ (()=> Reflect.preventExtensions)(); | ||
|
||
exports.has = Reflect.has; | ||
exports.get = Reflect.get; | ||
exports.set = Reflect.set; | ||
exports.set_props = Object.assign; | ||
export const set_props = /*@__PURE__*/ (()=> Object.assign)(); | ||
|
||
exports.delete_property = Reflect.deleteProperty; | ||
exports.define_property = Reflect.defineProperty; | ||
export const get_type = /*@__PURE__*/ (obj)=> typeof obj; | ||
|
||
exports.own_keys = Reflect.ownKeys; | ||
|
||
exports.get_own_property_descriptor = Reflect.getOwnPropertyDescriptor; | ||
|
||
exports.get_prototype_of = Reflect.getPrototypeOf; | ||
exports.set_prototype_of = Reflect.setPrototypeOf; | ||
|
||
exports.is_extensible = Reflect.isExtensible; | ||
exports.prevent_extensions = Reflect.preventExtensions; | ||
|
||
exports.get_type = (obj)=> typeof obj; | ||
|
||
exports.is_instance = (obj, cls)=> obj instanceof cls; | ||
export const is_instance = (obj, cls)=> obj instanceof cls; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
exports.with_this = (fn)=> function with_this(...args) { | ||
export const with_this = (fn)=> function with_this(...args) { | ||
return fn.call(undefined, this, ...args); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters