Skip to content

Commit

Permalink
refactor: rename exceptions.ts to errors.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Oct 16, 2023
1 parent 1855648 commit 8b71a71
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
export { Env } from './src/env.js'
export { EnvParser } from './src/parser.js'
export { EnvLoader } from './src/loader.js'
export * as errors from './src/exceptions.js'
export * as errors from './src/errors.js'
export { EnvProcessor } from './src/processor.js'
File renamed without changes.
2 changes: 1 addition & 1 deletion src/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import type { Exception } from '@poppinss/utils'
import { ValidateFn } from '@poppinss/validator-lite'

import { E_INVALID_ENV_VARIABLES } from './exceptions.js'
import { E_INVALID_ENV_VARIABLES } from './errors.js'

/**
* Exposes the API to validate environment variables against a
Expand Down
2 changes: 1 addition & 1 deletion test/validator.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import { test } from '@japa/runner'
import { schema } from '@poppinss/validator-lite'
import { EnvValidator } from '../src/validator.js'
import { E_INVALID_ENV_VARIABLES } from '../src/exceptions.js'
import { E_INVALID_ENV_VARIABLES } from '../src/errors.js'

test.group('Env Validator', () => {
test('validate values against pre-defined schema', async ({ assert, expectTypeOf }) => {
Expand Down

0 comments on commit 8b71a71

Please sign in to comment.