node-opcua-file-transfer 2.64.0 → 2.65.1
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/package.json +57 -58
- package/readme.md +10 -11
package/package.json
CHANGED
|
@@ -1,59 +1,58 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
2
|
+
"name": "node-opcua-file-transfer",
|
|
3
|
+
"version": "2.65.1",
|
|
4
|
+
"description": "pure nodejs OPCUA SDK - module -server",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "tsc -b",
|
|
7
|
+
"lint": "eslint source/**/*.ts",
|
|
8
|
+
"clean": "node -e \"require('rimraf').sync('dist');\"",
|
|
9
|
+
"test": "mocha"
|
|
10
|
+
},
|
|
11
|
+
"main": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"node-opcua-address-space": "2.65.1",
|
|
15
|
+
"node-opcua-assert": "2.64.1",
|
|
16
|
+
"node-opcua-basic-types": "2.64.1",
|
|
17
|
+
"node-opcua-client": "2.65.1",
|
|
18
|
+
"node-opcua-constants": "2.64.1",
|
|
19
|
+
"node-opcua-data-model": "2.64.1",
|
|
20
|
+
"node-opcua-debug": "2.64.1",
|
|
21
|
+
"node-opcua-nodeid": "2.64.1",
|
|
22
|
+
"node-opcua-nodesets": "2.64.1",
|
|
23
|
+
"node-opcua-pki": "^2.14.1",
|
|
24
|
+
"node-opcua-pseudo-session": "2.65.1",
|
|
25
|
+
"node-opcua-secure-channel": "2.65.1",
|
|
26
|
+
"node-opcua-server": "2.65.1",
|
|
27
|
+
"node-opcua-service-call": "2.65.1",
|
|
28
|
+
"node-opcua-service-read": "2.65.1",
|
|
29
|
+
"node-opcua-service-translate-browse-path": "2.65.1",
|
|
30
|
+
"node-opcua-status-code": "2.64.1",
|
|
31
|
+
"node-opcua-types": "2.65.1",
|
|
32
|
+
"node-opcua-variant": "2.64.1"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"memfs": "^3.4.1",
|
|
36
|
+
"node-opcua-binary-stream": "2.64.1",
|
|
37
|
+
"node-opcua-data-value": "2.64.1",
|
|
38
|
+
"node-opcua-leak-detector": "2.64.1",
|
|
39
|
+
"should": "^13.2.3",
|
|
40
|
+
"sinon": "^13.0.1"
|
|
41
|
+
},
|
|
42
|
+
"author": "Etienne Rossignon",
|
|
43
|
+
"license": "MIT",
|
|
44
|
+
"repository": {
|
|
45
|
+
"type": "git",
|
|
46
|
+
"url": "git://github.com/node-opcua/node-opcua.git"
|
|
47
|
+
},
|
|
48
|
+
"keywords": [
|
|
49
|
+
"OPCUA",
|
|
50
|
+
"opcua",
|
|
51
|
+
"m2m",
|
|
52
|
+
"iot",
|
|
53
|
+
"opc ua",
|
|
54
|
+
"internet of things"
|
|
55
|
+
],
|
|
56
|
+
"homepage": "http://node-opcua.github.io/",
|
|
57
|
+
"gitHead": "494c1a72df17756dafa8661648d7ae4d89be89ea"
|
|
58
|
+
}
|
package/readme.md
CHANGED
|
@@ -112,13 +112,12 @@ await clientFile.open(mode);
|
|
|
112
112
|
|
|
113
113
|
| Mode | Description |
|
|
114
114
|
|------|-------------|
|
|
115
|
-
| Read |The file is opened for reading.
|
|
116
|
-
| Write|The file is opened for writing.
|
|
117
|
-
| ReadWrite| The file is opened for reading
|
|
118
|
-
| WriteEraseExisting | File is
|
|
119
|
-
|
|
|
120
|
-
|
|
|
121
|
-
| ReadWriteAppend | File is opened for reading and writing and position is set at the end of the file |
|
|
115
|
+
| Read |The file is opened for reading. The Write method cannot be executed. |
|
|
116
|
+
| Write|The file is opened for writing. The Read cannot be executed. |
|
|
117
|
+
| ReadWrite| The file is opened for reading and writing |
|
|
118
|
+
| WriteEraseExisting | File is open for writing only. The existing content of the file is erased and an empty file is provided. |
|
|
119
|
+
| WriteAppend | File is open for writing only and the position is set at the end of the file |
|
|
120
|
+
| ReadWriteAppend | File is opened for reading and writing and the position is set at the end of the file |
|
|
122
121
|
}
|
|
123
122
|
#### ClientFile#close() : close a file
|
|
124
123
|
|
|
@@ -181,9 +180,9 @@ await clientFile.write(dataToWrite);
|
|
|
181
180
|
|
|
182
181
|
#### ClientFile#read(): Promise<Buffer> :reading data to the file
|
|
183
182
|
|
|
184
|
-
Data can be
|
|
183
|
+
Data can be written to the file at the current cursor position.
|
|
185
184
|
Data must be passed in a buffer.
|
|
186
|
-
* read will throw an exception if file is not opened
|
|
185
|
+
* read will throw an exception if the file is not opened
|
|
187
186
|
|
|
188
187
|
```javascript
|
|
189
188
|
|
|
@@ -198,7 +197,7 @@ const data: Buffer = await clientFile.read(200);
|
|
|
198
197
|
### notes
|
|
199
198
|
|
|
200
199
|
UInt64
|
|
201
|
-
* At this time BigInt, is not supported by all
|
|
202
|
-
UInt64 values are currently stored into
|
|
200
|
+
* At this time BigInt, is not supported by all versions of nodeJs that are targeted by node-opcua.
|
|
201
|
+
UInt64 values are currently stored into an array of 2 32bits numbers : [ High,Low]
|
|
203
202
|
|
|
204
203
|
|