@tailwindcss/oxide-wasm32-wasi 0.0.0-insiders.0113b88
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 +3 -0
- package/node_modules/@emnapi/core/LICENSE +21 -0
- package/node_modules/@emnapi/core/README.md +1 -0
- package/node_modules/@emnapi/core/dist/emnapi-core.cjs.js +6707 -0
- package/node_modules/@emnapi/core/dist/emnapi-core.cjs.min.d.ts +419 -0
- package/node_modules/@emnapi/core/dist/emnapi-core.cjs.min.js +1 -0
- package/node_modules/@emnapi/core/dist/emnapi-core.d.mts +419 -0
- package/node_modules/@emnapi/core/dist/emnapi-core.d.ts +421 -0
- package/node_modules/@emnapi/core/dist/emnapi-core.esm-bundler.js +7490 -0
- package/node_modules/@emnapi/core/dist/emnapi-core.js +8496 -0
- package/node_modules/@emnapi/core/dist/emnapi-core.min.d.mts +419 -0
- package/node_modules/@emnapi/core/dist/emnapi-core.min.js +1 -0
- package/node_modules/@emnapi/core/dist/emnapi-core.min.mjs +1 -0
- package/node_modules/@emnapi/core/dist/emnapi-core.mjs +6696 -0
- package/node_modules/@emnapi/core/index.js +5 -0
- package/node_modules/@emnapi/core/package.json +49 -0
- package/node_modules/@emnapi/runtime/LICENSE +21 -0
- package/node_modules/@emnapi/runtime/README.md +1 -0
- package/node_modules/@emnapi/runtime/dist/emnapi.cjs.js +1354 -0
- package/node_modules/@emnapi/runtime/dist/emnapi.cjs.min.d.ts +663 -0
- package/node_modules/@emnapi/runtime/dist/emnapi.cjs.min.js +1 -0
- package/node_modules/@emnapi/runtime/dist/emnapi.d.mts +663 -0
- package/node_modules/@emnapi/runtime/dist/emnapi.d.ts +665 -0
- package/node_modules/@emnapi/runtime/dist/emnapi.esm-bundler.js +1410 -0
- package/node_modules/@emnapi/runtime/dist/emnapi.iife.d.ts +420 -0
- package/node_modules/@emnapi/runtime/dist/emnapi.iife.js +1481 -0
- package/node_modules/@emnapi/runtime/dist/emnapi.js +1482 -0
- package/node_modules/@emnapi/runtime/dist/emnapi.min.d.mts +663 -0
- package/node_modules/@emnapi/runtime/dist/emnapi.min.js +1 -0
- package/node_modules/@emnapi/runtime/dist/emnapi.min.mjs +1 -0
- package/node_modules/@emnapi/runtime/dist/emnapi.mjs +1323 -0
- package/node_modules/@emnapi/runtime/index.js +5 -0
- package/node_modules/@emnapi/runtime/package.json +48 -0
- package/node_modules/@emnapi/wasi-threads/LICENSE +21 -0
- package/node_modules/@emnapi/wasi-threads/README.md +203 -0
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.cjs.js +897 -0
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.cjs.min.d.ts +270 -0
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.cjs.min.js +1 -0
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.d.mts +270 -0
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.d.ts +272 -0
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.esm-bundler.js +945 -0
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.js +957 -0
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.min.d.mts +270 -0
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.min.js +1 -0
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.min.mjs +1 -0
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.mjs +892 -0
- package/node_modules/@emnapi/wasi-threads/index.js +5 -0
- package/node_modules/@emnapi/wasi-threads/package.json +50 -0
- package/node_modules/@napi-rs/wasm-runtime/dist/fs-proxy.cjs +264 -0
- package/node_modules/@napi-rs/wasm-runtime/dist/fs.js +20843 -0
- package/node_modules/@napi-rs/wasm-runtime/fs-proxy.js +259 -0
- package/node_modules/@napi-rs/wasm-runtime/package.json +63 -0
- package/node_modules/@napi-rs/wasm-runtime/runtime.cjs +15 -0
- package/node_modules/@napi-rs/wasm-runtime/runtime.js +8 -0
- package/node_modules/@tybys/wasm-util/README.md +193 -0
- package/node_modules/@tybys/wasm-util/dist/tsdoc-metadata.json +11 -0
- package/node_modules/@tybys/wasm-util/dist/wasm-util.d.ts +423 -0
- package/node_modules/@tybys/wasm-util/dist/wasm-util.esm-bundler.js +2758 -0
- package/node_modules/@tybys/wasm-util/dist/wasm-util.esm.js +2758 -0
- package/node_modules/@tybys/wasm-util/dist/wasm-util.esm.min.js +1 -0
- package/node_modules/@tybys/wasm-util/dist/wasm-util.js +2780 -0
- package/node_modules/@tybys/wasm-util/dist/wasm-util.min.js +1 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/asyncify.js +158 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/index.js +13 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/jspi.js +46 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/load.js +97 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/memory.js +35 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/error.js +103 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/fd.js +268 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/fs.js +3 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/index.js +192 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/path.js +174 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/preview1.js +1566 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/rights.js +141 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/types.js +220 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/util.js +128 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/webassembly.js +13 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/asyncify.mjs +153 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/index.mjs +9 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/jspi.mjs +39 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/load.mjs +89 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/memory.mjs +28 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/error.mjs +97 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/fd.mjs +256 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/fs.mjs +1 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/index.mjs +186 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/path.mjs +168 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/preview1.mjs +1561 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/rights.mjs +135 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/types.mjs +216 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/util.mjs +113 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/webassembly.mjs +9 -0
- package/node_modules/@tybys/wasm-util/package.json +58 -0
- package/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/node_modules/tslib/LICENSE.txt +12 -0
- package/node_modules/tslib/README.md +164 -0
- package/node_modules/tslib/SECURITY.md +41 -0
- package/node_modules/tslib/modules/index.d.ts +38 -0
- package/node_modules/tslib/modules/index.js +70 -0
- package/node_modules/tslib/modules/package.json +3 -0
- package/node_modules/tslib/package.json +47 -0
- package/node_modules/tslib/tslib.d.ts +460 -0
- package/node_modules/tslib/tslib.es6.html +1 -0
- package/node_modules/tslib/tslib.es6.js +402 -0
- package/node_modules/tslib/tslib.es6.mjs +401 -0
- package/node_modules/tslib/tslib.html +1 -0
- package/node_modules/tslib/tslib.js +484 -0
- package/package.json +45 -0
- package/tailwindcss-oxide.wasi-browser.js +66 -0
- package/tailwindcss-oxide.wasi.cjs +111 -0
- package/tailwindcss-oxide.wasm32-wasi.wasm +0 -0
- package/wasi-worker-browser.mjs +39 -0
- package/wasi-worker.mjs +63 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@emnapi/wasi-threads",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "WASI threads proposal implementation in JavaScript",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"module": "./dist/wasi-threads.esm-bundler.js",
|
|
7
|
+
"types": "./dist/wasi-threads.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": {
|
|
12
|
+
"module": "./dist/wasi-threads.d.ts",
|
|
13
|
+
"import": "./dist/wasi-threads.d.mts",
|
|
14
|
+
"default": "./dist/wasi-threads.d.ts"
|
|
15
|
+
},
|
|
16
|
+
"module": "./dist/wasi-threads.esm-bundler.js",
|
|
17
|
+
"import": "./dist/wasi-threads.mjs",
|
|
18
|
+
"default": "./index.js"
|
|
19
|
+
},
|
|
20
|
+
"./dist/wasi-threads.cjs.min": {
|
|
21
|
+
"types": "./dist/wasi-threads.d.ts",
|
|
22
|
+
"default": "./dist/wasi-threads.cjs.min.js"
|
|
23
|
+
},
|
|
24
|
+
"./dist/wasi-threads.min.mjs": {
|
|
25
|
+
"types": "./dist/wasi-threads.d.mts",
|
|
26
|
+
"default": "./dist/wasi-threads.min.mjs"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"tslib": "^2.4.0"
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "node ./script/build.js",
|
|
34
|
+
"build:test": "node ./test/build.js",
|
|
35
|
+
"test": "node ./test/index.js"
|
|
36
|
+
},
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "git+https://github.com/toyobayashi/emnapi.git"
|
|
40
|
+
},
|
|
41
|
+
"author": "toyobayashi",
|
|
42
|
+
"license": "MIT",
|
|
43
|
+
"bugs": {
|
|
44
|
+
"url": "https://github.com/toyobayashi/emnapi/issues"
|
|
45
|
+
},
|
|
46
|
+
"homepage": "https://github.com/toyobayashi/emnapi#readme",
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"access": "public"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// @ts-check
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @param {unknown} value
|
|
7
|
+
*/
|
|
8
|
+
const getType = (value) => {
|
|
9
|
+
if (value === undefined) return 0
|
|
10
|
+
if (value === null) return 1
|
|
11
|
+
const t = typeof value;
|
|
12
|
+
if (t === 'boolean') return 2
|
|
13
|
+
if (t === 'number') return 3
|
|
14
|
+
if (t === 'string') return 4
|
|
15
|
+
if (t === 'object') return 6
|
|
16
|
+
if (t === 'bigint') return 9
|
|
17
|
+
return -1
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @param {import('memfs').IFs} memfs
|
|
22
|
+
* @param {any} value
|
|
23
|
+
* @param {ReturnType<typeof getType>} type
|
|
24
|
+
* @returns {Uint8Array}
|
|
25
|
+
*/
|
|
26
|
+
const encodeValue = (memfs, value, type) => {
|
|
27
|
+
switch (type) {
|
|
28
|
+
case 0:
|
|
29
|
+
case 1:
|
|
30
|
+
return new Uint8Array(0)
|
|
31
|
+
case 2: {
|
|
32
|
+
const view = new Int32Array(1);
|
|
33
|
+
view[0] = value ? 1 : 0;
|
|
34
|
+
return new Uint8Array(view.buffer)
|
|
35
|
+
}
|
|
36
|
+
case 3: {
|
|
37
|
+
const view = new Float64Array(1);
|
|
38
|
+
view[0] = value;
|
|
39
|
+
return new Uint8Array(view.buffer)
|
|
40
|
+
}
|
|
41
|
+
case 4: {
|
|
42
|
+
const view = new TextEncoder().encode(value);
|
|
43
|
+
return view
|
|
44
|
+
}
|
|
45
|
+
case 6: {
|
|
46
|
+
function storeConstructor(obj, memfs, processed = new WeakSet()) {
|
|
47
|
+
if (!obj || typeof obj !== 'object') {
|
|
48
|
+
return
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
if (processed.has(obj)) {
|
|
52
|
+
return
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
processed.add(obj);
|
|
56
|
+
|
|
57
|
+
const [entry] =
|
|
58
|
+
Object.entries(memfs).filter(([_, v]) => v === obj.constructor)[0] ??
|
|
59
|
+
[];
|
|
60
|
+
if (entry) {
|
|
61
|
+
Object.defineProperty(obj, '__constructor__', {
|
|
62
|
+
configurable: true,
|
|
63
|
+
writable: true,
|
|
64
|
+
enumerable: true,
|
|
65
|
+
value: entry,
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
for (const value of Object.values(obj)) {
|
|
70
|
+
storeConstructor(value, memfs, processed);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
storeConstructor(value, memfs);
|
|
75
|
+
|
|
76
|
+
const json = JSON.stringify(value, (_, value) => {
|
|
77
|
+
if (typeof value === 'bigint') {
|
|
78
|
+
return `BigInt(${String(value)})`
|
|
79
|
+
}
|
|
80
|
+
if (value instanceof Error) {
|
|
81
|
+
return {
|
|
82
|
+
...value,
|
|
83
|
+
message: value.message,
|
|
84
|
+
stack: value.stack,
|
|
85
|
+
__error__: value.constructor.name,
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return value
|
|
89
|
+
});
|
|
90
|
+
const view = new TextEncoder().encode(json);
|
|
91
|
+
return view
|
|
92
|
+
}
|
|
93
|
+
case 9: {
|
|
94
|
+
const view = new BigInt64Array(1);
|
|
95
|
+
view[0] = value;
|
|
96
|
+
return new Uint8Array(view.buffer)
|
|
97
|
+
}
|
|
98
|
+
case -1:
|
|
99
|
+
default:
|
|
100
|
+
throw new Error('unsupported data')
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @param {typeof import('memfs')} memfs
|
|
106
|
+
* @param {Uint8Array} payload
|
|
107
|
+
* @param {number} type
|
|
108
|
+
* @returns {any}
|
|
109
|
+
*/
|
|
110
|
+
const decodeValue = (memfs, payload, type) => {
|
|
111
|
+
if (type === 0) return undefined
|
|
112
|
+
if (type === 1) return null
|
|
113
|
+
if (type === 2)
|
|
114
|
+
return Boolean(new Int32Array(payload.buffer, payload.byteOffset, 1)[0])
|
|
115
|
+
if (type === 3)
|
|
116
|
+
return new Float64Array(payload.buffer, payload.byteOffset, 1)[0]
|
|
117
|
+
if (type === 4) return new TextDecoder().decode(payload.slice())
|
|
118
|
+
if (type === 6) {
|
|
119
|
+
const obj = JSON.parse(
|
|
120
|
+
new TextDecoder().decode(payload.slice()),
|
|
121
|
+
(_key, value) => {
|
|
122
|
+
if (typeof value === 'string') {
|
|
123
|
+
const matched = value.match(/^BigInt\((-?\d+)\)$/);
|
|
124
|
+
if (matched && matched[1]) {
|
|
125
|
+
return BigInt(matched[1])
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
return value
|
|
129
|
+
},
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
function loadConstructor(obj, memfs, processed = new WeakSet()) {
|
|
133
|
+
if (!obj || typeof obj !== 'object') {
|
|
134
|
+
return
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
if (processed.has(obj)) {
|
|
138
|
+
return
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
processed.add(obj);
|
|
142
|
+
|
|
143
|
+
if (obj.__constructor__) {
|
|
144
|
+
const ctor = obj.__constructor__;
|
|
145
|
+
delete obj.__constructor__;
|
|
146
|
+
Object.setPrototypeOf(obj, memfs[ctor].prototype);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
for (const value of Object.values(obj)) {
|
|
150
|
+
loadConstructor(value, memfs, processed);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
loadConstructor(obj, memfs);
|
|
155
|
+
|
|
156
|
+
if (obj.__error__) {
|
|
157
|
+
const name = obj.__error__;
|
|
158
|
+
const ErrorConstructor = globalThis[name] || Error;
|
|
159
|
+
delete obj.__error__;
|
|
160
|
+
const err = new ErrorConstructor(obj.message);
|
|
161
|
+
Object.defineProperty(err, 'stack', {
|
|
162
|
+
configurable: true,
|
|
163
|
+
enumerable: false,
|
|
164
|
+
writable: true,
|
|
165
|
+
value: err.stack,
|
|
166
|
+
});
|
|
167
|
+
Object.defineProperty(err, Symbol.toStringTag, {
|
|
168
|
+
configurable: true,
|
|
169
|
+
enumerable: false,
|
|
170
|
+
writable: true,
|
|
171
|
+
value: name,
|
|
172
|
+
});
|
|
173
|
+
for (const [k, v] of Object.entries(obj)) {
|
|
174
|
+
if (k === 'message' || k === 'stack') continue
|
|
175
|
+
err[k] = v;
|
|
176
|
+
}
|
|
177
|
+
return err
|
|
178
|
+
}
|
|
179
|
+
return obj
|
|
180
|
+
}
|
|
181
|
+
if (type === 9)
|
|
182
|
+
return new BigInt64Array(payload.buffer, payload.byteOffset, 1)[0]
|
|
183
|
+
throw new Error('unsupported data')
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* @param {import('memfs').IFs} fs
|
|
188
|
+
* @returns {(e: { data: { __fs__: { sab: Int32Array, type: keyof import('memfs').IFs, payload: any[] } } }) => void}
|
|
189
|
+
*/
|
|
190
|
+
// oxlint-disable-next-line no-unused-vars -- fixed in an upcoming release
|
|
191
|
+
const createOnMessage = (fs) =>
|
|
192
|
+
function onMessage(e) {
|
|
193
|
+
if (e.data.__fs__) {
|
|
194
|
+
/**
|
|
195
|
+
* 0..4 status(int32_t): 21(waiting) 0(success) 1(error)
|
|
196
|
+
* 5..8 type(napi_valuetype): 0(undefined) 1(null) 2(boolean) 3(number) 4(string) 6(jsonstring) 9(bigint) -1(unsupported)
|
|
197
|
+
* 9..16 payload_size(uint32_t) <= 1024
|
|
198
|
+
* 16..16 + payload_size payload_content
|
|
199
|
+
*/
|
|
200
|
+
const { sab, type, payload } = e.data.__fs__;
|
|
201
|
+
const fn = fs[type];
|
|
202
|
+
try {
|
|
203
|
+
const ret = fn.apply(fs, payload);
|
|
204
|
+
const t = getType(ret);
|
|
205
|
+
Atomics.store(sab, 1, t);
|
|
206
|
+
const v = encodeValue(fs, ret, t);
|
|
207
|
+
Atomics.store(sab, 2, v.length);
|
|
208
|
+
new Uint8Array(sab.buffer).set(v, 16);
|
|
209
|
+
Atomics.store(sab, 0, 0); // success
|
|
210
|
+
} catch (/** @type {any} */ err) {
|
|
211
|
+
const t = getType(err);
|
|
212
|
+
Atomics.store(sab, 1, t);
|
|
213
|
+
const v = encodeValue(fs, err, t);
|
|
214
|
+
Atomics.store(sab, 2, v.length);
|
|
215
|
+
new Uint8Array(sab.buffer).set(v, 16);
|
|
216
|
+
Atomics.store(sab, 0, 1); // error
|
|
217
|
+
} finally {
|
|
218
|
+
Atomics.notify(sab, 0);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* @param {typeof import('memfs')} memfs
|
|
225
|
+
*/
|
|
226
|
+
const createFsProxy = (memfs) =>
|
|
227
|
+
new Proxy(
|
|
228
|
+
{},
|
|
229
|
+
{
|
|
230
|
+
get(_target, p, _receiver) {
|
|
231
|
+
/**
|
|
232
|
+
* @param {any[]} args
|
|
233
|
+
*/
|
|
234
|
+
return function (...args) {
|
|
235
|
+
const sab = new SharedArrayBuffer(16 + 10240);
|
|
236
|
+
const i32arr = new Int32Array(sab);
|
|
237
|
+
Atomics.store(i32arr, 0, 21);
|
|
238
|
+
|
|
239
|
+
postMessage({
|
|
240
|
+
__fs__: {
|
|
241
|
+
sab: i32arr,
|
|
242
|
+
type: p,
|
|
243
|
+
payload: args,
|
|
244
|
+
},
|
|
245
|
+
});
|
|
246
|
+
|
|
247
|
+
Atomics.wait(i32arr, 0, 21);
|
|
248
|
+
|
|
249
|
+
const status = Atomics.load(i32arr, 0);
|
|
250
|
+
const type = Atomics.load(i32arr, 1);
|
|
251
|
+
const size = Atomics.load(i32arr, 2);
|
|
252
|
+
const content = new Uint8Array(sab, 16, size);
|
|
253
|
+
const value = decodeValue(memfs, content, type);
|
|
254
|
+
if (status === 1) {
|
|
255
|
+
throw value
|
|
256
|
+
}
|
|
257
|
+
return value
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
);
|
|
262
|
+
|
|
263
|
+
exports.createFsProxy = createFsProxy;
|
|
264
|
+
exports.createOnMessage = createOnMessage;
|