@es-joy/jsoe 0.14.0 → 0.15.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/.eslintrc.cjs +2 -0
- package/.nyc_output/out.json +11070 -4015
- package/CHANGES.md +4 -0
- package/README.md +5 -17
- package/demo/index.js +12 -1
- package/dist/formats/indexedDBKey.d.ts.map +1 -1
- package/dist/formats/structuredCloning.d.ts.map +1 -1
- package/dist/index.js +1471 -53
- package/dist/superTypes/buffersourceType.d.ts +8 -0
- package/dist/superTypes/buffersourceType.d.ts.map +1 -0
- package/dist/types.d.ts +3 -4
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/formats/indexedDBKey.js +2 -3
- package/src/formats/structuredCloning.js +3 -29
- package/src/jsoe.css +64 -0
- package/src/superTypes/buffersourceType.js +1455 -0
- package/src/types.js +3 -7
package/CHANGES.md
CHANGED
package/README.md
CHANGED
|
@@ -72,6 +72,10 @@ Supported supertypes include:
|
|
|
72
72
|
- `DOMMatrix` (also includes `DOMMatrixReadOnly`)
|
|
73
73
|
- `DOMPoint` (also includes `DOMPointReadOnly`)
|
|
74
74
|
- `DOMRect` (also includes `DOMRectReadOnly`)
|
|
75
|
+
- `buffersource` includes `ArrayBuffer`, `DataView`, and TypedArrays
|
|
76
|
+
(int8array, uint8array, uint8clampedarray, int16array, uint16array,
|
|
77
|
+
int32array, uint32array, float32array, float64array,
|
|
78
|
+
bigint64array, biguint64array)
|
|
75
79
|
|
|
76
80
|
## Known issues
|
|
77
81
|
|
|
@@ -93,23 +97,7 @@ Supported supertypes include:
|
|
|
93
97
|
1. See <https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm#webapi_types>
|
|
94
98
|
1. Already in typeson-registry
|
|
95
99
|
1. Structured Cloning
|
|
96
|
-
1. JavaScript types
|
|
97
|
-
1. ArrayBuffer
|
|
98
|
-
1. arraybuffer
|
|
99
|
-
1. DataView
|
|
100
|
-
1. dataview
|
|
101
|
-
1. TypedArray
|
|
102
|
-
1. int8array
|
|
103
|
-
1. uint8array
|
|
104
|
-
1. uint8clampedarray
|
|
105
|
-
1. int16array
|
|
106
|
-
1. uint16array
|
|
107
|
-
1. int32array
|
|
108
|
-
1. uint32array
|
|
109
|
-
1. float32array
|
|
110
|
-
1. float64array
|
|
111
|
-
1. bigint64arrayconstructor
|
|
112
|
-
1. biguint64arrayconstructor
|
|
100
|
+
1. (JavaScript types already complete)
|
|
113
101
|
1. Web/API types
|
|
114
102
|
1. imagedata, imagebitmap
|
|
115
103
|
1. cryptokey
|
package/demo/index.js
CHANGED
|
@@ -416,6 +416,9 @@ setTimeout(async function () {
|
|
|
416
416
|
9, 10, 11, 12,
|
|
417
417
|
13, 14, 15, 16
|
|
418
418
|
]),
|
|
419
|
+
new ArrayBuffer(8),
|
|
420
|
+
new DataView(new ArrayBuffer(8), 2, 4),
|
|
421
|
+
new Uint8Array(new ArrayBuffer(8), 2, 4),
|
|
419
422
|
makeNoneditableType()
|
|
420
423
|
],
|
|
421
424
|
typeNamespace: 'demo-type-choices-only-initial-value'
|
|
@@ -494,6 +497,13 @@ setTimeout(async function () {
|
|
|
494
497
|
typeNamespace: 'demo-type-choices-only-initial-value'
|
|
495
498
|
});
|
|
496
499
|
|
|
500
|
+
const typeSelectionArrayBuffer = typeChoices({
|
|
501
|
+
format: 'structuredCloning',
|
|
502
|
+
setValue: true,
|
|
503
|
+
value: new ArrayBuffer(8),
|
|
504
|
+
typeNamespace: 'demo-type-choices-only-initial-value'
|
|
505
|
+
});
|
|
506
|
+
|
|
497
507
|
return ['form', [
|
|
498
508
|
...typeSelection.domArray,
|
|
499
509
|
...typeSelectionBlobHTML.domArray,
|
|
@@ -503,7 +513,8 @@ setTimeout(async function () {
|
|
|
503
513
|
...typeSelectionTypeErrorWithAggregate.domArray,
|
|
504
514
|
...typeSelectionFile.domArray,
|
|
505
515
|
...typeSelectionBlob.domArray,
|
|
506
|
-
...typeSelectionNoneditable.domArray
|
|
516
|
+
...typeSelectionNoneditable.domArray,
|
|
517
|
+
...typeSelectionArrayBuffer.domArray
|
|
507
518
|
]];
|
|
508
519
|
})(),
|
|
509
520
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indexedDBKey.d.ts","sourceRoot":"","sources":["../../src/formats/indexedDBKey.js"],"names":[],"mappings":";AAEA,6CAA6C;AAC7C,4BADW,OAAO,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"indexedDBKey.d.ts","sourceRoot":"","sources":["../../src/formats/indexedDBKey.js"],"names":[],"mappings":";AAEA,6CAA6C;AAC7C,4BADW,OAAO,eAAe,EAAE,MAAM,CAwCvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structuredCloning.d.ts","sourceRoot":"","sources":["../../src/formats/structuredCloning.js"],"names":[],"mappings":";2CAsBoB;IACnB,QAAY,EAAE,MAAM,CAAC;IACrB,IAAQ,EAAE,OAAO,aAAa,EAAE,aAAa,CAAC;IAC9C,KAAS,EAAE,OAAO,eAAe,EAAE,oBAAoB,CAAC;IACxD,cAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,SAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAe,CAAC,EAAE,OAAO,aAAa,EAAE,gCAAgC,CAAA;CACrE,KAAK,WAAW,GAAC,IAAI;kCAIZ,OAAO,kBAAkB,EAAE,mBAAmB;uCA2WhD,OAAO,eAAe,EAAE,oBAAoB,YAC5C,OAAO,aAAa,EAAE,WAAW,KAC/B,QAAQ,OAAO,CAAC;AAJ7B;;;;;GAKG;AAEH,6CAA6C;AAC7C,iCADW,OAAO,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"structuredCloning.d.ts","sourceRoot":"","sources":["../../src/formats/structuredCloning.js"],"names":[],"mappings":";2CAsBoB;IACnB,QAAY,EAAE,MAAM,CAAC;IACrB,IAAQ,EAAE,OAAO,aAAa,EAAE,aAAa,CAAC;IAC9C,KAAS,EAAE,OAAO,eAAe,EAAE,oBAAoB,CAAC;IACxD,cAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,SAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAe,CAAC,EAAE,OAAO,aAAa,EAAE,gCAAgC,CAAA;CACrE,KAAK,WAAW,GAAC,IAAI;kCAIZ,OAAO,kBAAkB,EAAE,mBAAmB;uCA2WhD,OAAO,eAAe,EAAE,oBAAoB,YAC5C,OAAO,aAAa,EAAE,WAAW,KAC/B,QAAQ,OAAO,CAAC;AAJ7B;;;;;GAKG;AAEH,6CAA6C;AAC7C,iCADW,OAAO,eAAe,EAAE,MAAM,CAwHvC"}
|