node-opcua-generator 2.98.0 → 2.98.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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"opcua_code_generator.js","sourceRoot":"","sources":["../source/opcua_code_generator.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,0BAA0B;AAC1B;;GAEG;AACH,4BAA4B;AAC5B,2CAA+D;AAE/D,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAE1B,SAAe,IAAI;;QACf,MAAM,SAAS,GAAG,eAAe,CAAC;QAClC,IAAA,4CAAgC,EAAC,SAAS,CAAC,CAAC;IAChD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./line_file";
2
+ export * from "./normalize_require_file";
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./line_file"), exports);
18
+ __exportStar(require("./normalize_require_file"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,2DAAyC"}
@@ -0,0 +1,6 @@
1
+ import { LineFile } from "node-opcua-utils";
2
+ export declare class LineFile1 extends LineFile {
3
+ constructor();
4
+ save(filename: string): void;
5
+ saveFormat(filename: string, formatter: (code: string) => string): void;
6
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LineFile1 = void 0;
4
+ /**
5
+ * @module node-opcua-utils
6
+ */
7
+ const fs_1 = require("fs");
8
+ const node_opcua_utils_1 = require("node-opcua-utils");
9
+ class LineFile1 extends node_opcua_utils_1.LineFile {
10
+ constructor() {
11
+ super();
12
+ this.write("// --------- This code has been automatically generated !!! " + new Date().toISOString());
13
+ this.write("/**");
14
+ this.write(" * @module node-opcua-types");
15
+ this.write(" */");
16
+ }
17
+ save(filename) {
18
+ (0, fs_1.writeFileSync)(filename, this.toString(), "utf-8");
19
+ }
20
+ saveFormat(filename, formatter) {
21
+ const code = formatter(this.toString());
22
+ (0, fs_1.writeFileSync)(filename, code, "utf-8");
23
+ }
24
+ }
25
+ exports.LineFile1 = LineFile1;
26
+ //# sourceMappingURL=line_file.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"line_file.js","sourceRoot":"","sources":["../../source/utils/line_file.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,2BAAmC;AACnC,uDAA4C;AAE5C,MAAa,SAAU,SAAQ,2BAAQ;IACnC;QACI,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,CAAC,8DAA8D,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC;QACtG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAClB,IAAI,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;QAC1C,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC;IACM,IAAI,CAAC,QAAgB;QACxB,IAAA,kBAAa,EAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC;IAEM,UAAU,CAAC,QAAgB,EAAE,SAAmC;QACnE,MAAM,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QACxC,IAAA,kBAAa,EAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAC3C,CAAC;CACJ;AAhBD,8BAgBC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @method normalize_require_file
3
+ * @param baseFolder
4
+ * @param fullPathToFile
5
+ *
6
+ *
7
+ * @example:
8
+ * normalize_require_file("/home/bob/folder1/","/home/bob/folder1/folder2/toto.js").should.eql("./folder2/toto");
9
+ */
10
+ export declare function normalize_require_file(baseFolder: string, fullPathToFile: string): string;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.normalize_require_file = void 0;
4
+ const path = require("path");
5
+ // ---------------------------------------------------------------------------------------------------------------------
6
+ /**
7
+ * @method normalize_require_file
8
+ * @param baseFolder
9
+ * @param fullPathToFile
10
+ *
11
+ *
12
+ * @example:
13
+ * normalize_require_file("/home/bob/folder1/","/home/bob/folder1/folder2/toto.js").should.eql("./folder2/toto");
14
+ */
15
+ function normalize_require_file(baseFolder, fullPathToFile) {
16
+ let localFile = path.relative(baseFolder, fullPathToFile).replace(/\\/g, "/");
17
+ // append ./ if necessary
18
+ if (localFile.substring(0, 1) !== ".") {
19
+ localFile = "./" + localFile;
20
+ }
21
+ // remove extension
22
+ localFile = localFile.substring(0, localFile.length - path.extname(localFile).length);
23
+ return localFile;
24
+ }
25
+ exports.normalize_require_file = normalize_require_file;
26
+ //# sourceMappingURL=normalize_require_file.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalize_require_file.js","sourceRoot":"","sources":["../../source/utils/normalize_require_file.ts"],"names":[],"mappings":";;;AAAA,6BAA6B;AAC7B,wHAAwH;AACxH;;;;;;;;GAQG;AACH,SAAgB,sBAAsB,CAAC,UAAkB,EAAE,cAAsB;IAC7E,IAAI,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC9E,yBAAyB;IACzB,IAAI,SAAS,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,GAAG,EAAE;QACnC,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;KAChC;IACD,mBAAmB;IACnB,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC,CAAC,EAAE,SAAS,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACtF,OAAO,SAAS,CAAC;AACrB,CAAC;AATD,wDASC"}
@@ -0,0 +1,7 @@
1
+ import { LineFile1 } from "./line_file";
2
+ export interface WriteFunc {
3
+ (...args: string[]): void;
4
+ indent(): void;
5
+ pop(): void;
6
+ }
7
+ export declare const makeWrite: (f: LineFile1) => WriteFunc;
@@ -0,0 +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;
15
+ //# sourceMappingURL=write_func.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"write_func.js","sourceRoot":"","sources":["../../source/utils/write_func.ts"],"names":[],"mappings":";;;AAQO,MAAM,SAAS,GAAG,CAAC,CAAY,EAAa,EAAE;IACjD,MAAM,EAAE,GAAc,CAAC,GAAG,IAAc,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;IAC9D,EAAE,CAAC,MAAM,GAAG,GAAG,EAAE;QACb,MAAM;IACV,CAAC,CAAC;IACF,EAAE,CAAC,GAAG,GAAG,GAAG,EAAE;QACV,MAAM;IACV,CAAC,CAAC;IACF,OAAO,EAAE,CAAC;AACd,CAAC,CAAC;AATW,QAAA,SAAS,aASpB"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "node-opcua-generator",
3
- "version": "2.98.0",
4
- "description": "pure nodejs OPCUA SDK - module -generator",
3
+ "version": "2.98.2",
4
+ "description": "pure nodejs OPCUA SDK - module generator",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "scripts": {
@@ -13,20 +13,20 @@
13
13
  },
14
14
  "dependencies": {
15
15
  "chalk": "4.1.2",
16
- "node-opcua-assert": "2.88.0",
17
- "node-opcua-constants": "2.88.0",
18
- "node-opcua-debug": "2.98.0",
19
- "node-opcua-factory": "2.98.0",
20
- "node-opcua-nodeid": "2.98.0",
21
- "node-opcua-schemas": "2.98.0",
22
- "node-opcua-utils": "2.98.0"
16
+ "node-opcua-assert": "2.98.1",
17
+ "node-opcua-constants": "2.98.1",
18
+ "node-opcua-debug": "2.98.1",
19
+ "node-opcua-factory": "2.98.1",
20
+ "node-opcua-nodeid": "2.98.1",
21
+ "node-opcua-schemas": "2.98.2",
22
+ "node-opcua-utils": "2.98.1"
23
23
  },
24
24
  "devDependencies": {
25
- "node-opcua-basic-types": "2.98.0",
26
- "node-opcua-binary-stream": "2.98.0",
27
- "node-opcua-extension-object": "2.98.0",
28
- "node-opcua-packet-analyzer": "2.98.0",
29
- "node-opcua-status-code": "2.98.0",
25
+ "node-opcua-basic-types": "2.98.1",
26
+ "node-opcua-binary-stream": "2.98.1",
27
+ "node-opcua-extension-object": "2.98.1",
28
+ "node-opcua-packet-analyzer": "2.98.1",
29
+ "node-opcua-status-code": "2.98.1",
30
30
  "prettier": "^2.8.7",
31
31
  "should": "^13.2.3",
32
32
  "underscore": "^1.13.6"
@@ -46,5 +46,9 @@
46
46
  "internet of things"
47
47
  ],
48
48
  "homepage": "http://node-opcua.github.io/",
49
- "gitHead": "07dcdd8e8c7f2b55544c6e23023093e35674829c"
49
+ "gitHead": "6df8aa25475ba1235e585566cb2dec68b7e7a85f",
50
+ "files": [
51
+ "dist",
52
+ "source"
53
+ ]
50
54
  }