node-opcua-file-transfer 2.104.0 → 2.105.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.
|
@@ -55,7 +55,6 @@ function writeOPCUAFile(clientFile, filePath, { chunkSize }) {
|
|
|
55
55
|
if (maxMessageSize > 200) {
|
|
56
56
|
chunkSize = Math.min(chunkSize, maxMessageSize - 1000);
|
|
57
57
|
}
|
|
58
|
-
console.log("chunkSize = ", chunkSize, maxMessageSize);
|
|
59
58
|
if (!fs.existsSync(filePath)) {
|
|
60
59
|
throw new Error(`File ${filePath} does not exist`);
|
|
61
60
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write_file.js","sourceRoot":"","sources":["../../source/client/write_file.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAA8B;AAC9B,6CAAuC;AACvC,mDAAgD;AAGhD,uEAAwD;AAExD,uDAAiE;AAGjE,+CAA0D;AAC1D,+EAAwE;AAExE,MAAM,QAAQ,GAAG,IAAA,gCAAa,EAAC,UAAU,CAAC,CAAC;AAC3C,8CAA8C;AAC9C,kDAAkD;AAClD,MAAM,OAAO,GAAG,IAAA,iCAAc,EAAC,UAAU,CAAC,CAAC;AAE3C,SAAS,0BAA0B,CAAC,OAAsB;IACtD,OAAO,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC,OAAO,CAAC,oBAAoB,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;AAC5F,CAAC;AAED,SAAsB,cAAc,CAAC,UAAuB,EAAE,QAAgB,EAAE,EAAE,SAAS,EAA0B;;QACjH,MAAM,cAAc,GAAG,0BAA0B,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QAEtE,SAAS,GAAG,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,IAAA,qDAAuB,EAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAA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
|
3
|
+
"version": "2.105.0",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module file-transfer",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc -b",
|
|
@@ -15,27 +15,27 @@
|
|
|
15
15
|
"npm": ">=8.x"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"node-opcua-address-space": "2.
|
|
19
|
-
"node-opcua-address-space-base": "2.
|
|
20
|
-
"node-opcua-assert": "2.
|
|
21
|
-
"node-opcua-basic-types": "2.
|
|
22
|
-
"node-opcua-binary-stream": "2.
|
|
18
|
+
"node-opcua-address-space": "2.105.0",
|
|
19
|
+
"node-opcua-address-space-base": "2.105.0",
|
|
20
|
+
"node-opcua-assert": "2.105.0",
|
|
21
|
+
"node-opcua-basic-types": "2.105.0",
|
|
22
|
+
"node-opcua-binary-stream": "2.105.0",
|
|
23
23
|
"node-opcua-constants": "2.98.1",
|
|
24
|
-
"node-opcua-data-model": "2.
|
|
25
|
-
"node-opcua-debug": "2.
|
|
26
|
-
"node-opcua-nodeid": "2.
|
|
27
|
-
"node-opcua-pseudo-session": "2.
|
|
28
|
-
"node-opcua-service-call": "2.
|
|
29
|
-
"node-opcua-service-read": "2.
|
|
30
|
-
"node-opcua-service-translate-browse-path": "2.
|
|
31
|
-
"node-opcua-status-code": "2.
|
|
32
|
-
"node-opcua-variant": "2.
|
|
24
|
+
"node-opcua-data-model": "2.105.0",
|
|
25
|
+
"node-opcua-debug": "2.105.0",
|
|
26
|
+
"node-opcua-nodeid": "2.105.0",
|
|
27
|
+
"node-opcua-pseudo-session": "2.105.0",
|
|
28
|
+
"node-opcua-service-call": "2.105.0",
|
|
29
|
+
"node-opcua-service-read": "2.105.0",
|
|
30
|
+
"node-opcua-service-translate-browse-path": "2.105.0",
|
|
31
|
+
"node-opcua-status-code": "2.105.0",
|
|
32
|
+
"node-opcua-variant": "2.105.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"memfs": "^3.5.
|
|
36
|
-
"node-opcua": "2.
|
|
37
|
-
"node-opcua-client": "2.
|
|
38
|
-
"node-opcua-leak-detector": "2.
|
|
35
|
+
"memfs": "^3.5.3",
|
|
36
|
+
"node-opcua": "2.105.0",
|
|
37
|
+
"node-opcua-client": "2.105.0",
|
|
38
|
+
"node-opcua-leak-detector": "2.105.0",
|
|
39
39
|
"node-opcua-nodesets": "2.103.0",
|
|
40
40
|
"should": "^13.2.3"
|
|
41
41
|
},
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"internet of things"
|
|
55
55
|
],
|
|
56
56
|
"homepage": "http://node-opcua.github.io/",
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "41c30f321debfe92128905d97a52426b9d7f9b9e",
|
|
58
58
|
"files": [
|
|
59
59
|
"dist",
|
|
60
60
|
"source"
|
|
@@ -28,7 +28,6 @@ export async function writeOPCUAFile(clientFile: IClientFile, filePath: string,
|
|
|
28
28
|
if (maxMessageSize > 200) {
|
|
29
29
|
chunkSize = Math.min(chunkSize, maxMessageSize - 1000);
|
|
30
30
|
}
|
|
31
|
-
console.log("chunkSize = ", chunkSize, maxMessageSize);
|
|
32
31
|
|
|
33
32
|
if (!fs.existsSync(filePath)) {
|
|
34
33
|
throw new Error(`File ${filePath} does not exist`);
|