@nitra/check-env 4.1.1 → 4.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -14,7 +14,7 @@ bun add @nitra/check-env
14
14
  ## Usage
15
15
 
16
16
  ```js
17
- import checkEnv from '@nitra/check-env'
17
+ import { checkEnv } from '@nitra/check-env'
18
18
 
19
19
  checkEnv(
20
20
  // Will log an error and throw if any of these are missing:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitra/check-env",
3
- "version": "4.1.1",
3
+ "version": "4.1.3",
4
4
  "description": "Check that the critical environment variables are set",
5
5
  "keywords": [
6
6
  "check-env",
@@ -32,6 +32,5 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@nitra/pino": "^2.12.0"
35
- },
36
- "prettier": "@nitra/prettier-config"
35
+ }
37
36
  }
package/types/index.d.ts CHANGED
@@ -5,13 +5,13 @@
5
5
  * @augments Error
6
6
  */
7
7
  export class MissingEnvironmentVariableError extends Error {
8
- constructor(envs: any);
8
+ constructor(envs: any)
9
9
  }
10
- export function checkEnv(required: Array<string>): void;
11
- export default checkEnv;
10
+ export function checkEnv(required: Array<string>): void
11
+ export default checkEnv
12
12
  /**
13
13
  * @type {Object.<string, string>}
14
14
  */
15
15
  export const env: {
16
- [x: string]: string;
17
- };
16
+ [x: string]: string
17
+ }