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

node-opcua-nodeid

Package Overview
Dependencies
Maintainers
1
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-nodeid - npm Package Compare versions

Comparing version 0.1.0-alpha.dc0cce4c to 0.1.1-0

LICENSE

51

package.json
{
"name": "node-opcua-nodeid",
"main": "./src/nodeid.js",
"version": "0.1.0-alpha.dc0cce4c",
"description": "",
"scripts": {
"test": "mocha test"
},
"dependencies": {
"node-opcua-assert": "^0.1.0-alpha.dc0cce4c",
"node-opcua-constants": "^0.1.0-alpha.dc0cce4c",
"node-opcua-enum": "^0.1.0-alpha.dc0cce4c",
"node-opcua-guid": "^0.1.0-alpha.dc0cce4c",
"underscore": "^1.8.3"
},
"devDependencies": {
"node-opcua-benchmarker": "^0.1.0-alpha.dc0cce4c",
"should": "^13.0.1"
}
"name": "node-opcua-nodeid",
"main": "./src/nodeid.js",
"version": "0.1.1-0",
"description": "pure nodejs OPCUA SDK - module -nodeid",
"scripts": {
"test": "mocha test"
},
"dependencies": {
"node-opcua-assert": "^0.1.1-0",
"node-opcua-constants": "^0.1.1-0",
"node-opcua-enum": "^0.1.1-0",
"node-opcua-guid": "^0.1.1-0",
"underscore": "^1.8.3"
},
"devDependencies": {
"node-opcua-benchmarker": "^0.1.1-0",
"should": "13.2.0"
},
"author": "Etienne Rossignon",
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/node-opcua/node-opcua.git"
},
"keywords": [
"OPCUA",
"opcua",
"m2m",
"iot",
"opc ua",
"internet of things"
],
"homepage": "http://node-opcua.github.io/"
}

@@ -307,3 +307,3 @@ "use strict";

// detect accidental string of form "ns=x;x";
assert(value.indexOf(";") === -1, " makeNodeId(string) ? did you mean using coerceNodeId instead? ");
assert(value.indexOf("ns=") === -1, " makeNodeId(string) ? did you mean using coerceNodeId instead? ");
}

@@ -310,0 +310,0 @@ } else if (value instanceof Buffer) {

@@ -343,4 +343,23 @@

describe("issue#372 coercing & making nodeid string containing semi-column", function () {
it("should coerce a nodeid string containing a semi-column", function () {
var nodeId = coerceNodeId("ns=0;s=my;nodeid;with;semicolum");
nodeId.identifierType.should.eql(NodeIdType.STRING);
nodeId.value.should.be.eql("my;nodeid;with;semicolum");
});
it("should make a nodeid as a string containing semi-column",function() {
var nodeId = makeNodeId("my;nodeid;with;semicolum");
nodeId.identifierType.should.eql(NodeIdType.STRING);
nodeId.value.should.be.eql("my;nodeid;with;semicolum");
});
});
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