typeson-registry 9.0.0 → 9.1.1
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 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +56 -5
- 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 +52 -4
- 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/presets/structured-cloning-throwing.d.ts.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/types/dommatrix.d.ts +6 -0
- package/dist/types/dommatrix.d.ts.map +1 -0
- package/dist/types/dommatrix.umd.cjs +2 -0
- package/dist/types/dommatrix.umd.cjs.map +1 -0
- package/package.json +20 -21
package/README.md
CHANGED
|
@@ -231,6 +231,7 @@ Note that the type name corresponds to the file name in the following manner:
|
|
|
231
231
|
- `dataview`
|
|
232
232
|
- `date`
|
|
233
233
|
- `domexception`
|
|
234
|
+
- `dommatrix`
|
|
234
235
|
- `dompoint`
|
|
235
236
|
- `domrect`
|
|
236
237
|
- `error.js` (`Error`) and `errors.js` (`TypeError`, `RangeError`, `SyntaxError`, `ReferenceError`, `EvalError`, `URIError`, `InternalError`) - These
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import cryptokey from './types/cryptokey.js';
|
|
|
8
8
|
import dataview from './types/dataview.js';
|
|
9
9
|
import date from './types/date.js';
|
|
10
10
|
import domexception from './types/domexception.js';
|
|
11
|
+
import dommatrix from './types/dommatrix.js';
|
|
11
12
|
import dompoint from './types/dompoint.js';
|
|
12
13
|
import domrect from './types/domrect.js';
|
|
13
14
|
import error from './types/error.js';
|
|
@@ -41,5 +42,5 @@ import structuredCloningThrowing from './presets/structured-cloning-throwing.js'
|
|
|
41
42
|
import structuredCloning from './presets/structured-cloning.js';
|
|
42
43
|
import undefPreset from './presets/undef.js';
|
|
43
44
|
import universal from './presets/universal.js';
|
|
44
|
-
export { arraybuffer, bigintObject, bigint, blob, cloneable, cryptokey, dataview, date, domexception, dompoint, domrect, 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 };
|
|
45
|
+
export { arraybuffer, bigintObject, bigint, blob, cloneable, cryptokey, dataview, date, domexception, dommatrix, dompoint, domrect, 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 };
|
|
45
46
|
//# 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;yBACvB,0BAA0B;mBAChC,mBAAmB;iBACrB,iBAAiB;sBACZ,sBAAsB;sBACtB,sBAAsB;qBACvB,qBAAqB;iBACzB,iBAAiB;yBACT,yBAAyB;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.js"],"names":[],"mappings":";wBAGwB,wBAAwB;yBACvB,0BAA0B;mBAChC,mBAAmB;iBACrB,iBAAiB;sBACZ,sBAAsB;sBACtB,sBAAsB;qBACvB,qBAAqB;iBACzB,iBAAiB;yBACT,yBAAyB;sBAC5B,sBAAsB;qBACvB,qBAAqB;oBACtB,oBAAoB;kBACtB,kBAAkB;mBACjB,mBAAmB;iBACrB,iBAAiB;qBACb,qBAAqB;wBAClB,wBAAwB;sBAC1B,sBAAsB;qBACvB,qBAAqB;sBACpB,uBAAuB;gBAC7B,gBAAgB;gBAChB,gBAAgB;6BACH,8BAA8B;yBAClC,0BAA0B;6BACtB,8BAA8B;6BAC9B,8BAA8B;mBACxC,mBAAmB;0BACZ,0BAA0B;gBACpC,gBAAgB;gCACA,kCAAkC;wBAC1C,yBAAyB;kBAC/B,kBAAkB;uBACb,wBAAwB;8BAGjB,kCAAkC;oBAC5C,sBAAsB;wBAClB,0BAA0B;qBAC7B,uBAAuB;4BAChB,+BAA+B;2BAChC,8BAA8B;sCAErD,0CAA0C;8BAChB,iCAAiC;wBACvC,oBAAoB;sBACtB,wBAAwB"}
|
package/dist/index.js
CHANGED
|
@@ -500,6 +500,58 @@ const domexception = {
|
|
|
500
500
|
}
|
|
501
501
|
};
|
|
502
502
|
|
|
503
|
+
/* globals DOMMatrix */
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* @type {import('typeson').TypeSpecSet}
|
|
507
|
+
*/
|
|
508
|
+
const dommatrix = {
|
|
509
|
+
dommatrix: {
|
|
510
|
+
test (x) { return toStringTag(x) === 'DOMMatrix'; },
|
|
511
|
+
replace (dm) {
|
|
512
|
+
if (dm.is2D) {
|
|
513
|
+
return {
|
|
514
|
+
a: dm.a,
|
|
515
|
+
b: dm.b,
|
|
516
|
+
c: dm.c,
|
|
517
|
+
d: dm.d,
|
|
518
|
+
e: dm.e,
|
|
519
|
+
f: dm.f
|
|
520
|
+
};
|
|
521
|
+
}
|
|
522
|
+
return {
|
|
523
|
+
m11: dm.m11,
|
|
524
|
+
m12: dm.m12,
|
|
525
|
+
m13: dm.m13,
|
|
526
|
+
m14: dm.m14,
|
|
527
|
+
m21: dm.m21,
|
|
528
|
+
m22: dm.m22,
|
|
529
|
+
m23: dm.m23,
|
|
530
|
+
m24: dm.m24,
|
|
531
|
+
m31: dm.m31,
|
|
532
|
+
m32: dm.m32,
|
|
533
|
+
m33: dm.m33,
|
|
534
|
+
m34: dm.m34,
|
|
535
|
+
m41: dm.m41,
|
|
536
|
+
m42: dm.m42,
|
|
537
|
+
m43: dm.m43,
|
|
538
|
+
m44: dm.m44
|
|
539
|
+
};
|
|
540
|
+
},
|
|
541
|
+
revive (o) {
|
|
542
|
+
if (Object.hasOwn(o, 'a')) {
|
|
543
|
+
return new DOMMatrix([o.a, o.b, o.c, o.d, o.e, o.f]);
|
|
544
|
+
}
|
|
545
|
+
return new DOMMatrix([
|
|
546
|
+
o.m11, o.m12, o.m13, o.m14,
|
|
547
|
+
o.m21, o.m22, o.m23, o.m24,
|
|
548
|
+
o.m31, o.m32, o.m33, o.m34,
|
|
549
|
+
o.m41, o.m42, o.m43, o.m44
|
|
550
|
+
]);
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
};
|
|
554
|
+
|
|
503
555
|
/* globals DOMPoint */
|
|
504
556
|
|
|
505
557
|
/**
|
|
@@ -1550,7 +1602,9 @@ const expObj = [
|
|
|
1550
1602
|
/* c8 ignore next */
|
|
1551
1603
|
typeof DOMRect !== 'undefined' ? domrect : [],
|
|
1552
1604
|
/* c8 ignore next */
|
|
1553
|
-
typeof DOMPoint !== 'undefined' ? dompoint : []
|
|
1605
|
+
typeof DOMPoint !== 'undefined' ? dompoint : [],
|
|
1606
|
+
/* c8 ignore next */
|
|
1607
|
+
typeof DOMMatrix !== 'undefined' ? dommatrix : []
|
|
1554
1608
|
);
|
|
1555
1609
|
|
|
1556
1610
|
/**
|
|
@@ -1593,9 +1647,6 @@ const structuredCloningThrowing = expObj.concat({
|
|
|
1593
1647
|
'Arguments',
|
|
1594
1648
|
// A non-array exotic object
|
|
1595
1649
|
'Module',
|
|
1596
|
-
// `Error` and other errors have the [[ErrorData]] internal
|
|
1597
|
-
// slot and give "Error"
|
|
1598
|
-
'Error',
|
|
1599
1650
|
// Promise instances have an extra slot ([[PromiseState]])
|
|
1600
1651
|
// but not throwing in Chrome `postMessage`
|
|
1601
1652
|
'Promise',
|
|
@@ -1648,5 +1699,5 @@ const universal = [
|
|
|
1648
1699
|
// built-in into ecmasript standard.
|
|
1649
1700
|
];
|
|
1650
1701
|
|
|
1651
|
-
export { u as JSON_TYPES, c as Typeson, e as TypesonPromise, s as Undefined, arrayNonindexKeys, arraybuffer, bigint, bigintObject, blob, expObj$1 as builtin, cloneable, cryptokey, dataview, date, domexception, dompoint, domrect, error, errors, escapeKeyPathComponent, file, filelist, getByKeyPath, getJSONType, hasConstructorOf, imagebitmap, imagedata, infinity, intlTypes, isObject, isPlainObject, isThenable, isUserObject, map, nan, negativeInfinity, negativeZero, nonbuiltinIgnore, postmessage, primitiveObjects, regexp, resurrectable, set, setAtKeyPath, socketio, sparseUndefined, specialNumbers, expObj as structuredCloning, structuredCloningThrowing, toStringTag, typedArrays, typedArraysSocketIO as typedArraysSocketio, undef$1 as undef, undef as undefPreset, unescapeKeyPathComponent, universal, userObject };
|
|
1702
|
+
export { u as JSON_TYPES, c as Typeson, e as TypesonPromise, s as Undefined, arrayNonindexKeys, arraybuffer, bigint, bigintObject, blob, expObj$1 as builtin, cloneable, cryptokey, dataview, date, domexception, dommatrix, dompoint, domrect, error, errors, escapeKeyPathComponent, file, filelist, getByKeyPath, getJSONType, hasConstructorOf, imagebitmap, imagedata, infinity, intlTypes, isObject, isPlainObject, isThenable, isUserObject, map, nan, negativeInfinity, negativeZero, nonbuiltinIgnore, postmessage, primitiveObjects, regexp, resurrectable, set, setAtKeyPath, socketio, sparseUndefined, specialNumbers, expObj as structuredCloning, structuredCloningThrowing, toStringTag, typedArrays, typedArraysSocketIO as typedArraysSocketio, undef$1 as undef, undef as undefPreset, unescapeKeyPathComponent, universal, userObject };
|
|
1652
1703
|
//# sourceMappingURL=index.js.map
|