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
7.0.1
to
7.0.2
+2
-2
package.json
{
"name": "@json2csv/whatwg",
"version": "7.0.1",
"version": "7.0.2",
"description": "WHATWG Transform and Async interface to convert JSON into CSV.",

@@ -51,4 +51,4 @@ "keywords": [

"dependencies": {
"@json2csv/plainjs": "^7.0.1"
"@json2csv/plainjs": "^7.0.2"
}
}

@@ -6,3 +6,3 @@ import type { ParserOptions, StreamParserOptions } from '@json2csv/plainjs';

TRaw extends object,
T extends object
T extends object,
> {

@@ -17,3 +17,3 @@ private opts: ParserOptions<TRaw, T>;

writableStrategy?: QueuingStrategy<TRaw>,
readableStrategy?: QueuingStrategy<string>
readableStrategy?: QueuingStrategy<string>,
) {

@@ -40,3 +40,3 @@ this.opts = opts;

| TRaw
| ReadableStream<TRaw>
| ReadableStream<TRaw>,
) {

@@ -72,3 +72,3 @@ if (typeof data === 'string' || ArrayBuffer.isView(data)) {

throw new Error(
'Data should be a JSON object, JSON array, typed array, string or stream'
'Data should be a JSON object, JSON array, typed array, string or stream',
);

@@ -81,3 +81,3 @@ }

this.writableStrategy,
this.readableStrategy
this.readableStrategy,
);

@@ -84,0 +84,0 @@ return data.pipeThrough(transform);

@@ -15,3 +15,3 @@ import {

opts: ParserOptions<TRaw, T> = {},
asyncOpts: StreamParserOptions = {}
asyncOpts: StreamParserOptions = {},
) {

@@ -52,3 +52,3 @@ super(opts, asyncOpts);

TRaw extends object,
T extends object
T extends object,
>

@@ -65,3 +65,3 @@ extends TransformStream<TRaw, string>

writableStrategy?: QueuingStrategy<TRaw>,
readableStrategy?: QueuingStrategy<string>
readableStrategy?: QueuingStrategy<string>,
) {

@@ -102,3 +102,3 @@ const transformer = new JSON2CSVWHATWGTransformer<TRaw, T>(opts, asyncOpts);

callback: EventListenerOrEventListenerObject | null,
options?: boolean | AddEventListenerOptions | undefined
options?: boolean | AddEventListenerOptions | undefined,
): void {

@@ -115,3 +115,3 @@ this.delegate?.addEventListener(type, callback, options);

callback: EventListenerOrEventListenerObject | null,
options?: boolean | EventListenerOptions | undefined
options?: boolean | EventListenerOptions | undefined,
): void {

@@ -118,0 +118,0 @@ this.delegate?.removeEventListener(type, callback, options);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet