node-opcua-enum
Advanced tools
Comparing version 2.105.0 to 2.108.0
@@ -114,2 +114,3 @@ "use strict"; | ||
exports.adaptTypescriptEnum = adaptTypescriptEnum; | ||
const regexpSignedNumber = /^[-+]?[0-9]+$/; | ||
/** | ||
@@ -133,10 +134,6 @@ * @class Enum | ||
} | ||
for (const key of Object.keys(mm)) { | ||
if (typeof key !== "string") { | ||
for (const [key, val] of Object.entries(mm)) { | ||
if (typeof val !== "number") { | ||
continue; | ||
} | ||
const val = mm[key]; | ||
if (undefined === val) { | ||
continue; | ||
} | ||
const kv = new EnumItem(key, val); | ||
@@ -143,0 +140,0 @@ const pThis = this; |
{ | ||
"name": "node-opcua-enum", | ||
"version": "2.105.0", | ||
"version": "2.108.0", | ||
"description": "pure nodejs OPCUA SDK - module enum", | ||
@@ -15,3 +15,3 @@ "scripts": { | ||
"enum": "3.0.4", | ||
"node-opcua-benchmarker": "2.105.0", | ||
"node-opcua-benchmarker": "2.108.0", | ||
"should": "^13.2.3" | ||
@@ -34,3 +34,3 @@ }, | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "41c30f321debfe92128905d97a52426b9d7f9b9e", | ||
"gitHead": "dc706ceab443d98df06b0d5e808daf998d6c7708", | ||
"files": [ | ||
@@ -37,0 +37,0 @@ "dist", |
@@ -123,2 +123,3 @@ /** | ||
const regexpSignedNumber = /^[-+]?[0-9]+$/; | ||
/** | ||
@@ -145,12 +146,7 @@ * @class Enum | ||
for (const key of Object.keys(mm)) { | ||
if (typeof key !== "string") { | ||
for (const [key, val] of Object.entries(mm)) { | ||
if (typeof val !== "number") { | ||
continue; | ||
} | ||
const val = mm[key] as number; | ||
if (undefined === val) { | ||
continue; | ||
} | ||
const kv = new EnumItem(key, val); | ||
const pThis = this as any; | ||
@@ -157,0 +153,0 @@ pThis[key] = kv; |
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
23546
582