node-opcua-generator 2.71.0 → 2.72.2

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.
@@ -1,15 +1,15 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.makeWrite = void 0;
4
- const makeWrite = (f) => {
5
- const _f = (...args) => f.write(...args);
6
- _f.indent = () => {
7
- /** */
8
- };
9
- _f.pop = () => {
10
- /** */
11
- };
12
- return _f;
13
- };
14
- exports.makeWrite = makeWrite;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.makeWrite = void 0;
4
+ const makeWrite = (f) => {
5
+ const _f = (...args) => f.write(...args);
6
+ _f.indent = () => {
7
+ /** */
8
+ };
9
+ _f.pop = () => {
10
+ /** */
11
+ };
12
+ return _f;
13
+ };
14
+ exports.makeWrite = makeWrite;
15
15
  //# sourceMappingURL=write_func.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-opcua-generator",
3
- "version": "2.71.0",
3
+ "version": "2.72.2",
4
4
  "description": "pure nodejs OPCUA SDK - module -generator",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -14,28 +14,28 @@
14
14
  "dependencies": {
15
15
  "chalk": "4.1.2",
16
16
  "node-opcua-assert": "2.66.0",
17
- "node-opcua-basic-types": "2.71.0",
17
+ "node-opcua-basic-types": "2.72.1",
18
18
  "node-opcua-buffer-utils": "2.71.0",
19
19
  "node-opcua-constants": "2.70.0",
20
- "node-opcua-data-model": "2.71.0",
21
- "node-opcua-data-value": "2.71.0",
20
+ "node-opcua-data-model": "2.72.1",
21
+ "node-opcua-data-value": "2.72.2",
22
22
  "node-opcua-date-time": "2.71.0",
23
23
  "node-opcua-debug": "2.71.0",
24
24
  "node-opcua-enum": "2.71.0",
25
- "node-opcua-factory": "2.71.0",
25
+ "node-opcua-factory": "2.72.1",
26
26
  "node-opcua-guid": "2.66.0",
27
27
  "node-opcua-nodeid": "2.71.0",
28
- "node-opcua-numeric-range": "2.71.0",
29
- "node-opcua-schemas": "2.71.0",
28
+ "node-opcua-numeric-range": "2.72.2",
29
+ "node-opcua-schemas": "2.72.2",
30
30
  "node-opcua-status-code": "2.71.0",
31
31
  "node-opcua-utils": "2.71.0",
32
- "node-opcua-variant": "2.71.0",
32
+ "node-opcua-variant": "2.72.2",
33
33
  "node-opcua-xml2json": "2.71.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "node-opcua-binary-stream": "2.71.0",
37
- "node-opcua-extension-object": "2.71.0",
38
- "node-opcua-packet-analyzer": "2.71.0",
37
+ "node-opcua-extension-object": "2.72.1",
38
+ "node-opcua-packet-analyzer": "2.72.1",
39
39
  "prettier": "^2.7.1",
40
40
  "should": "^13.2.3",
41
41
  "source-map-support": "^0.5.21",
@@ -56,5 +56,5 @@
56
56
  "internet of things"
57
57
  ],
58
58
  "homepage": "http://node-opcua.github.io/",
59
- "gitHead": "10f7cc1e1cd30dfef75adad9cb709a78401fabf3"
59
+ "gitHead": "07dcdd8e8c7f2b55544c6e23023093e35674829c"
60
60
  }
@@ -63,7 +63,7 @@ function writeEnumeratedType(enumerationSchema: EnumerationDefinitionSchema): vo
63
63
 
64
64
  const str = [];
65
65
 
66
- const values = Object.keys(enumerationSchema.enumValues).filter((a: any) => a.match("[0-9]+"));
66
+ const values = Object.keys(enumerationSchema.enumValues).filter((a: any) => a.match(/^[0-9]+$/));
67
67
 
68
68
  for (const value of values) {
69
69
  str.push(` ${enumerationSchema.enumValues[value]} = ${value}`);
@@ -260,13 +260,13 @@ import {
260
260
 
261
261
  write(``);
262
262
 
263
- write(`export class DataTypeDefinition extends BaseUAObject {`);
264
- write(` constructor(options: any) {`);
265
- write(` options = options; // do not remove`);
266
- write(` super();`);
267
- write(` }`);
268
- write(`}`);
269
- write(``);
263
+ // write(`export class DataTypeDefinition extends BaseUAObject {`);
264
+ // write(` constructor(options: any) {`);
265
+ // write(` options = options; // do not remove`);
266
+ // write(` super();`);
267
+ // write(` }`);
268
+ // write(`}`);
269
+ // write(``);
270
270
 
271
271
  const alreadyDone: { [key: string]: any } = {};
272
272
  /* tslint:disable:no-string-literal */