node-opcua 2.51.0
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/LICENSE +20 -0
- package/README.md +8 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.js +142 -0
- package/dist/index.js.map +1 -0
- package/dist/server-stuff.d.ts +6 -0
- package/dist/server-stuff.js +23 -0
- package/dist/server-stuff.js.map +1 -0
- package/package.json +88 -0
- package/source/index.ts +132 -0
- package/source/server-stuff.ts +11 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014-2021 Etienne Rossignon
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
the Software without restriction, including without limitation the rights to
|
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
+
subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua
|
|
3
|
+
*/
|
|
4
|
+
export * from "node-opcua-common";
|
|
5
|
+
export { assert } from "node-opcua-assert";
|
|
6
|
+
export { BinaryStream } from "node-opcua-binary-stream";
|
|
7
|
+
export * from "node-opcua-utils";
|
|
8
|
+
export { NodeId, NodeIdLike, resolveNodeId, makeNodeId, coerceNodeId, sameNodeId, NodeIdType, ExpandedNodeId, makeExpandedNodeId, coerceExpandedNodeId } from "node-opcua-nodeid";
|
|
9
|
+
export { StatusCode, StatusCodes } from "node-opcua-status-code";
|
|
10
|
+
export { VariableTypeIds, VariableIds, MethodIds, ObjectIds, ObjectTypeIds, ReferenceTypeIds, DataTypeIds, AggregateFunction } from "node-opcua-constants";
|
|
11
|
+
export { DataType, Variant, VariantArrayType, buildVariantArray } from "node-opcua-variant";
|
|
12
|
+
export { DataValue, sameDataValue } from "node-opcua-data-value";
|
|
13
|
+
export { NumericRange } from "node-opcua-numeric-range";
|
|
14
|
+
export { AccessLevelFlag, makeAccessLevelFlag, LocalizedText, coerceLocalizedText, QualifiedName, coerceQualifiedName, NodeClass, NodeClassMask, AttributeIds, BrowseDirection } from "node-opcua-data-model";
|
|
15
|
+
export * from "node-opcua-basic-types";
|
|
16
|
+
export { standardUnits, makeEUInformation, Range } from "node-opcua-data-access";
|
|
17
|
+
export * from "node-opcua-hostname";
|
|
18
|
+
export * from "node-opcua-service-browse";
|
|
19
|
+
export * from "node-opcua-service-read";
|
|
20
|
+
export * from "node-opcua-service-write";
|
|
21
|
+
export * from "node-opcua-service-call";
|
|
22
|
+
export * from "node-opcua-service-session";
|
|
23
|
+
export * from "node-opcua-service-register-node";
|
|
24
|
+
export * from "node-opcua-service-endpoints";
|
|
25
|
+
export * from "node-opcua-service-subscription";
|
|
26
|
+
export * from "node-opcua-service-discovery";
|
|
27
|
+
export * from "node-opcua-service-secure-channel";
|
|
28
|
+
export * from "node-opcua-service-translate-browse-path";
|
|
29
|
+
export * from "node-opcua-service-query";
|
|
30
|
+
export * from "node-opcua-service-node-management";
|
|
31
|
+
export { DiagnosticInfo } from "node-opcua-data-model";
|
|
32
|
+
export { nodesets } from "node-opcua-nodesets";
|
|
33
|
+
export { get_empty_nodeset_filename, get_mini_nodeset_filename } from "node-opcua-address-space/testHelpers";
|
|
34
|
+
export * from "node-opcua-address-space/nodeJS";
|
|
35
|
+
export * from "node-opcua-client";
|
|
36
|
+
export * from "node-opcua-client-proxy";
|
|
37
|
+
export * from "node-opcua-client-crawler";
|
|
38
|
+
export { parseEndpointUrl, is_valid_endpointUrl } from "node-opcua-transport";
|
|
39
|
+
export * from "./server-stuff";
|
|
40
|
+
export * from "node-opcua-service-filter";
|
|
41
|
+
export * from "node-opcua-address-space";
|
|
42
|
+
export * from "node-opcua-transport";
|
|
43
|
+
export { OPCUADiscoveryServer } from "node-opcua-server-discovery";
|
|
44
|
+
export { build_address_space_for_conformance_testing } from "node-opcua-address-space-for-conformance-testing";
|
|
45
|
+
export { install_optional_cpu_and_memory_usage_node } from "node-opcua-vendor-diagnostic";
|
|
46
|
+
export * from "node-opcua-aggregates";
|
|
47
|
+
export { makeBoiler } from "node-opcua-address-space/testHelpers";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @module node-opcua
|
|
4
|
+
*/
|
|
5
|
+
// tslint:disable:max-line-length
|
|
6
|
+
// tslint:disable:no-var-requires
|
|
7
|
+
// tslint:disable:no-console
|
|
8
|
+
// tslint:disable:variable-name
|
|
9
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.install_optional_cpu_and_memory_usage_node = exports.build_address_space_for_conformance_testing = exports.OPCUADiscoveryServer = exports.is_valid_endpointUrl = exports.parseEndpointUrl = exports.get_mini_nodeset_filename = exports.get_empty_nodeset_filename = exports.nodesets = exports.DiagnosticInfo = exports.Range = exports.makeEUInformation = exports.standardUnits = exports.BrowseDirection = exports.AttributeIds = exports.NodeClassMask = exports.NodeClass = exports.coerceQualifiedName = exports.QualifiedName = exports.coerceLocalizedText = exports.LocalizedText = exports.makeAccessLevelFlag = exports.AccessLevelFlag = exports.NumericRange = exports.sameDataValue = exports.DataValue = exports.buildVariantArray = exports.VariantArrayType = exports.Variant = exports.DataType = exports.AggregateFunction = exports.DataTypeIds = exports.ReferenceTypeIds = exports.ObjectTypeIds = exports.ObjectIds = exports.MethodIds = exports.VariableIds = exports.VariableTypeIds = exports.StatusCodes = exports.StatusCode = exports.coerceExpandedNodeId = exports.makeExpandedNodeId = exports.ExpandedNodeId = exports.NodeIdType = exports.sameNodeId = exports.coerceNodeId = exports.makeNodeId = exports.resolveNodeId = exports.NodeId = exports.BinaryStream = exports.assert = void 0;
|
|
21
|
+
exports.makeBoiler = void 0;
|
|
22
|
+
const chalk = require("chalk");
|
|
23
|
+
const semver = require("semver");
|
|
24
|
+
const minimumNodeVersionRequired = ">=8.0.0"; // minimum
|
|
25
|
+
// istanbul ignore next
|
|
26
|
+
if (!semver.satisfies(process.version, minimumNodeVersionRequired)) {
|
|
27
|
+
console.log(chalk.cyan(`warning node-opcua: Required nodejs version ${minimumNodeVersionRequired} not satisfied with current nodejs version ${process.version}.`));
|
|
28
|
+
}
|
|
29
|
+
__exportStar(require("node-opcua-common"), exports);
|
|
30
|
+
var node_opcua_assert_1 = require("node-opcua-assert");
|
|
31
|
+
Object.defineProperty(exports, "assert", { enumerable: true, get: function () { return node_opcua_assert_1.assert; } });
|
|
32
|
+
var node_opcua_binary_stream_1 = require("node-opcua-binary-stream");
|
|
33
|
+
Object.defineProperty(exports, "BinaryStream", { enumerable: true, get: function () { return node_opcua_binary_stream_1.BinaryStream; } });
|
|
34
|
+
__exportStar(require("node-opcua-utils"), exports);
|
|
35
|
+
var node_opcua_nodeid_1 = require("node-opcua-nodeid");
|
|
36
|
+
Object.defineProperty(exports, "NodeId", { enumerable: true, get: function () { return node_opcua_nodeid_1.NodeId; } });
|
|
37
|
+
Object.defineProperty(exports, "resolveNodeId", { enumerable: true, get: function () { return node_opcua_nodeid_1.resolveNodeId; } });
|
|
38
|
+
Object.defineProperty(exports, "makeNodeId", { enumerable: true, get: function () { return node_opcua_nodeid_1.makeNodeId; } });
|
|
39
|
+
Object.defineProperty(exports, "coerceNodeId", { enumerable: true, get: function () { return node_opcua_nodeid_1.coerceNodeId; } });
|
|
40
|
+
Object.defineProperty(exports, "sameNodeId", { enumerable: true, get: function () { return node_opcua_nodeid_1.sameNodeId; } });
|
|
41
|
+
Object.defineProperty(exports, "NodeIdType", { enumerable: true, get: function () { return node_opcua_nodeid_1.NodeIdType; } });
|
|
42
|
+
Object.defineProperty(exports, "ExpandedNodeId", { enumerable: true, get: function () { return node_opcua_nodeid_1.ExpandedNodeId; } });
|
|
43
|
+
Object.defineProperty(exports, "makeExpandedNodeId", { enumerable: true, get: function () { return node_opcua_nodeid_1.makeExpandedNodeId; } });
|
|
44
|
+
Object.defineProperty(exports, "coerceExpandedNodeId", { enumerable: true, get: function () { return node_opcua_nodeid_1.coerceExpandedNodeId; } });
|
|
45
|
+
var node_opcua_status_code_1 = require("node-opcua-status-code");
|
|
46
|
+
Object.defineProperty(exports, "StatusCode", { enumerable: true, get: function () { return node_opcua_status_code_1.StatusCode; } });
|
|
47
|
+
Object.defineProperty(exports, "StatusCodes", { enumerable: true, get: function () { return node_opcua_status_code_1.StatusCodes; } });
|
|
48
|
+
var node_opcua_constants_1 = require("node-opcua-constants");
|
|
49
|
+
Object.defineProperty(exports, "VariableTypeIds", { enumerable: true, get: function () { return node_opcua_constants_1.VariableTypeIds; } });
|
|
50
|
+
Object.defineProperty(exports, "VariableIds", { enumerable: true, get: function () { return node_opcua_constants_1.VariableIds; } });
|
|
51
|
+
Object.defineProperty(exports, "MethodIds", { enumerable: true, get: function () { return node_opcua_constants_1.MethodIds; } });
|
|
52
|
+
Object.defineProperty(exports, "ObjectIds", { enumerable: true, get: function () { return node_opcua_constants_1.ObjectIds; } });
|
|
53
|
+
Object.defineProperty(exports, "ObjectTypeIds", { enumerable: true, get: function () { return node_opcua_constants_1.ObjectTypeIds; } });
|
|
54
|
+
Object.defineProperty(exports, "ReferenceTypeIds", { enumerable: true, get: function () { return node_opcua_constants_1.ReferenceTypeIds; } });
|
|
55
|
+
Object.defineProperty(exports, "DataTypeIds", { enumerable: true, get: function () { return node_opcua_constants_1.DataTypeIds; } });
|
|
56
|
+
Object.defineProperty(exports, "AggregateFunction", { enumerable: true, get: function () { return node_opcua_constants_1.AggregateFunction; } });
|
|
57
|
+
var node_opcua_variant_1 = require("node-opcua-variant");
|
|
58
|
+
Object.defineProperty(exports, "DataType", { enumerable: true, get: function () { return node_opcua_variant_1.DataType; } });
|
|
59
|
+
Object.defineProperty(exports, "Variant", { enumerable: true, get: function () { return node_opcua_variant_1.Variant; } });
|
|
60
|
+
Object.defineProperty(exports, "VariantArrayType", { enumerable: true, get: function () { return node_opcua_variant_1.VariantArrayType; } });
|
|
61
|
+
Object.defineProperty(exports, "buildVariantArray", { enumerable: true, get: function () { return node_opcua_variant_1.buildVariantArray; } });
|
|
62
|
+
var node_opcua_data_value_1 = require("node-opcua-data-value");
|
|
63
|
+
Object.defineProperty(exports, "DataValue", { enumerable: true, get: function () { return node_opcua_data_value_1.DataValue; } });
|
|
64
|
+
Object.defineProperty(exports, "sameDataValue", { enumerable: true, get: function () { return node_opcua_data_value_1.sameDataValue; } });
|
|
65
|
+
var node_opcua_numeric_range_1 = require("node-opcua-numeric-range");
|
|
66
|
+
Object.defineProperty(exports, "NumericRange", { enumerable: true, get: function () { return node_opcua_numeric_range_1.NumericRange; } });
|
|
67
|
+
var node_opcua_data_model_1 = require("node-opcua-data-model");
|
|
68
|
+
Object.defineProperty(exports, "AccessLevelFlag", { enumerable: true, get: function () { return node_opcua_data_model_1.AccessLevelFlag; } });
|
|
69
|
+
Object.defineProperty(exports, "makeAccessLevelFlag", { enumerable: true, get: function () { return node_opcua_data_model_1.makeAccessLevelFlag; } });
|
|
70
|
+
Object.defineProperty(exports, "LocalizedText", { enumerable: true, get: function () { return node_opcua_data_model_1.LocalizedText; } });
|
|
71
|
+
Object.defineProperty(exports, "coerceLocalizedText", { enumerable: true, get: function () { return node_opcua_data_model_1.coerceLocalizedText; } });
|
|
72
|
+
Object.defineProperty(exports, "QualifiedName", { enumerable: true, get: function () { return node_opcua_data_model_1.QualifiedName; } });
|
|
73
|
+
Object.defineProperty(exports, "coerceQualifiedName", { enumerable: true, get: function () { return node_opcua_data_model_1.coerceQualifiedName; } });
|
|
74
|
+
Object.defineProperty(exports, "NodeClass", { enumerable: true, get: function () { return node_opcua_data_model_1.NodeClass; } });
|
|
75
|
+
Object.defineProperty(exports, "NodeClassMask", { enumerable: true, get: function () { return node_opcua_data_model_1.NodeClassMask; } });
|
|
76
|
+
Object.defineProperty(exports, "AttributeIds", { enumerable: true, get: function () { return node_opcua_data_model_1.AttributeIds; } });
|
|
77
|
+
Object.defineProperty(exports, "BrowseDirection", { enumerable: true, get: function () { return node_opcua_data_model_1.BrowseDirection; } });
|
|
78
|
+
// basic_types
|
|
79
|
+
__exportStar(require("node-opcua-basic-types"), exports);
|
|
80
|
+
// DA
|
|
81
|
+
var node_opcua_data_access_1 = require("node-opcua-data-access");
|
|
82
|
+
Object.defineProperty(exports, "standardUnits", { enumerable: true, get: function () { return node_opcua_data_access_1.standardUnits; } });
|
|
83
|
+
Object.defineProperty(exports, "makeEUInformation", { enumerable: true, get: function () { return node_opcua_data_access_1.makeEUInformation; } });
|
|
84
|
+
Object.defineProperty(exports, "Range", { enumerable: true, get: function () { return node_opcua_data_access_1.Range; } });
|
|
85
|
+
__exportStar(require("node-opcua-hostname"), exports);
|
|
86
|
+
// services
|
|
87
|
+
__exportStar(require("node-opcua-service-browse"), exports);
|
|
88
|
+
__exportStar(require("node-opcua-service-read"), exports);
|
|
89
|
+
__exportStar(require("node-opcua-service-write"), exports);
|
|
90
|
+
__exportStar(require("node-opcua-service-call"), exports);
|
|
91
|
+
__exportStar(require("node-opcua-service-session"), exports);
|
|
92
|
+
__exportStar(require("node-opcua-service-register-node"), exports);
|
|
93
|
+
__exportStar(require("node-opcua-service-endpoints"), exports);
|
|
94
|
+
__exportStar(require("node-opcua-service-subscription"), exports);
|
|
95
|
+
// export * from "node-opcua-service-history";
|
|
96
|
+
__exportStar(require("node-opcua-service-discovery"), exports);
|
|
97
|
+
__exportStar(require("node-opcua-service-secure-channel"), exports);
|
|
98
|
+
__exportStar(require("node-opcua-service-translate-browse-path"), exports);
|
|
99
|
+
__exportStar(require("node-opcua-service-query"), exports);
|
|
100
|
+
__exportStar(require("node-opcua-service-node-management"), exports);
|
|
101
|
+
var node_opcua_data_model_2 = require("node-opcua-data-model");
|
|
102
|
+
Object.defineProperty(exports, "DiagnosticInfo", { enumerable: true, get: function () { return node_opcua_data_model_2.DiagnosticInfo; } });
|
|
103
|
+
// -----------------------------------------------------------------------------
|
|
104
|
+
// Nodeset stuff
|
|
105
|
+
// -----------------------------------------------------------------------------
|
|
106
|
+
var node_opcua_nodesets_1 = require("node-opcua-nodesets");
|
|
107
|
+
Object.defineProperty(exports, "nodesets", { enumerable: true, get: function () { return node_opcua_nodesets_1.nodesets; } });
|
|
108
|
+
// an incomplete but sufficient nodeset file used during testing
|
|
109
|
+
var testHelpers_1 = require("node-opcua-address-space/testHelpers");
|
|
110
|
+
Object.defineProperty(exports, "get_empty_nodeset_filename", { enumerable: true, get: function () { return testHelpers_1.get_empty_nodeset_filename; } });
|
|
111
|
+
Object.defineProperty(exports, "get_mini_nodeset_filename", { enumerable: true, get: function () { return testHelpers_1.get_mini_nodeset_filename; } });
|
|
112
|
+
__exportStar(require("node-opcua-address-space/nodeJS"), exports);
|
|
113
|
+
module.exports.utils = require("node-opcua-utils");
|
|
114
|
+
module.exports.hexDump = require("node-opcua-debug").hexDump;
|
|
115
|
+
// ----------------------------------------------------------------------------------------------------------
|
|
116
|
+
// client services
|
|
117
|
+
// ----------------------------------------------------------------------------------------------------------
|
|
118
|
+
__exportStar(require("node-opcua-client"), exports);
|
|
119
|
+
__exportStar(require("node-opcua-client-proxy"), exports);
|
|
120
|
+
__exportStar(require("node-opcua-client-crawler"), exports);
|
|
121
|
+
var node_opcua_transport_1 = require("node-opcua-transport");
|
|
122
|
+
Object.defineProperty(exports, "parseEndpointUrl", { enumerable: true, get: function () { return node_opcua_transport_1.parseEndpointUrl; } });
|
|
123
|
+
Object.defineProperty(exports, "is_valid_endpointUrl", { enumerable: true, get: function () { return node_opcua_transport_1.is_valid_endpointUrl; } });
|
|
124
|
+
// ----------------------------------------------------------------------------------------------------------
|
|
125
|
+
// server management
|
|
126
|
+
// ----------------------------------------------------------------------------------------------------------
|
|
127
|
+
__exportStar(require("./server-stuff"), exports);
|
|
128
|
+
// filtering tools
|
|
129
|
+
__exportStar(require("node-opcua-service-filter"), exports);
|
|
130
|
+
__exportStar(require("node-opcua-address-space"), exports);
|
|
131
|
+
// filtering tools
|
|
132
|
+
__exportStar(require("node-opcua-transport"), exports);
|
|
133
|
+
var node_opcua_server_discovery_1 = require("node-opcua-server-discovery");
|
|
134
|
+
Object.defineProperty(exports, "OPCUADiscoveryServer", { enumerable: true, get: function () { return node_opcua_server_discovery_1.OPCUADiscoveryServer; } });
|
|
135
|
+
var node_opcua_address_space_for_conformance_testing_1 = require("node-opcua-address-space-for-conformance-testing");
|
|
136
|
+
Object.defineProperty(exports, "build_address_space_for_conformance_testing", { enumerable: true, get: function () { return node_opcua_address_space_for_conformance_testing_1.build_address_space_for_conformance_testing; } });
|
|
137
|
+
var node_opcua_vendor_diagnostic_1 = require("node-opcua-vendor-diagnostic");
|
|
138
|
+
Object.defineProperty(exports, "install_optional_cpu_and_memory_usage_node", { enumerable: true, get: function () { return node_opcua_vendor_diagnostic_1.install_optional_cpu_and_memory_usage_node; } });
|
|
139
|
+
__exportStar(require("node-opcua-aggregates"), exports);
|
|
140
|
+
var testHelpers_2 = require("node-opcua-address-space/testHelpers");
|
|
141
|
+
Object.defineProperty(exports, "makeBoiler", { enumerable: true, get: function () { return testHelpers_2.makeBoiler; } });
|
|
142
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @module node-opcua
|
|
4
|
+
*/
|
|
5
|
+
// tslint:disable:no-empty
|
|
6
|
+
// tslint:disable:no-empty-interface
|
|
7
|
+
// tslint:disable:max-classes-per-file
|
|
8
|
+
// tslint:disable:unified-signatures
|
|
9
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
__exportStar(require("node-opcua-certificate-manager"), exports);
|
|
21
|
+
__exportStar(require("node-opcua-address-space"), exports);
|
|
22
|
+
__exportStar(require("node-opcua-server"), exports);
|
|
23
|
+
//# sourceMappingURL=server-stuff.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server-stuff.js","sourceRoot":"","sources":["../source/server-stuff.ts"],"names":[],"mappings":";AAAA;;GAEG;AACH,0BAA0B;AAC1B,oCAAoC;AACpC,sCAAsC;AACtC,oCAAoC;;;;;;;;;;;;AAEpC,iEAA+C;AAC/C,2DAAyC;AACzC,oDAAkC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "node-opcua",
|
|
3
|
+
"version": "2.51.0",
|
|
4
|
+
"description": "pure nodejs OPCUA SDK - module ",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"clean": "node -e \"require('rimraf').sync('dist');\"",
|
|
9
|
+
"build": "tsc -b"
|
|
10
|
+
},
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=8.10"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"chalk": "4.1.2",
|
|
16
|
+
"node-opcua-address-space": "2.51.0",
|
|
17
|
+
"node-opcua-address-space-for-conformance-testing": "2.51.0",
|
|
18
|
+
"node-opcua-aggregates": "2.51.0",
|
|
19
|
+
"node-opcua-assert": "2.51.0",
|
|
20
|
+
"node-opcua-basic-types": "2.51.0",
|
|
21
|
+
"node-opcua-binary-stream": "2.51.0",
|
|
22
|
+
"node-opcua-certificate-manager": "2.51.0",
|
|
23
|
+
"node-opcua-client": "2.51.0",
|
|
24
|
+
"node-opcua-client-crawler": "2.51.0",
|
|
25
|
+
"node-opcua-client-proxy": "2.51.0",
|
|
26
|
+
"node-opcua-common": "2.51.0",
|
|
27
|
+
"node-opcua-constants": "2.51.0",
|
|
28
|
+
"node-opcua-crypto": "^1.7.4",
|
|
29
|
+
"node-opcua-data-access": "2.51.0",
|
|
30
|
+
"node-opcua-data-model": "2.51.0",
|
|
31
|
+
"node-opcua-data-value": "2.51.0",
|
|
32
|
+
"node-opcua-debug": "2.51.0",
|
|
33
|
+
"node-opcua-enum": "2.51.0",
|
|
34
|
+
"node-opcua-factory": "2.51.0",
|
|
35
|
+
"node-opcua-hostname": "2.51.0",
|
|
36
|
+
"node-opcua-nodeid": "2.51.0",
|
|
37
|
+
"node-opcua-nodesets": "2.51.0",
|
|
38
|
+
"node-opcua-numeric-range": "2.51.0",
|
|
39
|
+
"node-opcua-packet-analyzer": "2.51.0",
|
|
40
|
+
"node-opcua-secure-channel": "2.51.0",
|
|
41
|
+
"node-opcua-server": "2.51.0",
|
|
42
|
+
"node-opcua-server-discovery": "2.51.0",
|
|
43
|
+
"node-opcua-service-browse": "2.51.0",
|
|
44
|
+
"node-opcua-service-call": "2.51.0",
|
|
45
|
+
"node-opcua-service-discovery": "2.51.0",
|
|
46
|
+
"node-opcua-service-endpoints": "2.51.0",
|
|
47
|
+
"node-opcua-service-filter": "2.51.0",
|
|
48
|
+
"node-opcua-service-history": "2.51.0",
|
|
49
|
+
"node-opcua-service-node-management": "2.51.0",
|
|
50
|
+
"node-opcua-service-query": "2.51.0",
|
|
51
|
+
"node-opcua-service-read": "2.51.0",
|
|
52
|
+
"node-opcua-service-register-node": "2.51.0",
|
|
53
|
+
"node-opcua-service-secure-channel": "2.51.0",
|
|
54
|
+
"node-opcua-service-session": "2.51.0",
|
|
55
|
+
"node-opcua-service-subscription": "2.51.0",
|
|
56
|
+
"node-opcua-service-translate-browse-path": "2.51.0",
|
|
57
|
+
"node-opcua-service-write": "2.51.0",
|
|
58
|
+
"node-opcua-status-code": "2.51.0",
|
|
59
|
+
"node-opcua-transport": "2.51.0",
|
|
60
|
+
"node-opcua-types": "2.51.0",
|
|
61
|
+
"node-opcua-utils": "2.51.0",
|
|
62
|
+
"node-opcua-variant": "2.51.0",
|
|
63
|
+
"node-opcua-vendor-diagnostic": "2.51.0",
|
|
64
|
+
"semver": "^7.3.5"
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"should": "^13.2.3"
|
|
68
|
+
},
|
|
69
|
+
"author": "Etienne Rossignon",
|
|
70
|
+
"license": "MIT",
|
|
71
|
+
"repository": {
|
|
72
|
+
"type": "git",
|
|
73
|
+
"url": "git://github.com/node-opcua/node-opcua.git"
|
|
74
|
+
},
|
|
75
|
+
"keywords": [
|
|
76
|
+
"OPCUA",
|
|
77
|
+
"opcua",
|
|
78
|
+
"m2m",
|
|
79
|
+
"iot",
|
|
80
|
+
"opc ua",
|
|
81
|
+
"internet of things"
|
|
82
|
+
],
|
|
83
|
+
"funding": {
|
|
84
|
+
"url": "https://github.com/sponsors/erossignon"
|
|
85
|
+
},
|
|
86
|
+
"homepage": "http://node-opcua.github.io/",
|
|
87
|
+
"gitHead": "75feb111daf7ec65fa0111e4fa5beb8987fd4945"
|
|
88
|
+
}
|
package/source/index.ts
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua
|
|
3
|
+
*/
|
|
4
|
+
// tslint:disable:max-line-length
|
|
5
|
+
// tslint:disable:no-var-requires
|
|
6
|
+
// tslint:disable:no-console
|
|
7
|
+
// tslint:disable:variable-name
|
|
8
|
+
|
|
9
|
+
import * as chalk from "chalk";
|
|
10
|
+
|
|
11
|
+
const semver = require("semver");
|
|
12
|
+
const minimumNodeVersionRequired = ">=8.0.0"; // minimum
|
|
13
|
+
|
|
14
|
+
// istanbul ignore next
|
|
15
|
+
if (!semver.satisfies(process.version, minimumNodeVersionRequired)) {
|
|
16
|
+
console.log(
|
|
17
|
+
chalk.cyan(
|
|
18
|
+
`warning node-opcua: Required nodejs version ${minimumNodeVersionRequired} not satisfied with current nodejs version ${process.version}.`
|
|
19
|
+
)
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export * from "node-opcua-common";
|
|
24
|
+
|
|
25
|
+
export { assert } from "node-opcua-assert";
|
|
26
|
+
export { BinaryStream } from "node-opcua-binary-stream";
|
|
27
|
+
|
|
28
|
+
export * from "node-opcua-utils";
|
|
29
|
+
|
|
30
|
+
export {
|
|
31
|
+
NodeId,
|
|
32
|
+
NodeIdLike,
|
|
33
|
+
resolveNodeId,
|
|
34
|
+
makeNodeId,
|
|
35
|
+
coerceNodeId,
|
|
36
|
+
sameNodeId,
|
|
37
|
+
NodeIdType,
|
|
38
|
+
ExpandedNodeId,
|
|
39
|
+
makeExpandedNodeId,
|
|
40
|
+
coerceExpandedNodeId
|
|
41
|
+
} from "node-opcua-nodeid";
|
|
42
|
+
|
|
43
|
+
export { StatusCode, StatusCodes } from "node-opcua-status-code";
|
|
44
|
+
export {
|
|
45
|
+
VariableTypeIds,
|
|
46
|
+
VariableIds,
|
|
47
|
+
MethodIds,
|
|
48
|
+
ObjectIds,
|
|
49
|
+
ObjectTypeIds,
|
|
50
|
+
ReferenceTypeIds,
|
|
51
|
+
DataTypeIds,
|
|
52
|
+
AggregateFunction
|
|
53
|
+
} from "node-opcua-constants";
|
|
54
|
+
|
|
55
|
+
export { DataType, Variant, VariantArrayType, buildVariantArray } from "node-opcua-variant";
|
|
56
|
+
export { DataValue, sameDataValue } from "node-opcua-data-value";
|
|
57
|
+
export { NumericRange } from "node-opcua-numeric-range";
|
|
58
|
+
|
|
59
|
+
export {
|
|
60
|
+
AccessLevelFlag,
|
|
61
|
+
makeAccessLevelFlag,
|
|
62
|
+
LocalizedText,
|
|
63
|
+
coerceLocalizedText,
|
|
64
|
+
QualifiedName,
|
|
65
|
+
coerceQualifiedName,
|
|
66
|
+
NodeClass,
|
|
67
|
+
NodeClassMask,
|
|
68
|
+
AttributeIds,
|
|
69
|
+
BrowseDirection
|
|
70
|
+
} from "node-opcua-data-model";
|
|
71
|
+
|
|
72
|
+
// basic_types
|
|
73
|
+
export * from "node-opcua-basic-types";
|
|
74
|
+
|
|
75
|
+
// DA
|
|
76
|
+
export { standardUnits, makeEUInformation, Range } from "node-opcua-data-access";
|
|
77
|
+
export * from "node-opcua-hostname";
|
|
78
|
+
|
|
79
|
+
// services
|
|
80
|
+
export * from "node-opcua-service-browse";
|
|
81
|
+
export * from "node-opcua-service-read";
|
|
82
|
+
export * from "node-opcua-service-write";
|
|
83
|
+
export * from "node-opcua-service-call";
|
|
84
|
+
export * from "node-opcua-service-session";
|
|
85
|
+
export * from "node-opcua-service-register-node";
|
|
86
|
+
export * from "node-opcua-service-endpoints";
|
|
87
|
+
export * from "node-opcua-service-subscription";
|
|
88
|
+
// export * from "node-opcua-service-history";
|
|
89
|
+
export * from "node-opcua-service-discovery";
|
|
90
|
+
export * from "node-opcua-service-secure-channel";
|
|
91
|
+
export * from "node-opcua-service-translate-browse-path";
|
|
92
|
+
export * from "node-opcua-service-query";
|
|
93
|
+
export * from "node-opcua-service-node-management";
|
|
94
|
+
export { DiagnosticInfo } from "node-opcua-data-model";
|
|
95
|
+
|
|
96
|
+
// -----------------------------------------------------------------------------
|
|
97
|
+
// Nodeset stuff
|
|
98
|
+
// -----------------------------------------------------------------------------
|
|
99
|
+
export { nodesets } from "node-opcua-nodesets";
|
|
100
|
+
// an incomplete but sufficient nodeset file used during testing
|
|
101
|
+
export { get_empty_nodeset_filename, get_mini_nodeset_filename } from "node-opcua-address-space/testHelpers";
|
|
102
|
+
export * from "node-opcua-address-space/nodeJS";
|
|
103
|
+
module.exports.utils = require("node-opcua-utils");
|
|
104
|
+
module.exports.hexDump = require("node-opcua-debug").hexDump;
|
|
105
|
+
|
|
106
|
+
// ----------------------------------------------------------------------------------------------------------
|
|
107
|
+
// client services
|
|
108
|
+
// ----------------------------------------------------------------------------------------------------------
|
|
109
|
+
export * from "node-opcua-client";
|
|
110
|
+
export * from "node-opcua-client-proxy";
|
|
111
|
+
export * from "node-opcua-client-crawler";
|
|
112
|
+
export { parseEndpointUrl, is_valid_endpointUrl } from "node-opcua-transport";
|
|
113
|
+
|
|
114
|
+
// ----------------------------------------------------------------------------------------------------------
|
|
115
|
+
// server management
|
|
116
|
+
// ----------------------------------------------------------------------------------------------------------
|
|
117
|
+
export * from "./server-stuff";
|
|
118
|
+
// filtering tools
|
|
119
|
+
export * from "node-opcua-service-filter";
|
|
120
|
+
|
|
121
|
+
export * from "node-opcua-address-space";
|
|
122
|
+
|
|
123
|
+
// filtering tools
|
|
124
|
+
export * from "node-opcua-transport";
|
|
125
|
+
|
|
126
|
+
export { OPCUADiscoveryServer } from "node-opcua-server-discovery";
|
|
127
|
+
|
|
128
|
+
export { build_address_space_for_conformance_testing } from "node-opcua-address-space-for-conformance-testing";
|
|
129
|
+
export { install_optional_cpu_and_memory_usage_node } from "node-opcua-vendor-diagnostic";
|
|
130
|
+
|
|
131
|
+
export * from "node-opcua-aggregates";
|
|
132
|
+
export { makeBoiler } from "node-opcua-address-space/testHelpers";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua
|
|
3
|
+
*/
|
|
4
|
+
// tslint:disable:no-empty
|
|
5
|
+
// tslint:disable:no-empty-interface
|
|
6
|
+
// tslint:disable:max-classes-per-file
|
|
7
|
+
// tslint:disable:unified-signatures
|
|
8
|
+
|
|
9
|
+
export * from "node-opcua-certificate-manager";
|
|
10
|
+
export * from "node-opcua-address-space";
|
|
11
|
+
export * from "node-opcua-server";
|