Skip to content

Commit

Permalink
Merge pull request #27 from lpsinger/rename-local-class
Browse files Browse the repository at this point in the history
Rename class LocalOpenSearch to LocalSearch
  • Loading branch information
dakota002 authored Nov 28, 2023
2 parents 8ce2349 + 7c0bf9c commit 3e1379c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

import { launch } from './run.js'
import type { LocalOpenSearch } from './run.js'
import type { LocalSearch } from './run.js'
import { populate } from './data.js'
import {
cloudformationResources as serverlessCloudformationResources,
Expand Down Expand Up @@ -58,7 +58,7 @@ export const deploy = {
},
}

let local: LocalOpenSearch
let local: LocalSearch

export const sandbox = {
async start({
Expand Down
8 changes: 3 additions & 5 deletions run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
import { pipeline } from 'stream/promises'
import { createReadStream } from 'fs'

export class LocalOpenSearch {
export class LocalSearch {
private readonly child!: ChildProcess
private readonly tempDir!: string
readonly port!: number
Expand Down Expand Up @@ -93,8 +93,6 @@ export class LocalOpenSearch {
}
}

export async function launch(
...args: Parameters<typeof LocalOpenSearch.launch>
) {
return await LocalOpenSearch.launch(...args)
export async function launch(...args: Parameters<typeof LocalSearch.launch>) {
return await LocalSearch.launch(...args)
}

0 comments on commit 3e1379c

Please sign in to comment.