Skip to content

Commit

Permalink
Merge branch 'master' into pub_channel
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Jul 2, 2024
2 parents 5aad9ab + 2917b12 commit 9d91067
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "centrifuge",
"version": "5.2.1",
"version": "5.2.2",
"description": "JavaScript client SDK for bidirectional communication with Centrifugo and Centrifuge-based server from browser, NodeJS and React Native",
"main": "build/index.js",
"types": "build/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion src/fossil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ class Writer {

// Copy from array at start to end.
putArray(a: ByteArray, start: number, end: number) {
this.a.push(...a.slice(start, end));
// TODO: optimize.
for (let i = start; i < end; i++) this.a.push(a[i]);
}
}

Expand Down

0 comments on commit 9d91067

Please sign in to comment.