swarpc 0.6.0 → 0.6.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.
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAiBA,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,GAAG,GAAG,YAAY,EAAE,CAsB5D"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAWA,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,GAAG,GAAG,YAAY,EAAE,CAsB5D"}
package/dist/utils.js CHANGED
@@ -1,15 +1,9 @@
1
1
  // TODO: keep it in sync with web standards, how?
2
2
  const transferableClasses = [
3
- OffscreenCanvas,
4
- ImageBitmap,
5
3
  MessagePort,
6
- MediaSourceHandle,
7
4
  ReadableStream,
8
5
  WritableStream,
9
6
  TransformStream,
10
- AudioData,
11
- VideoFrame,
12
- RTCDataChannel,
13
7
  ArrayBuffer,
14
8
  ];
15
9
  export function findTransferables(value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swarpc",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Full type-safe RPC library for service worker -- move things off of the UI thread with ease!",
5
5
  "keywords": [
6
6
  "service-workers",
package/src/utils.ts CHANGED
@@ -2,16 +2,10 @@ type Constructor<T> = new (...args: any[]) => T
2
2
 
3
3
  // TODO: keep it in sync with web standards, how?
4
4
  const transferableClasses: Constructor<Transferable>[] = [
5
- OffscreenCanvas,
6
- ImageBitmap,
7
5
  MessagePort,
8
- MediaSourceHandle,
9
6
  ReadableStream,
10
7
  WritableStream,
11
8
  TransformStream,
12
- AudioData,
13
- VideoFrame,
14
- RTCDataChannel,
15
9
  ArrayBuffer,
16
10
  ]
17
11