Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-opcua-variant

Package Overview
Dependencies
Maintainers
1
Versions
201
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.1.6 to 2.2.0

tsconfig.tsbuildinfo

0

dist/DataType_enum.d.ts

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ "use strict";

/**
* @module node-opcua-variant
*/
/// <reference types="node" />
import { BaseUAObject, StructuredTypeSchema } from "node-opcua-factory";

@@ -59,3 +60,3 @@ import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream";

export declare function isValidVariant(arrayType: VariantArrayType, dataType: DataType, value: any, dimensions?: number[] | null): boolean;
export declare function buildVariantArray(dataType: DataType, nbElements: number, defaultValue: any): any[] | Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array;
export declare function buildVariantArray(dataType: DataType, nbElements: number, defaultValue: any): any[] | Uint8Array | Uint16Array | Uint32Array | Int8Array | Int16Array | Int32Array | Float32Array | Float64Array;
/***

@@ -67,2 +68,14 @@ * returns true if the two variant represent the same value

export declare function sameVariant(v1: Variant, v2: Variant): boolean;
export interface VariantOptionsT<T, DT extends DataType> extends VariantOptions {
dataType: DT;
arrayType?: VariantArrayType | string;
value: T;
dimensions?: number[] | null;
}
export interface VariantT<T, DT extends DataType> extends Variant {
value: T;
dataType: DT;
}
export declare type VariantByteString = VariantT<Buffer, DataType.ByteString>;
export declare type VariantDouble = VariantT<number, DataType.Double>;
export {};

4

dist/variant.js

@@ -131,5 +131,5 @@ "use strict";

}
exports.Variant = Variant;
Variant.schema = schemaVariant;
Variant.coerce = _coerceVariant;
exports.Variant = Variant;
Variant.prototype.schema = schemaVariant;

@@ -391,3 +391,3 @@ function variantToString(self, options) {

throw new Error("Invalid variant arrayType: " + options.arrayType.toString() +
" dataType: " + options.dataType.toString() + " value:" + options.value);
" dataType: " + options.dataType.toString() + " value:" + options.value + " type= " + (typeof options.value));
}

@@ -394,0 +394,0 @@ }

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ module.exports = {

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

@@ -14,18 +14,18 @@ "main": "./dist/index.js",

"node-opcua-assert": "^2.0.0",
"node-opcua-basic-types": "^2.1.6",
"node-opcua-data-model": "^2.1.6",
"node-opcua-enum": "^2.1.0",
"node-opcua-extension-object": "^2.1.6",
"node-opcua-factory": "^2.1.6",
"node-opcua-nodeid": "^2.1.6",
"node-opcua-utils": "^2.1.6",
"node-opcua-basic-types": "^2.2.0",
"node-opcua-data-model": "^2.2.0",
"node-opcua-enum": "^2.2.0",
"node-opcua-extension-object": "^2.2.0",
"node-opcua-factory": "^2.2.0",
"node-opcua-nodeid": "^2.2.0",
"node-opcua-utils": "^2.2.0",
"underscore": "^1.9.1"
},
"devDependencies": {
"node-opcua-benchmarker": "^2.1.0",
"node-opcua-binary-stream": "^2.1.0",
"node-opcua-debug": "^2.1.0",
"node-opcua-numeric-range": "^2.1.6",
"node-opcua-packet-analyzer": "^2.1.6",
"node-opcua-status-code": "^2.1.6",
"node-opcua-benchmarker": "^2.2.0",
"node-opcua-binary-stream": "^2.2.0",
"node-opcua-debug": "^2.2.0",
"node-opcua-numeric-range": "^2.2.0",
"node-opcua-packet-analyzer": "^2.2.0",
"node-opcua-status-code": "^2.2.0",
"should": "13.2.3",

@@ -49,3 +49,3 @@ "source-map-support": "^0.5.13"

"homepage": "http://node-opcua.github.io/",
"gitHead": "c8e1607923cd5bbb4cd916a5d26d9d8e4948df41"
"gitHead": "e77e0371580d04e874b2023f8a5751c3608bc3f9"
}

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -490,3 +490,3 @@ /**

throw new Error("Invalid variant arrayType: " + options.arrayType.toString() +
" dataType: " + options.dataType.toString() + " value:" + options.value);
" dataType: " + options.dataType.toString() + " value:" + options.value + " type= " + (typeof options.value));
}

@@ -1045,1 +1045,15 @@ }

registerSpecialVariantEncoder(Variant);
export interface VariantOptionsT<T, DT extends DataType> extends VariantOptions {
dataType: DT;
arrayType?: VariantArrayType | string;
value: T;
dimensions?: number[] | null;
}
export interface VariantT<T, DT extends DataType> extends Variant {
value: T;
dataType: DT;
}
export declare type VariantByteString = VariantT<Buffer, DataType.ByteString>;
export declare type VariantDouble = VariantT<number, DataType.Double>;

@@ -0,0 +0,0 @@ {

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