Skip to content

Commit

Permalink
fix: crc32 default import
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Nov 18, 2023
1 parent 72341f1 commit 049f880
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions src/version_cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ export class VersionCache {
const crc32 = await import('crc-32')
const manifestPath = new URL('public/assets/manifest.json', this.appRoot)
const manifestFile = await readFile(manifestPath, 'utf-8')
this.#cachedVersion = crc32.str(manifestFile)

this.#cachedVersion = crc32.default.str(manifestFile)
return this.#cachedVersion
} catch {
/**
Expand Down
1 change: 0 additions & 1 deletion tests/middleware.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ test.group('Middleware', () => {
.set('x-inertia', 'true')
.set('x-inertia-version', '1')

console.log(r1.status)
assert.equal(r1.status, 200)
})
})

0 comments on commit 049f880

Please sign in to comment.