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
200
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.0.0-alpha.8 to 2.0.0-alpha.9

3

dist/DataType_enum.d.ts

@@ -0,1 +1,4 @@

/**
* @module node-opcua-variant
*/
import { Enum } from "node-opcua-enum";

@@ -2,0 +5,0 @@ export declare enum DataType {

3

dist/DataType_enum.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @module node-opcua-variant
*/
const node_opcua_factory_1 = require("node-opcua-factory");

@@ -7,0 +4,0 @@ var DataType;

@@ -0,3 +1,6 @@

/**
* @module node-opcua-variant
*/
export * from "./DataType_enum";
export * from "./VariantArrayType_enum";
export * from "./variant";

@@ -6,2 +6,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
/**
* @module node-opcua-variant
*/
__export(require("./DataType_enum"));

@@ -8,0 +11,0 @@ __export(require("./VariantArrayType_enum"));

@@ -59,3 +59,3 @@ /**

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[] | Float32Array | Float64Array | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array;
export declare function buildVariantArray(dataType: DataType, nbElements: number, defaultValue: any): any[] | Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array;
/***

@@ -62,0 +62,0 @@ * returns true if the two variant represent the same value

@@ -423,6 +423,9 @@ "use strict";

if (arrayTypeConstructor && displayWarning && n > 10) {
// tslint:disable-next-line:no-console
console.log("Warning ! an array containing " + DataType_enum_1.DataType[dataType] +
" elements has been provided as a generic array. ");
// tslint:disable-next-line:no-console
console.log(" This is inefficient as every array value will " +
"have to be coerced and verified against the expected type");
// tslint:disable-next-line:no-console
console.log(" It is highly recommended that you use a " +

@@ -470,4 +473,4 @@ " typed array ", arrayTypeConstructor.constructor.name, " instead");

catch (err) {
console.log("DATATYPE", dataType);
console.log("value", value.length);
// tslint:disable-next-line:no-console
console.log("encodeVariantArray error : DATATYPE", dataType, "\nvalue", value.length);
}

@@ -602,3 +605,3 @@ }

if (!_.isFinite(value)) {
//xx console.log("xxx ", value, ttt);
// xx console.log("xxx ", value, ttt);
}

@@ -605,0 +608,0 @@ node_opcua_assert_1.assert(_.isFinite(value), "expecting a number");

{
"name": "node-opcua-variant",
"version": "2.0.0-alpha.8",
"version": "2.0.0-alpha.9",
"description": "pure nodejs OPCUA SDK - module -variant",

@@ -13,19 +13,19 @@ "main": "./dist/index.js",

"dependencies": {
"node-opcua-assert": "^2.0.0-alpha.8",
"node-opcua-basic-types": "^2.0.0-alpha.8",
"node-opcua-data-model": "^2.0.0-alpha.8",
"node-opcua-enum": "^2.0.0-alpha.8",
"node-opcua-factory": "^2.0.0-alpha.8",
"node-opcua-nodeid": "^2.0.0-alpha.8",
"node-opcua-utils": "^2.0.0-alpha.8",
"node-opcua-assert": "^2.0.0-alpha.9",
"node-opcua-basic-types": "^2.0.0-alpha.9",
"node-opcua-data-model": "^2.0.0-alpha.9",
"node-opcua-enum": "^2.0.0-alpha.9",
"node-opcua-factory": "^2.0.0-alpha.9",
"node-opcua-nodeid": "^2.0.0-alpha.9",
"node-opcua-utils": "^2.0.0-alpha.9",
"underscore": "^1.9.1"
},
"devDependencies": {
"node-opcua-benchmarker": "^2.0.0-alpha.8",
"node-opcua-binary-stream": "^2.0.0-alpha.8",
"node-opcua-debug": "^2.0.0-alpha.8",
"node-opcua-generator": "^2.0.0-alpha.8",
"node-opcua-numeric-range": "^2.0.0-alpha.8",
"node-opcua-packet-analyzer": "^2.0.0-alpha.8",
"node-opcua-status-code": "^2.0.0-alpha.8",
"node-opcua-benchmarker": "^2.0.0-alpha.9",
"node-opcua-binary-stream": "^2.0.0-alpha.9",
"node-opcua-debug": "^2.0.0-alpha.9",
"node-opcua-generator": "^2.0.0-alpha.9",
"node-opcua-numeric-range": "^2.0.0-alpha.9",
"node-opcua-packet-analyzer": "^2.0.0-alpha.9",
"node-opcua-status-code": "^2.0.0-alpha.9",
"should": "13.2.3",

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

"homepage": "http://node-opcua.github.io/",
"gitHead": "7bbf38d5a3cd29cb6aed6ca38078f4d89d3f956a"
"gitHead": "cd7120d1840593757f0f3c9e53be4e85883dc0e6"
}
/**
* @module node-opcua-variant
*/
import { Enum } from "node-opcua-enum";
import { registerEnumeration } from "node-opcua-factory";
import { Enum } from "node-opcua-enum";

@@ -37,4 +37,5 @@ export enum DataType {

name: "DataType",
enumValues: DataType
};
export const _enumerationDataType: Enum = registerEnumeration(schemaDataType);

@@ -0,3 +1,6 @@

/**
* @module node-opcua-variant
*/
export * from "./DataType_enum";
export * from "./VariantArrayType_enum";
export * from "./variant";

@@ -544,6 +544,9 @@ /**

if (arrayTypeConstructor && displayWarning && n > 10) {
// tslint:disable-next-line:no-console
console.log("Warning ! an array containing " + DataType[dataType] +
" elements has been provided as a generic array. ");
// tslint:disable-next-line:no-console
console.log(" This is inefficient as every array value will " +
"have to be coerced and verified against the expected type");
// tslint:disable-next-line:no-console
console.log(" It is highly recommended that you use a " +

@@ -605,4 +608,4 @@ " typed array ", arrayTypeConstructor.constructor.name, " instead");

} catch (err) {
console.log("DATATYPE", dataType);
console.log("value", value.length);
// tslint:disable-next-line:no-console
console.log("encodeVariantArray error : DATATYPE", dataType, "\nvalue", value.length);
}

@@ -758,3 +761,3 @@ }

if (!_.isFinite(value)) {
//xx console.log("xxx ", value, ttt);
// xx console.log("xxx ", value, ttt);
}

@@ -761,0 +764,0 @@ assert(_.isFinite(value), "expecting a number");

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