jja 2.3.0 → 2.3.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.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jja",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.3.
|
|
4
|
+
"version": "2.3.1",
|
|
5
5
|
"description": "一些在终端的执行动作 🥜",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"dependencies": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"@qqi/dev-log": ">=0.2.0 <1.0.0",
|
|
10
10
|
"a-command": ">=2.1.7 <3.0.0",
|
|
11
11
|
"a-js-tools": ">=0.6.1 <1.0.0",
|
|
12
|
-
"a-node-tools": "
|
|
12
|
+
"a-node-tools": "^3.1.0",
|
|
13
13
|
"a-type-of-js": ">=0.2.0 <1.0.0",
|
|
14
14
|
"color-pen": "^1.3.2"
|
|
15
15
|
},
|
package/src/dns/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dataStore as t}from"./data-store.mjs";import{printResult as o}from"./printResult.mjs";import{getIp as m}from"./getIp.mjs";import{getLocalIp as r}from"./getLocalIp.mjs";async function s(s){t.reset(s.options),await r(),await m();const{ips:
|
|
1
|
+
import{dataStore as t}from"./data-store.mjs";import{printResult as o}from"./printResult.mjs";import{getIp as m}from"./getIp.mjs";import{getLocalIp as r}from"./getLocalIp.mjs";import{printNotFound as i}from"./printNotFound.mjs";async function s(s){t.reset(s.options),await r(),await m();const{ips:a}=t;Object.keys(a).length>0?await o():await i()}export{s as dns};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{typewrite as o}from"a-node-tools";import{dataStore as t}from"./data-store.mjs";import{redPen as n,pen666 as r}from"../pen.mjs";async function m(){const{domain:m,port:a}=t;await o(`\n找不到 ${n(m)} 的服务器 IP 地址 ${r`测试使用 ${a.toString()} 端口`}\n`)}export{m as printNotFound};
|
package/src/dns/printResult.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_p as
|
|
1
|
+
import{typewrite as o,_p as t}from"a-node-tools";import r from"color-pen";import{dataStore as a}from"./data-store.mjs";import{greenPen as i,orangePen as n,pen666 as p,redPen as m}from"../pen.mjs";async function s(){const{domain:s,ips:$,port:c}=a;await o(`${r.brightMagenta`${s}`} 域名解析结果:`),t();for(const o in $)if(Object.prototype.hasOwnProperty.call($,o)){const r=$[o];t(r?`${i`- ${o.padEnd(16)}`} ${n`->`} ✅`:`${p`- ${o.padEnd(16)}`} ${m`⛓️💥`} ❌`)}t(),await o(m.italic.dim`${s} 联通性接口判断为 ${c.toString()}`),t()}export{s as printResult};
|