@simon_he/pi 0.0.3 → 0.0.4

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/index.cjs CHANGED
@@ -13,11 +13,11 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
13
13
  const path__default = /*#__PURE__*/_interopDefaultLegacy(path);
14
14
  const ora__default = /*#__PURE__*/_interopDefaultLegacy(ora);
15
15
 
16
- const version = "0.0.3";
16
+ const version = "0.0.4";
17
17
 
18
18
  const __filename$1 = url$1.fileURLToPath((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index.cjs', document.baseURI).href)));
19
19
  const __dirname$1 = path__default.dirname(__filename$1);
20
- const url = path__default.resolve(__dirname$1, "./seprateThread.js");
20
+ const url = path__default.resolve(__dirname$1, "./seprateThread.mjs");
21
21
  async function pi() {
22
22
  const argv2 = process.argv.slice(2);
23
23
  await installDeps();
package/dist/index.mjs CHANGED
@@ -4,11 +4,11 @@ import { fileURLToPath } from 'url';
4
4
  import { useNodeWorker, jsShell } from 'simon-js-tool';
5
5
  import ora from 'ora';
6
6
 
7
- const version = "0.0.3";
7
+ const version = "0.0.4";
8
8
 
9
9
  const __filename = fileURLToPath(import.meta.url);
10
10
  const __dirname = path.dirname(__filename);
11
- const url = path.resolve(__dirname, "./seprateThread.js");
11
+ const url = path.resolve(__dirname, "./seprateThread.mjs");
12
12
  async function pi() {
13
13
  const argv2 = process.argv.slice(2);
14
14
  await installDeps();
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ const simonJsTool = require('simon-js-tool');
4
+
5
+ simonJsTool.useProcressNodeWorker(async ({ params, operate }) => simonJsTool.jsShell(`${operate === "install" ? "ni" : "nun"} ${params}`, "pipe"));
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,3 @@
1
+ import { useProcressNodeWorker, jsShell } from 'simon-js-tool';
2
+
3
+ useProcressNodeWorker(async ({ params, operate }) => jsShell(`${operate === "install" ? "ni" : "nun"} ${params}`, "pipe"));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simon_he/pi",
3
3
  "type": "module",
4
- "version": "0.0.3",
4
+ "version": "0.0.4",
5
5
  "packageManager": "pnpm@7.2.1",
6
6
  "description": "",
7
7
  "author": "Simon He",