reg-cli 0.0.0-experimental-wasm0 → 0.0.0-experimental-wasm2
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/dist/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/entry.cjs +1 -1
- package/dist/entry.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/shared/{reg-cli.2f9d9b15.mjs → reg-cli.011d012d.mjs} +3 -3
- package/dist/shared/reg-cli.f4850117.cjs +24 -0
- package/dist/worker.cjs +1 -1
- package/dist/worker.mjs +1 -1
- package/package.json +1 -1
- package/dist/shared/reg-cli.566a78e6.cjs +0 -24
package/dist/cli.cjs
CHANGED
package/dist/cli.mjs
CHANGED
package/dist/entry.cjs
CHANGED
|
@@ -4,7 +4,7 @@ const fs = require('node:fs');
|
|
|
4
4
|
const wasmUtil = require('@tybys/wasm-util');
|
|
5
5
|
const node_process = require('node:process');
|
|
6
6
|
const node_worker_threads = require('node:worker_threads');
|
|
7
|
-
const utils = require('./shared/reg-cli.
|
|
7
|
+
const utils = require('./shared/reg-cli.f4850117.cjs');
|
|
8
8
|
require('path');
|
|
9
9
|
require('url');
|
|
10
10
|
require('node:fs/promises');
|
package/dist/entry.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import fs from 'node:fs';
|
|
|
2
2
|
import { WASI } from '@tybys/wasm-util';
|
|
3
3
|
import { env } from 'node:process';
|
|
4
4
|
import { workerData, parentPort } from 'node:worker_threads';
|
|
5
|
-
import { a as readWasm } from './shared/reg-cli.
|
|
5
|
+
import { a as readWasm } from './shared/reg-cli.011d012d.mjs';
|
|
6
6
|
import 'path';
|
|
7
7
|
import 'url';
|
|
8
8
|
import 'node:fs/promises';
|
package/dist/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const EventEmitter = require('node:events');
|
|
4
4
|
const node_worker_threads = require('node:worker_threads');
|
|
5
|
-
const utils = require('./shared/reg-cli.
|
|
5
|
+
const utils = require('./shared/reg-cli.f4850117.cjs');
|
|
6
6
|
require('path');
|
|
7
7
|
require('url');
|
|
8
8
|
require('node:fs/promises');
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import EventEmitter from 'node:events';
|
|
2
2
|
import { Worker } from 'node:worker_threads';
|
|
3
|
-
import { r as resolveExtention } from './shared/reg-cli.
|
|
3
|
+
import { r as resolveExtention } from './shared/reg-cli.011d012d.mjs';
|
|
4
4
|
import 'path';
|
|
5
5
|
import 'url';
|
|
6
6
|
import 'node:fs/promises';
|
|
@@ -3,14 +3,14 @@ import { fileURLToPath } from 'url';
|
|
|
3
3
|
import { readFile } from 'node:fs/promises';
|
|
4
4
|
import { join } from 'node:path';
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const isCJS = typeof __dirname !== "undefined";
|
|
7
7
|
const readWasm = () => {
|
|
8
|
-
const dir =
|
|
8
|
+
const dir = isCJS ? __dirname : path.dirname(fileURLToPath(import.meta.url));
|
|
9
9
|
const file = readFile(join(dir, "./reg.wasm"));
|
|
10
10
|
return file;
|
|
11
11
|
};
|
|
12
12
|
const resolveExtention = () => {
|
|
13
|
-
return
|
|
13
|
+
return isCJS ? "cjs" : "mjs";
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
export { readWasm as a, resolveExtention as r };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const path = require('path');
|
|
4
|
+
const url = require('url');
|
|
5
|
+
const promises = require('node:fs/promises');
|
|
6
|
+
const node_path = require('node:path');
|
|
7
|
+
|
|
8
|
+
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
9
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
10
|
+
|
|
11
|
+
const path__default = /*#__PURE__*/_interopDefaultCompat(path);
|
|
12
|
+
|
|
13
|
+
const isCJS = typeof __dirname !== "undefined";
|
|
14
|
+
const readWasm = () => {
|
|
15
|
+
const dir = isCJS ? __dirname : path__default.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('shared/reg-cli.f4850117.cjs', document.baseURI).href))));
|
|
16
|
+
const file = promises.readFile(node_path.join(dir, "./reg.wasm"));
|
|
17
|
+
return file;
|
|
18
|
+
};
|
|
19
|
+
const resolveExtention = () => {
|
|
20
|
+
return isCJS ? "cjs" : "mjs";
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
exports.readWasm = readWasm;
|
|
24
|
+
exports.resolveExtention = resolveExtention;
|
package/dist/worker.cjs
CHANGED
|
@@ -4,7 +4,7 @@ const node_worker_threads = require('node:worker_threads');
|
|
|
4
4
|
const fs = require('node:fs');
|
|
5
5
|
const wasmUtil = require('@tybys/wasm-util');
|
|
6
6
|
const node_process = require('node:process');
|
|
7
|
-
const utils = require('./shared/reg-cli.
|
|
7
|
+
const utils = require('./shared/reg-cli.f4850117.cjs');
|
|
8
8
|
require('path');
|
|
9
9
|
require('url');
|
|
10
10
|
require('node:fs/promises');
|
package/dist/worker.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { parentPort } from 'node:worker_threads';
|
|
|
2
2
|
import fs from 'node:fs';
|
|
3
3
|
import { WASI } from '@tybys/wasm-util';
|
|
4
4
|
import { argv, env } from 'node:process';
|
|
5
|
-
import { a as readWasm } from './shared/reg-cli.
|
|
5
|
+
import { a as readWasm } from './shared/reg-cli.011d012d.mjs';
|
|
6
6
|
import 'path';
|
|
7
7
|
import 'url';
|
|
8
8
|
import 'node:fs/promises';
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const path = require('path');
|
|
4
|
-
const url = require('url');
|
|
5
|
-
const promises = require('node:fs/promises');
|
|
6
|
-
const node_path = require('node:path');
|
|
7
|
-
|
|
8
|
-
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
9
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
10
|
-
|
|
11
|
-
const path__default = /*#__PURE__*/_interopDefaultCompat(path);
|
|
12
|
-
|
|
13
|
-
const isESM = typeof ({ url: (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('shared/reg-cli.566a78e6.cjs', document.baseURI).href)) }) !== "undefined";
|
|
14
|
-
const readWasm = () => {
|
|
15
|
-
const dir = isESM ? path__default.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('shared/reg-cli.566a78e6.cjs', document.baseURI).href)))) : __dirname;
|
|
16
|
-
const file = promises.readFile(node_path.join(dir, "./reg.wasm"));
|
|
17
|
-
return file;
|
|
18
|
-
};
|
|
19
|
-
const resolveExtention = () => {
|
|
20
|
-
return isESM ? "mjs" : "cjs";
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
exports.readWasm = readWasm;
|
|
24
|
-
exports.resolveExtention = resolveExtention;
|