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 2.0.0-alpha.19 to 2.0.0-alpha.21

4

dist/nodeid.d.ts

@@ -117,6 +117,6 @@ /// <reference types="node" />

* @static
* @param nodeIdOrString {NodeId|String}
* @return {NodeId}
* @param nodeIdOrString
* @return the nodeId
*/
export declare function resolveNodeId(nodeIdOrString: NodeIdLike): NodeId;
export declare function sameNodeId(n1: NodeId, n2: NodeId): boolean;

@@ -64,6 +64,6 @@ "use strict";

// namespace shall be a UInt16
node_opcua_assert_1.default(this.namespace >= 0 && this.namespace <= 0xFFFF);
node_opcua_assert_1.default(this.identifierType !== NodeIdType.NUMERIC || (this.value >= 0 && this.value <= 0xFFFFFFFF));
node_opcua_assert_1.default(this.identifierType !== NodeIdType.GUID || node_opcua_guid_1.isValidGuid(this.value));
node_opcua_assert_1.default(this.identifierType !== NodeIdType.STRING || typeof this.value === "string");
node_opcua_assert_1.assert(this.namespace >= 0 && this.namespace <= 0xFFFF);
node_opcua_assert_1.assert(this.identifierType !== NodeIdType.NUMERIC || (this.value >= 0 && this.value <= 0xFFFFFFFF));
node_opcua_assert_1.assert(this.identifierType !== NodeIdType.GUID || node_opcua_guid_1.isValidGuid(this.value));
node_opcua_assert_1.assert(this.identifierType !== NodeIdType.STRING || typeof this.value === "string");
}

@@ -102,3 +102,3 @@ /**

default:
node_opcua_assert_1.default(this.identifierType === NodeIdType.BYTESTRING, "invalid identifierType in NodeId : " + this.identifierType);
node_opcua_assert_1.assert(this.identifierType === NodeIdType.BYTESTRING, "invalid identifierType in NodeId : " + this.identifierType);
if (this.value) {

@@ -154,3 +154,3 @@ str = "ns=" + this.namespace + ";b=" + this.value.toString("hex");

default:
node_opcua_assert_1.default(this.identifierType === NodeIdType.BYTESTRING, "invalid identifierType in NodeId : " + this.identifierType);
node_opcua_assert_1.assert(this.identifierType === NodeIdType.BYTESTRING, "invalid identifierType in NodeId : " + this.identifierType);
return !this.value || this.value.length === 0;

@@ -275,3 +275,3 @@ }

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

@@ -283,3 +283,3 @@ }

const nodeId = new NodeId(identifierType, value, namespace);
node_opcua_assert_1.default(nodeId.hasOwnProperty("identifierType"));
node_opcua_assert_1.assert(nodeId.hasOwnProperty("identifierType"));
return nodeId;

@@ -319,4 +319,4 @@ }

* @static
* @param nodeIdOrString {NodeId|String}
* @return {NodeId}
* @param nodeIdOrString
* @return the nodeId
*/

@@ -323,0 +323,0 @@ function resolveNodeId(nodeIdOrString) {

@@ -5,3 +5,3 @@ {

"types": "./dist/index.d.ts",
"version": "2.0.0-alpha.19",
"version": "2.0.0-alpha.21",
"description": "pure nodejs OPCUA SDK - module -nodeid",

@@ -16,3 +16,3 @@ "scripts": {

"node-opcua-constants": "^2.0.0-alpha.19",
"node-opcua-enum": "^2.0.0-alpha.18",
"node-opcua-enum": "^2.0.0-alpha.21",
"node-opcua-guid": "^2.0.0-alpha.18",

@@ -22,5 +22,5 @@ "underscore": "^1.9.1"

"devDependencies": {
"node-opcua-benchmarker": "^2.0.0-alpha.18",
"node-opcua-benchmarker": "^2.0.0-alpha.21",
"should": "13.2.3",
"source-map-support": "^0.5.11"
"source-map-support": "^0.5.12"
},

@@ -42,3 +42,3 @@ "author": "Etienne Rossignon",

"homepage": "http://node-opcua.github.io/",
"gitHead": "0343e8c37806056ab5bcfb1c5c083e910c7252cb"
"gitHead": "5cbfb647cd06619685d1968520d0bad368858036"
}

@@ -6,3 +6,3 @@ /**

import chalk from "chalk";
import assert from "node-opcua-assert";
import { assert } from "node-opcua-assert";
import {

@@ -369,4 +369,4 @@ DataTypeIds,

* @static
* @param nodeIdOrString {NodeId|String}
* @return {NodeId}
* @param nodeIdOrString
* @return the nodeId
*/

@@ -373,0 +373,0 @@ export function resolveNodeId(nodeIdOrString: NodeIdLike): NodeId {

Sorry, the diff of this file is not supported yet

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