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.
@@ -1745,6 +1745,55 @@
1745
1745
  }
1746
1746
  };
1747
1747
 
1748
+ /* globals DOMMatrix */
1749
+
1750
+ /**
1751
+ * @type {import('typeson').TypeSpecSet}
1752
+ */
1753
+ var dommatrix = {
1754
+ dommatrix: {
1755
+ test: function test(x) {
1756
+ return toStringTag(x) === 'DOMMatrix';
1757
+ },
1758
+ replace: function replace(dm) {
1759
+ if (dm.is2D) {
1760
+ return {
1761
+ a: dm.a,
1762
+ b: dm.b,
1763
+ c: dm.c,
1764
+ d: dm.d,
1765
+ e: dm.e,
1766
+ f: dm.f
1767
+ };
1768
+ }
1769
+ return {
1770
+ m11: dm.m11,
1771
+ m12: dm.m12,
1772
+ m13: dm.m13,
1773
+ m14: dm.m14,
1774
+ m21: dm.m21,
1775
+ m22: dm.m22,
1776
+ m23: dm.m23,
1777
+ m24: dm.m24,
1778
+ m31: dm.m31,
1779
+ m32: dm.m32,
1780
+ m33: dm.m33,
1781
+ m34: dm.m34,
1782
+ m41: dm.m41,
1783
+ m42: dm.m42,
1784
+ m43: dm.m43,
1785
+ m44: dm.m44
1786
+ };
1787
+ },
1788
+ revive: function revive(o) {
1789
+ if (Object.hasOwn(o, 'a')) {
1790
+ return new DOMMatrix([o.a, o.b, o.c, o.d, o.e, o.f]);
1791
+ }
1792
+ return new DOMMatrix([o.m11, o.m12, o.m13, o.m14, o.m21, o.m22, o.m23, o.m24, o.m31, o.m32, o.m33, o.m34, o.m41, o.m42, o.m43, o.m44]);
1793
+ }
1794
+ }
1795
+ };
1796
+
1748
1797
  /* globals DOMPoint */
1749
1798
 
1750
1799
  /**
@@ -2831,7 +2880,8 @@
2831
2880
  typeof BigInt !== 'undefined' ? [bigint, bigintObject] : [], /* c8 ignore next */
2832
2881
  typeof DOMException !== 'undefined' ? domexception : [], /* c8 ignore next */
2833
2882
  typeof DOMRect !== 'undefined' ? domrect : [], /* c8 ignore next */
2834
- typeof DOMPoint !== 'undefined' ? dompoint : []);
2883
+ typeof DOMPoint !== 'undefined' ? dompoint : [], /* c8 ignore next */
2884
+ typeof DOMMatrix !== 'undefined' ? dommatrix : []);
2835
2885
 
2836
2886
  /**
2837
2887
  * @type {import('typeson').Preset}
@@ -2870,9 +2920,6 @@
2870
2920
  'Arguments',
2871
2921
  // A non-array exotic object
2872
2922
  'Module',
2873
- // `Error` and other errors have the [[ErrorData]] internal
2874
- // slot and give "Error"
2875
- 'Error',
2876
2923
  // Promise instances have an extra slot ([[PromiseState]])
2877
2924
  // but not throwing in Chrome `postMessage`
2878
2925
  'Promise',
@@ -2930,6 +2977,7 @@
2930
2977
  exports.dataview = dataview;
2931
2978
  exports.date = date;
2932
2979
  exports.domexception = domexception;
2980
+ exports.dommatrix = dommatrix;
2933
2981
  exports.dompoint = dompoint;
2934
2982
  exports.domrect = domrect;
2935
2983
  exports.error = error;