node-opcua-debug
Advanced tools
Comparing version 2.66.0 to 2.67.0
@@ -34,11 +34,11 @@ "use strict"; | ||
if (line.length > 80) { | ||
line = line.substr(10, 98).trim(); | ||
line = line.substring(10, 98 + 10).trim(); | ||
hexLine = hexLine ? hexLine + " " + line : line; | ||
} | ||
else if (line.length > 60) { | ||
line = line.substr(7, 48).trim(); | ||
line = line.substring(7, 48 + 7).trim(); | ||
hexLine = hexLine ? hexLine + " " + line : line; | ||
} | ||
else if (line.length > prefixLength) { | ||
line = line.substr(prefixLength, prefixLength + 48).trim(); | ||
line = line.substring(prefixLength, prefixLength + 48).trim(); | ||
hexLine = hexLine ? hexLine + " " + line : line; | ||
@@ -45,0 +45,0 @@ } |
@@ -43,3 +43,3 @@ "use strict"; | ||
function w(str, l) { | ||
return (str + " ").substr(0, l); | ||
return str.padEnd(l, " ").substring(0, l); | ||
} | ||
@@ -71,3 +71,3 @@ function setDebugFlag(scriptFullPath, flag) { | ||
function file_line(mode, filename, callerLine) { | ||
const d = new Date().toISOString().substr(11); | ||
const d = new Date().toISOString().substring(11); | ||
if (mode === "W") { | ||
@@ -74,0 +74,0 @@ return chalk.bgCyan.white(w(d, 14) + ":" + w(filename, 30) + ":" + w(callerLine.toString(), 5)); |
{ | ||
"name": "node-opcua-debug", | ||
"version": "2.66.0", | ||
"version": "2.67.0", | ||
"description": "pure nodejs OPCUA SDK - module -debug", | ||
@@ -13,3 +13,3 @@ "scripts": { | ||
"node-opcua-assert": "2.66.0", | ||
"node-opcua-buffer-utils": "2.66.0" | ||
"node-opcua-buffer-utils": "2.67.0" | ||
}, | ||
@@ -37,3 +37,3 @@ "devDependencies": { | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "97f47e2e242a1fd737495fd64cb65e8fb7a9964b" | ||
"gitHead": "74c2fd7d4ce3eb48d25a911258bf90a64218ea0e" | ||
} |
@@ -33,9 +33,9 @@ /** | ||
if (line.length > 80) { | ||
line = line.substr(10, 98).trim(); | ||
line = line.substring(10, 98 + 10 ).trim(); | ||
hexLine = hexLine ? hexLine + " " + line : line; | ||
} else if (line.length > 60) { | ||
line = line.substr(7, 48).trim(); | ||
line = line.substring(7, 48 + 7).trim(); | ||
hexLine = hexLine ? hexLine + " " + line : line; | ||
} else if (line.length > prefixLength) { | ||
line = line.substr(prefixLength, prefixLength + 48).trim(); | ||
line = line.substring(prefixLength, prefixLength + 48).trim(); | ||
hexLine = hexLine ? hexLine + " " + line : line; | ||
@@ -42,0 +42,0 @@ } |
@@ -46,3 +46,3 @@ /** | ||
function w(str: string, l: number): string { | ||
return (str + " ").substr(0, l); | ||
return str.padEnd(l," ").substring(0, l); | ||
} | ||
@@ -75,3 +75,3 @@ | ||
function file_line(mode: "E" | "D" | "W", filename: string, callerLine: number): string { | ||
const d = new Date().toISOString().substr(11); | ||
const d = new Date().toISOString().substring(11); | ||
if (mode === "W") { | ||
@@ -78,0 +78,0 @@ return chalk.bgCyan.white(w(d, 14) + ":" + w(filename, 30) + ":" + w(callerLine.toString(), 5)); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
47416
+ Addednode-opcua-buffer-utils@2.67.0(transitive)
- Removednode-opcua-buffer-utils@2.66.0(transitive)