@schematize/refs 0.1.6 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/browser/document.body.mjs +1 -1
- package/browser/document.head.mjs +1 -1
- package/browser/fetch.mjs +4 -0
- package/browser/localStorage.mjs +4 -0
- package/browser/sessionStorage.mjs +4 -0
- package/browser/window.history.mjs +1 -1
- package/browser/window.location.mjs +1 -1
- package/js/Array.isArray.mjs +1 -1
- package/js/Array.prototype.at.call.mjs +6 -0
- package/js/Array.prototype.concat.call.mjs +6 -0
- package/js/Array.prototype.copyWithin.call.mjs +6 -0
- package/js/Array.prototype.entries.call.mjs +6 -0
- package/js/Array.prototype.every.call.mjs +6 -0
- package/js/Array.prototype.fill.call.mjs +6 -0
- package/js/Array.prototype.filter.call.mjs +6 -0
- package/js/Array.prototype.find.call.mjs +6 -0
- package/js/Array.prototype.findIndex.call.mjs +6 -0
- package/js/Array.prototype.findLast.call.mjs +6 -0
- package/js/Array.prototype.findLastIndex.call.mjs +6 -0
- package/js/Array.prototype.flat.call.mjs +6 -0
- package/js/Array.prototype.flatMap.call.mjs +6 -0
- package/js/Array.prototype.forEach.call.mjs +6 -0
- package/js/Array.prototype.includes.call.mjs +6 -0
- package/js/Array.prototype.indexOf.call.mjs +6 -0
- package/js/Array.prototype.join.call.mjs +6 -0
- package/js/Array.prototype.keys.call.mjs +6 -0
- package/js/Array.prototype.lastIndexOf.call.mjs +6 -0
- package/js/Array.prototype.map.call.mjs +6 -0
- package/js/Array.prototype.mjs +1 -1
- package/js/Array.prototype.pop.call.mjs +6 -0
- package/js/Array.prototype.push.call.mjs +6 -0
- package/js/Array.prototype.reduce.call.mjs +6 -0
- package/js/Array.prototype.reduceRight.call.mjs +6 -0
- package/js/Array.prototype.reverse.call.mjs +6 -0
- package/js/Array.prototype.shift.call.mjs +6 -0
- package/js/Array.prototype.slice.call.mjs +6 -0
- package/js/Array.prototype.some.call.mjs +6 -0
- package/js/Array.prototype.sort.call.mjs +6 -0
- package/js/Array.prototype.splice.call.mjs +6 -0
- package/js/Array.prototype.toLocaleString.call.mjs +6 -0
- package/js/Array.prototype.toString.call.mjs +6 -0
- package/js/Array.prototype.unshift.call.mjs +6 -0
- package/js/Array.prototype.values.call.mjs +6 -0
- package/js/BigInt.mjs +1 -1
- package/js/Function.prototype.call.bind.mjs +6 -0
- package/js/Function.prototype.call.mjs +6 -0
- package/js/Function.prototype.mjs +1 -1
- package/js/Intl.Collator.mjs +1 -1
- package/js/Intl.DateTimeFormat.mjs +1 -1
- package/js/Intl.ListFormat.mjs +1 -1
- package/js/Intl.Locale.mjs +1 -1
- package/js/Intl.NumberFormat.mjs +1 -1
- package/js/Intl.PluralRules.mjs +1 -1
- package/js/Intl.RelativeTimeFormat.mjs +1 -1
- package/js/JSON.parse.mjs +1 -1
- package/js/JSON.stringify.mjs +1 -1
- package/js/Math.E.mjs +1 -1
- package/js/Math.LN10.mjs +1 -1
- package/js/Math.LN2.mjs +1 -1
- package/js/Math.LOG10E.mjs +1 -1
- package/js/Math.LOG2E.mjs +1 -1
- package/js/Math.PI.mjs +1 -1
- package/js/Math.SQRT1_2.mjs +1 -1
- package/js/Math.SQRT2.mjs +1 -1
- package/js/Math.abs.mjs +1 -1
- package/js/Math.acos.mjs +1 -1
- package/js/Math.acosh.mjs +1 -1
- package/js/Math.asin.mjs +1 -1
- package/js/Math.asinh.mjs +1 -1
- package/js/Math.atan.mjs +1 -1
- package/js/Math.atan2.mjs +1 -1
- package/js/Math.atanh.mjs +1 -1
- package/js/Math.cbrt.mjs +1 -1
- package/js/Math.ceil.mjs +1 -1
- package/js/Math.clz32.mjs +1 -1
- package/js/Math.cos.mjs +1 -1
- package/js/Math.cosh.mjs +1 -1
- package/js/Math.exp.mjs +1 -1
- package/js/Math.expm1.mjs +1 -1
- package/js/Math.floor.mjs +1 -1
- package/js/Math.fround.mjs +1 -1
- package/js/Math.hypot.mjs +1 -1
- package/js/Math.imul.mjs +1 -1
- package/js/Math.log.mjs +1 -1
- package/js/Math.log10.mjs +1 -1
- package/js/Math.log1p.mjs +1 -1
- package/js/Math.log2.mjs +1 -1
- package/js/Math.max.mjs +1 -1
- package/js/Math.min.mjs +1 -1
- package/js/Math.pow.mjs +1 -1
- package/js/Math.random.mjs +1 -1
- package/js/Math.round.mjs +1 -1
- package/js/Math.sign.mjs +1 -1
- package/js/Math.sin.mjs +1 -1
- package/js/Math.sinh.mjs +1 -1
- package/js/Math.sqrt.mjs +1 -1
- package/js/Math.tanh.mjs +1 -1
- package/js/Math.trunc.mjs +1 -1
- package/js/Object.assign.mjs +1 -1
- package/js/Object.create.mjs +1 -1
- package/js/Object.defineProperties.mjs +6 -0
- package/js/Object.defineProperty.mjs +1 -1
- package/js/Object.entries.mjs +6 -0
- package/js/Object.freeze.mjs +6 -0
- package/js/Object.fromEntries.mjs +6 -0
- package/js/Object.getOwnPropertyDescriptor.mjs +1 -1
- package/js/Object.getOwnPropertyDescriptors.mjs +6 -0
- package/js/Object.getOwnPropertyNames.mjs +6 -0
- package/js/Object.getOwnPropertySymbols.mjs +6 -0
- package/js/Object.getPrototypeOf.mjs +1 -1
- package/js/Object.hasOwn.mjs +6 -0
- package/js/Object.is.mjs +6 -0
- package/js/Object.isExtensible.mjs +6 -0
- package/js/Object.isFrozen.mjs +6 -0
- package/js/Object.isSealed.mjs +6 -0
- package/js/Object.keys.mjs +1 -1
- package/js/Object.preventExtension.mjs +6 -0
- package/js/Object.prototype.hasOwnProperty.call.mjs +6 -0
- package/js/Object.prototype.isPrototypeOf.call.mjs +6 -0
- package/js/Object.prototype.mjs +1 -1
- package/js/Object.prototype.propertyIsEnumerable.call.mjs +6 -0
- package/js/Object.prototype.toLocaleString.call.mjs +6 -0
- package/js/Object.prototype.toString.call.mjs +6 -0
- package/js/Object.prototype.valueOf.call.mjs +6 -0
- package/js/Object.seal.mjs +6 -0
- package/js/Object.setPrototypeOf.mjs +1 -1
- package/js/Object.values.mjs +1 -1
- package/js/Promise.all.mjs +1 -1
- package/js/Promise.allSettled.mjs +1 -1
- package/js/Promise.race.mjs +1 -1
- package/js/Promise.reject.mjs +1 -1
- package/js/Promise.resolve.mjs +1 -1
- package/js/Symbol.for.mjs +1 -1
- package/js/isNaN.mjs +4 -0
- package/main.mjs +2 -2
- package/package.json +11 -8
- package/test.browser.mjs +8 -8
- package/test.mjs +118 -0
- package/test.js.mjs +0 -118
package/README.md
CHANGED
@@ -1,2 +1,18 @@
|
|
1
1
|
# refs
|
2
2
|
A list of references to built-ins, native objects, etc. This helps with minification and makes code smaller.
|
3
|
+
|
4
|
+
## Installation
|
5
|
+
|
6
|
+
```
|
7
|
+
npm install @schematize/refs
|
8
|
+
```
|
9
|
+
|
10
|
+
## Usage
|
11
|
+
|
12
|
+
To use, simply import the variable that you would like to reference.
|
13
|
+
|
14
|
+
```
|
15
|
+
import Object from '@schematize/refs/js/Object.mjs';
|
16
|
+
```
|
17
|
+
|
18
|
+
If you are using a bundler like rollup.js, you can use this reference across multiple modules and the resulting bundle will only contain 1 variable reference rather than a separate variable refernece for each module.
|
package/js/Array.isArray.mjs
CHANGED
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_concat_call = _Function_prototype_call_bind(_Array_prototype.concat);
|
5
|
+
|
6
|
+
export default _Array_prototype_concat_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_copyWithin_call = _Function_prototype_call_bind(_Array_prototype.copyWithin);
|
5
|
+
|
6
|
+
export default _Array_prototype_copyWithin_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_entries_call = _Function_prototype_call_bind(_Array_prototype.entries);
|
5
|
+
|
6
|
+
export default _Array_prototype_entries_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_every_call = _Function_prototype_call_bind(_Array_prototype.every);
|
5
|
+
|
6
|
+
export default _Array_prototype_every_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_fill_call = _Function_prototype_call_bind(_Array_prototype.fill);
|
5
|
+
|
6
|
+
export default _Array_prototype_fill_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_filter_call = _Function_prototype_call_bind(_Array_prototype.filter);
|
5
|
+
|
6
|
+
export default _Array_prototype_filter_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_find_call = _Function_prototype_call_bind(_Array_prototype.find);
|
5
|
+
|
6
|
+
export default _Array_prototype_find_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_findIndex_call = _Function_prototype_call_bind(_Array_prototype.findIndex);
|
5
|
+
|
6
|
+
export default _Array_prototype_findIndex_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_findLast_call = _Function_prototype_call_bind(_Array_prototype.findLast);
|
5
|
+
|
6
|
+
export default _Array_prototype_findLast_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_findLastIndex_call = _Function_prototype_call_bind(_Array_prototype.findLastIndex);
|
5
|
+
|
6
|
+
export default _Array_prototype_findLastIndex_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_flat_call = _Function_prototype_call_bind(_Array_prototype.flat);
|
5
|
+
|
6
|
+
export default _Array_prototype_flat_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_flatMap_call = _Function_prototype_call_bind(_Array_prototype.flatMap);
|
5
|
+
|
6
|
+
export default _Array_prototype_flatMap_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_forEach_call = _Function_prototype_call_bind(_Array_prototype.forEach);
|
5
|
+
|
6
|
+
export default _Array_prototype_forEach_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_includes_call = _Function_prototype_call_bind(_Array_prototype.includes);
|
5
|
+
|
6
|
+
export default _Array_prototype_includes_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_indexOf_call = _Function_prototype_call_bind(_Array_prototype.indexOf);
|
5
|
+
|
6
|
+
export default _Array_prototype_indexOf_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_join_call = _Function_prototype_call_bind(_Array_prototype.join);
|
5
|
+
|
6
|
+
export default _Array_prototype_join_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_keys_call = _Function_prototype_call_bind(_Array_prototype.keys);
|
5
|
+
|
6
|
+
export default _Array_prototype_keys_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_lastIndexOf_call = _Function_prototype_call_bind(_Array_prototype.lastIndexOf);
|
5
|
+
|
6
|
+
export default _Array_prototype_lastIndexOf_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_map_call = _Function_prototype_call_bind(_Array_prototype.map);
|
5
|
+
|
6
|
+
export default _Array_prototype_map_call;
|
package/js/Array.prototype.mjs
CHANGED
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_pop_call = _Function_prototype_call_bind(_Array_prototype.pop);
|
5
|
+
|
6
|
+
export default _Array_prototype_pop_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_push_call = _Function_prototype_call_bind(_Array_prototype.push);
|
5
|
+
|
6
|
+
export default _Array_prototype_push_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_reduce_call = _Function_prototype_call_bind(_Array_prototype.reduce);
|
5
|
+
|
6
|
+
export default _Array_prototype_reduce_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_reduceRight_call = _Function_prototype_call_bind(_Array_prototype.reduceRight);
|
5
|
+
|
6
|
+
export default _Array_prototype_reduceRight_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_reverse_call = _Function_prototype_call_bind(_Array_prototype.reverse);
|
5
|
+
|
6
|
+
export default _Array_prototype_reverse_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_shift_call = _Function_prototype_call_bind(_Array_prototype.shift);
|
5
|
+
|
6
|
+
export default _Array_prototype_shift_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_slice_call = _Function_prototype_call_bind(_Array_prototype.slice);
|
5
|
+
|
6
|
+
export default _Array_prototype_slice_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_some_call = _Function_prototype_call_bind(_Array_prototype.some);
|
5
|
+
|
6
|
+
export default _Array_prototype_some_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_sort_call = _Function_prototype_call_bind(_Array_prototype.sort);
|
5
|
+
|
6
|
+
export default _Array_prototype_sort_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_splice_call = _Function_prototype_call_bind(_Array_prototype.splice);
|
5
|
+
|
6
|
+
export default _Array_prototype_splice_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_toLocaleString_call = _Function_prototype_call_bind(_Array_prototype.toLocaleString);
|
5
|
+
|
6
|
+
export default _Array_prototype_toLocaleString_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_toString_call = _Function_prototype_call_bind(_Array_prototype.toString);
|
5
|
+
|
6
|
+
export default _Array_prototype_toString_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_unshift_call = _Function_prototype_call_bind(_Array_prototype.unshift);
|
5
|
+
|
6
|
+
export default _Array_prototype_unshift_call;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _Array_prototype from './Array.prototype.mjs';
|
2
|
+
import _Function_prototype_call_bind from './Function.prototype.call.bind.mjs';
|
3
|
+
|
4
|
+
const _Array_prototype_values_call = _Function_prototype_call_bind(_Array_prototype.values);
|
5
|
+
|
6
|
+
export default _Array_prototype_values_call;
|
package/js/BigInt.mjs
CHANGED
package/js/Intl.Collator.mjs
CHANGED
package/js/Intl.ListFormat.mjs
CHANGED
package/js/Intl.Locale.mjs
CHANGED
package/js/Intl.NumberFormat.mjs
CHANGED
package/js/Intl.PluralRules.mjs
CHANGED
package/js/JSON.parse.mjs
CHANGED
package/js/JSON.stringify.mjs
CHANGED
package/js/Math.E.mjs
CHANGED
package/js/Math.LN10.mjs
CHANGED
package/js/Math.LN2.mjs
CHANGED
package/js/Math.LOG10E.mjs
CHANGED
package/js/Math.LOG2E.mjs
CHANGED
package/js/Math.PI.mjs
CHANGED
package/js/Math.SQRT1_2.mjs
CHANGED
package/js/Math.SQRT2.mjs
CHANGED
package/js/Math.abs.mjs
CHANGED
package/js/Math.acos.mjs
CHANGED
package/js/Math.acosh.mjs
CHANGED
package/js/Math.asin.mjs
CHANGED
package/js/Math.asinh.mjs
CHANGED
package/js/Math.atan.mjs
CHANGED
package/js/Math.atan2.mjs
CHANGED
package/js/Math.atanh.mjs
CHANGED
package/js/Math.cbrt.mjs
CHANGED
package/js/Math.ceil.mjs
CHANGED
package/js/Math.clz32.mjs
CHANGED
package/js/Math.cos.mjs
CHANGED