typeson-registry 14.7.0 → 15.1.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/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +164 -63
- 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 +213 -61
- package/dist/index.umd.cjs.map +1 -1
- package/dist/index.umd.min.cjs +2 -2
- package/dist/index.umd.min.cjs.map +1 -1
- package/dist/polyfills/SyncBlobFile.d.ts.map +1 -1
- package/dist/polyfills/URL.d.ts.map +1 -1
- package/dist/polyfills/buildCanvasPolyfills.d.ts +78 -0
- package/dist/polyfills/buildCanvasPolyfills.d.ts.map +1 -0
- package/dist/polyfills/buildFileList.d.ts +21 -0
- package/dist/polyfills/buildFileList.d.ts.map +1 -0
- package/dist/polyfills/buildWebgpu.d.ts +12 -0
- package/dist/polyfills/buildWebgpu.d.ts.map +1 -0
- package/dist/polyfills/index.d.ts +3 -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/structured-cloning-for-storage.umd.cjs +1 -1
- package/dist/presets/structured-cloning-for-storage.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.d.ts.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/universal.umd.cjs +1 -1
- package/dist/presets/universal.umd.cjs.map +1 -1
- package/dist/types/blob.d.ts.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/date.d.ts.map +1 -1
- package/dist/types/date.umd.cjs +1 -1
- package/dist/types/date.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/domrect.umd.cjs.map +1 -1
- package/dist/types/errors.umd.cjs.map +1 -1
- package/dist/types/file.d.ts.map +1 -1
- package/dist/types/file.umd.cjs.map +1 -1
- package/dist/types/filelist.d.ts.map +1 -1
- package/dist/types/filelist.umd.cjs.map +1 -1
- package/dist/types/gpucompilationinfo.d.ts +6 -0
- package/dist/types/gpucompilationinfo.d.ts.map +1 -0
- package/dist/types/gpucompilationinfo.umd.cjs +2 -0
- package/dist/types/gpucompilationinfo.umd.cjs.map +1 -0
- package/dist/types/gpucompilationmessage.d.ts +6 -0
- package/dist/types/gpucompilationmessage.d.ts.map +1 -0
- package/dist/types/gpucompilationmessage.umd.cjs +2 -0
- package/dist/types/gpucompilationmessage.umd.cjs.map +1 -0
- package/dist/types/imagebitmap.umd.cjs.map +1 -1
- package/dist/types/primitive-objects.d.ts.map +1 -1
- package/dist/types/primitive-objects.umd.cjs.map +1 -1
- package/dist/types/resurrectable.umd.cjs.map +1 -1
- package/dist/types/typed-arrays-socketio.umd.cjs.map +1 -1
- package/dist/types/typed-arrays.umd.cjs.map +1 -1
- package/dist/utils/generateUUID.d.ts.map +1 -1
- package/package.json +34 -35
- package/polyfills/SyncBlobFile.js +1 -4
- package/polyfills/URL.js +2 -5
- package/polyfills/buildCanvasPolyfills.js +246 -0
- package/polyfills/buildFileList.js +74 -0
- package/polyfills/buildWebgpu.js +35 -0
- package/polyfills/index.cjs +596 -185
- package/polyfills/index.cjs.map +1 -1
- package/polyfills/index.js +3 -1
- package/utils/generateUUID.js +0 -1
- package/polyfills/FileList.js +0 -51
- package/polyfills/createImageBitmap.js +0 -20
package/dist/index.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ import error from './types/error.js';
|
|
|
19
19
|
import errors from './types/errors.js';
|
|
20
20
|
import file from './types/file.js';
|
|
21
21
|
import filelist from './types/filelist.js';
|
|
22
|
+
import gpucompilationinfo from './types/gpucompilationinfo.js';
|
|
23
|
+
import gpucompilationmessage from './types/gpucompilationmessage.js';
|
|
22
24
|
import idbkeyrange from './types/idbkeyrange.js';
|
|
23
25
|
import imagebitmap from './types/imagebitmap.js';
|
|
24
26
|
import imagedata from './types/imagedata.js';
|
|
@@ -53,5 +55,5 @@ import structuredCloningThrowing from './presets/structured-cloning-throwing.js'
|
|
|
53
55
|
import structuredCloning from './presets/structured-cloning.js';
|
|
54
56
|
import undefPreset from './presets/undef.js';
|
|
55
57
|
import universal from './presets/universal.js';
|
|
56
|
-
export { arraybuffer, audiodata, bigintObject, bigint, blob, cloneable, cryptokey, dataview, date, domexception, dommatrix, dompoint, domquad, domrect, encodedaudiochunk, encodedvideochunk, error, errors, file, filelist, idbkeyrange, imagebitmap, imagedata, infinity, intlTypes, map, nan, negativeInfinity, negativeZero, nonbuiltinIgnore, primitiveObjects, promise, quotaexceedederror, regexp, resurrectable, set, symbol, typedArraysSocketio, typedArrays, undef, userObject, videoframe, webtransporterror, arrayNonindexKeys, builtin, postmessage, socketio, sparseUndefined, specialNumbers, structuredCloningForStorage, structuredCloningThrowing, structuredCloning, undefPreset, universal };
|
|
58
|
+
export { arraybuffer, audiodata, bigintObject, bigint, blob, cloneable, cryptokey, dataview, date, domexception, dommatrix, dompoint, domquad, domrect, encodedaudiochunk, encodedvideochunk, error, errors, file, filelist, gpucompilationinfo, gpucompilationmessage, idbkeyrange, imagebitmap, imagedata, infinity, intlTypes, map, nan, negativeInfinity, negativeZero, nonbuiltinIgnore, primitiveObjects, promise, quotaexceedederror, regexp, resurrectable, set, symbol, typedArraysSocketio, typedArrays, undef, userObject, videoframe, webtransporterror, arrayNonindexKeys, builtin, postmessage, socketio, sparseUndefined, specialNumbers, structuredCloningForStorage, structuredCloningThrowing, structuredCloning, undefPreset, universal };
|
|
57
59
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.js"],"names":[],"mappings":";wBAGwB,wBAAwB;sBAC1B,sBAAsB;yBACnB,0BAA0B;mBAChC,mBAAmB;iBACrB,iBAAiB;sBACZ,sBAAsB;sBACtB,sBAAsB;qBACvB,qBAAqB;iBACzB,iBAAiB;yBACT,yBAAyB;sBAC5B,sBAAsB;qBACvB,qBAAqB;oBACtB,oBAAoB;oBACpB,oBAAoB;8BACV,8BAA8B;8BAC9B,8BAA8B;kBAC1C,kBAAkB;mBACjB,mBAAmB;iBACrB,iBAAiB;qBACb,qBAAqB;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.js"],"names":[],"mappings":";wBAGwB,wBAAwB;sBAC1B,sBAAsB;yBACnB,0BAA0B;mBAChC,mBAAmB;iBACrB,iBAAiB;sBACZ,sBAAsB;sBACtB,sBAAsB;qBACvB,qBAAqB;iBACzB,iBAAiB;yBACT,yBAAyB;sBAC5B,sBAAsB;qBACvB,qBAAqB;oBACtB,oBAAoB;oBACpB,oBAAoB;8BACV,8BAA8B;8BAC9B,8BAA8B;kBAC1C,kBAAkB;mBACjB,mBAAmB;iBACrB,iBAAiB;qBACb,qBAAqB;+BACX,+BAA+B;kCAC5B,kCAAkC;wBAC5C,wBAAwB;wBACxB,wBAAwB;sBAC1B,sBAAsB;qBACvB,qBAAqB;sBACpB,uBAAuB;gBAC7B,gBAAgB;gBAChB,gBAAgB;6BACH,8BAA8B;yBAClC,0BAA0B;6BACtB,8BAA8B;6BAC9B,8BAA8B;oBACvC,oBAAoB;+BACT,+BAA+B;mBAC3C,mBAAmB;0BACZ,0BAA0B;gBACpC,gBAAgB;mBACb,mBAAmB;gCACN,kCAAkC;wBAC1C,yBAAyB;kBAC/B,kBAAkB;uBACb,wBAAwB;uBACxB,uBAAuB;8BAChB,8BAA8B;8BAG9B,kCAAkC;oBAC5C,sBAAsB;wBAClB,0BAA0B;qBAC7B,uBAAuB;4BAChB,+BAA+B;2BAChC,8BAA8B;wCAErD,6CAA6C;sCAE7C,0CAA0C;8BAChB,iCAAiC;wBACvC,oBAAoB;sBACtB,wBAAwB"}
|
package/dist/index.js
CHANGED
|
@@ -332,8 +332,7 @@ const blob = {
|
|
|
332
332
|
req.open('GET', URL.createObjectURL(b), false); // Sync
|
|
333
333
|
req.send();
|
|
334
334
|
|
|
335
|
-
|
|
336
|
-
/* c8 ignore next 3 */
|
|
335
|
+
/* c8 ignore next 3 -- Seems not feasible to accurately simulate */
|
|
337
336
|
if (req.status !== 200 && req.status !== 0) {
|
|
338
337
|
throw new Error('Bad Blob access: ' + req.status);
|
|
339
338
|
}
|
|
@@ -365,8 +364,8 @@ const blob = {
|
|
|
365
364
|
)
|
|
366
365
|
});
|
|
367
366
|
});
|
|
368
|
-
//
|
|
369
|
-
/* c8 ignore next 3 */
|
|
367
|
+
// eslint-disable-next-line @stylistic/max-len -- Long
|
|
368
|
+
/* c8 ignore next 3 -- Seems not feasible to accurately simulate */
|
|
370
369
|
reader.addEventListener('error', () => {
|
|
371
370
|
reject(reader.error);
|
|
372
371
|
});
|
|
@@ -386,7 +385,6 @@ const blob = {
|
|
|
386
385
|
* @returns {string}
|
|
387
386
|
*/
|
|
388
387
|
function generateUUID () { // Adapted from original: public domain/MIT: https://stackoverflow.com/a/8809472/271577
|
|
389
|
-
/* c8 ignore next */
|
|
390
388
|
let d = Date.now();
|
|
391
389
|
|
|
392
390
|
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replaceAll(/[xy]/gu, function (c) {
|
|
@@ -447,8 +445,8 @@ const cryptokey = {
|
|
|
447
445
|
let jwk;
|
|
448
446
|
try {
|
|
449
447
|
jwk = await crypto.subtle.exportKey('jwk', key);
|
|
450
|
-
//
|
|
451
|
-
/* c8 ignore next 4 */
|
|
448
|
+
// eslint-disable-next-line @stylistic/max-len -- Long
|
|
449
|
+
/* c8 ignore next 4 -- Our format should be valid and our key extractable */
|
|
452
450
|
} catch (err) {
|
|
453
451
|
reject(err);
|
|
454
452
|
return;
|
|
@@ -550,16 +548,10 @@ const date = {
|
|
|
550
548
|
test (x) { return toStringTag(x) === 'Date'; },
|
|
551
549
|
replace (dt) {
|
|
552
550
|
const time = dt.getTime();
|
|
553
|
-
|
|
554
|
-
return 'NaN';
|
|
555
|
-
}
|
|
556
|
-
return time;
|
|
551
|
+
return Number.isNaN(time) ? 'NaN' : time;
|
|
557
552
|
},
|
|
558
553
|
revive (time) {
|
|
559
|
-
|
|
560
|
-
return new Date(NaN);
|
|
561
|
-
}
|
|
562
|
-
return new Date(time);
|
|
554
|
+
return new Date(time === 'NaN' ? NaN : time);
|
|
563
555
|
}
|
|
564
556
|
}
|
|
565
557
|
};
|
|
@@ -591,11 +583,11 @@ const domexception = {
|
|
|
591
583
|
*/
|
|
592
584
|
const dommatrix = {};
|
|
593
585
|
|
|
594
|
-
/* c8 ignore next */
|
|
586
|
+
/* c8 ignore next -- Later support */
|
|
595
587
|
if (typeof DOMMatrix !== 'undefined') {
|
|
596
588
|
create$5(DOMMatrix);
|
|
597
589
|
}
|
|
598
|
-
/* c8 ignore next */
|
|
590
|
+
/* c8 ignore next -- Later support */
|
|
599
591
|
if (typeof DOMMatrixReadOnly !== 'undefined') {
|
|
600
592
|
create$5(DOMMatrixReadOnly);
|
|
601
593
|
}
|
|
@@ -658,11 +650,11 @@ function create$5 (Ctor) {
|
|
|
658
650
|
*/
|
|
659
651
|
const dompoint = {};
|
|
660
652
|
|
|
661
|
-
/* c8 ignore next */
|
|
653
|
+
/* c8 ignore next -- Later support */
|
|
662
654
|
if (typeof DOMPoint !== 'undefined') {
|
|
663
655
|
create$4(DOMPoint);
|
|
664
656
|
}
|
|
665
|
-
/* c8 ignore next */
|
|
657
|
+
/* c8 ignore next -- Later support */
|
|
666
658
|
if (typeof DOMPointReadOnly !== 'undefined') {
|
|
667
659
|
create$4(DOMPointReadOnly);
|
|
668
660
|
}
|
|
@@ -717,11 +709,11 @@ const domquad = {
|
|
|
717
709
|
*/
|
|
718
710
|
const domrect = {};
|
|
719
711
|
|
|
720
|
-
/* c8 ignore next */
|
|
712
|
+
/* c8 ignore next -- Later support */
|
|
721
713
|
if (typeof DOMRect !== 'undefined') {
|
|
722
714
|
create$3(DOMRect);
|
|
723
715
|
}
|
|
724
|
-
/* c8 ignore next */
|
|
716
|
+
/* c8 ignore next -- Later support */
|
|
725
717
|
if (typeof DOMRectReadOnly !== 'undefined') {
|
|
726
718
|
create$3(DOMRectReadOnly);
|
|
727
719
|
}
|
|
@@ -861,12 +853,12 @@ const errors = {};
|
|
|
861
853
|
EvalError, URIError
|
|
862
854
|
].forEach((error) => create$2(error));
|
|
863
855
|
|
|
864
|
-
/* c8 ignore next 3 */
|
|
856
|
+
/* c8 ignore next 3 -- Later support */
|
|
865
857
|
if (typeof AggregateError !== 'undefined') {
|
|
866
858
|
create$2(AggregateError);
|
|
867
859
|
}
|
|
868
860
|
|
|
869
|
-
/* c8 ignore next 5 */
|
|
861
|
+
/* c8 ignore next 5 -- Non-standard */
|
|
870
862
|
// @ts-expect-error Non-standard
|
|
871
863
|
if (typeof InternalError === 'function') {
|
|
872
864
|
// @ts-expect-error Non-standard
|
|
@@ -951,8 +943,7 @@ const file = {
|
|
|
951
943
|
req.open('GET', URL.createObjectURL(f), false); // Sync
|
|
952
944
|
req.send();
|
|
953
945
|
|
|
954
|
-
|
|
955
|
-
/* c8 ignore next 3 */
|
|
946
|
+
/* c8 ignore next 3 -- Seems not feasible to accurately simulate */
|
|
956
947
|
if (req.status !== 200 && req.status !== 0) {
|
|
957
948
|
throw new Error('Bad File access: ' + req.status);
|
|
958
949
|
}
|
|
@@ -988,8 +979,8 @@ const file = {
|
|
|
988
979
|
lastModified: f.lastModified
|
|
989
980
|
});
|
|
990
981
|
});
|
|
991
|
-
//
|
|
992
|
-
/* c8 ignore next 3 */
|
|
982
|
+
// eslint-disable-next-line @stylistic/max-len -- Long
|
|
983
|
+
/* c8 ignore next 3 -- Seems not feasible to accurately simulate */
|
|
993
984
|
reader.addEventListener('error', function () {
|
|
994
985
|
reject(reader.error);
|
|
995
986
|
});
|
|
@@ -1045,12 +1036,121 @@ const filelist = {
|
|
|
1045
1036
|
}
|
|
1046
1037
|
}
|
|
1047
1038
|
|
|
1039
|
+
// eslint-disable-next-line jsdoc/ts-ban-ts-comment -- TS 6/7
|
|
1048
1040
|
// @ts-ignore Override API
|
|
1049
1041
|
return new FileList(o);
|
|
1050
1042
|
}
|
|
1051
1043
|
}
|
|
1052
1044
|
};
|
|
1053
1045
|
|
|
1046
|
+
/**
|
|
1047
|
+
* @type {import('typeson').TypeSpecSet}
|
|
1048
|
+
*/
|
|
1049
|
+
const gpucompilationinfo = {
|
|
1050
|
+
gpucompilationinfo: {
|
|
1051
|
+
test (x) {
|
|
1052
|
+
return toStringTag(x) === 'GPUCompilationInfo';
|
|
1053
|
+
},
|
|
1054
|
+
replace ({messages}) {
|
|
1055
|
+
return {messages};
|
|
1056
|
+
},
|
|
1057
|
+
revive ({messages}) {
|
|
1058
|
+
/* eslint-disable class-methods-use-this -- Don't need */
|
|
1059
|
+
/**
|
|
1060
|
+
* `GPUCompilationInfo` polyfill.
|
|
1061
|
+
*/
|
|
1062
|
+
class GPUCompilationInfo {
|
|
1063
|
+
/**
|
|
1064
|
+
* @returns {string}
|
|
1065
|
+
*/
|
|
1066
|
+
get [Symbol.toStringTag] () {
|
|
1067
|
+
return 'GPUCompilationInfo';
|
|
1068
|
+
}
|
|
1069
|
+
/**
|
|
1070
|
+
* @returns {GPUCompilationMessage[]}
|
|
1071
|
+
*/
|
|
1072
|
+
get messages () {
|
|
1073
|
+
/* eslint-enable class-methods-use-this -- Don't need */
|
|
1074
|
+
return messages;
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
return new GPUCompilationInfo();
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
};
|
|
1081
|
+
|
|
1082
|
+
/**
|
|
1083
|
+
* @type {import('typeson').TypeSpecSet}
|
|
1084
|
+
*/
|
|
1085
|
+
const gpucompilationmessage = {
|
|
1086
|
+
gpucompilationmessage: {
|
|
1087
|
+
test (x) {
|
|
1088
|
+
return toStringTag(x) === 'GPUCompilationMessage';
|
|
1089
|
+
},
|
|
1090
|
+
replace ({length, lineNum, linePos, message, offset, type}) {
|
|
1091
|
+
return {length, lineNum, linePos, message, offset, type};
|
|
1092
|
+
},
|
|
1093
|
+
revive ({length, lineNum, linePos, message, offset, type}) {
|
|
1094
|
+
/* eslint-disable class-methods-use-this -- Don't need */
|
|
1095
|
+
/**
|
|
1096
|
+
* `GPUCompilationInfo` polyfill.
|
|
1097
|
+
*/
|
|
1098
|
+
class GPUCompilationMessage {
|
|
1099
|
+
/**
|
|
1100
|
+
* @returns {string}
|
|
1101
|
+
*/
|
|
1102
|
+
get [Symbol.toStringTag] () {
|
|
1103
|
+
return 'GPUCompilationMessage';
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
/**
|
|
1107
|
+
* @returns {number}
|
|
1108
|
+
*/
|
|
1109
|
+
get length () {
|
|
1110
|
+
return length;
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
/**
|
|
1114
|
+
* @returns {number}
|
|
1115
|
+
*/
|
|
1116
|
+
get lineNum () {
|
|
1117
|
+
return lineNum;
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
/**
|
|
1121
|
+
* @returns {number}
|
|
1122
|
+
*/
|
|
1123
|
+
get linePos () {
|
|
1124
|
+
return linePos;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
/**
|
|
1128
|
+
* @returns {string}
|
|
1129
|
+
*/
|
|
1130
|
+
get message () {
|
|
1131
|
+
return message;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
/**
|
|
1135
|
+
* @returns {number}
|
|
1136
|
+
*/
|
|
1137
|
+
get offset () {
|
|
1138
|
+
return offset;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
/**
|
|
1142
|
+
* @returns {"error"|"info"|"warning"}
|
|
1143
|
+
*/
|
|
1144
|
+
get type () {
|
|
1145
|
+
return type;
|
|
1146
|
+
}
|
|
1147
|
+
/* eslint-enable class-methods-use-this -- Don't need */
|
|
1148
|
+
}
|
|
1149
|
+
return new GPUCompilationMessage();
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
};
|
|
1153
|
+
|
|
1054
1154
|
/* globals IDBKeyRange -- Polyfill needed */
|
|
1055
1155
|
|
|
1056
1156
|
|
|
@@ -1146,7 +1246,7 @@ const imagebitmap = {
|
|
|
1146
1246
|
try {
|
|
1147
1247
|
const resp = await createImageBitmap(canvas);
|
|
1148
1248
|
resolve(resp);
|
|
1149
|
-
/* c8 ignore next 3 */
|
|
1249
|
+
/* c8 ignore next 3 -- How to simulate? */
|
|
1150
1250
|
} catch (err) {
|
|
1151
1251
|
reject(err);
|
|
1152
1252
|
}
|
|
@@ -1410,10 +1510,7 @@ const primitiveObjects = {
|
|
|
1410
1510
|
if (n === '-Infinity') {
|
|
1411
1511
|
return new Number(-Infinity);
|
|
1412
1512
|
}
|
|
1413
|
-
|
|
1414
|
-
return new Number(-0);
|
|
1415
|
-
}
|
|
1416
|
-
return new Number(n);
|
|
1513
|
+
return new Number(n === '-0' ? -0 : n);
|
|
1417
1514
|
}
|
|
1418
1515
|
}
|
|
1419
1516
|
};
|
|
@@ -1648,11 +1745,11 @@ if (typeof Int8Array === 'function') {
|
|
|
1648
1745
|
Float64Array,
|
|
1649
1746
|
...(typeof BigInt64Array === 'function'
|
|
1650
1747
|
? [BigInt64Array, BigUint64Array]
|
|
1651
|
-
/* c8 ignore next */
|
|
1748
|
+
/* c8 ignore next -- Later support */
|
|
1652
1749
|
: []),
|
|
1653
1750
|
...(typeof Float16Array === 'function'
|
|
1654
1751
|
? [Float16Array]
|
|
1655
|
-
/* c8 ignore next */
|
|
1752
|
+
/* c8 ignore next -- Later support */
|
|
1656
1753
|
: [])
|
|
1657
1754
|
].forEach((TypedArray) => create$1(TypedArray));
|
|
1658
1755
|
}
|
|
@@ -1756,11 +1853,11 @@ if (typeof Int8Array === 'function') {
|
|
|
1756
1853
|
Float64Array,
|
|
1757
1854
|
...(typeof BigInt64Array === 'function'
|
|
1758
1855
|
? [BigInt64Array, BigUint64Array]
|
|
1759
|
-
/* c8 ignore next */
|
|
1856
|
+
/* c8 ignore next -- Later support */
|
|
1760
1857
|
: []),
|
|
1761
1858
|
...(typeof Float16Array === 'function'
|
|
1762
1859
|
? [Float16Array]
|
|
1763
|
-
/* c8 ignore next */
|
|
1860
|
+
/* c8 ignore next -- Later support */
|
|
1764
1861
|
: [])
|
|
1765
1862
|
].forEach((TypedArray) => create(TypedArray));
|
|
1766
1863
|
}
|
|
@@ -2014,20 +2111,20 @@ const expObj$1 = [
|
|
|
2014
2111
|
date, error, errors, regexp
|
|
2015
2112
|
].concat(
|
|
2016
2113
|
// ES2015 (ES6)
|
|
2017
|
-
/* c8 ignore next */
|
|
2114
|
+
/* c8 ignore next -- ES6+ */
|
|
2018
2115
|
typeof Map === 'function' ? map : [],
|
|
2019
|
-
/* c8 ignore next */
|
|
2116
|
+
/* c8 ignore next -- ES6+ */
|
|
2020
2117
|
typeof Set === 'function' ? set : [],
|
|
2021
|
-
/* c8 ignore next */
|
|
2118
|
+
/* c8 ignore next -- Later support */
|
|
2022
2119
|
typeof ArrayBuffer === 'function' ? arraybuffer : [],
|
|
2023
|
-
/* c8 ignore next */
|
|
2120
|
+
/* c8 ignore next -- Later support */
|
|
2024
2121
|
typeof Uint8Array === 'function' ? typedArrays : [],
|
|
2025
|
-
/* c8 ignore next */
|
|
2122
|
+
/* c8 ignore next -- Later support */
|
|
2026
2123
|
typeof DataView === 'function' ? dataview : [],
|
|
2027
|
-
/* c8 ignore next */
|
|
2124
|
+
/* c8 ignore next -- Later support */
|
|
2028
2125
|
typeof Intl !== 'undefined' ? intlTypes : [],
|
|
2029
2126
|
|
|
2030
|
-
/* c8 ignore next */
|
|
2127
|
+
/* c8 ignore next -- Later support */
|
|
2031
2128
|
typeof BigInt !== 'undefined' ? [bigint, bigintObject] : []
|
|
2032
2129
|
);
|
|
2033
2130
|
|
|
@@ -2117,42 +2214,46 @@ const expObj = [
|
|
|
2117
2214
|
errors
|
|
2118
2215
|
].concat(
|
|
2119
2216
|
// ES2015 (ES6)
|
|
2120
|
-
/* c8 ignore next */
|
|
2217
|
+
/* c8 ignore next -- ES6+ */
|
|
2121
2218
|
typeof Map === 'function' ? map : [],
|
|
2122
|
-
/* c8 ignore next */
|
|
2219
|
+
/* c8 ignore next -- ES6+ */
|
|
2123
2220
|
typeof Set === 'function' ? set : [],
|
|
2124
|
-
/* c8 ignore next */
|
|
2221
|
+
/* c8 ignore next -- Later support */
|
|
2125
2222
|
typeof ArrayBuffer === 'function' ? arraybuffer : [],
|
|
2126
|
-
/* c8 ignore next */
|
|
2223
|
+
/* c8 ignore next -- Later support */
|
|
2127
2224
|
typeof Uint8Array === 'function' ? typedArrays : [],
|
|
2128
|
-
/* c8 ignore next */
|
|
2225
|
+
/* c8 ignore next -- Later support */
|
|
2129
2226
|
typeof DataView === 'function' ? dataview : [],
|
|
2130
|
-
/* c8 ignore next */
|
|
2227
|
+
/* c8 ignore next -- Later support */
|
|
2131
2228
|
typeof crypto !== 'undefined' ? cryptokey : [],
|
|
2132
|
-
/* c8 ignore next */
|
|
2229
|
+
/* c8 ignore next -- Later support */
|
|
2133
2230
|
typeof BigInt !== 'undefined' ? [bigint, bigintObject] : [],
|
|
2134
|
-
/* c8 ignore next */
|
|
2231
|
+
/* c8 ignore next -- Later support */
|
|
2135
2232
|
typeof DOMException !== 'undefined' ? domexception : [],
|
|
2136
|
-
/* c8 ignore next */
|
|
2233
|
+
/* c8 ignore next -- Later support */
|
|
2137
2234
|
typeof QuotaExceededError !== 'undefined' ? quotaexceedederror : [],
|
|
2138
|
-
/* c8 ignore next */
|
|
2235
|
+
/* c8 ignore next -- Later support */
|
|
2139
2236
|
typeof WebTransportError !== 'undefined' ? webtransporterror : [],
|
|
2140
|
-
/* c8 ignore next */
|
|
2237
|
+
/* c8 ignore next -- Later support */
|
|
2141
2238
|
typeof DOMRect !== 'undefined' ? domrect : [],
|
|
2142
|
-
/* c8 ignore next */
|
|
2239
|
+
/* c8 ignore next -- Later support */
|
|
2143
2240
|
typeof DOMPoint !== 'undefined' ? dompoint : [],
|
|
2144
|
-
/* c8 ignore next */
|
|
2241
|
+
/* c8 ignore next -- Later support */
|
|
2145
2242
|
typeof DOMQuad !== 'undefined' ? domquad : [],
|
|
2146
|
-
/* c8 ignore next */
|
|
2243
|
+
/* c8 ignore next -- Later support */
|
|
2147
2244
|
typeof DOMMatrix !== 'undefined' ? dommatrix : [],
|
|
2148
|
-
/* c8 ignore next */
|
|
2245
|
+
/* c8 ignore next -- Later support */
|
|
2149
2246
|
typeof AudioData !== 'undefined' ? audiodata : [],
|
|
2150
|
-
/* c8 ignore next */
|
|
2247
|
+
/* c8 ignore next -- Later support */
|
|
2151
2248
|
typeof EncodedAudioChunk !== 'undefined' ? encodedaudiochunk : [],
|
|
2152
|
-
/* c8 ignore next */
|
|
2249
|
+
/* c8 ignore next -- Later support */
|
|
2153
2250
|
typeof EncodedVideoChunk !== 'undefined' ? encodedvideochunk : [],
|
|
2154
|
-
/* c8 ignore next */
|
|
2155
|
-
typeof VideoFrame !== 'undefined' ? videoframe : []
|
|
2251
|
+
/* c8 ignore next -- Later support */
|
|
2252
|
+
typeof VideoFrame !== 'undefined' ? videoframe : [],
|
|
2253
|
+
/* c8 ignore next -- Later support */
|
|
2254
|
+
typeof GPUCompilationInfo !== 'undefined' ? gpucompilationinfo : [],
|
|
2255
|
+
/* c8 ignore next -- Later support */
|
|
2256
|
+
typeof GPUCompilationMessage !== 'undefined' ? gpucompilationmessage : []
|
|
2156
2257
|
);
|
|
2157
2258
|
|
|
2158
2259
|
/**
|
|
@@ -2358,5 +2459,5 @@ const universal = [
|
|
|
2358
2459
|
// built-in into ecmasript standard.
|
|
2359
2460
|
];
|
|
2360
2461
|
|
|
2361
|
-
export { c as JSON_TYPES, Typeson, TypesonPromise, Undefined, arrayNonindexKeys, arraybuffer, audiodata, bigint, bigintObject, blob, expObj$1 as builtin, cloneable, cryptokey, dataview, date, domexception, dommatrix, dompoint, domquad, domrect, encodedaudiochunk, encodedvideochunk, error, errors, escapeKeyPathComponent, file, filelist, getByKeyPath, getJSONType, hasConstructorOf, idbkeyrange, imagebitmap, imagedata, infinity, intlTypes, isObject, isPlainObject, isThenable, isUserObject, map, nan, negativeInfinity, negativeZero, nonbuiltinIgnore, postmessage, primitiveObjects, promise, quotaexceedederror, regexp, resurrectable, set, setAtKeyPath, socketio, sparseUndefined, specialNumbers, expObj as structuredCloning, structuredCloningForStorage, structuredCloningThrowing, symbol, toStringTag, typedArrays, typedArraysSocketIO as typedArraysSocketio, undef$1 as undef, undef as undefPreset, unescapeKeyPathComponent, universal, userObject, videoframe, webtransporterror };
|
|
2462
|
+
export { c as JSON_TYPES, Typeson, TypesonPromise, Undefined, arrayNonindexKeys, arraybuffer, audiodata, bigint, bigintObject, blob, expObj$1 as builtin, cloneable, cryptokey, dataview, date, domexception, dommatrix, dompoint, domquad, domrect, encodedaudiochunk, encodedvideochunk, error, errors, escapeKeyPathComponent, file, filelist, getByKeyPath, getJSONType, gpucompilationinfo, gpucompilationmessage, hasConstructorOf, idbkeyrange, imagebitmap, imagedata, infinity, intlTypes, isObject, isPlainObject, isThenable, isUserObject, map, nan, negativeInfinity, negativeZero, nonbuiltinIgnore, postmessage, primitiveObjects, promise, quotaexceedederror, regexp, resurrectable, set, setAtKeyPath, socketio, sparseUndefined, specialNumbers, expObj as structuredCloning, structuredCloningForStorage, structuredCloningThrowing, symbol, toStringTag, typedArrays, typedArraysSocketIO as typedArraysSocketio, undef$1 as undef, undef as undefPreset, unescapeKeyPathComponent, universal, userObject, videoframe, webtransporterror };
|
|
2362
2463
|
//# sourceMappingURL=index.js.map
|