Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 2fbd653

Browse files
committed
fix: Appliaction to Application
1 parent 8e90ca8 commit 2fbd653

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

cli/build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Appliaction } from '../server/mod.ts'
1+
import { Application } from '../server/mod.ts'
22

33
export const helpMessage = `
44
Usage:
@@ -14,7 +14,7 @@ Options:
1414
`
1515

1616
export default async function (workingDir: string, options: Record<string, string | boolean>) {
17-
const app = new Appliaction(workingDir, 'production', Boolean(options.r || options.reload))
17+
const app = new Application(workingDir, 'production', Boolean(options.r || options.reload))
1818
await app.build()
1919
Deno.exit(0)
2020
}

cli/dev.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Appliaction, parsePortNumber, serve } from '../server/mod.ts'
1+
import { Application, parsePortNumber, serve } from '../server/mod.ts'
22

33
export const helpMessage = `
44
Usage:
@@ -16,6 +16,6 @@ Options:
1616

1717
export default async function (workingDir: string, options: Record<string, string | boolean>) {
1818
const port = parsePortNumber(String(options.p || options.port || '8080'))
19-
const app = new Appliaction(workingDir, 'development', Boolean(options.r || options.reload))
19+
const app = new Application(workingDir, 'development', Boolean(options.r || options.reload))
2020
serve('localhost', port, app)
2121
}

cli/start.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Appliaction, parsePortNumber, serve } from '../server/mod.ts'
1+
import { Application, parsePortNumber, serve } from '../server/mod.ts'
22

33
export const helpMessage = `
44
Usage:
@@ -18,6 +18,6 @@ Options:
1818
export default async function (workingDir: string, options: Record<string, string | boolean>) {
1919
const host = String(options.hn || options.hostname || 'localhost')
2020
const port = parsePortNumber(String(options.p || options.port || '8080'))
21-
const app = new Appliaction(workingDir, 'production', Boolean(options.r || options.reload))
21+
const app = new Application(workingDir, 'production', Boolean(options.r || options.reload))
2222
serve(host, port, app)
2323
}

server/app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import { Request } from './api.ts'
1313
import { AlephRuntimeCode, cleanupCompilation, createHtml, fixImportMap, formatBytesWithColor, getAlephPkgUrl, getRelativePath, reFullVersion, reHashJs, reHashResolve, reLocaleID, respondErrorJSON } from './util.ts'
1414

1515
/**
16-
* The Aleph Server Appliaction class.
16+
* The Aleph Server Application class.
1717
*/
18-
export class Appliaction {
18+
export class Application {
1919
readonly workingDir: string
2020
readonly mode: 'development' | 'production'
2121
readonly config: Readonly<Required<Config>>

server/server.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ import log from '../shared/log.ts'
55
import util from '../shared/util.ts'
66
import type { ServerRequest } from '../types.ts'
77
import { Request } from './api.ts'
8-
import { Appliaction } from './app.ts'
8+
import { Application } from './app.ts'
99
import { getContentType } from './mime.ts'
1010
import { createHtml, reHashJs } from './util.ts'
1111

1212
/** The Aleph Server class. */
1313
export class Server {
14-
#app: Appliaction
14+
#app: Application
1515
#ready: boolean
1616

17-
constructor(app: Appliaction) {
17+
constructor(app: Application) {
1818
this.#app = app
1919
this.#ready = false
2020
}
@@ -151,7 +151,7 @@ export class Server {
151151
}
152152

153153
/** start a standard aleph server. */
154-
export async function serve(hostname: string, port: number, app: Appliaction) {
154+
export async function serve(hostname: string, port: number, app: Application) {
155155
const server = new Server(app)
156156
await app.ready
157157
while (true) {

0 commit comments

Comments
 (0)