Skip to content

Commit 6e8a9ca

Browse files
committed
fix(csv-stringify): remove non-functional auto value
1 parent 632c10e commit 6e8a9ca

File tree

12 files changed

+9
-36
lines changed

12 files changed

+9
-36
lines changed

packages/csv-stringify/dist/cjs/index.cjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,6 @@ const normalize_options = function(opts) {
298298
return [Error(`Invalid Option: record_delimiter must be a buffer or a string, got ${JSON.stringify(options.record_delimiter)}`)];
299299
}
300300
switch(options.record_delimiter){
301-
case 'auto':
302-
options.record_delimiter = null;
303-
break;
304301
case 'unix':
305302
options.record_delimiter = "\n";
306303
break;

packages/csv-stringify/dist/cjs/index.d.cts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import * as stream from "stream";
44

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

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

packages/csv-stringify/dist/cjs/sync.cjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,6 @@ const normalize_options = function(opts) {
296296
return [Error(`Invalid Option: record_delimiter must be a buffer or a string, got ${JSON.stringify(options.record_delimiter)}`)];
297297
}
298298
switch(options.record_delimiter){
299-
case 'auto':
300-
options.record_delimiter = null;
301-
break;
302299
case 'unix':
303300
options.record_delimiter = "\n";
304301
break;

packages/csv-stringify/dist/esm/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import * as stream from "stream";
44

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

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

packages/csv-stringify/dist/esm/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5420,9 +5420,6 @@ const normalize_options = function(opts) {
54205420
return [Error(`Invalid Option: record_delimiter must be a buffer or a string, got ${JSON.stringify(options.record_delimiter)}`)];
54215421
}
54225422
switch(options.record_delimiter){
5423-
case 'auto':
5424-
options.record_delimiter = null;
5425-
break;
54265423
case 'unix':
54275424
options.record_delimiter = "\n";
54285425
break;

packages/csv-stringify/dist/esm/sync.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2266,9 +2266,6 @@ const normalize_options = function(opts) {
22662266
return [Error(`Invalid Option: record_delimiter must be a buffer or a string, got ${JSON.stringify(options.record_delimiter)}`)];
22672267
}
22682268
switch(options.record_delimiter){
2269-
case 'auto':
2270-
options.record_delimiter = null;
2271-
break;
22722269
case 'unix':
22732270
options.record_delimiter = "\n";
22742271
break;

packages/csv-stringify/dist/iife/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5423,9 +5423,6 @@ var csv_stringify = (function (exports) {
54235423
return [Error(`Invalid Option: record_delimiter must be a buffer or a string, got ${JSON.stringify(options.record_delimiter)}`)];
54245424
}
54255425
switch(options.record_delimiter){
5426-
case 'auto':
5427-
options.record_delimiter = null;
5428-
break;
54295426
case 'unix':
54305427
options.record_delimiter = "\n";
54315428
break;

packages/csv-stringify/dist/iife/sync.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2269,9 +2269,6 @@ var csv_stringify_sync = (function (exports) {
22692269
return [Error(`Invalid Option: record_delimiter must be a buffer or a string, got ${JSON.stringify(options.record_delimiter)}`)];
22702270
}
22712271
switch(options.record_delimiter){
2272-
case 'auto':
2273-
options.record_delimiter = null;
2274-
break;
22752272
case 'unix':
22762273
options.record_delimiter = "\n";
22772274
break;

packages/csv-stringify/dist/umd/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5426,9 +5426,6 @@
54265426
return [Error(`Invalid Option: record_delimiter must be a buffer or a string, got ${JSON.stringify(options.record_delimiter)}`)];
54275427
}
54285428
switch(options.record_delimiter){
5429-
case 'auto':
5430-
options.record_delimiter = null;
5431-
break;
54325429
case 'unix':
54335430
options.record_delimiter = "\n";
54345431
break;

packages/csv-stringify/dist/umd/sync.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2272,9 +2272,6 @@
22722272
return [Error(`Invalid Option: record_delimiter must be a buffer or a string, got ${JSON.stringify(options.record_delimiter)}`)];
22732273
}
22742274
switch(options.record_delimiter){
2275-
case 'auto':
2276-
options.record_delimiter = null;
2277-
break;
22782275
case 'unix':
22792276
options.record_delimiter = "\n";
22802277
break;

packages/csv-stringify/lib/api/normalize_options.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,6 @@ const normalize_options = function(opts) {
168168
return [Error(`Invalid Option: record_delimiter must be a buffer or a string, got ${JSON.stringify(options.record_delimiter)}`)];
169169
}
170170
switch(options.record_delimiter){
171-
case 'auto':
172-
options.record_delimiter = null;
173-
break;
174171
case 'unix':
175172
options.record_delimiter = "\n";
176173
break;

packages/csv-stringify/lib/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import * as stream from "stream";
44

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

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

0 commit comments

Comments
 (0)