node-opcua-generator 2.96.0 → 2.98.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.
- package/package.json +13 -13
- package/dist/factory_code_generator.d.ts +0 -9
- package/dist/factory_code_generator.js +0 -818
- package/dist/factory_code_generator.js.map +0 -1
- package/dist/generate_extension_object_code.d.ts +0 -1
- package/dist/generate_extension_object_code.js +0 -320
- package/dist/generate_extension_object_code.js.map +0 -1
- package/dist/generator.d.ts +0 -8
- package/dist/generator.js +0 -172
- package/dist/generator.js.map +0 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -14
- package/dist/index.js.map +0 -1
- package/dist/opcua_code_generator.d.ts +0 -1
- package/dist/opcua_code_generator.js +0 -26
- package/dist/opcua_code_generator.js.map +0 -1
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/index.js +0 -19
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/line_file.d.ts +0 -6
- package/dist/utils/line_file.js +0 -26
- package/dist/utils/line_file.js.map +0 -1
- package/dist/utils/normalize_require_file.d.ts +0 -10
- package/dist/utils/normalize_require_file.js +0 -26
- package/dist/utils/normalize_require_file.js.map +0 -1
- package/dist/utils/write_func.d.ts +0 -7
- package/dist/utils/write_func.js +0 -15
- package/dist/utils/write_func.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/utils/index.d.ts
DELETED
package/dist/utils/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
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
|
package/dist/utils/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,2DAAyC"}
|
package/dist/utils/line_file.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,10 +0,0 @@
|
|
|
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;
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/utils/write_func.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|