Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-opcua-enum

Package Overview
Dependencies
Maintainers
1
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-enum - npm Package Compare versions

Comparing version 0.5.0 to 2.0.0-alpha.2

dist/enum.d.ts

12

package.json
{
"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 () {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc