Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Mar 17, 2024
1 parent 148d93e commit b057614
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

# DynamoDB Goodies

> A zero-config reverse proxy for local development with SSL support, custom domains, and more.
## Features

- Zero-config DynamoDB setup
Expand Down
11 changes: 10 additions & 1 deletion src/dynamodb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,17 @@ const JARNAME = 'DynamoDBLocal.jar'

const runningProcesses: { [port: number]: ChildProcess } = {}

interface LaunchOptions {
port: number
dbPath?: string
additionalArgs?: string[]
verbose?: boolean
detached?: boolean
javaOpts?: string
}

export const dynamoDb = {
async launch(port: number, dbPath?: string, additionalArgs: string[] = [], verbose = false, detached?: boolean, javaOpts = ''): Promise<ChildProcess | undefined> {
async launch({ port, dbPath, additionalArgs = [], verbose = false, detached, javaOpts = '' }: LaunchOptions): Promise<ChildProcess | undefined> {
if (runningProcesses[port])
return Promise.resolve(runningProcesses[port])

Expand Down

0 comments on commit b057614

Please sign in to comment.