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 CHANGED
@@ -3,7 +3,7 @@
3
3
  const index = require('./index.cjs');
4
4
  require('node:events');
5
5
  require('node:worker_threads');
6
- require('./shared/reg-cli.566a78e6.cjs');
6
+ require('./shared/reg-cli.f4850117.cjs');
7
7
  require('path');
8
8
  require('url');
9
9
  require('node:fs/promises');
package/dist/cli.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { run } from './index.mjs';
2
2
  import 'node:events';
3
3
  import 'node:worker_threads';
4
- import './shared/reg-cli.2f9d9b15.mjs';
4
+ import './shared/reg-cli.011d012d.mjs';
5
5
  import 'path';
6
6
  import 'url';
7
7
  import 'node:fs/promises';
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.566a78e6.cjs');
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.2f9d9b15.mjs';
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.566a78e6.cjs');
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.2f9d9b15.mjs';
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 isESM = typeof import.meta !== "undefined";
6
+ const isCJS = typeof __dirname !== "undefined";
7
7
  const readWasm = () => {
8
- const dir = isESM ? path.dirname(fileURLToPath(import.meta.url)) : __dirname;
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 isESM ? "mjs" : "cjs";
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.566a78e6.cjs');
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.2f9d9b15.mjs';
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,6 +1,6 @@
1
1
  {
2
2
  "name": "reg-cli",
3
- "version": "0.0.0-experimental-wasm0",
3
+ "version": "0.0.0-experimental-wasm2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "start": "node ./dist/cli.mjs",
@@ -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;