New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-opcua-basic-types

Package Overview
Dependencies
Maintainers
1
Versions
171
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-basic-types - npm Package Compare versions

Comparing version 2.0.0-alpha.19 to 2.0.0-alpha.21

2

dist/array.js

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

}
node_opcua_assert_1.default(_.isArray(arr));
node_opcua_assert_1.assert(_.isArray(arr));
stream.writeUInt32(arr.length);

@@ -22,0 +22,0 @@ for (const value of arr) {

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

function encodeBoolean(value, stream) {
node_opcua_assert_1.default(isValidBoolean(value));
node_opcua_assert_1.assert(isValidBoolean(value));
stream.writeUInt8(value ? 1 : 0);

@@ -19,0 +19,0 @@ }

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

function encodeInt16(value, stream) {
node_opcua_assert_1.default(_.isFinite(value));
node_opcua_assert_1.assert(_.isFinite(value));
stream.writeInt16(value);

@@ -62,3 +62,3 @@ }

function encodeInt32(value, stream) {
node_opcua_assert_1.default(_.isFinite(value));
node_opcua_assert_1.assert(_.isFinite(value));
stream.writeInteger(value);

@@ -102,3 +102,3 @@ }

function encodeInt8(value, stream) {
node_opcua_assert_1.default(isValidInt8(value));
node_opcua_assert_1.assert(isValidInt8(value));
stream.writeInt8(value);

@@ -165,4 +165,4 @@ }

function constructInt64(high, low) {
node_opcua_assert_1.default(low >= 0 && low <= 0xffffffff);
node_opcua_assert_1.default(high >= 0 && high <= 0xffffffff);
node_opcua_assert_1.assert(low >= 0 && low <= 0xffffffff);
node_opcua_assert_1.assert(high >= 0 && high <= 0xffffffff);
return [high, low];

@@ -179,4 +179,4 @@ }

if (value instanceof Array) {
node_opcua_assert_1.default(_.isNumber(value[0]));
node_opcua_assert_1.default(_.isNumber(value[1]));
node_opcua_assert_1.assert(_.isNumber(value[0]));
node_opcua_assert_1.assert(_.isNumber(value[1]));
return value;

@@ -256,3 +256,3 @@ }

if (value.hasOwnProperty("value")) {
node_opcua_assert_1.default(value.constructor.name === "EnumItem");
node_opcua_assert_1.assert(value.constructor.name === "EnumItem");
return parseInt(value.value, 10);

@@ -259,0 +259,0 @@ }

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

}
node_opcua_assert_1.default(nodeId.hasOwnProperty("identifierType"));
node_opcua_assert_1.assert(nodeId.hasOwnProperty("identifierType"));
let encodingByte = 0;

@@ -98,3 +98,3 @@ if (nodeId.identifierType === node_opcua_nodeid_1.NodeIdType.NUMERIC) {

default:
node_opcua_assert_1.default(encodingByte === 4 /* Guid */);
node_opcua_assert_1.assert(encodingByte === 4 /* Guid */);
stream.writeUInt16(nodeId.namespace);

@@ -113,3 +113,3 @@ guid_1.encodeGuid(nodeId.value, stream);

function encodeExpandedNodeId(expandedNodeId, stream) {
node_opcua_assert_1.default(expandedNodeId, "encodeExpandedNodeId: must provide a valid expandedNodeId");
node_opcua_assert_1.assert(expandedNodeId, "encodeExpandedNodeId: must provide a valid expandedNodeId");
const encodingByte = nodeID_encodingByte(expandedNodeId);

@@ -167,3 +167,3 @@ _encodeNodeId(encodingByte, expandedNodeId, stream);

nodeIdType = node_opcua_nodeid_1.NodeIdType.GUID;
node_opcua_assert_1.default(guid_1.isValidGuid(value));
node_opcua_assert_1.assert(guid_1.isValidGuid(value));
break;

@@ -170,0 +170,0 @@ }

{
"name": "node-opcua-basic-types",
"version": "2.0.0-alpha.19",
"version": "2.0.0-alpha.21",
"description": "pure nodejs OPCUA SDK - module -basic-types",

@@ -15,16 +15,16 @@ "main": "./dist/index.js",

"node-opcua-assert": "^2.0.0-alpha.10",
"node-opcua-binary-stream": "^2.0.0-alpha.18",
"node-opcua-buffer-utils": "^2.0.0-alpha.18",
"node-opcua-date-time": "^2.0.0-alpha.18",
"node-opcua-enum": "^2.0.0-alpha.18",
"node-opcua-binary-stream": "^2.0.0-alpha.21",
"node-opcua-buffer-utils": "^2.0.0-alpha.21",
"node-opcua-date-time": "^2.0.0-alpha.21",
"node-opcua-enum": "^2.0.0-alpha.21",
"node-opcua-guid": "^2.0.0-alpha.18",
"node-opcua-nodeid": "^2.0.0-alpha.19",
"node-opcua-status-code": "^2.0.0-alpha.19",
"node-opcua-utils": "^2.0.0-alpha.19",
"node-opcua-nodeid": "^2.0.0-alpha.21",
"node-opcua-status-code": "^2.0.0-alpha.21",
"node-opcua-utils": "^2.0.0-alpha.21",
"underscore": "^1.9.1"
},
"devDependencies": {
"@types/node": "^11.13.0",
"@types/underscore": "^1.8.13",
"node-opcua-debug": "^2.0.0-alpha.18",
"@types/node": "^11.13.2",
"@types/underscore": "^1.8.14",
"node-opcua-debug": "^2.0.0-alpha.21",
"should": "13.2.3"

@@ -47,3 +47,3 @@ },

"homepage": "http://node-opcua.github.io/",
"gitHead": "0343e8c37806056ab5bcfb1c5c083e910c7252cb"
"gitHead": "5cbfb647cd06619685d1968520d0bad368858036"
}
/***
* @module node-opcua-basic-types
*/
import assert from "node-opcua-assert";
import { assert } from "node-opcua-assert";
import { BinaryStream, BinaryStreamSizeCalculator, OutputBinaryStream } from "node-opcua-binary-stream" ;

@@ -6,0 +6,0 @@ import * as _ from "underscore";

/***
* @module node-opcua-basic-types
*/
import assert from "node-opcua-assert";
import { assert } from "node-opcua-assert";
import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream" ;

@@ -6,0 +6,0 @@

/***
* @module node-opcua-basic-types
*/
import assert from "node-opcua-assert";
import { assert } from "node-opcua-assert";
import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream" ;

@@ -6,0 +6,0 @@ import * as _ from "underscore";

/***
* @module node-opcua-basic-types
*/
import assert from "node-opcua-assert";
import { assert } from "node-opcua-assert";
import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream";

@@ -6,0 +6,0 @@ import { Guid } from "node-opcua-guid";

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

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