node-opcua-file-transfer 2.63.2 → 2.65.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.
Files changed (2) hide show
  1. package/package.json +25 -25
  2. package/readme.md +12 -13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-opcua-file-transfer",
3
- "version": "2.63.2",
3
+ "version": "2.65.0",
4
4
  "description": "pure nodejs OPCUA SDK - module -server",
5
5
  "scripts": {
6
6
  "build": "tsc -b",
@@ -11,33 +11,33 @@
11
11
  "main": "./dist/index.js",
12
12
  "types": "./dist/index.d.ts",
13
13
  "dependencies": {
14
- "node-opcua-address-space": "2.63.2",
15
- "node-opcua-assert": "2.63.0",
16
- "node-opcua-basic-types": "2.63.2",
17
- "node-opcua-client": "2.63.2",
18
- "node-opcua-constants": "2.62.7",
19
- "node-opcua-data-model": "2.63.2",
20
- "node-opcua-debug": "2.63.2",
21
- "node-opcua-nodeid": "2.63.2",
22
- "node-opcua-nodesets": "2.63.0",
23
- "node-opcua-pki": "^2.13.0",
24
- "node-opcua-pseudo-session": "2.63.2",
25
- "node-opcua-secure-channel": "2.63.2",
26
- "node-opcua-server": "2.63.2",
27
- "node-opcua-service-call": "2.63.2",
28
- "node-opcua-service-read": "2.63.2",
29
- "node-opcua-service-translate-browse-path": "2.63.2",
30
- "node-opcua-status-code": "2.63.2",
31
- "node-opcua-types": "2.63.2",
32
- "node-opcua-variant": "2.63.2"
14
+ "node-opcua-address-space": "2.65.0",
15
+ "node-opcua-assert": "2.64.1",
16
+ "node-opcua-basic-types": "2.64.1",
17
+ "node-opcua-client": "2.65.0",
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.0",
25
+ "node-opcua-secure-channel": "2.65.0",
26
+ "node-opcua-server": "2.65.0",
27
+ "node-opcua-service-call": "2.65.0",
28
+ "node-opcua-service-read": "2.65.0",
29
+ "node-opcua-service-translate-browse-path": "2.65.0",
30
+ "node-opcua-status-code": "2.64.1",
31
+ "node-opcua-types": "2.65.0",
32
+ "node-opcua-variant": "2.64.1"
33
33
  },
34
34
  "devDependencies": {
35
35
  "memfs": "^3.4.1",
36
- "node-opcua-binary-stream": "2.63.2",
37
- "node-opcua-data-value": "2.63.2",
38
- "node-opcua-leak-detector": "2.63.2",
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
39
  "should": "^13.2.3",
40
- "sinon": "^12.0.1"
40
+ "sinon": "^13.0.1"
41
41
  },
42
42
  "author": "Etienne Rossignon",
43
43
  "license": "MIT",
@@ -54,5 +54,5 @@
54
54
  "internet of things"
55
55
  ],
56
56
  "homepage": "http://node-opcua.github.io/",
57
- "gitHead": "cdf7a20a7f3866900bc8379d002b467eb0c3f6bb"
57
+ "gitHead": "59b9cae30fb45633ad501f9cf3b74fb9d05e8960"
58
58
  }
package/readme.md CHANGED
@@ -14,7 +14,7 @@ $ npm install node-opcua-file-transfer
14
14
  ## exposing a File node in the addressSpace
15
15
 
16
16
  ```javascript
17
- import { OPCUAServer, UAFileType } from "node-opcua";
17
+ import { OPCUAServer, UAFile } from "node-opcua";
18
18
  import { installFileType } from "node-opcua-file-transfer";
19
19
 
20
20
  ```
@@ -44,7 +44,7 @@ const myFile = fileType.instantiate({
44
44
  nodeId: "s=MyFile",
45
45
  browseName: "MyFile",
46
46
  organizedBy: addressSpace.rootFolder.objects
47
- }) as UAFileType;
47
+ }) as UAFile;
48
48
 
49
49
  // now bind the opcuaFile object with our file
50
50
  installFileType(opcuaFile, {
@@ -112,13 +112,12 @@ await clientFile.open(mode);
112
112
 
113
113
  | Mode | Description |
114
114
  |------|-------------|
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 an writing |
118
- | WriteEraseExisting | File is opened for writing only. The existing content of the file is erased and an empty file is provided. |
119
- | ReadWriteEraseExisting | File is opened for reading and writing. The existing content of the file is erased and an empty file is provided.|
120
- | WriteAppend | File is opened for writing only and position is set at the end of the file |
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 writing to the file at the current cursor position.
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 version of nodeJs that are targeted by node-opcua.
202
- UInt64 values are currently stored into a array of 2 32bits numbers : [ High,Low]
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