node-opcua-debug
Advanced tools
Comparing version 2.88.0 to 2.90.0
@@ -5,2 +5,2 @@ /// <reference types="node" /> | ||
}): string; | ||
export declare function makeBufferFromTrace(func: string | (() => void)): Buffer; | ||
export declare function makeBufferFromTrace(func: string): Buffer; |
@@ -30,3 +30,6 @@ "use strict"; | ||
// find prefix | ||
const prefixLength = lines[0].match(/[0-9a-fA-F:]* +/)[0].length; | ||
const m = lines[0].match(/[0-9a-fA-F:]* +/); | ||
if (!m) | ||
return hexLine; | ||
const prefixLength = m[0].length; | ||
for (let line of lines) { | ||
@@ -33,0 +36,0 @@ line = line.trim(); |
{ | ||
"name": "node-opcua-debug", | ||
"version": "2.88.0", | ||
"version": "2.90.0", | ||
"description": "pure nodejs OPCUA SDK - module -debug", | ||
@@ -36,3 +36,3 @@ "scripts": { | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "0c20078b474f36855b799557f8fe931dbe20c2ca" | ||
"gitHead": "d55f9150c3ffa5b86fbe1a0baba69a2543c3090a" | ||
} |
@@ -28,3 +28,5 @@ /** | ||
// find prefix | ||
const prefixLength = lines[0]!.match(/[0-9a-fA-F:]* +/)![0].length; | ||
const m = lines[0]!.match(/[0-9a-fA-F:]* +/); | ||
if (!m) return hexLine; | ||
const prefixLength = m[0].length; | ||
@@ -48,3 +50,3 @@ for (let line of lines) { | ||
// tslint:disable:ban-types | ||
export function makeBufferFromTrace(func: string | (()=>void)): Buffer { | ||
export function makeBufferFromTrace(func: string): Buffer { | ||
if (typeof func === "string") { | ||
@@ -51,0 +53,0 @@ return makeBuffer(hexString(func as string)); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47679
851