node-opcua-variant
Advanced tools
Comparing version 2.104.0 to 2.105.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
138961
2446
+ Addednode-opcua-assert@2.105.0(transitive)
+ Addednode-opcua-basic-types@2.105.0(transitive)
+ Addednode-opcua-binary-stream@2.105.0(transitive)
+ Addednode-opcua-buffer-utils@2.105.0(transitive)
+ Addednode-opcua-data-model@2.105.0(transitive)
+ Addednode-opcua-date-time@2.105.0(transitive)
+ Addednode-opcua-debug@2.105.0(transitive)
+ Addednode-opcua-enum@2.105.0(transitive)
+ Addednode-opcua-factory@2.105.0(transitive)
+ Addednode-opcua-nodeid@2.105.0(transitive)
+ Addednode-opcua-status-code@2.105.0(transitive)
+ Addednode-opcua-utils@2.105.0(transitive)
- Removednode-opcua-assert@2.104.0(transitive)
- Removednode-opcua-basic-types@2.104.0(transitive)
- Removednode-opcua-binary-stream@2.104.0(transitive)
- Removednode-opcua-buffer-utils@2.104.0(transitive)
- Removednode-opcua-data-model@2.104.0(transitive)
- Removednode-opcua-date-time@2.104.0(transitive)
- Removednode-opcua-debug@2.104.0(transitive)
- Removednode-opcua-enum@2.104.0(transitive)
- Removednode-opcua-factory@2.104.0(transitive)
- Removednode-opcua-nodeid@2.104.0(transitive)
- Removednode-opcua-status-code@2.104.0(transitive)
- Removednode-opcua-utils@2.104.0(transitive)
Updatednode-opcua-assert@2.105.0
Updatednode-opcua-enum@2.105.0
Updatednode-opcua-factory@2.105.0
Updatednode-opcua-nodeid@2.105.0
Updatednode-opcua-utils@2.105.0