node-opcua-nodeid
Advanced tools
Comparing version 2.0.0-alpha.13 to 2.0.0-alpha.18
@@ -40,2 +40,4 @@ /// <reference types="node" /> | ||
export declare class ExpandedNodeId extends NodeId { | ||
static nullExpandedNodeId: ExpandedNodeId; | ||
static fromNodeId(nodeId: NodeId, namespaceUri?: string, serverIndex?: number): ExpandedNodeId; | ||
namespaceUri: null | string; | ||
@@ -42,0 +44,0 @@ serverIndex: number; |
@@ -49,2 +49,5 @@ "use strict"; | ||
} | ||
static fromNodeId(nodeId, namespaceUri, serverIndex) { | ||
return new ExpandedNodeId(nodeId.identifierType, nodeId.value, nodeId.namespace, namespaceUri, serverIndex); | ||
} | ||
/** | ||
@@ -73,2 +76,3 @@ * @method toString | ||
} | ||
ExpandedNodeId.nullExpandedNodeId = new ExpandedNodeId(nodeid_1.NodeIdType.NUMERIC, 0, 0); | ||
exports.ExpandedNodeId = ExpandedNodeId; | ||
@@ -75,0 +79,0 @@ function coerceExpandedNodeId(value) { |
@@ -5,3 +5,3 @@ { | ||
"types": "./dist/index.d.ts", | ||
"version": "2.0.0-alpha.13", | ||
"version": "2.0.0-alpha.18", | ||
"description": "pure nodejs OPCUA SDK - module -nodeid", | ||
@@ -16,10 +16,10 @@ "scripts": { | ||
"node-opcua-constants": "^2.0.0-alpha.9", | ||
"node-opcua-enum": "^2.0.0-alpha.10", | ||
"node-opcua-guid": "^2.0.0-alpha.10", | ||
"node-opcua-enum": "^2.0.0-alpha.18", | ||
"node-opcua-guid": "^2.0.0-alpha.18", | ||
"underscore": "^1.9.1" | ||
}, | ||
"devDependencies": { | ||
"node-opcua-benchmarker": "^2.0.0-alpha.10", | ||
"node-opcua-benchmarker": "^2.0.0-alpha.18", | ||
"should": "13.2.3", | ||
"source-map-support": "^0.5.10" | ||
"source-map-support": "^0.5.11" | ||
}, | ||
@@ -41,3 +41,3 @@ "author": "Etienne Rossignon", | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "6a0c56afb819a44d5abd453d39ce684df6fb3505" | ||
"gitHead": "a92d7f1be990cfaadd5f52560e2454e252b0b081" | ||
} |
@@ -46,4 +46,13 @@ /** | ||
public static nullExpandedNodeId = new ExpandedNodeId(NodeIdType.NUMERIC, 0, 0); | ||
public static fromNodeId(nodeId: NodeId, namespaceUri?: string, serverIndex?: number): ExpandedNodeId { | ||
return new ExpandedNodeId( | ||
nodeId.identifierType, nodeId.value, nodeId.namespace, | ||
namespaceUri, serverIndex); | ||
} | ||
public namespaceUri: null | string; | ||
public serverIndex: number; | ||
constructor( | ||
@@ -53,3 +62,3 @@ identifierType: NodeIdType, | ||
namespace: number, | ||
namespaceUri?: null|string, | ||
namespaceUri?: null | string, | ||
serverIndex?: number | ||
@@ -56,0 +65,0 @@ ) { |
@@ -7,3 +7,5 @@ { | ||
}, | ||
"files": [ | ||
"source/index.ts" | ||
] | ||
} |
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
53834
1129