Skip to content

Commit d422672

Browse files
fix: replace template literals with string concatenation for PowerShell compatibility
1 parent 38545c7 commit d422672

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

config/environments/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { dev } from './dev'
2-
import { qa } from './qa'
3-
import { staging } from './staging'
1+
import { config as dev } from './dev'
2+
import { config as qa } from './qa'
3+
import { config as staging } from './staging'
44

55
const env = process.env.ENV || 'qa'
66

77
const configs: Record<string, typeof qa> = { dev, qa, staging }
88

99
export const getConfig = () => {
10-
if (!configs[env]) throw new Error(Unknown environment: )
10+
if (!configs[env]) throw new Error('Unknown environment: ' + env)
1111
return configs[env]
12-
}
12+
}

src/core/di/Container.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ export class Container {
2020
}
2121

2222
resolve<T>(token: string): T {
23-
const instance = this.registry.get(token)
24-
if (!instance) {
25-
throw new Error(No instance registered for token: )
26-
}
27-
return instance as T
23+
const instance = this.registry.get(token)
24+
if (!instance) {
25+
throw new Error('No instance registered for token: ' + token)
2826
}
27+
return instance as T
28+
}
2929

3030
has(token: string): boolean {
3131
return this.registry.has(token)

0 commit comments

Comments
 (0)