Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@json2csv/whatwg

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@json2csv/whatwg - npm Package Compare versions

Comparing version
6.1.2
to
6.1.3
+10
-2
dist/cjs/AsyncParser.js

@@ -20,2 +20,6 @@ var __create = Object.create;

var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,

@@ -38,2 +42,8 @@ mod

}
/**
* Main function that converts json to csv.
*
* @param {Stream|Array|Object} data Array of JSON objects to be converted to CSV
* @returns {Stream} A stream producing the CSV formated data as a string
*/
parse(data) {

@@ -78,3 +88,1 @@ if (typeof data === "string" || ArrayBuffer.isView(data)) {

}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {});

@@ -20,2 +20,6 @@ var __create = Object.create;

var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,

@@ -27,9 +31,12 @@ mod

__export(src_exports, {
AsyncParser: () => import_AsyncParser.default,
TransformStream: () => import_TransformStream.default
});
module.exports = __toCommonJS(src_exports);
var import_AsyncParser = __toESM(require("./AsyncParser.js"));
var import_TransformStream = __toESM(require("./TransformStream.js"));
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
AsyncParser,
TransformStream
});
+0
-2

@@ -76,3 +76,1 @@ var __defProp = Object.defineProperty;

}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {});
{
"name": "@json2csv/whatwg",
"version": "6.1.2",
"version": "6.1.3",
"description": "WHATWG Transform and Async interface to convert JSON into CSV.",

@@ -43,3 +43,3 @@ "keywords": [

"test:raw": "node test",
"deprendencies:update-internal": "npm uninstall @json2csv/plainjs && npm install @json2csv/plainjs",
"dependencies:update-internal": "npm uninstall @json2csv/plainjs && npm install @json2csv/plainjs",
"build:cjs": "node ../../build-cjs.js whatwg",

@@ -49,4 +49,4 @@ "prepublishOnly": "npm run build:cjs"

"dependencies": {
"@json2csv/plainjs": "^6.1.2"
"@json2csv/plainjs": "^6.1.3"
}
}

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

export { default as AsyncParser } from './AsyncParser.js';
export { default as TransformStream } from './TransformStream.js';