typeson-registry 11.0.0 → 11.0.2
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 +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +21 -26
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/index.umd.cjs +18 -21
- package/dist/index.umd.cjs.map +1 -1
- package/dist/index.umd.min.cjs +1 -1
- package/dist/index.umd.min.cjs.map +1 -1
- package/dist/polyfills/createObjectURL.d.ts.map +1 -1
- package/dist/presets/array-nonindex-keys.umd.cjs.map +1 -1
- package/dist/presets/builtin.umd.cjs +1 -1
- package/dist/presets/builtin.umd.cjs.map +1 -1
- package/dist/presets/postmessage.umd.cjs.map +1 -1
- package/dist/presets/socketio.umd.cjs +1 -1
- package/dist/presets/socketio.umd.cjs.map +1 -1
- package/dist/presets/sparse-undefined.umd.cjs.map +1 -1
- package/dist/presets/special-numbers.umd.cjs.map +1 -1
- package/dist/presets/structured-cloning-throwing.umd.cjs +1 -1
- package/dist/presets/structured-cloning-throwing.umd.cjs.map +1 -1
- package/dist/presets/structured-cloning.umd.cjs +1 -1
- package/dist/presets/structured-cloning.umd.cjs.map +1 -1
- package/dist/presets/undef.umd.cjs.map +1 -1
- package/dist/presets/universal.umd.cjs +1 -1
- package/dist/presets/universal.umd.cjs.map +1 -1
- package/dist/types/arraybuffer.umd.cjs.map +1 -1
- package/dist/types/bigint-object.d.ts.map +1 -1
- package/dist/types/bigint-object.umd.cjs.map +1 -1
- package/dist/types/bigint.d.ts.map +1 -1
- package/dist/types/bigint.umd.cjs.map +1 -1
- package/dist/types/blob.umd.cjs.map +1 -1
- package/dist/types/cloneable.umd.cjs.map +1 -1
- package/dist/types/cryptokey.umd.cjs.map +1 -1
- package/dist/types/dataview.umd.cjs.map +1 -1
- package/dist/types/date.umd.cjs.map +1 -1
- package/dist/types/domexception.umd.cjs.map +1 -1
- package/dist/types/dommatrix.umd.cjs.map +1 -1
- package/dist/types/dompoint.umd.cjs.map +1 -1
- package/dist/types/domquad.umd.cjs.map +1 -1
- package/dist/types/domrect.umd.cjs.map +1 -1
- package/dist/types/error.umd.cjs.map +1 -1
- package/dist/types/errors.d.ts.map +1 -1
- package/dist/types/errors.umd.cjs.map +1 -1
- package/dist/types/file.umd.cjs.map +1 -1
- package/dist/types/filelist.umd.cjs.map +1 -1
- package/dist/types/imagebitmap.umd.cjs.map +1 -1
- package/dist/types/imagedata.umd.cjs.map +1 -1
- package/dist/types/infinity.umd.cjs.map +1 -1
- package/dist/types/intl-types.umd.cjs.map +1 -1
- package/dist/types/map.umd.cjs.map +1 -1
- package/dist/types/nan.umd.cjs.map +1 -1
- package/dist/types/negative-infinity.umd.cjs.map +1 -1
- package/dist/types/negative-zero.umd.cjs.map +1 -1
- package/dist/types/nonbuiltin-ignore.umd.cjs.map +1 -1
- package/dist/types/primitive-objects.d.ts.map +1 -1
- package/dist/types/primitive-objects.umd.cjs +1 -1
- package/dist/types/primitive-objects.umd.cjs.map +1 -1
- package/dist/types/regexp.umd.cjs.map +1 -1
- package/dist/types/resurrectable.umd.cjs.map +1 -1
- package/dist/types/set.umd.cjs.map +1 -1
- package/dist/types/typed-arrays-socketio.d.ts.map +1 -1
- package/dist/types/typed-arrays-socketio.umd.cjs.map +1 -1
- package/dist/types/typed-arrays.d.ts.map +1 -1
- package/dist/types/typed-arrays.umd.cjs.map +1 -1
- package/dist/types/undef.umd.cjs.map +1 -1
- package/dist/types/user-object.umd.cjs.map +1 -1
- package/dist/utils/generateUUID.d.ts.map +1 -1
- package/package.json +21 -32
- package/polyfills/createObjectURL.js +3 -4
- package/polyfills/createObjectURL.umd.cjs.map +1 -1
- package/utils/generateUUID.js +2 -4
package/dist/index.umd.cjs
CHANGED
|
@@ -1335,8 +1335,6 @@
|
|
|
1335
1335
|
},
|
|
1336
1336
|
replace: String,
|
|
1337
1337
|
revive: function revive(s) {
|
|
1338
|
-
// Filed this to avoid error: https://github.com/eslint/eslint/issues/11810
|
|
1339
|
-
// eslint-disable-next-line no-new-object
|
|
1340
1338
|
return new Object(BigInt( /** @type {string} */s));
|
|
1341
1339
|
}
|
|
1342
1340
|
}
|
|
@@ -1351,7 +1349,8 @@
|
|
|
1351
1349
|
return typeof x === 'bigint';
|
|
1352
1350
|
},
|
|
1353
1351
|
replace: String,
|
|
1354
|
-
// eslint-disable-next-line
|
|
1352
|
+
// eslint-disable-next-line @stylistic/max-len -- Long
|
|
1353
|
+
// eslint-disable-next-line unicorn/prefer-native-coercion-functions -- Clearer
|
|
1355
1354
|
revive: function revive(s) {
|
|
1356
1355
|
return BigInt( /** @type {string} */s);
|
|
1357
1356
|
}
|
|
@@ -1429,7 +1428,7 @@
|
|
|
1429
1428
|
return array.buffer;
|
|
1430
1429
|
}
|
|
1431
1430
|
|
|
1432
|
-
/* globals XMLHttpRequest, FileReader */
|
|
1431
|
+
/* globals XMLHttpRequest, FileReader -- Polyfills */
|
|
1433
1432
|
|
|
1434
1433
|
/**
|
|
1435
1434
|
* @type {import('typeson').TypeSpecSet}
|
|
@@ -1502,15 +1501,12 @@
|
|
|
1502
1501
|
// Adapted from original: public domain/MIT: http://stackoverflow.com/a/8809472/271577
|
|
1503
1502
|
/* c8 ignore next */
|
|
1504
1503
|
var d = Date.now();
|
|
1505
|
-
|
|
1506
|
-
// eslint-disable-next-line @stylistic/max-len -- Long
|
|
1507
|
-
// eslint-disable-next-line no-use-extend-native/no-use-extend-native -- Need to update plugin
|
|
1508
1504
|
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replaceAll(/[xy]/g, function (c) {
|
|
1509
|
-
/* eslint-disable no-bitwise */
|
|
1505
|
+
/* eslint-disable no-bitwise -- Convenient */
|
|
1510
1506
|
var r = Math.trunc((d + Math.random() * 16) % 16);
|
|
1511
1507
|
d = Math.floor(d / 16);
|
|
1512
1508
|
return (c === 'x' ? r : r & 0x3 | 0x8).toString(16);
|
|
1513
|
-
/* eslint-enable no-bitwise */
|
|
1509
|
+
/* eslint-enable no-bitwise -- Convenient */
|
|
1514
1510
|
});
|
|
1515
1511
|
}
|
|
1516
1512
|
|
|
@@ -1737,7 +1733,7 @@
|
|
|
1737
1733
|
}
|
|
1738
1734
|
};
|
|
1739
1735
|
|
|
1740
|
-
/* globals DOMMatrix, DOMMatrixReadOnly */
|
|
1736
|
+
/* globals DOMMatrix, DOMMatrixReadOnly -- Polyfills */
|
|
1741
1737
|
|
|
1742
1738
|
/**
|
|
1743
1739
|
* @type {import('typeson').TypeSpecSet}
|
|
@@ -1801,7 +1797,7 @@
|
|
|
1801
1797
|
};
|
|
1802
1798
|
}
|
|
1803
1799
|
|
|
1804
|
-
/* globals DOMPoint, DOMPointReadOnly */
|
|
1800
|
+
/* globals DOMPoint, DOMPointReadOnly -- Polyfills */
|
|
1805
1801
|
|
|
1806
1802
|
/**
|
|
1807
1803
|
* @type {import('typeson').TypeSpecSet}
|
|
@@ -1844,7 +1840,7 @@
|
|
|
1844
1840
|
};
|
|
1845
1841
|
}
|
|
1846
1842
|
|
|
1847
|
-
/* globals DOMQuad */
|
|
1843
|
+
/* globals DOMQuad -- Polyfills */
|
|
1848
1844
|
|
|
1849
1845
|
/**
|
|
1850
1846
|
* @type {import('typeson').TypeSpecSet}
|
|
@@ -1872,7 +1868,7 @@
|
|
|
1872
1868
|
}
|
|
1873
1869
|
};
|
|
1874
1870
|
|
|
1875
|
-
/* globals DOMRect, DOMRectReadOnly */
|
|
1871
|
+
/* globals DOMRect, DOMRectReadOnly -- Polyfills */
|
|
1876
1872
|
|
|
1877
1873
|
/**
|
|
1878
1874
|
* @type {import('typeson').TypeSpecSet}
|
|
@@ -1965,8 +1961,7 @@
|
|
|
1965
1961
|
}
|
|
1966
1962
|
};
|
|
1967
1963
|
|
|
1968
|
-
/* globals InternalError */
|
|
1969
|
-
/* eslint-env browser, node */
|
|
1964
|
+
/* globals InternalError -- Optional */
|
|
1970
1965
|
|
|
1971
1966
|
/**
|
|
1972
1967
|
* @type {import('typeson').TypeSpecSet}
|
|
@@ -2067,7 +2062,7 @@
|
|
|
2067
2062
|
};
|
|
2068
2063
|
}
|
|
2069
2064
|
|
|
2070
|
-
/* globals XMLHttpRequest, FileReader */
|
|
2065
|
+
/* globals XMLHttpRequest, FileReader -- Polyfills */
|
|
2071
2066
|
|
|
2072
2067
|
/**
|
|
2073
2068
|
* @type {import('typeson').TypeSpecSet}
|
|
@@ -2162,7 +2157,7 @@
|
|
|
2162
2157
|
*/
|
|
2163
2158
|
function FileList() {
|
|
2164
2159
|
_classCallCheck$1(this, FileList);
|
|
2165
|
-
// eslint-disable-next-line prefer-rest-params
|
|
2160
|
+
// eslint-disable-next-line prefer-rest-params -- API
|
|
2166
2161
|
this._files = arguments[0];
|
|
2167
2162
|
this.length = this._files.length;
|
|
2168
2163
|
}
|
|
@@ -2175,14 +2170,14 @@
|
|
|
2175
2170
|
value: function item(index) {
|
|
2176
2171
|
return this._files[index];
|
|
2177
2172
|
}
|
|
2178
|
-
/* eslint-disable class-methods-use-this */
|
|
2173
|
+
/* eslint-disable class-methods-use-this -- Not needed */
|
|
2179
2174
|
/**
|
|
2180
2175
|
* @returns {"FileList"}
|
|
2181
2176
|
*/
|
|
2182
2177
|
}, {
|
|
2183
2178
|
key: Symbol.toStringTag,
|
|
2184
2179
|
get: function get() {
|
|
2185
|
-
/* eslint-enable class-methods-use-this */
|
|
2180
|
+
/* eslint-enable class-methods-use-this -- Not needed */
|
|
2186
2181
|
return 'FileList';
|
|
2187
2182
|
}
|
|
2188
2183
|
}]);
|
|
@@ -2478,8 +2473,10 @@
|
|
|
2478
2473
|
test: function test(x) {
|
|
2479
2474
|
return toStringTag(x) === 'Boolean' && _typeof$1(x) === 'object';
|
|
2480
2475
|
},
|
|
2481
|
-
replace:
|
|
2482
|
-
|
|
2476
|
+
replace: function replace(o) {
|
|
2477
|
+
// convert to primitive boolean
|
|
2478
|
+
return o.valueOf();
|
|
2479
|
+
},
|
|
2483
2480
|
revive: function revive(b) {
|
|
2484
2481
|
// Revive to an objectified Boolean
|
|
2485
2482
|
return new Boolean(b);
|