node-opcua-generator
Advanced tools
Comparing version 2.67.0 to 2.68.0
@@ -128,3 +128,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const content = yield readFile(filename, "ascii"); | ||
const content = yield readFile(filename, "utf-8"); | ||
const idProvider = { | ||
@@ -131,0 +131,0 @@ getDataTypeAndEncodingId(name) { |
@@ -35,3 +35,3 @@ "use strict"; | ||
function compileTScriptCode(typescriptFilename) { | ||
const content = fs.readFileSync(typescriptFilename, "ascii"); | ||
const content = fs.readFileSync(typescriptFilename, "utf-8"); | ||
const compilerOptions = { | ||
@@ -50,4 +50,4 @@ module: ts.ModuleKind.CommonJS, | ||
const sourceMapFilename = typescriptFilename.replace(/\.ts$/, ".js.map"); | ||
fs.writeFileSync(javascriptFilename, res1.outputText, "ascii"); | ||
fs.writeFileSync(sourceMapFilename, res1.sourceMapText, "ascii"); | ||
fs.writeFileSync(javascriptFilename, res1.outputText, "utf-8"); | ||
fs.writeFileSync(sourceMapFilename, res1.sourceMapText, "utf-8"); | ||
return res1.outputText; | ||
@@ -54,0 +54,0 @@ } |
@@ -18,7 +18,7 @@ "use strict"; | ||
save(filename) { | ||
(0, fs_1.writeFileSync)(filename, this.toString(), "ascii"); | ||
(0, fs_1.writeFileSync)(filename, this.toString(), "utf-8"); | ||
} | ||
saveFormat(filename, formatter) { | ||
const code = formatter(this.toString()); | ||
(0, fs_1.writeFileSync)(filename, code, "ascii"); | ||
(0, fs_1.writeFileSync)(filename, code, "utf-8"); | ||
} | ||
@@ -25,0 +25,0 @@ } |
{ | ||
"name": "node-opcua-generator", | ||
"version": "2.67.0", | ||
"version": "2.68.0", | ||
"description": "pure nodejs OPCUA SDK - module -generator", | ||
@@ -17,24 +17,24 @@ "main": "./dist/index.js", | ||
"node-opcua-assert": "2.66.0", | ||
"node-opcua-basic-types": "2.67.0", | ||
"node-opcua-basic-types": "2.68.0", | ||
"node-opcua-buffer-utils": "2.67.0", | ||
"node-opcua-constants": "2.67.0", | ||
"node-opcua-data-model": "2.67.0", | ||
"node-opcua-data-value": "2.67.0", | ||
"node-opcua-date-time": "2.67.0", | ||
"node-opcua-debug": "2.67.0", | ||
"node-opcua-data-model": "2.68.0", | ||
"node-opcua-data-value": "2.68.0", | ||
"node-opcua-date-time": "2.68.0", | ||
"node-opcua-debug": "2.68.0", | ||
"node-opcua-enum": "2.67.0", | ||
"node-opcua-factory": "2.67.0", | ||
"node-opcua-factory": "2.68.0", | ||
"node-opcua-guid": "2.66.0", | ||
"node-opcua-nodeid": "2.67.0", | ||
"node-opcua-numeric-range": "2.67.0", | ||
"node-opcua-schemas": "2.67.0", | ||
"node-opcua-nodeid": "2.68.0", | ||
"node-opcua-numeric-range": "2.68.0", | ||
"node-opcua-schemas": "2.68.0", | ||
"node-opcua-status-code": "2.67.0", | ||
"node-opcua-utils": "2.67.0", | ||
"node-opcua-variant": "2.67.0", | ||
"node-opcua-xml2json": "2.67.0" | ||
"node-opcua-variant": "2.68.0", | ||
"node-opcua-xml2json": "2.68.0" | ||
}, | ||
"devDependencies": { | ||
"node-opcua-binary-stream": "2.67.0", | ||
"node-opcua-extension-object": "2.67.0", | ||
"node-opcua-packet-analyzer": "2.67.0", | ||
"node-opcua-extension-object": "2.68.0", | ||
"node-opcua-packet-analyzer": "2.68.0", | ||
"prettier": "^2.6.1", | ||
@@ -60,3 +60,3 @@ "should": "^13.2.3", | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "74c2fd7d4ce3eb48d25a911258bf90a64218ea0e" | ||
"gitHead": "363b466440d0910acddd0cde2c37792ce4724d76" | ||
} |
@@ -142,3 +142,3 @@ /* eslint-disable max-statements */ | ||
export async function generate(filename: string, generatedTypescriptFilename: string): Promise<void> { | ||
const content = await readFile(filename, "ascii"); | ||
const content = await readFile(filename, "utf-8"); | ||
@@ -145,0 +145,0 @@ const idProvider: MapDataTypeAndEncodingIdProvider = { |
@@ -30,3 +30,3 @@ /* istanbul ignore file */ | ||
function compileTScriptCode(typescriptFilename: string): string { | ||
const content = fs.readFileSync(typescriptFilename, "ascii"); | ||
const content = fs.readFileSync(typescriptFilename, "utf-8"); | ||
@@ -52,4 +52,4 @@ const compilerOptions = { | ||
fs.writeFileSync(javascriptFilename, res1.outputText, "ascii"); | ||
fs.writeFileSync(sourceMapFilename, res1.sourceMapText!, "ascii"); | ||
fs.writeFileSync(javascriptFilename, res1.outputText, "utf-8"); | ||
fs.writeFileSync(sourceMapFilename, res1.sourceMapText!, "utf-8"); | ||
@@ -56,0 +56,0 @@ return res1.outputText; |
@@ -16,3 +16,3 @@ /** | ||
public save(filename: string): void { | ||
writeFileSync(filename, this.toString(), "ascii"); | ||
writeFileSync(filename, this.toString(), "utf-8"); | ||
} | ||
@@ -22,4 +22,4 @@ | ||
const code = formatter(this.toString()); | ||
writeFileSync(filename, code, "ascii"); | ||
writeFileSync(filename, code, "utf-8"); | ||
} | ||
} |
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
+ Addednode-opcua-basic-types@2.68.0(transitive)
+ Addednode-opcua-data-model@2.68.0(transitive)
+ Addednode-opcua-data-value@2.68.0(transitive)
+ Addednode-opcua-date-time@2.68.0(transitive)
+ Addednode-opcua-debug@2.68.0(transitive)
+ Addednode-opcua-extension-object@2.68.0(transitive)
+ Addednode-opcua-factory@2.68.0(transitive)
+ Addednode-opcua-nodeid@2.68.0(transitive)
+ Addednode-opcua-numeric-range@2.68.0(transitive)
+ Addednode-opcua-schemas@2.68.0(transitive)
+ Addednode-opcua-variant@2.68.0(transitive)
+ Addednode-opcua-xml2json@2.68.0(transitive)
- Removednode-opcua-basic-types@2.67.0(transitive)
- Removednode-opcua-data-model@2.67.0(transitive)
- Removednode-opcua-data-value@2.67.0(transitive)
- Removednode-opcua-date-time@2.67.0(transitive)
- Removednode-opcua-debug@2.67.0(transitive)
- Removednode-opcua-extension-object@2.67.0(transitive)
- Removednode-opcua-factory@2.67.0(transitive)
- Removednode-opcua-nodeid@2.67.0(transitive)
- Removednode-opcua-numeric-range@2.67.0(transitive)
- Removednode-opcua-schemas@2.67.0(transitive)
- Removednode-opcua-variant@2.67.0(transitive)
- Removednode-opcua-xml2json@2.67.0(transitive)
Updatednode-opcua-data-model@2.68.0
Updatednode-opcua-data-value@2.68.0
Updatednode-opcua-date-time@2.68.0
Updatednode-opcua-debug@2.68.0
Updatednode-opcua-factory@2.68.0
Updatednode-opcua-nodeid@2.68.0
Updatednode-opcua-schemas@2.68.0
Updatednode-opcua-variant@2.68.0
Updatednode-opcua-xml2json@2.68.0