Skip to content

Commit 6ac0f3b

Browse files
authored
chore(stream-transform): fix typos (#472)
1 parent cdef546 commit 6ac0f3b

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

packages/stream-transform/lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ util.inherits(Transformer, stream.Transform);
3636
Transformer.prototype._transform = function (chunk, _, cb) {
3737
this.state.started++;
3838
this.state.running++;
39-
// Accept additionnal chunks to be processed in parallel
39+
// Accept additional chunks to be processed in parallel
4040
if (!this.state.paused && this.state.running < this.options.parallel) {
4141
cb();
4242
cb = null; // Cancel further callback execution
@@ -142,7 +142,7 @@ const transform = function () {
142142
}
143143
transformer.end();
144144
};
145-
// Support Deno, Rollup doesnt provide a shim for setImmediate
145+
// Support Deno, Rollup doesn't provide a shim for setImmediate
146146
if (typeof setImmediate === "function") {
147147
setImmediate(writer);
148148
} else {

packages/stream-transform/lib/sync.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const transform = function () {
3737
expected_handler_length++;
3838
}
3939
if (handler.length > expected_handler_length) {
40-
throw Error("Invalid Handler: only synchonous handlers are supported");
40+
throw Error("Invalid Handler: only synchronous handlers are supported");
4141
}
4242
// Start transformation
4343
const chunks = [];

packages/stream-transform/test/api.sync.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe("api.sync", function () {
4444
callback;
4545
},
4646
);
47-
}).should.throw("Invalid Handler: only synchonous handlers are supported");
47+
}).should.throw("Invalid Handler: only synchronous handlers are supported");
4848
// With options
4949
(function () {
5050
transform(
@@ -61,6 +61,6 @@ describe("api.sync", function () {
6161
params;
6262
},
6363
);
64-
}).should.throw("Invalid Handler: only synchonous handlers are supported");
64+
}).should.throw("Invalid Handler: only synchronous handlers are supported");
6565
});
6666
});

packages/stream-transform/test/handler.mode.sync.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ describe("handler.mode.sync", function () {
4545
});
4646
});
4747

48-
it("modify the recieved object", function (next) {
48+
it("modify the received object", function (next) {
4949
transform(
5050
[
5151
["20322051544", "1979", "8.8017226E7", "ABC", "45", "2000-01-01"],
@@ -110,7 +110,7 @@ describe("handler.mode.sync", function () {
110110
);
111111
});
112112

113-
it("recieve an array and return an object", function (next) {
113+
it("receive an array and return an object", function (next) {
114114
transform(
115115
[
116116
["20322051544", "1979", "8.8017226E7", "ABC", "45", "2000-01-01"],
@@ -201,7 +201,7 @@ describe("handler.mode.sync", function () {
201201
function (err, source) {
202202
transform(
203203
source,
204-
{ parralel: 1 },
204+
{ parallel: 1 },
205205
(record) => record,
206206
(err, result) => result.should.eql(source),
207207
);

0 commit comments

Comments
 (0)