typeson-registry 7.0.1 → 7.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/dist/index.d.ts CHANGED
@@ -39,6 +39,4 @@ import structuredCloning from './presets/structured-cloning.js';
39
39
  import undefPreset from './presets/undef.js';
40
40
  import universal from './presets/universal.js';
41
41
  export { arraybuffer, bigintObject, bigint, blob, cloneable, cryptokey, dataview, date, error, errors, file, filelist, imagebitmap, imagedata, infinity, intlTypes, map, nan, negativeInfinity, negativeZero, nonbuiltinIgnore, primitiveObjects, regexp, resurrectable, set, typedArraysSocketio, typedArrays, undef, userObject, arrayNonindexKeys, builtin, postmessage, socketio, sparseUndefined, specialNumbers, structuredCloningThrowing, structuredCloning, undefPreset, universal };
42
- //# sourceMappingURL=index.d.ts.map
43
-
44
- export type * from 'typeson';
42
+ //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1064,7 +1064,8 @@ const typedArraysSocketIO = {};
1064
1064
  * Uint8ClampedArrayConstructor|Int16ArrayConstructor|
1065
1065
  * Uint16ArrayConstructor|Int32ArrayConstructor|
1066
1066
  * Uint32ArrayConstructor|Float32ArrayConstructor|
1067
- * Float64ArrayConstructor
1067
+ * Float64ArrayConstructor|
1068
+ * BigInt64ArrayConstructor|BigUint64ArrayConstructor
1068
1069
  * } TypedArray
1069
1070
  * @returns {void}
1070
1071
  */
@@ -1109,7 +1110,11 @@ if (typeof Int8Array === 'function') {
1109
1110
  Int32Array,
1110
1111
  Uint32Array,
1111
1112
  Float32Array,
1112
- Float64Array
1113
+ Float64Array,
1114
+ ...(typeof BigInt64Array === 'function'
1115
+ ? [BigInt64Array, BigUint64Array]
1116
+ /* c8 ignore next */
1117
+ : [])
1113
1118
  ].forEach((TypedArray) => create$1(TypedArray));
1114
1119
  }
1115
1120
 
@@ -1126,7 +1131,8 @@ const typedArrays = {};
1126
1131
  * Int16ArrayConstructor|Uint16ArrayConstructor|
1127
1132
  * Int32ArrayConstructor|Uint32ArrayConstructor|
1128
1133
  * Float32ArrayConstructor|
1129
- * Float64ArrayConstructor} TypedArrayConstructor
1134
+ * Float64ArrayConstructor|
1135
+ * BigInt64ArrayConstructor|BigUint64ArrayConstructor} TypedArrayConstructor
1130
1136
  */
1131
1137
 
1132
1138
  /**
@@ -1202,7 +1208,11 @@ if (typeof Int8Array === 'function') {
1202
1208
  Int32Array,
1203
1209
  Uint32Array,
1204
1210
  Float32Array,
1205
- Float64Array
1211
+ Float64Array,
1212
+ ...(typeof BigInt64Array === 'function'
1213
+ ? [BigInt64Array, BigUint64Array]
1214
+ /* c8 ignore next */
1215
+ : [])
1206
1216
  ].forEach((TypedArray) => create(TypedArray));
1207
1217
  }
1208
1218