@tailwindcss/oxide-wasm32-wasi 0.0.0-insiders.fac8cd9 → 0.0.0-insiders.fc63ce7
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/node_modules/@emnapi/core/dist/emnapi-core.cjs.js +175 -129
- package/node_modules/@emnapi/core/dist/emnapi-core.cjs.min.d.ts +58 -2
- package/node_modules/@emnapi/core/dist/emnapi-core.cjs.min.js +1 -1
- package/node_modules/@emnapi/core/dist/emnapi-core.d.mts +58 -2
- package/node_modules/@emnapi/core/dist/emnapi-core.d.ts +58 -2
- package/node_modules/@emnapi/core/dist/emnapi-core.esm-bundler.js +210 -131
- package/node_modules/@emnapi/core/dist/emnapi-core.js +266 -160
- package/node_modules/@emnapi/core/dist/emnapi-core.min.d.mts +58 -2
- package/node_modules/@emnapi/core/dist/emnapi-core.min.js +1 -1
- package/node_modules/@emnapi/core/dist/emnapi-core.min.mjs +1 -1
- package/node_modules/@emnapi/core/dist/emnapi-core.mjs +175 -129
- package/node_modules/@emnapi/core/package.json +2 -2
- package/node_modules/@emnapi/runtime/dist/emnapi.cjs.js +13 -10
- package/node_modules/@emnapi/runtime/dist/emnapi.cjs.min.d.ts +4 -4
- package/node_modules/@emnapi/runtime/dist/emnapi.cjs.min.js +1 -1
- package/node_modules/@emnapi/runtime/dist/emnapi.d.mts +4 -4
- package/node_modules/@emnapi/runtime/dist/emnapi.d.ts +4 -4
- package/node_modules/@emnapi/runtime/dist/emnapi.esm-bundler.js +13 -10
- package/node_modules/@emnapi/runtime/dist/emnapi.iife.d.ts +4 -4
- package/node_modules/@emnapi/runtime/dist/emnapi.iife.js +13 -10
- package/node_modules/@emnapi/runtime/dist/emnapi.js +13 -10
- package/node_modules/@emnapi/runtime/dist/emnapi.min.d.mts +4 -4
- package/node_modules/@emnapi/runtime/dist/emnapi.min.js +1 -1
- package/node_modules/@emnapi/runtime/dist/emnapi.min.mjs +1 -1
- package/node_modules/@emnapi/runtime/dist/emnapi.mjs +13 -10
- package/node_modules/@emnapi/runtime/package.json +1 -1
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.cjs.js +46 -30
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.cjs.min.d.ts +57 -1
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.cjs.min.js +1 -1
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.d.mts +57 -1
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.d.ts +57 -1
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.esm-bundler.js +46 -30
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.js +46 -30
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.min.d.mts +57 -1
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.min.js +1 -1
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.min.mjs +1 -1
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.mjs +46 -30
- package/node_modules/@emnapi/wasi-threads/package.json +1 -1
- package/node_modules/@napi-rs/wasm-runtime/dist/fs-proxy.cjs +264 -0
- package/node_modules/@napi-rs/wasm-runtime/dist/fs.js +14895 -13935
- package/node_modules/@napi-rs/wasm-runtime/fs-proxy.js +259 -0
- package/node_modules/@napi-rs/wasm-runtime/package.json +13 -12
- package/node_modules/@napi-rs/wasm-runtime/runtime.cjs +1 -1
- package/node_modules/@napi-rs/wasm-runtime/runtime.js +8 -0
- package/node_modules/@tybys/wasm-util/dist/wasm-util.d.ts +6 -0
- package/node_modules/@tybys/wasm-util/dist/wasm-util.esm-bundler.js +51 -31
- package/node_modules/@tybys/wasm-util/dist/wasm-util.esm.js +51 -31
- package/node_modules/@tybys/wasm-util/dist/wasm-util.esm.min.js +1 -1
- package/node_modules/@tybys/wasm-util/dist/wasm-util.js +51 -31
- package/node_modules/@tybys/wasm-util/dist/wasm-util.min.js +1 -1
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/index.js +12 -14
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/preview1.js +39 -17
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/index.mjs +12 -14
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/preview1.mjs +39 -17
- package/node_modules/@tybys/wasm-util/package.json +1 -1
- package/node_modules/tslib/package.json +1 -1
- package/node_modules/tslib/tslib.es6.js +10 -1
- package/node_modules/tslib/tslib.es6.mjs +10 -1
- package/node_modules/tslib/tslib.js +42 -33
- package/package.json +7 -7
- package/tailwindcss-oxide.wasi-browser.js +6 -3
- package/tailwindcss-oxide.wasi.cjs +26 -3
- package/tailwindcss-oxide.wasm32-wasi.wasm +0 -0
- package/node_modules/@napi-rs/wasm-runtime/LICENSE +0 -43
- package/node_modules/@napi-rs/wasm-runtime/dist/runtime.js +0 -12285
- package/node_modules/@napi-rs/wasm-runtime/fs-proxy.cjs +0 -209
|
@@ -312,10 +312,19 @@ var __rewriteRelativeImportExtension;
|
|
|
312
312
|
o["default"] = v;
|
|
313
313
|
};
|
|
314
314
|
|
|
315
|
+
var ownKeys = function(o) {
|
|
316
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
317
|
+
var ar = [];
|
|
318
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
319
|
+
return ar;
|
|
320
|
+
};
|
|
321
|
+
return ownKeys(o);
|
|
322
|
+
};
|
|
323
|
+
|
|
315
324
|
__importStar = function (mod) {
|
|
316
325
|
if (mod && mod.__esModule) return mod;
|
|
317
326
|
var result = {};
|
|
318
|
-
if (mod != null) for (var k
|
|
327
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
319
328
|
__setModuleDefault(result, mod);
|
|
320
329
|
return result;
|
|
321
330
|
};
|
|
@@ -440,36 +449,36 @@ var __rewriteRelativeImportExtension;
|
|
|
440
449
|
});
|
|
441
450
|
|
|
442
451
|
0 && (module.exports = {
|
|
443
|
-
__extends,
|
|
444
|
-
__assign,
|
|
445
|
-
__rest,
|
|
446
|
-
__decorate,
|
|
447
|
-
__param,
|
|
448
|
-
__esDecorate,
|
|
449
|
-
__runInitializers,
|
|
450
|
-
__propKey,
|
|
451
|
-
__setFunctionName,
|
|
452
|
-
__metadata,
|
|
453
|
-
__awaiter,
|
|
454
|
-
__generator,
|
|
455
|
-
__exportStar,
|
|
456
|
-
__createBinding,
|
|
457
|
-
__values,
|
|
458
|
-
__read,
|
|
459
|
-
__spread,
|
|
460
|
-
__spreadArrays,
|
|
461
|
-
__spreadArray,
|
|
462
|
-
__await,
|
|
463
|
-
__asyncGenerator,
|
|
464
|
-
__asyncDelegator,
|
|
465
|
-
__asyncValues,
|
|
466
|
-
__makeTemplateObject,
|
|
467
|
-
__importStar,
|
|
468
|
-
__importDefault,
|
|
469
|
-
__classPrivateFieldGet,
|
|
470
|
-
__classPrivateFieldSet,
|
|
471
|
-
__classPrivateFieldIn,
|
|
472
|
-
__addDisposableResource,
|
|
473
|
-
__disposeResources,
|
|
474
|
-
__rewriteRelativeImportExtension,
|
|
452
|
+
__extends: __extends,
|
|
453
|
+
__assign: __assign,
|
|
454
|
+
__rest: __rest,
|
|
455
|
+
__decorate: __decorate,
|
|
456
|
+
__param: __param,
|
|
457
|
+
__esDecorate: __esDecorate,
|
|
458
|
+
__runInitializers: __runInitializers,
|
|
459
|
+
__propKey: __propKey,
|
|
460
|
+
__setFunctionName: __setFunctionName,
|
|
461
|
+
__metadata: __metadata,
|
|
462
|
+
__awaiter: __awaiter,
|
|
463
|
+
__generator: __generator,
|
|
464
|
+
__exportStar: __exportStar,
|
|
465
|
+
__createBinding: __createBinding,
|
|
466
|
+
__values: __values,
|
|
467
|
+
__read: __read,
|
|
468
|
+
__spread: __spread,
|
|
469
|
+
__spreadArrays: __spreadArrays,
|
|
470
|
+
__spreadArray: __spreadArray,
|
|
471
|
+
__await: __await,
|
|
472
|
+
__asyncGenerator: __asyncGenerator,
|
|
473
|
+
__asyncDelegator: __asyncDelegator,
|
|
474
|
+
__asyncValues: __asyncValues,
|
|
475
|
+
__makeTemplateObject: __makeTemplateObject,
|
|
476
|
+
__importStar: __importStar,
|
|
477
|
+
__importDefault: __importDefault,
|
|
478
|
+
__classPrivateFieldGet: __classPrivateFieldGet,
|
|
479
|
+
__classPrivateFieldSet: __classPrivateFieldSet,
|
|
480
|
+
__classPrivateFieldIn: __classPrivateFieldIn,
|
|
481
|
+
__addDisposableResource: __addDisposableResource,
|
|
482
|
+
__disposeResources: __disposeResources,
|
|
483
|
+
__rewriteRelativeImportExtension: __rewriteRelativeImportExtension,
|
|
475
484
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailwindcss/oxide-wasm32-wasi",
|
|
3
|
-
"version": "0.0.0-insiders.
|
|
3
|
+
"version": "0.0.0-insiders.fc63ce7",
|
|
4
4
|
"cpu": [
|
|
5
5
|
"wasm32"
|
|
6
6
|
],
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
},
|
|
28
28
|
"browser": "tailwindcss-oxide.wasi-browser.js",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@napi-rs/wasm-runtime": "^0.
|
|
31
|
-
"@emnapi/core": "^1.
|
|
32
|
-
"@emnapi/runtime": "^1.
|
|
33
|
-
"@tybys/wasm-util": "^0.
|
|
34
|
-
"@emnapi/wasi-threads": "^1.0
|
|
35
|
-
"tslib": "^2.
|
|
30
|
+
"@napi-rs/wasm-runtime": "^1.0.5",
|
|
31
|
+
"@emnapi/core": "^1.5.0",
|
|
32
|
+
"@emnapi/runtime": "^1.5.0",
|
|
33
|
+
"@tybys/wasm-util": "^0.10.1",
|
|
34
|
+
"@emnapi/wasi-threads": "^1.1.0",
|
|
35
|
+
"tslib": "^2.4.0"
|
|
36
36
|
},
|
|
37
37
|
"bundledDependencies": [
|
|
38
38
|
"@napi-rs/wasm-runtime",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
createOnMessage as __wasmCreateOnMessageForFsProxy,
|
|
3
3
|
getDefaultContext as __emnapiGetDefaultContext,
|
|
4
|
+
instantiateNapiModuleSync as __emnapiInstantiateNapiModuleSync,
|
|
4
5
|
WASI as __WASI,
|
|
5
|
-
createOnMessage as __wasmCreateOnMessageForFsProxy,
|
|
6
6
|
} from '@napi-rs/wasm-runtime'
|
|
7
7
|
import { memfs } from '@napi-rs/wasm-runtime/fs'
|
|
8
|
-
|
|
8
|
+
|
|
9
9
|
|
|
10
10
|
export const { fs: __fs, vol: __volume } = memfs()
|
|
11
11
|
|
|
@@ -17,8 +17,10 @@ const __wasi = new __WASI({
|
|
|
17
17
|
},
|
|
18
18
|
})
|
|
19
19
|
|
|
20
|
+
const __wasmUrl = new URL('./tailwindcss-oxide.wasm32-wasi.wasm', import.meta.url).href
|
|
20
21
|
const __emnapiContext = __emnapiGetDefaultContext()
|
|
21
22
|
|
|
23
|
+
|
|
22
24
|
const __sharedMemory = new WebAssembly.Memory({
|
|
23
25
|
initial: 16384,
|
|
24
26
|
maximum: 65536,
|
|
@@ -60,4 +62,5 @@ const {
|
|
|
60
62
|
}
|
|
61
63
|
},
|
|
62
64
|
})
|
|
65
|
+
export default __napiModule.exports
|
|
63
66
|
export const Scanner = __napiModule.exports.Scanner
|
|
@@ -9,9 +9,9 @@ const { WASI: __nodeWASI } = require('node:wasi')
|
|
|
9
9
|
const { Worker } = require('node:worker_threads')
|
|
10
10
|
|
|
11
11
|
const {
|
|
12
|
-
instantiateNapiModuleSync: __emnapiInstantiateNapiModuleSync,
|
|
13
|
-
getDefaultContext: __emnapiGetDefaultContext,
|
|
14
12
|
createOnMessage: __wasmCreateOnMessageForFsProxy,
|
|
13
|
+
getDefaultContext: __emnapiGetDefaultContext,
|
|
14
|
+
instantiateNapiModuleSync: __emnapiInstantiateNapiModuleSync,
|
|
15
15
|
} = require('@napi-rs/wasm-runtime')
|
|
16
16
|
|
|
17
17
|
const __rootDir = __nodePath.parse(process.cwd()).root
|
|
@@ -65,6 +65,29 @@ const { instance: __napiInstance, module: __wasiModule, napiModule: __napiModule
|
|
|
65
65
|
worker.onmessage = ({ data }) => {
|
|
66
66
|
__wasmCreateOnMessageForFsProxy(__nodeFs)(data)
|
|
67
67
|
}
|
|
68
|
+
|
|
69
|
+
// The main thread of Node.js waits for all the active handles before exiting.
|
|
70
|
+
// But Rust threads are never waited without `thread::join`.
|
|
71
|
+
// So here we hack the code of Node.js to prevent the workers from being referenced (active).
|
|
72
|
+
// According to https://github.com/nodejs/node/blob/19e0d472728c79d418b74bddff588bea70a403d0/lib/internal/worker.js#L415,
|
|
73
|
+
// a worker is consist of two handles: kPublicPort and kHandle.
|
|
74
|
+
{
|
|
75
|
+
const kPublicPort = Object.getOwnPropertySymbols(worker).find(s =>
|
|
76
|
+
s.toString().includes("kPublicPort")
|
|
77
|
+
);
|
|
78
|
+
if (kPublicPort) {
|
|
79
|
+
worker[kPublicPort].ref = () => {};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const kHandle = Object.getOwnPropertySymbols(worker).find(s =>
|
|
83
|
+
s.toString().includes("kHandle")
|
|
84
|
+
);
|
|
85
|
+
if (kHandle) {
|
|
86
|
+
worker[kHandle].ref = () => {};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
worker.unref();
|
|
90
|
+
}
|
|
68
91
|
return worker
|
|
69
92
|
},
|
|
70
93
|
overwriteImports(importObject) {
|
|
@@ -84,5 +107,5 @@ const { instance: __napiInstance, module: __wasiModule, napiModule: __napiModule
|
|
|
84
107
|
}
|
|
85
108
|
},
|
|
86
109
|
})
|
|
87
|
-
|
|
110
|
+
module.exports = __napiModule.exports
|
|
88
111
|
module.exports.Scanner = __napiModule.exports.Scanner
|
|
Binary file
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2020-present LongYinan
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
22
|
-
|
|
23
|
-
MIT License
|
|
24
|
-
|
|
25
|
-
Copyright (c) 2018 GitHub
|
|
26
|
-
|
|
27
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
28
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
29
|
-
in the Software without restriction, including without limitation the rights
|
|
30
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
31
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
32
|
-
furnished to do so, subject to the following conditions:
|
|
33
|
-
|
|
34
|
-
The above copyright notice and this permission notice shall be included in all
|
|
35
|
-
copies or substantial portions of the Software.
|
|
36
|
-
|
|
37
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
38
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
39
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
40
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
41
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
42
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
43
|
-
SOFTWARE.
|