Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-opcua-generator

Package Overview
Dependencies
Maintainers
1
Versions
216
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-generator - npm Package Compare versions

Comparing version 2.67.0 to 2.68.0

2

dist/generate_extension_object_code.js

@@ -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");
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc