csv-generate
Advanced tools
Comparing version 4.3.1 to 4.4.0
@@ -14,2 +14,15 @@ | ||
export type ColumnsFunctionArgs = { | ||
options: Options; | ||
state: State; | ||
}; | ||
export type ColumnsFunction = (args: ColumnsFunctionArgs) => string; | ||
export type State = { | ||
start_time: number, | ||
fixed_size_buffer: number, | ||
count_written: number, | ||
count_created: number, | ||
} | ||
export interface Options extends stream.ReadableOptions { | ||
@@ -19,3 +32,3 @@ /** | ||
*/ | ||
columns?: number | string[]; | ||
columns?: number | (string | ColumnsFunction)[]; | ||
/** | ||
@@ -22,0 +35,0 @@ * Set the field delimiter. |
@@ -14,2 +14,15 @@ | ||
export type ColumnsFunctionArgs = { | ||
options: Options; | ||
state: State; | ||
}; | ||
export type ColumnsFunction = (args: ColumnsFunctionArgs) => string; | ||
export type State = { | ||
start_time: number, | ||
fixed_size_buffer: number, | ||
count_written: number, | ||
count_created: number, | ||
} | ||
export interface Options extends stream.ReadableOptions { | ||
@@ -19,3 +32,3 @@ /** | ||
*/ | ||
columns?: number | string[]; | ||
columns?: number | (string | ColumnsFunction)[]; | ||
/** | ||
@@ -22,0 +35,0 @@ * Set the field delimiter. |
{ | ||
"version": "4.3.1", | ||
"version": "4.4.0", | ||
"name": "csv-generate", | ||
@@ -128,3 +128,3 @@ "description": "CSV and object generation implementing the Node.js `stream.Readable` API", | ||
}, | ||
"gitHead": "a312a7c4cc8a58cefdaa16cb1ddbf14bf047c4b9" | ||
"gitHead": "6575fc60ef848fb7fd3acbf5ff32130345fe1524" | ||
} |
Sorry, the diff of this file is not supported yet
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
1201386
29479