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.104.0 to 2.105.0

12

dist/variant.js

@@ -36,5 +36,7 @@ "use strict";

const utils = __importStar(require("node-opcua-utils"));
const node_opcua_debug_1 = require("node-opcua-debug");
const DataType_enum_1 = require("./DataType_enum");
const VariantArrayType_enum_1 = require("./VariantArrayType_enum");
// tslint:disable:no-bitwise
const warningLog = (0, node_opcua_debug_1.make_warningLog)(__filename);
const schemaVariant = (0, node_opcua_factory_1.buildStructuredType)({

@@ -467,8 +469,5 @@ baseType: "BaseUAObject",

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 " + " typed array ", arrayTypeConstructor.constructor.name, " instead");
warningLog("Warning ! an array containing " + DataType_enum_1.DataType[dataType] + " elements has been provided as a generic array. ");
warningLog(" This is inefficient as every array value will " + "have to be coerced and verified against the expected type");
warningLog(" It is highly recommended that you use a " + " typed array ", arrayTypeConstructor.constructor.name, " instead");
}

@@ -648,3 +647,2 @@ return newArr;

if (!isFinite(value)) {
// xx console.log("xxx ", value, ttt);
throw new Error("expecting a number " + value);

@@ -651,0 +649,0 @@ }

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

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

"dependencies": {
"node-opcua-assert": "2.104.0",
"node-opcua-basic-types": "2.104.0",
"node-opcua-binary-stream": "2.104.0",
"node-opcua-data-model": "2.104.0",
"node-opcua-enum": "2.104.0",
"node-opcua-factory": "2.104.0",
"node-opcua-nodeid": "2.104.0",
"node-opcua-utils": "2.104.0"
"node-opcua-assert": "2.105.0",
"node-opcua-basic-types": "2.105.0",
"node-opcua-binary-stream": "2.105.0",
"node-opcua-data-model": "2.105.0",
"node-opcua-enum": "2.105.0",
"node-opcua-factory": "2.105.0",
"node-opcua-nodeid": "2.105.0",
"node-opcua-utils": "2.105.0"
},

@@ -29,8 +29,8 @@ "devDependencies": {

"lodash": "4.17.21",
"node-opcua-benchmarker": "2.104.0",
"node-opcua-debug": "2.104.0",
"node-opcua-extension-object": "2.104.0",
"node-opcua-numeric-range": "2.104.0",
"node-opcua-packet-analyzer": "2.104.0",
"node-opcua-status-code": "2.104.0",
"node-opcua-benchmarker": "2.105.0",
"node-opcua-debug": "2.105.0",
"node-opcua-extension-object": "2.105.0",
"node-opcua-numeric-range": "2.105.0",
"node-opcua-packet-analyzer": "2.105.0",
"node-opcua-status-code": "2.105.0",
"should": "^13.2.3",

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

"homepage": "http://node-opcua.github.io/",
"gitHead": "3cd6d355e8b3c66822d08a3ca682659ea5d1a55d",
"gitHead": "41c30f321debfe92128905d97a52426b9d7f9b9e",
"files": [

@@ -57,0 +57,0 @@ "dist",

@@ -37,2 +37,3 @@ /**

import * as utils from "node-opcua-utils";
import { make_warningLog } from "node-opcua-debug";

@@ -44,2 +45,4 @@ import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream";

const warningLog = make_warningLog(__filename);
const schemaVariant = buildStructuredType({

@@ -564,10 +567,7 @@ baseType: "BaseUAObject",

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(
warningLog("Warning ! an array containing " + DataType[dataType] + " elements has been provided as a generic array. ");
warningLog(
" 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(
warningLog(
" It is highly recommended that you use a " + " typed array ",

@@ -787,3 +787,2 @@ arrayTypeConstructor.constructor.name,

if (!isFinite(value)) {
// xx console.log("xxx ", value, ttt);
throw new Error("expecting a number " + value);

@@ -790,0 +789,0 @@ }

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