Skip to content

Commit

Permalink
fix(csv-stringify): remove non-functional auto value
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Oct 5, 2023
1 parent 632c10e commit 6e8a9ca
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 36 deletions.
3 changes: 0 additions & 3 deletions packages/csv-stringify/dist/cjs/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,6 @@ const normalize_options = function(opts) {
return [Error(`Invalid Option: record_delimiter must be a buffer or a string, got ${JSON.stringify(options.record_delimiter)}`)];
}
switch(options.record_delimiter){
case 'auto':
options.record_delimiter = null;
break;
case 'unix':
options.record_delimiter = "\n";
break;
Expand Down
6 changes: 3 additions & 3 deletions packages/csv-stringify/dist/cjs/index.d.cts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import * as stream from "stream";

export type Callback = (err: Error | undefined, output: string) => void
export type RecordDelimiter = string | Buffer | 'auto' | 'unix' | 'mac' | 'windows' | 'ascii' | 'unicode'
export type RecordDelimiter = string | Buffer | 'unix' | 'mac' | 'windows' | 'ascii' | 'unicode'

export type CastReturnObject = { value: string } & Pick<
Options,
Expand Down Expand Up @@ -101,8 +101,8 @@ export interface Options extends stream.TransformOptions {
quoted_string?: boolean
/**
* String used to delimit record rows or a special value
* special values are 'auto', 'unix', 'mac', 'windows', 'ascii', 'unicode'
* defaults to 'auto' (discovered in source or 'unix' if no source is specified).
* special values are 'unix', 'mac', 'windows', 'ascii', 'unicode'
* defaults to '\n'.
*/
record_delimiter?: RecordDelimiter
/**
Expand Down
3 changes: 0 additions & 3 deletions packages/csv-stringify/dist/cjs/sync.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,6 @@ const normalize_options = function(opts) {
return [Error(`Invalid Option: record_delimiter must be a buffer or a string, got ${JSON.stringify(options.record_delimiter)}`)];
}
switch(options.record_delimiter){
case 'auto':
options.record_delimiter = null;
break;
case 'unix':
options.record_delimiter = "\n";
break;
Expand Down
6 changes: 3 additions & 3 deletions packages/csv-stringify/dist/esm/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import * as stream from "stream";

export type Callback = (err: Error | undefined, output: string) => void
export type RecordDelimiter = string | Buffer | 'auto' | 'unix' | 'mac' | 'windows' | 'ascii' | 'unicode'
export type RecordDelimiter = string | Buffer | 'unix' | 'mac' | 'windows' | 'ascii' | 'unicode'

export type CastReturnObject = { value: string } & Pick<
Options,
Expand Down Expand Up @@ -101,8 +101,8 @@ export interface Options extends stream.TransformOptions {
quoted_string?: boolean
/**
* String used to delimit record rows or a special value
* special values are 'auto', 'unix', 'mac', 'windows', 'ascii', 'unicode'
* defaults to 'auto' (discovered in source or 'unix' if no source is specified).
* special values are 'unix', 'mac', 'windows', 'ascii', 'unicode'
* defaults to '\n'.
*/
record_delimiter?: RecordDelimiter
/**
Expand Down
3 changes: 0 additions & 3 deletions packages/csv-stringify/dist/esm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5420,9 +5420,6 @@ const normalize_options = function(opts) {
return [Error(`Invalid Option: record_delimiter must be a buffer or a string, got ${JSON.stringify(options.record_delimiter)}`)];
}
switch(options.record_delimiter){
case 'auto':
options.record_delimiter = null;
break;
case 'unix':
options.record_delimiter = "\n";
break;
Expand Down
3 changes: 0 additions & 3 deletions packages/csv-stringify/dist/esm/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -2266,9 +2266,6 @@ const normalize_options = function(opts) {
return [Error(`Invalid Option: record_delimiter must be a buffer or a string, got ${JSON.stringify(options.record_delimiter)}`)];
}
switch(options.record_delimiter){
case 'auto':
options.record_delimiter = null;
break;
case 'unix':
options.record_delimiter = "\n";
break;
Expand Down
3 changes: 0 additions & 3 deletions packages/csv-stringify/dist/iife/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5423,9 +5423,6 @@ var csv_stringify = (function (exports) {
return [Error(`Invalid Option: record_delimiter must be a buffer or a string, got ${JSON.stringify(options.record_delimiter)}`)];
}
switch(options.record_delimiter){
case 'auto':
options.record_delimiter = null;
break;
case 'unix':
options.record_delimiter = "\n";
break;
Expand Down
3 changes: 0 additions & 3 deletions packages/csv-stringify/dist/iife/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -2269,9 +2269,6 @@ var csv_stringify_sync = (function (exports) {
return [Error(`Invalid Option: record_delimiter must be a buffer or a string, got ${JSON.stringify(options.record_delimiter)}`)];
}
switch(options.record_delimiter){
case 'auto':
options.record_delimiter = null;
break;
case 'unix':
options.record_delimiter = "\n";
break;
Expand Down
3 changes: 0 additions & 3 deletions packages/csv-stringify/dist/umd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5426,9 +5426,6 @@
return [Error(`Invalid Option: record_delimiter must be a buffer or a string, got ${JSON.stringify(options.record_delimiter)}`)];
}
switch(options.record_delimiter){
case 'auto':
options.record_delimiter = null;
break;
case 'unix':
options.record_delimiter = "\n";
break;
Expand Down
3 changes: 0 additions & 3 deletions packages/csv-stringify/dist/umd/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -2272,9 +2272,6 @@
return [Error(`Invalid Option: record_delimiter must be a buffer or a string, got ${JSON.stringify(options.record_delimiter)}`)];
}
switch(options.record_delimiter){
case 'auto':
options.record_delimiter = null;
break;
case 'unix':
options.record_delimiter = "\n";
break;
Expand Down
3 changes: 0 additions & 3 deletions packages/csv-stringify/lib/api/normalize_options.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,6 @@ const normalize_options = function(opts) {
return [Error(`Invalid Option: record_delimiter must be a buffer or a string, got ${JSON.stringify(options.record_delimiter)}`)];
}
switch(options.record_delimiter){
case 'auto':
options.record_delimiter = null;
break;
case 'unix':
options.record_delimiter = "\n";
break;
Expand Down
6 changes: 3 additions & 3 deletions packages/csv-stringify/lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import * as stream from "stream";

export type Callback = (err: Error | undefined, output: string) => void
export type RecordDelimiter = string | Buffer | 'auto' | 'unix' | 'mac' | 'windows' | 'ascii' | 'unicode'
export type RecordDelimiter = string | Buffer | 'unix' | 'mac' | 'windows' | 'ascii' | 'unicode'

export type CastReturnObject = { value: string } & Pick<
Options,
Expand Down Expand Up @@ -101,8 +101,8 @@ export interface Options extends stream.TransformOptions {
quoted_string?: boolean
/**
* String used to delimit record rows or a special value
* special values are 'auto', 'unix', 'mac', 'windows', 'ascii', 'unicode'
* defaults to 'auto' (discovered in source or 'unix' if no source is specified).
* special values are 'unix', 'mac', 'windows', 'ascii', 'unicode'
* defaults to '\n'.
*/
record_delimiter?: RecordDelimiter
/**
Expand Down

0 comments on commit 6e8a9ca

Please sign in to comment.