node-opcua-enum
Advanced tools
Comparing version 0.5.0 to 2.0.0-alpha.2
{ | ||
"name": "node-opcua-enum", | ||
"version": "0.5.0", | ||
"version": "2.0.0-alpha.2", | ||
"description": "pure nodejs OPCUA SDK - module -enum", | ||
"scripts": { | ||
"build": "tsc", | ||
"test": "mocha test" | ||
}, | ||
"main": "src/enum.js", | ||
"main": "./dist/enum.js", | ||
"@types": "./dist/enum.d.ts", | ||
"dependencies": { | ||
"node-opcua-assert": "^0.5.0" | ||
"node-opcua-assert": "^2.0.0-alpha.2" | ||
}, | ||
"devDependencies": { | ||
"enum": "2.5.0", | ||
"node-opcua-benchmarker": "^0.5.0", | ||
"node-opcua-benchmarker": "^2.0.0-alpha.2", | ||
"should": "13.2.3", | ||
@@ -33,3 +35,3 @@ "underscore": "^1.9.1" | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "7c2f2dcb6ebdc49e57da1a028406a307df502d4e" | ||
"gitHead": "7f57dd90e9d8bd1abcb8d330b3470999ac51e33f" | ||
} |
"use strict"; | ||
const Enum = require(".."); | ||
const should = require("should"); | ||
const _ = require("underscore"); | ||
const Enum = require("..").Enum; | ||
describe("Test Enum", function () { | ||
@@ -17,4 +18,4 @@ | ||
e.get(3).value.should.equal(3); | ||
should(e.get(9)).equal(undefined); | ||
should(e.get(0)).equal(undefined); | ||
should(e.get(9)).equal(null); | ||
should(e.get(0)).equal(null); | ||
}); | ||
@@ -30,4 +31,4 @@ | ||
e.get(3).value.should.equal(3); | ||
should(e.get(9)).equal(undefined); | ||
should(e.get(0)).equal(undefined); | ||
should(e.get(9)).equal(null); | ||
should(e.get(0)).equal(null); | ||
}); | ||
@@ -40,8 +41,8 @@ | ||
e.get("e3").value.should.equal(3); | ||
should(e.get(5)).equal(undefined); | ||
should(e.get("e0")).equal(undefined); | ||
should(e.get("e3 | e1")).equal(undefined); | ||
should(e.get(5)).equal(null); | ||
should(e.get("e0")).equal(null); | ||
should(e.get("e3 | e1")).equal(null); | ||
e.get(3).key.should.equal("e3"); | ||
e.get(3).value.should.equal(3); | ||
e.enums[0].key.should.equal("e1"); | ||
e.enumItems[0].key.should.equal("e1"); | ||
}); | ||
@@ -92,3 +93,3 @@ | ||
const EnumSlow = require("enum"); | ||
const EnumFast = require(".."); | ||
const EnumFast = require("..").Enum; | ||
@@ -95,0 +96,0 @@ describe("Benchmarking Enums", function () { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
27229
8
652
1
+ Addedansi-styles@4.3.0(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addednode-opcua-assert@2.120.0(transitive)
+ Addedsupports-color@7.2.0(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedbetter-assert@1.0.2(transitive)
- Removedcallsite@1.0.0(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removednode-opcua-assert@0.5.0(transitive)
- Removedsupports-color@5.5.0(transitive)