Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
glennmichael123 committed Sep 26, 2024
1 parent b50a553 commit 0c5383b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ async function loadDynamoDBConfig() {
}

// Export the config (wrapped in a promise)
export const config = loadDynamoDBConfig()
// eslint-disable-next-line antfu/no-top-level-await
export const config = await loadDynamoDBConfig()
1 change: 1 addition & 0 deletions src/dynamodb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export const dynamoDb = {
if (response.statusCode !== 200)
return reject(new Error(`Failed to download DynamoDB Local: ${response.statusCode}`))

// @ts-expect-error: Ignoring type error due to external library incompatibility
response.pipe(zlib.createUnzip()).pipe(tar.extract({ cwd: config.installPath })).on('finish', resolve).on('error', reject)
}).on('error', reject)
})
Expand Down
1 change: 0 additions & 1 deletion test/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// eslint-disable-next-line unicorn/prefer-node-protocol
import { describe, expect, it } from 'bun:test'

describe('should', () => {
Expand Down

0 comments on commit 0c5383b

Please sign in to comment.