node-opcua-utils
Advanced tools
Comparing version 2.83.0 to 2.85.0
@@ -11,5 +11,5 @@ "use strict"; | ||
const fnStr = func.toString().replace(STRIP_COMMENTS, ""); | ||
let result = fnStr.slice(fnStr.indexOf("(") + 1, fnStr.indexOf(")")).match(ARGUMENT_NAMES); | ||
if (result === null) { | ||
result = []; | ||
const result = fnStr.slice(fnStr.indexOf("(") + 1, fnStr.indexOf(")")).match(ARGUMENT_NAMES); | ||
if (!result) { | ||
return []; | ||
} | ||
@@ -16,0 +16,0 @@ return result; |
{ | ||
"name": "node-opcua-utils", | ||
"version": "2.83.0", | ||
"version": "2.85.0", | ||
"description": "pure nodejs OPCUA SDK - module -utils", | ||
@@ -37,3 +37,3 @@ "main": "./dist/index.js", | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "3311f8ce9e86837fde72e923f3121072008ccdd4" | ||
"gitHead": "68498fcf7b20ea9f7bd66e8529c546221daf5d52" | ||
} |
@@ -10,7 +10,7 @@ /** | ||
const fnStr = func.toString().replace(STRIP_COMMENTS, ""); | ||
let result = fnStr.slice(fnStr.indexOf("(") + 1, fnStr.indexOf(")")).match(ARGUMENT_NAMES); | ||
if (result === null) { | ||
result = []; | ||
const result = fnStr.slice(fnStr.indexOf("(") + 1, fnStr.indexOf(")")).match(ARGUMENT_NAMES); | ||
if (!result) { | ||
return []; | ||
} | ||
return result; | ||
} |
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
68096