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

node-opcua-data-model

Package Overview
Dependencies
Maintainers
1
Versions
190
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-data-model - npm Package Compare versions

Comparing version 2.0.0-alpha.18 to 2.0.0-alpha.19

6

dist/attributeIds.d.ts

@@ -24,2 +24,8 @@ export declare enum AttributeIds {

UserExecutable = 22,
DataTypeDefinition = 23,
RolePermissions = 24,
UserRolePermissions = 25,
AccessRestrictions = 26,
AccessLevelEx = 27,
LAST = 27,
INVALID = 999

@@ -26,0 +32,0 @@ }

9

dist/attributeIds.js

@@ -32,2 +32,9 @@ "use strict";

AttributeIds[AttributeIds["UserExecutable"] = 22] = "UserExecutable";
// new in 1.04
AttributeIds[AttributeIds["DataTypeDefinition"] = 23] = "DataTypeDefinition";
AttributeIds[AttributeIds["RolePermissions"] = 24] = "RolePermissions";
AttributeIds[AttributeIds["UserRolePermissions"] = 25] = "UserRolePermissions";
AttributeIds[AttributeIds["AccessRestrictions"] = 26] = "AccessRestrictions";
AttributeIds[AttributeIds["AccessLevelEx"] = 27] = "AccessLevelEx";
AttributeIds[AttributeIds["LAST"] = 27] = "LAST";
AttributeIds[AttributeIds["INVALID"] = 999] = "INVALID";

@@ -39,5 +46,5 @@ })(AttributeIds = exports.AttributeIds || (exports.AttributeIds = {}));

node_opcua_assert_1.assert(_.isFinite(attributeId));
return attributeId >= 1 && attributeId <= 22;
return attributeId >= 1 && attributeId <= AttributeIds.LAST;
}
exports.isValidAttributeId = isValidAttributeId;
//# sourceMappingURL=attributeIds.js.map

6

dist/localized_text.js

@@ -16,2 +16,4 @@ "use strict";

if (!value.hasOwnProperty("text")) {
// tslint:disable:no-console
console.log("value = ", value);
throw new Error("cannot coerce to coerceLocalizedText");

@@ -30,3 +32,3 @@ }

name: "locale",
fieldType: "LocaleId",
fieldType: "LocaleId"
},

@@ -38,3 +40,3 @@ {

}
],
]
});

@@ -41,0 +43,0 @@ schemaLocalizedText.coerce = coerceLocalizedText;

{
"name": "node-opcua-data-model",
"version": "2.0.0-alpha.18",
"version": "2.0.0-alpha.19",
"description": "pure nodejs OPCUA SDK - module -data-model",

@@ -14,13 +14,13 @@ "scripts": {

"node-opcua-assert": "^2.0.0-alpha.10",
"node-opcua-basic-types": "^2.0.0-alpha.18",
"node-opcua-basic-types": "^2.0.0-alpha.19",
"node-opcua-binary-stream": "^2.0.0-alpha.18",
"node-opcua-enum": "^2.0.0-alpha.18",
"node-opcua-factory": "^2.0.0-alpha.18",
"node-opcua-nodeid": "^2.0.0-alpha.18",
"node-opcua-status-code": "^2.0.0-alpha.18",
"node-opcua-utils": "^2.0.0-alpha.18",
"node-opcua-factory": "^2.0.0-alpha.19",
"node-opcua-nodeid": "^2.0.0-alpha.19",
"node-opcua-status-code": "^2.0.0-alpha.19",
"node-opcua-utils": "^2.0.0-alpha.19",
"underscore": "^1.9.1"
},
"devDependencies": {
"node-opcua-packet-analyzer": "^2.0.0-alpha.18",
"node-opcua-packet-analyzer": "^2.0.0-alpha.19",
"should": "13.2.3",

@@ -44,3 +44,3 @@ "source-map-support": "^0.5.11"

"homepage": "http://node-opcua.github.io/",
"gitHead": "a92d7f1be990cfaadd5f52560e2454e252b0b081"
"gitHead": "0343e8c37806056ab5bcfb1c5c083e910c7252cb"
}

@@ -8,33 +8,40 @@ /**

export enum AttributeIds {
NodeId= 1,
NodeClass= 2,
BrowseName= 3,
DisplayName= 4,
Description= 5,
WriteMask= 6,
UserWriteMask= 7,
IsAbstract= 8,
Symmetric= 9,
InverseName= 10,
ContainsNoLoops= 11,
EventNotifier= 12,
Value= 13,
DataType= 14,
ValueRank= 15,
ArrayDimensions= 16,
AccessLevel= 17,
UserAccessLevel= 18,
MinimumSamplingInterval= 19,
Historizing= 20,
Executable= 21,
UserExecutable= 22,
INVALID= 999
NodeId = 1,
NodeClass = 2,
BrowseName = 3,
DisplayName = 4,
Description = 5,
WriteMask = 6,
UserWriteMask = 7,
IsAbstract = 8,
Symmetric = 9,
InverseName = 10,
ContainsNoLoops = 11,
EventNotifier = 12,
Value = 13,
DataType = 14,
ValueRank = 15,
ArrayDimensions = 16,
AccessLevel = 17,
UserAccessLevel = 18,
MinimumSamplingInterval = 19,
Historizing = 20,
Executable = 21,
UserExecutable = 22,
// new in 1.04
DataTypeDefinition = 23,
RolePermissions = 24,
UserRolePermissions = 25,
AccessRestrictions = 26,
AccessLevelEx = 27,
LAST = 27,
INVALID = 999
}
// deprecated use getAttributeName(attributeId: AttributeIds);
export const attributeNameById = _.invert(AttributeIds);
export const attributeNameById = _.invert(AttributeIds);
export function isValidAttributeId(attributeId: any) {
assert(_.isFinite(attributeId));
return attributeId >= 1 && attributeId <= 22;
return attributeId >= 1 && attributeId <= AttributeIds.LAST;
}

@@ -27,3 +27,3 @@ /**

if (typeof value === "string") {
return new LocalizedText({locale: null, text: value});
return new LocalizedText({ locale: null, text: value });
}

@@ -34,2 +34,4 @@ if (value instanceof LocalizedText) {

if (!value.hasOwnProperty("text")) {
// tslint:disable:no-console
console.log("value = ", value);
throw new Error("cannot coerce to coerceLocalizedText");

@@ -51,3 +53,3 @@ }

fieldType: "LocaleId",
fieldType: "LocaleId"
},

@@ -61,3 +63,3 @@ {

}
],
]
});

@@ -91,2 +93,3 @@ schemaLocalizedText.coerce = coerceLocalizedText;

}
public locale: LocaleId;

@@ -189,2 +192,3 @@ public text: UAString;

}
// not an extension object registerClassDefinition("LocalizedText", LocalizedText);

@@ -207,7 +211,11 @@ registerSpecialVariantEncoder(LocalizedText);

const emptyLocalizedText = new LocalizedText({});
export function encodeLocalizedText(value: LocalizedText, stream: OutputBinaryStream): void {
if (value) {
value.encode(stream);
} else { emptyLocalizedText.encode(stream); }
} else {
emptyLocalizedText.encode(stream);
}
}
export function decodeLocalizedText(stream: BinaryStream): LocalizedText {

@@ -214,0 +222,0 @@ const value = new LocalizedText({});

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