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

node-opcua-factory

Package Overview
Dependencies
Maintainers
1
Versions
184
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-factory - npm Package Compare versions

Comparing version 2.1.6 to 2.2.0

tsconfig.tsbuildinfo

0

dist/constructor_type.d.ts

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=constructor_type.js.map

@@ -0,0 +0,0 @@ import { ExpandedNodeId } from "node-opcua-nodeid";

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

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

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

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

@@ -41,2 +41,3 @@ "use strict";

if (exists) {
// tslint:disable-next-line: no-console
console.log(schema);

@@ -43,0 +44,0 @@ throw new Error(`Basic Type ${schema.name} already registered`);

import { ConstructorFunc } from "./constructor_type";
export declare function registerSpecialVariantEncoder(constructor: ConstructorFunc): void;

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

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

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

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

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

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

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

export declare function generate_new_id(): number;
export declare function next_available_id(): number;
export declare function is_internal_id(value: number): boolean;

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

@@ -0,0 +0,0 @@ import { FieldType, StructuredTypeField } from "./types";

21

dist/factories_schema_helpers.js

@@ -40,17 +40,12 @@ "use strict";

node_opcua_assert_1.assert(!field.isArray);
try {
if (field.category === types_1.FieldCategory.complex) {
if (field.fieldTypeConstructor) {
return new field.fieldTypeConstructor(value);
}
else {
debugLog("xxxx => missing constructor for field type", field.fieldType);
}
if (field.category === types_1.FieldCategory.complex) {
if (field.fieldTypeConstructor) {
return new field.fieldTypeConstructor(value);
}
const defaultValue = _t.computer_default_value ? _t.computer_default_value(field.defaultValue) : field.defaultValue;
value = _t.initialize_value(value, defaultValue);
else {
debugLog("xxxx => missing constructor for field type", field.fieldType);
}
}
catch (err) {
/* empty */
}
const defaultValue = _t.computer_default_value ? _t.computer_default_value(field.defaultValue) : field.defaultValue;
value = _t.initialize_value(value, defaultValue);
if (field.validate) {

@@ -57,0 +52,0 @@ if (!field.validate(value)) {

@@ -0,0 +0,0 @@ import { FieldType, StructuredTypeOptions, TypeSchemaBase } from "./types";

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

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

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

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

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

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

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

"node-opcua-assert": "^2.0.0",
"node-opcua-basic-types": "^2.1.6",
"node-opcua-binary-stream": "^2.1.0",
"node-opcua-enum": "^2.1.0",
"node-opcua-basic-types": "^2.2.0",
"node-opcua-binary-stream": "^2.2.0",
"node-opcua-enum": "^2.2.0",
"node-opcua-guid": "^2.1.0",
"node-opcua-nodeid": "^2.1.6",
"node-opcua-status-code": "^2.1.6",
"node-opcua-utils": "^2.1.6",
"node-opcua-nodeid": "^2.2.0",
"node-opcua-status-code": "^2.2.0",
"node-opcua-utils": "^2.2.0",
"underscore": "^1.9.1"
},
"devDependencies": {
"node-opcua-debug": "^2.1.0"
"node-opcua-debug": "^2.2.0"
},

@@ -43,3 +43,3 @@ "author": "Etienne Rossignon",

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

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

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

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

@@ -11,3 +11,3 @@ /**

import { findSimpleType, registerType, hasBuiltInType } from "./factories_builtin_types";
import { findSimpleType, hasBuiltInType, registerType } from "./factories_builtin_types";
import { BasicTypeDefinition, BasicTypeDefinitionOptions } from "./types";

@@ -57,2 +57,3 @@

if (exists) {
// tslint:disable-next-line: no-console
console.log(schema);

@@ -59,0 +60,0 @@ throw new Error(`Basic Type ${schema.name} already registered`);

@@ -314,4 +314,4 @@ /**

const typeSchema = _defaultTypeMap.get(name);
if(!typeSchema) {
throw new Error("Cannot find schema for simple type "+ name);
if (!typeSchema) {
throw new Error("Cannot find schema for simple type " + name);
}

@@ -318,0 +318,0 @@ assert(typeSchema instanceof TypeSchemaBase);

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

@@ -43,18 +43,13 @@ /**

try {
if (field.category === FieldCategory.complex) {
if (field.fieldTypeConstructor) {
return new field.fieldTypeConstructor(value);
} else {
debugLog("xxxx => missing constructor for field type", field.fieldType);
}
if (field.category === FieldCategory.complex) {
if (field.fieldTypeConstructor) {
return new field.fieldTypeConstructor(value);
} else {
debugLog("xxxx => missing constructor for field type", field.fieldType);
}
}
const defaultValue = _t.computer_default_value ? _t.computer_default_value(field.defaultValue) : field.defaultValue;
const defaultValue = _t.computer_default_value ? _t.computer_default_value(field.defaultValue) : field.defaultValue;
value = _t.initialize_value(value, defaultValue);
} catch (err) {
/* empty */
}
value = _t.initialize_value(value, defaultValue);

@@ -61,0 +56,0 @@ if (field.validate) {

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

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

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

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

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