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

node-opcua-xml2json

Package Overview
Dependencies
Maintainers
1
Versions
157
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-xml2json - npm Package Compare versions

Comparing version 2.117.0 to 2.118.0

30

dist/source/nodejs/xml2json_fs.js
"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 __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Xml2JsonFs = void 0;
const fs = __importStar(require("fs"));
const fs_1 = __importDefault(require("fs"));
const xml2json_1 = require("../xml2json");

@@ -37,3 +17,3 @@ class Xml2JsonFs extends xml2json_1.Xml2Json {

// slightly faster but require more memory ..
fs.readFile(xmlFile, (err, data) => {
fs_1.default.readFile(xmlFile, (err, data) => {
if (err) {

@@ -54,3 +34,3 @@ return callback(err);

const parser = this._prepareParser(callback);
fs.createReadStream(xmlFile, { autoClose: true, encoding: "utf8" }).pipe(new Bomstrip()).pipe(parser);
fs_1.default.createReadStream(xmlFile, { autoClose: true, encoding: "utf8" }).pipe(new Bomstrip()).pipe(parser);
}

@@ -57,0 +37,0 @@ }

8

package.json
{
"name": "node-opcua-xml2json",
"version": "2.117.0",
"version": "2.118.0",
"description": "pure nodejs OPCUA SDK - module xml2json",

@@ -25,4 +25,4 @@ "main": "dist/source/index.js",

"mocha": "^10.2.0",
"node-opcua-debug": "2.117.0",
"node-opcua-nodesets": "2.110.0",
"node-opcua-debug": "2.118.0",
"node-opcua-nodesets": "2.118.0",
"should": "^13.2.3"

@@ -43,3 +43,3 @@ },

"homepage": "http://node-opcua.github.io/",
"gitHead": "99ed7589a203923985c25be8907b36485c798bbe",
"gitHead": "6210aaa97b43554e3982113041963b2720e50a95",
"files": [

@@ -46,0 +46,0 @@ "dist",

@@ -1,2 +0,2 @@

import * as fs from "fs";
import fs from "fs";
import { Callback, SimpleCallback, Xml2Json } from "../xml2json";

@@ -3,0 +3,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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