Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename class LocalOpenSearch to LocalSearch #27

Merged
merged 1 commit into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
}