@simon_he/pi 0.0.56 → 0.0.58

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
@@ -6451,7 +6451,7 @@ async function getStyle() {
6451
6451
  var import_lazy_js_utils2 = require("lazy-js-utils");
6452
6452
 
6453
6453
  // package.json
6454
- var version = "0.0.56";
6454
+ var version = "0.0.58";
6455
6455
 
6456
6456
  // src/help.ts
6457
6457
  var isZh2 = process.env.PI_Lang === "zh";
@@ -6522,7 +6522,7 @@ async function pi(params, pkg, executor = "ni") {
6522
6522
  if (status === 0) {
6523
6523
  loading_status.succeed(import_picocolors2.default.green(successMsg));
6524
6524
  } else {
6525
- if (result.indexOf("Not Found - 404")) {
6525
+ if (result.includes("Not Found - 404")) {
6526
6526
  const _result = isZh3 ? `${pkg} \u5305\u540D\u53EF\u80FD\u6709\u8BEF\uFF0C\u5E76\u4E0D\u80FD\u5728npm\u4E2D\u641C\u7D22\u5230\uFF0C\u8BF7\u68C0\u67E5` : `${pkg} the package name may be wrong, and cannot be found in npm, please check`;
6527
6527
  loading_status.fail(
6528
6528
  import_picocolors2.default.red(result ? `${failMsg}
package/dist/index.js CHANGED
@@ -6455,7 +6455,7 @@ async function getStyle() {
6455
6455
  import { jsShell } from "lazy-js-utils";
6456
6456
 
6457
6457
  // package.json
6458
- var version = "0.0.56";
6458
+ var version = "0.0.58";
6459
6459
 
6460
6460
  // src/help.ts
6461
6461
  var isZh2 = process.env.PI_Lang === "zh";
@@ -6526,7 +6526,7 @@ async function pi(params, pkg, executor = "ni") {
6526
6526
  if (status === 0) {
6527
6527
  loading_status.succeed(import_picocolors2.default.green(successMsg));
6528
6528
  } else {
6529
- if (result.indexOf("Not Found - 404")) {
6529
+ if (result.includes("Not Found - 404")) {
6530
6530
  const _result = isZh3 ? `${pkg} \u5305\u540D\u53EF\u80FD\u6709\u8BEF\uFF0C\u5E76\u4E0D\u80FD\u5728npm\u4E2D\u641C\u7D22\u5230\uFF0C\u8BF7\u68C0\u67E5` : `${pkg} the package name may be wrong, and cannot be found in npm, please check`;
6531
6531
  loading_status.fail(
6532
6532
  import_picocolors2.default.red(result ? `${failMsg}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simon_he/pi",
3
3
  "type": "module",
4
- "version": "0.0.56",
4
+ "version": "0.0.58",
5
5
  "packageManager": "pnpm@7.26.1",
6
6
  "description": "",
7
7
  "author": "Simon He",
@@ -65,7 +65,7 @@
65
65
  "dependencies": {
66
66
  "build": "^0.1.4",
67
67
  "fast-glob": "^3.2.12",
68
- "lazy-js-utils": "^0.0.47"
68
+ "lazy-js-utils": "^0.0.53"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@antfu/eslint-config": "^0.34.0",