node-opcua-basic-types 2.60.0 → 2.62.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/attributeIds.d.ts +0 -1
- package/dist/attributeIds.js +2 -2
- package/dist/attributeIds.js.map +1 -1
- package/package.json +12 -12
- package/source/attributeIds.ts +2 -2
package/dist/attributeIds.d.ts
CHANGED
package/dist/attributeIds.js
CHANGED
|
@@ -31,9 +31,9 @@ var AttributeIds;
|
|
|
31
31
|
AttributeIds[AttributeIds["UserRolePermissions"] = 25] = "UserRolePermissions";
|
|
32
32
|
AttributeIds[AttributeIds["AccessRestrictions"] = 26] = "AccessRestrictions";
|
|
33
33
|
AttributeIds[AttributeIds["AccessLevelEx"] = 27] = "AccessLevelEx";
|
|
34
|
-
AttributeIds[AttributeIds["LAST"] = 27] = "LAST";
|
|
35
34
|
AttributeIds[AttributeIds["INVALID"] = 999] = "INVALID";
|
|
36
35
|
})(AttributeIds = exports.AttributeIds || (exports.AttributeIds = {}));
|
|
36
|
+
const AttributeIds_LAST = AttributeIds.AccessLevelEx;
|
|
37
37
|
// see https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/issues/296
|
|
38
38
|
function invert(a) {
|
|
39
39
|
return Object.entries(a).reduce((c, [k, v]) => {
|
|
@@ -43,7 +43,7 @@ function invert(a) {
|
|
|
43
43
|
}
|
|
44
44
|
exports.attributeNameById = invert(AttributeIds);
|
|
45
45
|
function isValidAttributeId(attributeId) {
|
|
46
|
-
return attributeId >= 1 && attributeId <=
|
|
46
|
+
return attributeId >= 1 && attributeId <= AttributeIds_LAST;
|
|
47
47
|
}
|
|
48
48
|
exports.isValidAttributeId = isValidAttributeId;
|
|
49
49
|
//# sourceMappingURL=attributeIds.js.map
|
package/dist/attributeIds.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attributeIds.js","sourceRoot":"","sources":["../source/attributeIds.ts"],"names":[],"mappings":";;;AAK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iB,CAAC;AAChE,CAAC;AAFD,gDAEC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-basic-types",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.62.6",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module -basic-types",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"node-opcua-assert": "2.55.0",
|
|
15
|
-
"node-opcua-binary-stream": "2.
|
|
16
|
-
"node-opcua-buffer-utils": "2.
|
|
17
|
-
"node-opcua-date-time": "2.
|
|
18
|
-
"node-opcua-enum": "2.
|
|
15
|
+
"node-opcua-binary-stream": "2.62.5",
|
|
16
|
+
"node-opcua-buffer-utils": "2.62.5",
|
|
17
|
+
"node-opcua-date-time": "2.62.6",
|
|
18
|
+
"node-opcua-enum": "2.62.5",
|
|
19
19
|
"node-opcua-guid": "2.55.0",
|
|
20
|
-
"node-opcua-nodeid": "2.
|
|
21
|
-
"node-opcua-status-code": "2.
|
|
22
|
-
"node-opcua-utils": "2.
|
|
20
|
+
"node-opcua-nodeid": "2.62.6",
|
|
21
|
+
"node-opcua-status-code": "2.62.5",
|
|
22
|
+
"node-opcua-utils": "2.62.5"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@types/node": "16.11.
|
|
26
|
-
"node-opcua-benchmarker": "2.
|
|
27
|
-
"node-opcua-debug": "2.
|
|
25
|
+
"@types/node": "16.11.11",
|
|
26
|
+
"node-opcua-benchmarker": "2.62.5",
|
|
27
|
+
"node-opcua-debug": "2.62.6",
|
|
28
28
|
"should": "^13.2.3"
|
|
29
29
|
},
|
|
30
30
|
"author": "Etienne Rossignon",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"internet of things"
|
|
43
43
|
],
|
|
44
44
|
"homepage": "http://node-opcua.github.io/",
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "c6a3935e0c8d1c3da6a5b4c8a32dc0fb2604fddd"
|
|
46
46
|
}
|
package/source/attributeIds.ts
CHANGED
|
@@ -32,9 +32,9 @@ export enum AttributeIds {
|
|
|
32
32
|
UserRolePermissions = 25,
|
|
33
33
|
AccessRestrictions = 26,
|
|
34
34
|
AccessLevelEx = 27,
|
|
35
|
-
LAST = 27,
|
|
36
35
|
INVALID = 999
|
|
37
36
|
}
|
|
37
|
+
const AttributeIds_LAST = AttributeIds.AccessLevelEx;
|
|
38
38
|
|
|
39
39
|
// see https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/issues/296
|
|
40
40
|
function invert(a: { [key: string]: string | number }) {
|
|
@@ -46,5 +46,5 @@ function invert(a: { [key: string]: string | number }) {
|
|
|
46
46
|
export const attributeNameById = invert(AttributeIds);
|
|
47
47
|
|
|
48
48
|
export function isValidAttributeId(attributeId: number): boolean {
|
|
49
|
-
return attributeId >= 1 && attributeId <=
|
|
49
|
+
return attributeId >= 1 && attributeId <= AttributeIds_LAST;
|
|
50
50
|
}
|