@simon_he/pi 0.0.77 → 0.0.78

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
@@ -7239,7 +7239,7 @@ function getLatestVersion(pkg, isZh6 = true) {
7239
7239
  var import_lazy_js_utils2 = require("lazy-js-utils");
7240
7240
 
7241
7241
  // package.json
7242
- var version = "0.0.77";
7242
+ var version = "0.0.78";
7243
7243
 
7244
7244
  // src/help.ts
7245
7245
  var isZh2 = process.env.PI_Lang === "zh";
@@ -7299,7 +7299,7 @@ var import_lazy_js_utils4 = require("lazy-js-utils");
7299
7299
  var import_picocolors3 = __toESM(require_picocolors(), 1);
7300
7300
  var isZh3 = import_process.default.env.PI_Lang === "zh";
7301
7301
  async function pi(params, pkg, executor = "ni") {
7302
- const text = pkg ? `Installing ${pkg} ...` : "Updating dependency ...";
7302
+ const text = pkg ? `Installing ${params} ...` : "Updating dependency ...";
7303
7303
  const isLatest = executor === "pil";
7304
7304
  const start = Date.now();
7305
7305
  let successMsg = "";
@@ -7411,7 +7411,7 @@ async function pil(params) {
7411
7411
  let latestPkgname = params;
7412
7412
  let suffix = "";
7413
7413
  const reg = /\s(-[dDwW]+)/g;
7414
- latestPkgname = (await getParams(params)).replace(reg, (_, k) => {
7414
+ params = latestPkgname = (await getParams(params)).replace(reg, (_, k) => {
7415
7415
  suffix += ` ${k}`;
7416
7416
  return "";
7417
7417
  });
package/dist/index.js CHANGED
@@ -7243,7 +7243,7 @@ function getLatestVersion(pkg, isZh6 = true) {
7243
7243
  import { jsShell as jsShell2 } from "lazy-js-utils";
7244
7244
 
7245
7245
  // package.json
7246
- var version = "0.0.77";
7246
+ var version = "0.0.78";
7247
7247
 
7248
7248
  // src/help.ts
7249
7249
  var isZh2 = process.env.PI_Lang === "zh";
@@ -7303,7 +7303,7 @@ import process9 from "process";
7303
7303
  import { getPkgTool as getPkgTool2, jsShell as jsShell4, useNodeWorker } from "lazy-js-utils";
7304
7304
  var isZh3 = process9.env.PI_Lang === "zh";
7305
7305
  async function pi(params, pkg, executor = "ni") {
7306
- const text = pkg ? `Installing ${pkg} ...` : "Updating dependency ...";
7306
+ const text = pkg ? `Installing ${params} ...` : "Updating dependency ...";
7307
7307
  const isLatest = executor === "pil";
7308
7308
  const start = Date.now();
7309
7309
  let successMsg = "";
@@ -7415,7 +7415,7 @@ async function pil(params) {
7415
7415
  let latestPkgname = params;
7416
7416
  let suffix = "";
7417
7417
  const reg = /\s(-[dDwW]+)/g;
7418
- latestPkgname = (await getParams(params)).replace(reg, (_, k) => {
7418
+ params = latestPkgname = (await getParams(params)).replace(reg, (_, k) => {
7419
7419
  suffix += ` ${k}`;
7420
7420
  return "";
7421
7421
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simon_he/pi",
3
3
  "type": "module",
4
- "version": "0.0.77",
4
+ "version": "0.0.78",
5
5
  "description": "",
6
6
  "author": "Simon He",
7
7
  "license": "MIT",