jja 2.1.0 → 2.1.1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_p as n}from"a-node-tools";import{diffVersion as e}from"./diffVersion.mjs";import t from"color-pen";async function o(o){const{dependencies:a,devDependencies:i}=o,s=await e({...a||{},...i||{}});0!==s.length?(n(""),n("版本差异的依赖为:"),n(s),n(t.brightRed(`仅关注版本号是否为最新 ${t.brightMagenta("latest")}
|
|
1
|
+
import{_p as n}from"a-node-tools";import{diffVersion as e}from"./diffVersion.mjs";import t from"color-pen";async function o(o){const{dependencies:a,devDependencies:i}=o,s=await e({...a||{},...i||{}});0!==s.length?(n(""),n("版本差异的依赖为:"),n(s),n(t.brightRed(`仅关注版本号是否为最新 ${t.brightMagenta("latest")}\n不关心是否是最佳依赖版本\n更新有风险,且更且珍惜`)),n("使用 npm install --save 命令安装更新"),n("npm install --save ".concat(s.map((n=>n.concat("@latest"))).join(" ")))):n("看起来似乎没有依赖版本差异")}export{o as dependencies};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_p as t}from"a-node-tools";import{getInstallVersion as o}from"./getInstallVersion.mjs";import{getLatestVersion as
|
|
1
|
+
import{_p as t}from"a-node-tools";import{getInstallVersion as o}from"./getInstallVersion.mjs";import{getLatestVersion as e}from"./getLatestVersion.mjs";import r from"color-pen";async function n(n){const s=Object.keys(n),i=[];for(let c=0,a=s.length;c<a;c++){const a=s[c],m=n[a],[$,g]=await e(a),l=o(a);if(l===$&&m.includes($)){const o=`${a} 的本地${m} 安装版本为 ${l} 最新是 ${$} `.concat(""===g?"":` 最新预发布版本为 ${g}`);t(o)}else{i.push(a);const o=`${a} 的本地 ${r.brightGreen(m)} 安装版本为 ${r.brightGreen(l)} 最新是 ${r.brightMagenta($)} `.concat(""===g?"":`最新预发布版本为 ${r.brightGreen(g)}`);t(o)}}return i}export{n as diffVersion};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getNpmPkgInfo as
|
|
1
|
+
import{getNpmPkgInfo as t}from"a-node-tools";import{isNull as o}from"a-type-of-js";async function e(e){const s=await t(e);if(o(s))return["",""];const{"dist-tags":n,time:r}=s;let i=s.version,a="latest";const c=Object.keys(n);for(let t=0,o=c.length;t<o;t++){const o=c[t],e=n[o];r[e]>r[i]&&(i=e,a=o)}return"latest"===a?[s.version,""]:[s.version,i]}export{e as getLatestVersion};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"color-pen";import{getVersion as
|
|
1
|
+
import o from"color-pen";import{getVersion as e}from"./getVersion.mjs";import{_p as t}from"a-node-tools";import{isNull as r}from"a-type-of-js";import{dependencies as i}from"./dependencies.mjs";async function n(){const[n,m,s,a]=await e();if(r(s))return t(o.hex("#931")("未找到当前包 package.json"));const p=o.hex("#931")(`当前包本地版本为: ${n}`);if(t(p),r(a))t(o.hex("#399")("未获取当前包的线上信息"));else{const e=`${" ".repeat(6)}线上版本为:${m}@latest`;t(o.hex("#399")(e));const r=new Date(a&&a.time.modified||"").toLocaleString();t(r.toString())}await i(s)}export{n as diffPackage};
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jja",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.1",
|
|
5
5
|
"description": "一些在终端的执行动作 🥜",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"a-command": ">=2.1.0 <3.0.0",
|
|
9
9
|
"a-js-tools": ">=0.2.1 <1.0.0",
|
|
10
|
-
"a-node-tools": ">=
|
|
10
|
+
"a-node-tools": ">=2.0.0-next.1 <3.0.0",
|
|
11
11
|
"a-type-of-js": ">=0.2.0 <1.0.0",
|
|
12
12
|
"color-pen": ">=0.1.3 <1.0.0"
|
|
13
13
|
},
|