un-cli 0.0.86 → 0.0.87
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/index.mjs +9 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { AdminLog } from "./adminlog.mjs"
|
|
|
7
7
|
import logger from "./logger.mjs"
|
|
8
8
|
import fetch from "node-fetch"
|
|
9
9
|
//update version
|
|
10
|
-
let version = "0.0.
|
|
10
|
+
let version = "0.0.87";
|
|
11
11
|
const GENERATE_TOKEN_TIME_MIN = 30;
|
|
12
12
|
|
|
13
13
|
let rl = null;
|
|
@@ -1066,8 +1066,11 @@ const inputs = {
|
|
|
1066
1066
|
logger.info (`${numberWithCommas(rowCount)} subnetworks returned.`)
|
|
1067
1067
|
for (let i = 0; i < subs.length ; i++)
|
|
1068
1068
|
{
|
|
1069
|
+
|
|
1069
1070
|
const fromDate = new Date();
|
|
1070
1071
|
const subnetworkName = v(subs[i],"subnetworkname")
|
|
1072
|
+
try{
|
|
1073
|
+
|
|
1071
1074
|
logger.info(`Tracing subnetwork ${subnetworkName}`);
|
|
1072
1075
|
const result = await un.subnetworkTraceSimple(subnetworkName)
|
|
1073
1076
|
if (result == null) {
|
|
@@ -1080,6 +1083,11 @@ const inputs = {
|
|
|
1080
1083
|
newResult.duration = numberWithCommas(Math.round(timeRun)) + " ms"
|
|
1081
1084
|
newResult.elementsCount = result.traceResults.elements.length;
|
|
1082
1085
|
console.table(newResult)
|
|
1086
|
+
}
|
|
1087
|
+
catch (ex)
|
|
1088
|
+
{
|
|
1089
|
+
logger.info(`Failed to trace ${subnetworkName} ${ex}`);
|
|
1090
|
+
}
|
|
1083
1091
|
|
|
1084
1092
|
}
|
|
1085
1093
|
|