joist-utils 1.37.10 → 1.38.0
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/build/connection.d.ts +4 -4
- package/package.json +2 -2
package/build/connection.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ConnectionConfig as PgConnectionConfig } from "pg";
|
|
2
|
-
|
|
2
|
+
type DatabaseUrl = {
|
|
3
3
|
DATABASE_URL: string;
|
|
4
4
|
};
|
|
5
|
-
|
|
5
|
+
type DbSettings = {
|
|
6
6
|
DB_USER: string;
|
|
7
7
|
DB_PASSWORD: string;
|
|
8
8
|
DB_HOST: string;
|
|
9
9
|
DB_DATABASE: string;
|
|
10
10
|
DB_PORT: string;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type ConnectionEnv = DatabaseUrl | DbSettings;
|
|
13
13
|
/**
|
|
14
14
|
* A connection config with a dumb password.
|
|
15
15
|
*
|
|
@@ -17,7 +17,7 @@ export declare type ConnectionEnv = DatabaseUrl | DbSettings;
|
|
|
17
17
|
* load it somehow; that's fine, but is more complex than knex expects, so we simplify it to "just a string",
|
|
18
18
|
* which is what we provide anyway.
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export type ConnectionConfig = Omit<PgConnectionConfig, "password" | "types"> & {
|
|
21
21
|
password: string | undefined;
|
|
22
22
|
};
|
|
23
23
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "joist-utils",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.38.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -25,6 +25,6 @@
|
|
|
25
25
|
"prettier-plugin-organize-imports": "^3.1.1",
|
|
26
26
|
"ts-node-dev": "^2.0.0",
|
|
27
27
|
"tsconfig-paths": "^4.0.0",
|
|
28
|
-
"typescript": "^4.
|
|
28
|
+
"typescript": "^4.9.3"
|
|
29
29
|
}
|
|
30
30
|
}
|