node-opcua-service-secure-channel
Advanced tools
Comparing version 2.49.0 to 2.51.0
@@ -11,3 +11,3 @@ "use strict"; | ||
const node_opcua_factory_1 = require("node-opcua-factory"); | ||
const schemaAsymmetricAlgorithmSecurityHeader = node_opcua_factory_1.buildStructuredType({ | ||
const schemaAsymmetricAlgorithmSecurityHeader = (0, node_opcua_factory_1.buildStructuredType)({ | ||
name: "AsymmetricAlgorithmSecurityHeader", | ||
@@ -51,19 +51,19 @@ baseType: "BaseUAObject", | ||
if (node_opcua_factory_1.parameters.debugSchemaHelper) { | ||
node_opcua_factory_1.check_options_correctness_against_schema(this, schema, options); | ||
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options); | ||
} | ||
this.securityPolicyUri = node_opcua_factory_1.initialize_field(schema.fields[0], options.securityPolicyUri); | ||
this.senderCertificate = node_opcua_factory_1.initialize_field(schema.fields[1], options.senderCertificate); | ||
this.receiverCertificateThumbprint = node_opcua_factory_1.initialize_field(schema.fields[2], options.receiverCertificateThumbprint); | ||
this.securityPolicyUri = (0, node_opcua_factory_1.initialize_field)(schema.fields[0], options.securityPolicyUri); | ||
this.senderCertificate = (0, node_opcua_factory_1.initialize_field)(schema.fields[1], options.senderCertificate); | ||
this.receiverCertificateThumbprint = (0, node_opcua_factory_1.initialize_field)(schema.fields[2], options.receiverCertificateThumbprint); | ||
} | ||
encode(stream) { | ||
super.encode(stream); | ||
node_opcua_basic_types_1.encodeString(this.securityPolicyUri, stream); | ||
node_opcua_basic_types_1.encodeByteString(this.senderCertificate, stream); | ||
node_opcua_basic_types_1.encodeByteString(this.receiverCertificateThumbprint, stream); | ||
(0, node_opcua_basic_types_1.encodeString)(this.securityPolicyUri, stream); | ||
(0, node_opcua_basic_types_1.encodeByteString)(this.senderCertificate, stream); | ||
(0, node_opcua_basic_types_1.encodeByteString)(this.receiverCertificateThumbprint, stream); | ||
} | ||
decode(stream) { | ||
super.decode(stream); | ||
this.securityPolicyUri = node_opcua_basic_types_1.decodeString(stream); | ||
this.senderCertificate = node_opcua_basic_types_1.decodeByteString(stream); | ||
this.receiverCertificateThumbprint = node_opcua_basic_types_1.decodeByteString(stream); | ||
this.securityPolicyUri = (0, node_opcua_basic_types_1.decodeString)(stream); | ||
this.senderCertificate = (0, node_opcua_basic_types_1.decodeByteString)(stream); | ||
this.receiverCertificateThumbprint = (0, node_opcua_basic_types_1.decodeByteString)(stream); | ||
} | ||
@@ -70,0 +70,0 @@ } |
@@ -61,7 +61,7 @@ "use strict"; | ||
// 1. timestamp UtcTime The time the Client sent the request. | ||
node_opcua_assert_1.assert(node_opcua_types_1.RequestHeader.schema.fields[1].name === "timestamp"); | ||
(0, node_opcua_assert_1.assert)(node_opcua_types_1.RequestHeader.schema.fields[1].name === "timestamp"); | ||
node_opcua_types_1.RequestHeader.schema.fields[1].defaultValue = () => new Date(); | ||
// 2. requestHandle IntegerId " A requestHandle associated with the request. This client defined handle can | ||
// be used to cancel the request. It is also returned in the response. | ||
node_opcua_assert_1.assert(node_opcua_types_1.RequestHeader.schema.fields[2].name === "requestHandle"); | ||
(0, node_opcua_assert_1.assert)(node_opcua_types_1.RequestHeader.schema.fields[2].name === "requestHandle"); | ||
node_opcua_types_1.RequestHeader.schema.fields[2].defaultValue = 0xDEADBEEF; | ||
@@ -74,3 +74,3 @@ // 3. returnDiagnostics UInt32 A bit mask that identifies the types of vendor-specific diagnostics to be | ||
// 6. additionalHeader ExtensionObject | ||
node_opcua_assert_1.assert(node_opcua_types_1.RequestHeader.schema.fields[6].name === "additionalHeader"); | ||
(0, node_opcua_assert_1.assert)(node_opcua_types_1.RequestHeader.schema.fields[6].name === "additionalHeader"); | ||
node_opcua_types_1.RequestHeader.schema.fields[6].defaultValue = () => null; | ||
@@ -80,3 +80,3 @@ // OPC Unified Architecture, Part 4 $7.27 page 139 | ||
// 0. timestamp UtcTime The time the Server sent the response. | ||
node_opcua_assert_1.assert(node_opcua_types_1.ResponseHeader.schema.fields[0].name === "timestamp"); | ||
(0, node_opcua_assert_1.assert)(node_opcua_types_1.ResponseHeader.schema.fields[0].name === "timestamp"); | ||
node_opcua_types_1.ResponseHeader.schema.fields[0].defaultValue = () => new Date(); | ||
@@ -111,7 +111,7 @@ // 1. requestHandle IntegerId The requestHandle given by the Client to the request. | ||
// algorithm String The cryptography algorithm used to create the signature. | ||
node_opcua_assert_1.assert(node_opcua_types_1.SignatureData.schema.fields[0].name === "algorithm"); | ||
(0, node_opcua_assert_1.assert)(node_opcua_types_1.SignatureData.schema.fields[0].name === "algorithm"); | ||
node_opcua_types_1.SignatureData.schema.fields[0].defaultValue = () => null; | ||
// signature ByteString The digital signature. | ||
node_opcua_assert_1.assert(node_opcua_types_1.SignatureData.schema.fields[1].name === "signature"); | ||
(0, node_opcua_assert_1.assert)(node_opcua_types_1.SignatureData.schema.fields[1].name === "signature"); | ||
node_opcua_types_1.SignatureData.schema.fields[1].defaultValue = () => null; | ||
//# sourceMappingURL=index.js.map |
@@ -11,3 +11,3 @@ "use strict"; | ||
const node_opcua_factory_1 = require("node-opcua-factory"); | ||
const schemaSymmetricAlgorithmSecurityHeader = node_opcua_factory_1.buildStructuredType({ | ||
const schemaSymmetricAlgorithmSecurityHeader = (0, node_opcua_factory_1.buildStructuredType)({ | ||
name: "SymmetricAlgorithmSecurityHeader", | ||
@@ -28,3 +28,3 @@ baseType: "BaseUAObject", | ||
const schema = schemaSymmetricAlgorithmSecurityHeader; | ||
this.tokenId = node_opcua_factory_1.initialize_field(schema.fields[0], options.tokenId); | ||
this.tokenId = (0, node_opcua_factory_1.initialize_field)(schema.fields[0], options.tokenId); | ||
} | ||
@@ -34,3 +34,3 @@ encode(stream) { | ||
super.encode(stream); | ||
node_opcua_basic_types_1.encodeUInt32(this.tokenId, stream); | ||
(0, node_opcua_basic_types_1.encodeUInt32)(this.tokenId, stream); | ||
} | ||
@@ -40,3 +40,3 @@ decode(stream) { | ||
super.decode(stream); | ||
this.tokenId = node_opcua_basic_types_1.decodeUInt32(stream); | ||
this.tokenId = (0, node_opcua_basic_types_1.decodeUInt32)(stream); | ||
} | ||
@@ -43,0 +43,0 @@ } |
{ | ||
"name": "node-opcua-service-secure-channel", | ||
"version": "2.49.0", | ||
"version": "2.51.0", | ||
"description": "pure nodejs OPCUA SDK - module -service-secure-channel", | ||
@@ -13,17 +13,17 @@ "main": "./dist/index.js", | ||
"dependencies": { | ||
"node-opcua-assert": "2.42.0", | ||
"node-opcua-basic-types": "2.47.0", | ||
"node-opcua-binary-stream": "2.42.0", | ||
"node-opcua-data-model": "2.49.0", | ||
"node-opcua-extension-object": "2.49.0", | ||
"node-opcua-factory": "2.49.0", | ||
"node-opcua-nodeid": "2.45.0", | ||
"node-opcua-types": "2.49.0" | ||
"node-opcua-assert": "2.51.0", | ||
"node-opcua-basic-types": "2.51.0", | ||
"node-opcua-binary-stream": "2.51.0", | ||
"node-opcua-data-model": "2.51.0", | ||
"node-opcua-extension-object": "2.51.0", | ||
"node-opcua-factory": "2.51.0", | ||
"node-opcua-nodeid": "2.51.0", | ||
"node-opcua-types": "2.51.0" | ||
}, | ||
"devDependencies": { | ||
"node-opcua-binary-stream": "2.42.0", | ||
"node-opcua-buffer-utils": "2.42.0", | ||
"node-opcua-debug": "2.42.0", | ||
"node-opcua-packet-analyzer": "2.49.0", | ||
"node-opcua-status-code": "2.42.0", | ||
"node-opcua-buffer-utils": "2.51.0", | ||
"node-opcua-debug": "2.51.0", | ||
"node-opcua-packet-analyzer": "2.51.0", | ||
"node-opcua-status-code": "2.51.0", | ||
"should": "^13.2.3" | ||
@@ -46,3 +46,3 @@ }, | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "81654553c6d317fd918ca99b749550eb5e951c23" | ||
"gitHead": "75feb111daf7ec65fa0111e4fa5beb8987fd4945" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
42382
+ Added@types/lodash@4.14.172(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedltx@3.1.1(transitive)
+ Addednode-opcua-assert@2.51.0(transitive)
+ Addednode-opcua-basic-types@2.51.0(transitive)
+ Addednode-opcua-binary-stream@2.51.0(transitive)
+ Addednode-opcua-buffer-utils@2.51.0(transitive)
+ Addednode-opcua-constants@2.51.0(transitive)
+ Addednode-opcua-data-model@2.51.0(transitive)
+ Addednode-opcua-data-value@2.51.0(transitive)
+ Addednode-opcua-date-time@2.51.0(transitive)
+ Addednode-opcua-debug@2.51.0(transitive)
+ Addednode-opcua-enum@2.51.0(transitive)
+ Addednode-opcua-extension-object@2.51.0(transitive)
+ Addednode-opcua-factory@2.51.0(transitive)
+ Addednode-opcua-generator@2.51.0(transitive)
+ Addednode-opcua-guid@2.51.0(transitive)
+ Addednode-opcua-nodeid@2.51.0(transitive)
+ Addednode-opcua-numeric-range@2.51.0(transitive)
+ Addednode-opcua-packet-analyzer@2.51.0(transitive)
+ Addednode-opcua-schemas@2.51.0(transitive)
+ Addednode-opcua-status-code@2.51.0(transitive)
+ Addednode-opcua-types@2.51.0(transitive)
+ Addednode-opcua-utils@2.51.0(transitive)
+ Addednode-opcua-variant@2.51.0(transitive)
+ Addednode-opcua-xml2json@2.51.0(transitive)
- Removed@types/lodash@4.14.170(transitive)
- Removedchalk@4.1.1(transitive)
- Removedinherits@2.0.4(transitive)
- Removedltx@2.10.0(transitive)
- Removednode-opcua-assert@2.42.0(transitive)
- Removednode-opcua-basic-types@2.47.0(transitive)
- Removednode-opcua-binary-stream@2.42.0(transitive)
- Removednode-opcua-buffer-utils@2.42.0(transitive)
- Removednode-opcua-constants@2.42.0(transitive)
- Removednode-opcua-data-model@2.49.0(transitive)
- Removednode-opcua-data-value@2.49.0(transitive)
- Removednode-opcua-date-time@2.42.0(transitive)
- Removednode-opcua-debug@2.42.0(transitive)
- Removednode-opcua-enum@2.42.0(transitive)
- Removednode-opcua-extension-object@2.49.0(transitive)
- Removednode-opcua-factory@2.49.0(transitive)
- Removednode-opcua-generator@2.49.0(transitive)
- Removednode-opcua-guid@2.42.0(transitive)
- Removednode-opcua-nodeid@2.45.0(transitive)
- Removednode-opcua-numeric-range@2.49.0(transitive)
- Removednode-opcua-packet-analyzer@2.49.0(transitive)
- Removednode-opcua-schemas@2.49.0(transitive)
- Removednode-opcua-status-code@2.42.0(transitive)
- Removednode-opcua-types@2.49.0(transitive)
- Removednode-opcua-utils@2.44.0(transitive)
- Removednode-opcua-variant@2.49.0(transitive)
- Removednode-opcua-xml2json@2.49.0(transitive)
Updatednode-opcua-assert@2.51.0
Updatednode-opcua-data-model@2.51.0
Updatednode-opcua-factory@2.51.0
Updatednode-opcua-nodeid@2.51.0
Updatednode-opcua-types@2.51.0