node-opcua-address-space-base 2.92.0 → 2.95.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.
|
@@ -8,10 +8,15 @@ import { ContinuationPoint } from "./continuation_point";
|
|
|
8
8
|
import { BaseNode } from "./base_node";
|
|
9
9
|
import { UAObject } from "./ua_object";
|
|
10
10
|
import { UAObjectType } from ".";
|
|
11
|
+
export declare function getContextMaxMessageSize(context: ISessionContext): number;
|
|
12
|
+
export interface ITransportSettings {
|
|
13
|
+
maxMessageSize: number;
|
|
14
|
+
}
|
|
11
15
|
export interface IChannelBase {
|
|
12
16
|
clientCertificate: Certificate | null;
|
|
13
17
|
securityMode: MessageSecurityMode;
|
|
14
18
|
securityPolicy: string;
|
|
19
|
+
getTransportSettings(): ITransportSettings;
|
|
15
20
|
}
|
|
16
21
|
export interface IContinuationPointInfo<T> {
|
|
17
22
|
values: T[] | null;
|
package/dist/session_context.js
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getContextMaxMessageSize = void 0;
|
|
4
|
+
function getContextMaxMessageSize(context) {
|
|
5
|
+
var _a, _b, _c, _d;
|
|
6
|
+
if (!((_b = (_a = context.session) === null || _a === void 0 ? void 0 : _a.channel) === null || _b === void 0 ? void 0 : _b.getTransportSettings))
|
|
7
|
+
return 0;
|
|
8
|
+
const f = (_d = (_c = context.session) === null || _c === void 0 ? void 0 : _c.channel) === null || _d === void 0 ? void 0 : _d.getTransportSettings();
|
|
9
|
+
return f ? f.maxMessageSize : 0;
|
|
10
|
+
}
|
|
11
|
+
exports.getContextMaxMessageSize = getContextMaxMessageSize;
|
|
3
12
|
//# sourceMappingURL=session_context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session_context.js","sourceRoot":"","sources":["../source/session_context.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"session_context.js","sourceRoot":"","sources":["../source/session_context.ts"],"names":[],"mappings":";;;AAYA,SAAgB,wBAAwB,CAAC,OAAwB;;IAC7D,IAAI,CAAC,CAAA,MAAA,MAAA,OAAO,CAAC,OAAO,0CAAE,OAAO,0CAAE,oBAAoB,CAAA;QAAE,OAAO,CAAC,CAAC;IAC9D,MAAM,CAAC,GAAG,MAAA,MAAA,OAAO,CAAC,OAAO,0CAAE,OAAO,0CAAE,oBAAoB,EAAE,CAAC;IAC3D,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;AACpC,CAAC;AAJD,4DAIC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-address-space-base",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.95.0",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module -address-space",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
"node-opcua-basic-types": "2.92.0",
|
|
20
20
|
"node-opcua-constants": "2.88.0",
|
|
21
21
|
"node-opcua-crypto": "^2.1.2",
|
|
22
|
-
"node-opcua-data-model": "2.
|
|
23
|
-
"node-opcua-data-value": "2.
|
|
22
|
+
"node-opcua-data-model": "2.95.0",
|
|
23
|
+
"node-opcua-data-value": "2.95.0",
|
|
24
24
|
"node-opcua-date-time": "2.90.1",
|
|
25
|
-
"node-opcua-extension-object": "2.
|
|
25
|
+
"node-opcua-extension-object": "2.95.0",
|
|
26
26
|
"node-opcua-nodeid": "2.90.1",
|
|
27
|
-
"node-opcua-numeric-range": "2.
|
|
28
|
-
"node-opcua-schemas": "2.
|
|
27
|
+
"node-opcua-numeric-range": "2.95.0",
|
|
28
|
+
"node-opcua-schemas": "2.95.0",
|
|
29
29
|
"node-opcua-status-code": "2.90.1",
|
|
30
|
-
"node-opcua-types": "2.
|
|
31
|
-
"node-opcua-variant": "2.
|
|
30
|
+
"node-opcua-types": "2.95.0",
|
|
31
|
+
"node-opcua-variant": "2.95.0"
|
|
32
32
|
},
|
|
33
33
|
"author": "Etienne Rossignon",
|
|
34
34
|
"license": "MIT",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"internet of things"
|
|
46
46
|
],
|
|
47
47
|
"homepage": "http://node-opcua.github.io/",
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "ad7086f9c4cd2ab52922e26cb6782ec6b86f9d20"
|
|
49
49
|
}
|
|
@@ -10,11 +10,21 @@ import { BaseNode } from "./base_node";
|
|
|
10
10
|
import { UAObject } from "./ua_object";
|
|
11
11
|
import { UAObjectType } from ".";
|
|
12
12
|
|
|
13
|
+
export function getContextMaxMessageSize(context: ISessionContext): number {
|
|
14
|
+
if (!context.session?.channel?.getTransportSettings) return 0;
|
|
15
|
+
const f = context.session?.channel?.getTransportSettings();
|
|
16
|
+
return f ? f.maxMessageSize : 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface ITransportSettings {
|
|
20
|
+
maxMessageSize: number;
|
|
21
|
+
}
|
|
13
22
|
export interface IChannelBase {
|
|
14
23
|
clientCertificate: Certificate | null;
|
|
15
24
|
// clientNonce: Buffer | null;
|
|
16
25
|
securityMode: MessageSecurityMode;
|
|
17
26
|
securityPolicy: string;
|
|
27
|
+
getTransportSettings(): ITransportSettings;
|
|
18
28
|
}
|
|
19
29
|
|
|
20
30
|
export interface IContinuationPointInfo<T> {
|