@simon_he/pi 0.0.66 → 0.0.67

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
@@ -18107,7 +18107,7 @@ function getLatestVersion(pkg) {
18107
18107
  }
18108
18108
 
18109
18109
  // package.json
18110
- var version = "0.0.66";
18110
+ var version = "0.0.67";
18111
18111
 
18112
18112
  // src/help.ts
18113
18113
  var isZh2 = process.env.PI_Lang === "zh";
@@ -18147,6 +18147,7 @@ var isZh3 = import_process6.default.env.PI_Lang === "zh";
18147
18147
  async function pi(params, pkg, executor = "ni") {
18148
18148
  const text = pkg ? `Installing ${pkg} ...` : "Updating dependency ...";
18149
18149
  const isLatest = executor === "pil";
18150
+ const start = Date.now();
18150
18151
  let successMsg = "";
18151
18152
  if (isLatest) {
18152
18153
  const version2 = getLatestVersion(pkg);
@@ -18181,6 +18182,9 @@ async function pi(params, pkg, executor = "ni") {
18181
18182
  });
18182
18183
  if (stdio === "inherit")
18183
18184
  loading_status = await loading("");
18185
+ const end = Date.now();
18186
+ const costTime = (end - start) / 1e3;
18187
+ successMsg += import_picocolors2.default.blue(` ---- \u23F0\uFF1A${costTime}s`);
18184
18188
  if (status === 0) {
18185
18189
  loading_status.succeed(import_picocolors2.default.green(successMsg));
18186
18190
  } else if (result && result.includes("Not Found - 404")) {
package/dist/index.js CHANGED
@@ -18107,7 +18107,7 @@ function getLatestVersion(pkg) {
18107
18107
  }
18108
18108
 
18109
18109
  // package.json
18110
- var version = "0.0.66";
18110
+ var version = "0.0.67";
18111
18111
 
18112
18112
  // src/help.ts
18113
18113
  var isZh2 = process.env.PI_Lang === "zh";
@@ -18147,6 +18147,7 @@ var isZh3 = process9.env.PI_Lang === "zh";
18147
18147
  async function pi(params, pkg, executor = "ni") {
18148
18148
  const text = pkg ? `Installing ${pkg} ...` : "Updating dependency ...";
18149
18149
  const isLatest = executor === "pil";
18150
+ const start = Date.now();
18150
18151
  let successMsg = "";
18151
18152
  if (isLatest) {
18152
18153
  const version2 = getLatestVersion(pkg);
@@ -18181,6 +18182,9 @@ async function pi(params, pkg, executor = "ni") {
18181
18182
  });
18182
18183
  if (stdio === "inherit")
18183
18184
  loading_status = await loading("");
18185
+ const end = Date.now();
18186
+ const costTime = (end - start) / 1e3;
18187
+ successMsg += import_picocolors2.default.blue(` ---- \u23F0\uFF1A${costTime}s`);
18184
18188
  if (status === 0) {
18185
18189
  loading_status.succeed(import_picocolors2.default.green(successMsg));
18186
18190
  } else if (result && result.includes("Not Found - 404")) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simon_he/pi",
3
3
  "type": "module",
4
- "version": "0.0.66",
4
+ "version": "0.0.67",
5
5
  "description": "",
6
6
  "author": "Simon He",
7
7
  "license": "MIT",