@zenfs/core 2.3.6 → 2.3.7

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.
@@ -68,7 +68,10 @@ declare const _Port: {
68
68
  name: string;
69
69
  options: {
70
70
  port: {
71
- type: string[];
71
+ type: ({
72
+ new (): EventTarget;
73
+ prototype: EventTarget;
74
+ } | ((e: any) => boolean))[];
72
75
  required: true;
73
76
  };
74
77
  timeout: {
@@ -112,7 +112,12 @@ const _Port = {
112
112
  name: 'Port',
113
113
  options: {
114
114
  port: {
115
- type: ['Worker', 'MessagePort', 'WebSocket'],
115
+ type: [
116
+ EventTarget,
117
+ function EventEmitter(e) {
118
+ return typeof e == 'object' && 'on' in e;
119
+ },
120
+ ],
116
121
  required: true,
117
122
  },
118
123
  timeout: { type: 'number', required: false },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenfs/core",
3
- "version": "2.3.6",
3
+ "version": "2.3.7",
4
4
  "description": "A filesystem, anywhere",
5
5
  "funding": {
6
6
  "type": "individual",