@simon_he/pi 0.0.89 → 0.0.90
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 +5 -3
- package/dist/index.js +5 -3
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -6759,7 +6759,7 @@ function getLatestVersion(pkg, isZh6 = true) {
|
|
|
6759
6759
|
var import_lazy_js_utils2 = require("lazy-js-utils");
|
|
6760
6760
|
|
|
6761
6761
|
// package.json
|
|
6762
|
-
var version = "0.0.
|
|
6762
|
+
var version = "0.0.90";
|
|
6763
6763
|
|
|
6764
6764
|
// src/help.ts
|
|
6765
6765
|
var isZh2 = process.env.PI_Lang === "zh";
|
|
@@ -6979,6 +6979,7 @@ async function pil(params) {
|
|
|
6979
6979
|
)} | sed "s/,/\\n/g" | gum filter --no-limit --placeholder=" \u{1F914}${process.env.PI_Lang === "zh" ? "\u8BF7\u9009\u62E9\u4E00\u4E2A\u9700\u8981\u83B7\u53D6\u6700\u65B0\u7248\u672C\u7684\u4F9D\u8D56" : "Please select a dependency that needs to obtain the latest version."}"`,
|
|
6980
6980
|
"pipe"
|
|
6981
6981
|
);
|
|
6982
|
+
console.log({ choose, status });
|
|
6982
6983
|
if (status === 130) {
|
|
6983
6984
|
console.log(import_picocolors5.default.dim("\u5DF2\u53D6\u6D88"));
|
|
6984
6985
|
process.exit(0);
|
|
@@ -6996,6 +6997,7 @@ async function pil(params) {
|
|
|
6996
6997
|
let latestPkgname = params;
|
|
6997
6998
|
const reg = /\s(-[dDwW]+)/g;
|
|
6998
6999
|
const suffix = [];
|
|
7000
|
+
console.log({ params });
|
|
6999
7001
|
let command = latestPkgname = (await getParams(params)).replace(
|
|
7000
7002
|
reg,
|
|
7001
7003
|
(_, k) => {
|
|
@@ -7003,12 +7005,12 @@ async function pil(params) {
|
|
|
7003
7005
|
return "";
|
|
7004
7006
|
}
|
|
7005
7007
|
);
|
|
7006
|
-
latestPkgname = latestPkgname.
|
|
7008
|
+
latestPkgname = latestPkgname.replace(/@latest/g, "").split(" ").filter(Boolean).map((i) => {
|
|
7007
7009
|
const v = dependencies[i] || devDependencies[i];
|
|
7008
7010
|
return `${i}$${v}`;
|
|
7009
7011
|
}).join(" ");
|
|
7010
7012
|
command = command.replace(/\s+/, " ").split(" ").map((i, index) => `${i} ${suffix[index] || "-s"}`).join(" ");
|
|
7011
|
-
return await pi(command, latestPkgname.
|
|
7013
|
+
return await pi(command, latestPkgname.replace(/@latest/g, ""), "pil");
|
|
7012
7014
|
}
|
|
7013
7015
|
|
|
7014
7016
|
// src/pinit.ts
|
package/dist/index.js
CHANGED
|
@@ -6763,7 +6763,7 @@ function getLatestVersion(pkg, isZh6 = true) {
|
|
|
6763
6763
|
import { jsShell as jsShell2 } from "lazy-js-utils";
|
|
6764
6764
|
|
|
6765
6765
|
// package.json
|
|
6766
|
-
var version = "0.0.
|
|
6766
|
+
var version = "0.0.90";
|
|
6767
6767
|
|
|
6768
6768
|
// src/help.ts
|
|
6769
6769
|
var isZh2 = process.env.PI_Lang === "zh";
|
|
@@ -6983,6 +6983,7 @@ async function pil(params) {
|
|
|
6983
6983
|
)} | sed "s/,/\\n/g" | gum filter --no-limit --placeholder=" \u{1F914}${process.env.PI_Lang === "zh" ? "\u8BF7\u9009\u62E9\u4E00\u4E2A\u9700\u8981\u83B7\u53D6\u6700\u65B0\u7248\u672C\u7684\u4F9D\u8D56" : "Please select a dependency that needs to obtain the latest version."}"`,
|
|
6984
6984
|
"pipe"
|
|
6985
6985
|
);
|
|
6986
|
+
console.log({ choose, status });
|
|
6986
6987
|
if (status === 130) {
|
|
6987
6988
|
console.log(import_picocolors5.default.dim("\u5DF2\u53D6\u6D88"));
|
|
6988
6989
|
process.exit(0);
|
|
@@ -7000,6 +7001,7 @@ async function pil(params) {
|
|
|
7000
7001
|
let latestPkgname = params;
|
|
7001
7002
|
const reg = /\s(-[dDwW]+)/g;
|
|
7002
7003
|
const suffix = [];
|
|
7004
|
+
console.log({ params });
|
|
7003
7005
|
let command = latestPkgname = (await getParams(params)).replace(
|
|
7004
7006
|
reg,
|
|
7005
7007
|
(_, k) => {
|
|
@@ -7007,12 +7009,12 @@ async function pil(params) {
|
|
|
7007
7009
|
return "";
|
|
7008
7010
|
}
|
|
7009
7011
|
);
|
|
7010
|
-
latestPkgname = latestPkgname.
|
|
7012
|
+
latestPkgname = latestPkgname.replace(/@latest/g, "").split(" ").filter(Boolean).map((i) => {
|
|
7011
7013
|
const v = dependencies[i] || devDependencies[i];
|
|
7012
7014
|
return `${i}$${v}`;
|
|
7013
7015
|
}).join(" ");
|
|
7014
7016
|
command = command.replace(/\s+/, " ").split(" ").map((i, index) => `${i} ${suffix[index] || "-s"}`).join(" ");
|
|
7015
|
-
return await pi(command, latestPkgname.
|
|
7017
|
+
return await pi(command, latestPkgname.replace(/@latest/g, ""), "pil");
|
|
7016
7018
|
}
|
|
7017
7019
|
|
|
7018
7020
|
// src/pinit.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simon_he/pi",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.90",
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "Simon He",
|
|
7
7
|
"license": "MIT",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"typecheck": "tsc --noEmit"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"ccommand": "^1.0.
|
|
68
|
+
"ccommand": "^1.0.63",
|
|
69
69
|
"fast-glob": "latest",
|
|
70
70
|
"lazy-js-utils": "^0.0.94",
|
|
71
71
|
"semver": "^7.6.2"
|