@simon_he/pi 0.0.2 → 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/README.md CHANGED
@@ -35,3 +35,5 @@ export PI_SPINNER=star # loading样式
35
35
  - [ccommand](https://github.com/Simon-He95/ccommand)
36
36
 
37
37
 
38
+ ## :coffee:
39
+ <a href="https://github.com/Simon-He95/sponsor" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" style="height: 51px !important;width: 217px !important;" ></a>
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.2";
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();
@@ -28,7 +28,7 @@ async function pi() {
28
28
  const text = pkg ? `Installing ${pkg} ...
29
29
  ` : "\u6B63\u5728\u66F4\u65B0\u4F9D\u8D56...\n";
30
30
  const successMsg = pkg ? `Installed ${pkg} successfully! \u{1F60A}` : "\u66F4\u65B0\u4F9D\u8D56\u6210\u529F! \u{1F60A}";
31
- const failMsg = pkg ? `Failed to install ${pkg} \u{1F62D}` : "\u66F4\u65B0\u4F9D\u8D56\u5931\u8D25! \u{1F62D}";
31
+ const failMsg = pkg ? `Failed to install ${pkg} , v\u621150 \u{1F62D}` : "\u66F4\u65B0\u4F9D\u8D56\u5931\u8D25! \u{1F62D}";
32
32
  const loading = ora__default({
33
33
  text,
34
34
  spinner,
@@ -114,7 +114,6 @@ function runner() {
114
114
  const exec = cmd.slice(last, cmd.length);
115
115
  runMap[exec]?.();
116
116
  }
117
- pi();
118
117
  runner();
119
118
 
120
119
  exports.pi = pi;
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.2";
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();
@@ -19,7 +19,7 @@ async function pi() {
19
19
  const text = pkg ? `Installing ${pkg} ...
20
20
  ` : "\u6B63\u5728\u66F4\u65B0\u4F9D\u8D56...\n";
21
21
  const successMsg = pkg ? `Installed ${pkg} successfully! \u{1F60A}` : "\u66F4\u65B0\u4F9D\u8D56\u6210\u529F! \u{1F60A}";
22
- const failMsg = pkg ? `Failed to install ${pkg} \u{1F62D}` : "\u66F4\u65B0\u4F9D\u8D56\u5931\u8D25! \u{1F62D}";
22
+ const failMsg = pkg ? `Failed to install ${pkg} , v\u621150 \u{1F62D}` : "\u66F4\u65B0\u4F9D\u8D56\u5931\u8D25! \u{1F62D}";
23
23
  const loading = ora({
24
24
  text,
25
25
  spinner,
@@ -105,7 +105,6 @@ function runner() {
105
105
  const exec = cmd.slice(last, cmd.length);
106
106
  runMap[exec]?.();
107
107
  }
108
- pi();
109
108
  runner();
110
109
 
111
110
  export { pi, prun, pui, runner };
@@ -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.2",
4
+ "version": "0.0.4",
5
5
  "packageManager": "pnpm@7.2.1",
6
6
  "description": "",
7
7
  "author": "Simon He",