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

node-opcua-variant

Package Overview
Dependencies
Maintainers
1
Versions
202
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-variant - npm Package Compare versions

Comparing version 2.88.0 to 2.89.0

4

dist/variant.d.ts

@@ -37,3 +37,3 @@ /// <reference types="node" />

}
export declare type VariantLike = VariantOptions;
export type VariantLike = VariantOptions;
/***

@@ -62,3 +62,3 @@ * @private

*/
export declare type BufferedArray2 = Float32Array | Float64Array | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array;
export type BufferedArray2 = Float32Array | Float64Array | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array;
export declare function coerceVariantType(dataType: DataType, value: undefined | any): any;

@@ -65,0 +65,0 @@ export declare function isValidVariant(arrayType: VariantArrayType, dataType: DataType, value: unknown, dimensions?: number[] | null): boolean;

@@ -184,4 +184,3 @@ "use strict";

}
if (variant.dimensions) {
(0, node_opcua_assert_1.assert)(variant.arrayType === VariantArrayType_enum_1.VariantArrayType.Matrix);
if (variant.dimensions && variant.arrayType === VariantArrayType_enum_1.VariantArrayType.Matrix) {
(0, node_opcua_assert_1.assert)(variant.dimensions.length >= 0);

@@ -188,0 +187,0 @@ encodingByte |= exports.VARIANT_ARRAY_DIMENSIONS_MASK;

{
"name": "node-opcua-variant",
"version": "2.88.0",
"version": "2.89.0",
"description": "pure nodejs OPCUA SDK - module -variant",

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

"node-opcua-assert": "2.88.0",
"node-opcua-basic-types": "2.88.0",
"node-opcua-binary-stream": "2.88.0",
"node-opcua-data-model": "2.88.0",
"node-opcua-basic-types": "2.89.0",
"node-opcua-binary-stream": "2.89.0",
"node-opcua-data-model": "2.89.0",
"node-opcua-enum": "2.88.0",
"node-opcua-factory": "2.88.0",
"node-opcua-factory": "2.89.0",
"node-opcua-nodeid": "2.88.0",

@@ -31,6 +31,6 @@ "node-opcua-utils": "2.88.0"

"node-opcua-debug": "2.88.0",
"node-opcua-extension-object": "2.88.0",
"node-opcua-numeric-range": "2.88.0",
"node-opcua-packet-analyzer": "2.88.0",
"node-opcua-status-code": "2.88.0",
"node-opcua-extension-object": "2.89.0",
"node-opcua-numeric-range": "2.89.0",
"node-opcua-packet-analyzer": "2.89.0",
"node-opcua-status-code": "2.89.0",
"should": "^13.2.3",

@@ -54,3 +54,3 @@ "underscore": "^1.13.6"

"homepage": "http://node-opcua.github.io/",
"gitHead": "0c20078b474f36855b799557f8fe931dbe20c2ca"
"gitHead": "93d5502a1b71afbb5e5fa56846615c412b63cc1b"
}

@@ -252,4 +252,3 @@ /**

}
if (variant.dimensions) {
assert(variant.arrayType === VariantArrayType.Matrix);
if (variant.dimensions && variant.arrayType === VariantArrayType.Matrix) {
assert(variant.dimensions.length >= 0);

@@ -423,3 +422,3 @@ encodingByte |= VARIANT_ARRAY_DIMENSIONS_MASK;

"Variant#constructor : when using UInt64 ou Int64" +
" arrayType must be specified , as automatic detection cannot be made"
" arrayType must be specified , as automatic detection cannot be made"
);

@@ -453,7 +452,7 @@ } else {

"Matrix Variant : invalid value size = options.value.length " +
options.value.length +
"!=" +
calculate_product(options.dimensions) +
" => " +
JSON.stringify(options.dimensions)
options.value.length +
"!=" +
calculate_product(options.dimensions) +
" => " +
JSON.stringify(options.dimensions)
);

@@ -473,10 +472,10 @@ }

"Invalid variant arrayType: " +
VariantArrayType[options.arrayType] +
" dataType: " +
DataType[options.dataType] +
" value:" +
options.value +
" (javascript type = " +
typeof options.value +
" )"
VariantArrayType[options.arrayType] +
" dataType: " +
DataType[options.dataType] +
" value:" +
options.value +
" (javascript type = " +
typeof options.value +
" )"
);

@@ -540,3 +539,3 @@ }

BYTES_PER_ELEMENT: number;
new (buffer: any): any;
new(buffer: any): any;
}

@@ -833,6 +832,6 @@

value === null ||
DataType.Int64 === dataType ||
DataType.ByteString === dataType ||
DataType.UInt64 === dataType ||
!(value instanceof Array)
DataType.Int64 === dataType ||
DataType.ByteString === dataType ||
DataType.UInt64 === dataType ||
!(value instanceof Array)
);

@@ -839,0 +838,0 @@ assert(value === null || !(value instanceof Int32Array));

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