Skip to content

Commit 3f09145

Browse files
authored
Merge branch 'master' into pr/wdavidw/464-on_record-types
2 parents 63a3c7e + 4e68786 commit 3f09145

35 files changed

+47
-55
lines changed

package-lock.json

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/csv-generate/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ New features and bug fixes:
258258

259259
## Version 2.0.1
260260

261-
- package: es5 backward compatiblity
261+
- package: es5 backward compatibility
262262
- package: ignore yarn lock file
263263

264264
## 2.0.0

packages/csv-generate/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"@types/mocha": "^10.0.10",
1818
"@types/node": "^22.15.30",
1919
"dedent": "^1.6.0",
20-
"each": "^2.7.2",
2120
"mocha": "~11.5.0",
2221
"prettier": "^3.5.3",
2322
"rollup": "^4.41.1",

packages/csv-generate/test/api.end.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe("api end", function () {
1010
generator.on("readable", () => {
1111
while (generator.read()) {
1212
if (end) {
13-
generator.emit("error", Error("Record emited after end"));
13+
generator.emit("error", Error("Record emitted after end"));
1414
}
1515
if (count++ === 5) {
1616
end = true;
@@ -29,7 +29,7 @@ describe("api end", function () {
2929
generator.on("readable", () => {
3030
while (generator.read()) {
3131
if (end) {
32-
generator.emit("error", Error("Record emited after end"));
32+
generator.emit("error", Error("Record emitted after end"));
3333
}
3434
if (count++ === 5) {
3535
end = true;

packages/csv-generate/test/api.sync.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import "should";
22
import { generate } from "../lib/sync.js";
33

44
describe("api sync", function () {
5-
it("throw error if options isnt provided", function () {
5+
it("throw error if options isn't provided", function () {
66
(() => generate()).should.throw(
77
"Invalid Argument: options must be an object or an integer",
88
);
@@ -11,7 +11,7 @@ describe("api sync", function () {
1111
);
1212
});
1313

14-
it("throw error if length isnt provided", function () {
14+
it("throw error if length isn't provided", function () {
1515
(() => generate({})).should.throw(
1616
"Invalid Argument: length is not defined",
1717
);

packages/csv-generate/test/options.sleep.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe("Option `sleep`", function () {
1313
});
1414

1515
it("sleep combined with length and objectMode false", function (next) {
16-
// Fix bug where chuncks where emited after end when sleep is activated
16+
// Fix bug where chunks where emitted after end when sleep is activated
1717
this.timeout(10000);
1818
const records = [];
1919
generate({

packages/csv-parse/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ See also [CSV package for Node.js version 6 (11/15/2021)](https://www.adaltas.co
320320

321321
## Version 4.16.0
322322

323-
- fix: info print the number of encountered line when emited
323+
- fix: info print the number of encountered line when emitted
324324
- feat: cast expose context.empty_lines
325325
- fix: handle empty column names properly
326326
- feat: enforce usage of columns with columns_duplicates_to_array
@@ -430,7 +430,7 @@ New feature:
430430

431431
Project management:
432432

433-
- samples: new file recipie
433+
- samples: new file recipe
434434

435435
## Version 4.9.1
436436

packages/csv-parse/lib/api/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ const transform = function (original_options = {}) {
306306
this.info.comment_lines++;
307307
// Skip full comment line
308308
} else {
309-
// Activate records emition if above from_line
309+
// Activate records emission if above from_line
310310
if (
311311
this.state.enabled === false &&
312312
this.info.lines +

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export interface Info {
5656

5757
export interface InfoCallback extends Info {
5858
/**
59-
* Normalized verion of `options.columns` when `options.columns` is true, boolean otherwise.
59+
* Normalized version of `options.columns` when `options.columns` is true, boolean otherwise.
6060
*/
6161
readonly columns: boolean | { name: string }[] | { disabled: true }[];
6262
}
@@ -178,7 +178,7 @@ export interface OptionsNormalized<T = string[], U = T> {
178178
*/
179179
ltrim: boolean;
180180
/**
181-
* Maximum numer of characters to be contained in the field and line buffers before an exception is raised,
181+
* Maximum number of characters to be contained in the field and line buffers before an exception is raised,
182182
* used to guard against a wrong delimiter or record_delimiter,
183183
* default to 128000 characters.
184184
*/
@@ -354,7 +354,7 @@ export interface Options<T = string[], U = T> {
354354
*/
355355
ltrim?: boolean | null;
356356
/**
357-
* Maximum numer of characters to be contained in the field and line buffers before an exception is raised,
357+
* Maximum number of characters to be contained in the field and line buffers before an exception is raised,
358358
* used to guard against a wrong delimiter or record_delimiter,
359359
* default to 128000 characters.
360360
*/
@@ -370,7 +370,7 @@ export interface Options<T = string[], U = T> {
370370
on_record?: (record: U, context: InfoRecord) => T | null | undefined | U;
371371
onRecord?: (record: U, context: InfoRecord) => T | null | undefined | U;
372372
/**
373-
* Function called when an error occured if the `skip_records_with_error`
373+
* Function called when an error occurred if the `skip_records_with_error`
374374
* option is activated.
375375
*/
376376
on_skip?: (err: CsvError | undefined, raw: string | undefined) => undefined;

packages/csv-parse/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const parse = function () {
124124
parser.write(data);
125125
parser.end();
126126
};
127-
// Support Deno, Rollup doesnt provide a shim for setImmediate
127+
// Support Deno, Rollup doesn't provide a shim for setImmediate
128128
if (typeof setImmediate === "function") {
129129
setImmediate(writer);
130130
} else {

0 commit comments

Comments
 (0)