Skip to content

Commit

Permalink
bump partysocket
Browse files Browse the repository at this point in the history
  • Loading branch information
jchris committed Feb 17, 2024
1 parent 4e29631 commit 8e85fca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions packages/connect-partykit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fireproof/partykit",
"version": "0.17.6",
"version": "0.17.7",
"description": "",
"main": "./dist/browser/index.cjs",
"module": "./dist/browser/index.esm.js",
Expand Down Expand Up @@ -59,6 +59,6 @@
"cross-fetch": "^4.0.0",
"js-base64": "^3.7.5",
"multiformats": "^12.0.1",
"partysocket": "0.0.21"
"partysocket": "0.0.25"
}
}
8 changes: 2 additions & 6 deletions packages/encrypted-blockstore/src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export class Loader implements Loadable {
opts: CommitOpts = { noLoader: false, compact: false }
): Promise<AnyLink> {
await this.ready
const { files: roots } = this.makeFileCarHeader(done, this.carLog, !!opts.compact) as {
const { files: roots } = this.makeFileCarHeader(done) as {
files: AnyLink[]
}
const { cid, bytes } = await this.prepareCarFile(roots[0], t, !!opts.public)
Expand Down Expand Up @@ -252,11 +252,7 @@ export class Loader implements Loadable {
: await encodeCarFile([root], t)
}

protected makeFileCarHeader(
result: TransactionMeta,
cars: AnyLink[],
compact: boolean = false
): TransactionMeta {
protected makeFileCarHeader(result: TransactionMeta): TransactionMeta {
const files: AnyLink[] = []
for (const [, meta] of Object.entries(result.files!)) {
if (meta && typeof meta === 'object' && 'cid' in meta && meta !== null) {
Expand Down

0 comments on commit 8e85fca

Please sign in to comment.