node-opcua-generator
Advanced tools
Comparing version 2.103.0 to 2.104.0
@@ -6,2 +6,25 @@ "use strict"; | ||
*/ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -11,5 +34,5 @@ exports.produce_TScript_code = exports.writeStructuredType = exports.get_class_JScript_filename = exports.get_class_TScript_filename = void 0; | ||
// tslint:disable:max-depth | ||
const os = require("os"); | ||
const path = require("path"); | ||
const fs = require("fs"); | ||
const os = __importStar(require("os")); | ||
const path = __importStar(require("path")); | ||
const fs = __importStar(require("fs")); | ||
const node_opcua_assert_1 = require("node-opcua-assert"); | ||
@@ -16,0 +39,0 @@ const node_opcua_factory_1 = require("node-opcua-factory"); |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -11,2 +34,5 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -22,4 +48,4 @@ exports.generate = void 0; | ||
// | ||
const fs = require("fs"); | ||
const chalk = require("chalk"); | ||
const fs = __importStar(require("fs")); | ||
const chalk_1 = __importDefault(require("chalk")); | ||
// node 14 onward : import { readFile } from "fs/promises"; | ||
@@ -151,3 +177,3 @@ const { readFile } = fs.promises; | ||
if (doDebug) { | ||
debugLog(" data=", chalk.cyan(name.padEnd(43, " ")), data.dataTypeNodeId.toString().padEnd(43, " "), data.binaryEncodingNodeId.toString().padEnd(43, " ")); | ||
debugLog(" data=", chalk_1.default.cyan(name.padEnd(43, " ")), data.dataTypeNodeId.toString().padEnd(43, " "), data.binaryEncodingNodeId.toString().padEnd(43, " ")); | ||
} | ||
@@ -154,0 +180,0 @@ return data; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -19,7 +42,7 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
// tslint:disable:no-console | ||
const fs = require("fs"); | ||
const fs = __importStar(require("fs")); | ||
// node 14 onward : import { mkdir } from "fs/promises"; | ||
const { mkdir } = fs.promises; | ||
const path = require("path"); | ||
const ts = require("typescript"); | ||
const path = __importStar(require("path")); | ||
const ts = __importStar(require("typescript")); | ||
const node_opcua_assert_1 = require("node-opcua-assert"); | ||
@@ -112,3 +135,3 @@ const node_opcua_debug_1 = require("node-opcua-debug"); | ||
if (generatedSourceIsOutdated) { | ||
const module = yield Promise.resolve(`${localSchemaFile}`).then(s => require(s)); | ||
const module = yield Promise.resolve(`${localSchemaFile}`).then(s => __importStar(require(s))); | ||
const schema = module[schemaName + "_Schema"]; | ||
@@ -156,3 +179,3 @@ if (!schema) { | ||
const schemaFile = path.join(folderHint, schema + "_schema.ts"); | ||
const module = yield Promise.resolve(`${schemaFile}`).then(s => require(s)); | ||
const module = yield Promise.resolve(`${schemaFile}`).then(s => __importStar(require(s))); | ||
if (!module) { | ||
@@ -159,0 +182,0 @@ throw new Error("cannot find " + schemaFile); |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.normalize_require_file = void 0; | ||
const path = require("path"); | ||
const path = __importStar(require("path")); | ||
// --------------------------------------------------------------------------------------------------------------------- | ||
@@ -6,0 +29,0 @@ /** |
{ | ||
"name": "node-opcua-generator", | ||
"version": "2.103.0", | ||
"version": "2.104.0", | ||
"description": "pure nodejs OPCUA SDK - module generator", | ||
@@ -16,17 +16,17 @@ "main": "./dist/index.js", | ||
"chalk": "4.1.2", | ||
"node-opcua-assert": "2.98.1", | ||
"node-opcua-assert": "2.104.0", | ||
"node-opcua-constants": "2.98.1", | ||
"node-opcua-debug": "2.99.0", | ||
"node-opcua-factory": "2.99.0", | ||
"node-opcua-nodeid": "2.99.0", | ||
"node-opcua-schemas": "2.103.0", | ||
"node-opcua-utils": "2.98.1" | ||
"node-opcua-debug": "2.104.0", | ||
"node-opcua-factory": "2.104.0", | ||
"node-opcua-nodeid": "2.104.0", | ||
"node-opcua-schemas": "2.104.0", | ||
"node-opcua-utils": "2.104.0" | ||
}, | ||
"devDependencies": { | ||
"node-opcua-basic-types": "2.99.0", | ||
"node-opcua-binary-stream": "2.98.1", | ||
"node-opcua-extension-object": "2.99.0", | ||
"node-opcua-packet-analyzer": "2.102.0", | ||
"node-opcua-status-code": "2.98.1", | ||
"prettier": "^2.8.7", | ||
"node-opcua-basic-types": "2.104.0", | ||
"node-opcua-binary-stream": "2.104.0", | ||
"node-opcua-extension-object": "2.104.0", | ||
"node-opcua-packet-analyzer": "2.104.0", | ||
"node-opcua-status-code": "2.104.0", | ||
"prettier": "^2.8.8", | ||
"should": "^13.2.3", | ||
@@ -50,3 +50,3 @@ "underscore": "^1.13.6" | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "e206cac2daf39bd07e5ac6cbd744f966bb54759e", | ||
"gitHead": "3cd6d355e8b3c66822d08a3ca682659ea5d1a55d", | ||
"files": [ | ||
@@ -53,0 +53,0 @@ "dist", |
@@ -10,3 +10,3 @@ /* eslint-disable max-statements */ | ||
import * as fs from "fs"; | ||
import * as chalk from "chalk"; | ||
import chalk from "chalk"; | ||
// node 14 onward : import { readFile } from "fs/promises"; | ||
@@ -13,0 +13,0 @@ const { readFile } = fs.promises; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
173640
2924
38
+ Addednode-opcua-assert@2.104.0(transitive)
+ Addednode-opcua-basic-types@2.104.0(transitive)
+ Addednode-opcua-binary-stream@2.104.0(transitive)
+ Addednode-opcua-buffer-utils@2.104.0(transitive)
+ Addednode-opcua-data-model@2.104.0(transitive)
+ Addednode-opcua-date-time@2.104.0(transitive)
+ Addednode-opcua-debug@2.104.0(transitive)
+ Addednode-opcua-enum@2.104.0(transitive)
+ Addednode-opcua-extension-object@2.104.0(transitive)
+ Addednode-opcua-factory@2.104.0(transitive)
+ Addednode-opcua-nodeid@2.104.0(transitive)
+ Addednode-opcua-schemas@2.104.0(transitive)
+ Addednode-opcua-status-code@2.104.0(transitive)
+ Addednode-opcua-utils@2.104.0(transitive)
+ Addednode-opcua-variant@2.104.0(transitive)
+ Addednode-opcua-xml2json@2.104.0(transitive)
- Removednode-opcua-assert@2.98.1(transitive)
- Removednode-opcua-basic-types@2.99.0(transitive)
- Removednode-opcua-binary-stream@2.98.1(transitive)
- Removednode-opcua-buffer-utils@2.98.1(transitive)
- Removednode-opcua-data-model@2.102.0(transitive)
- Removednode-opcua-date-time@2.99.0(transitive)
- Removednode-opcua-debug@2.99.0(transitive)
- Removednode-opcua-enum@2.98.1(transitive)
- Removednode-opcua-extension-object@2.99.0(transitive)
- Removednode-opcua-factory@2.99.0(transitive)
- Removednode-opcua-nodeid@2.99.0(transitive)
- Removednode-opcua-schemas@2.103.0(transitive)
- Removednode-opcua-status-code@2.98.1(transitive)
- Removednode-opcua-utils@2.98.1(transitive)
- Removednode-opcua-variant@2.102.0(transitive)
- Removednode-opcua-xml2json@2.103.0(transitive)
Updatednode-opcua-assert@2.104.0
Updatednode-opcua-debug@2.104.0
Updatednode-opcua-factory@2.104.0
Updatednode-opcua-nodeid@2.104.0
Updatednode-opcua-schemas@2.104.0
Updatednode-opcua-utils@2.104.0