joist-utils 1.10.4 → 1.10.7
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 +11 -1
- package/build/connection.js.map +1 -1
- package/build/index.d.ts +1 -1
- package/build/index.js.map +1 -1
- package/package.json +9 -9
package/build/connection.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConnectionConfig } from "pg";
|
|
1
|
+
import { ConnectionConfig as PgConnectionConfig } from "pg";
|
|
2
2
|
declare type DatabaseUrl = {
|
|
3
3
|
DATABASE_URL: string;
|
|
4
4
|
};
|
|
@@ -10,6 +10,16 @@ declare type DbSettings = {
|
|
|
10
10
|
DB_PORT: string;
|
|
11
11
|
};
|
|
12
12
|
export declare type ConnectionEnv = DatabaseUrl | DbSettings;
|
|
13
|
+
/**
|
|
14
|
+
* A connection config with a dumb password.
|
|
15
|
+
*
|
|
16
|
+
* The `PgConnectionConfig` has a fancy password that can be a function/async, i.e. to like dynamically
|
|
17
|
+
* load it somehow; that's fine, but is more complex than knex expects, so we simplify it to "just a string",
|
|
18
|
+
* which is what we provide anyway.
|
|
19
|
+
*/
|
|
20
|
+
export declare type ConnectionConfig = Omit<PgConnectionConfig, "password"> & {
|
|
21
|
+
password: string | undefined;
|
|
22
|
+
};
|
|
13
23
|
/**
|
|
14
24
|
* Returns the `ConnectionConfig` that joist will use to connect to pg.
|
|
15
25
|
*
|
package/build/connection.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection.js","sourceRoot":"","sources":["../src/connection.ts"],"names":[],"mappings":";;;AACA,+DAA6C;
|
|
1
|
+
{"version":3,"file":"connection.js","sourceRoot":"","sources":["../src/connection.ts"],"names":[],"mappings":";;;AACA,+DAA6C;AAgB7C;;;;;;;;;;;GAWG;AACH,SAAgB,qBAAqB,CAAC,GAAmB;IACvD,IAAI,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,G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ectionConfig } from "./connection";
|
|
2
2
|
export declare function fail(message?: string): never;
|
|
3
3
|
export declare function groupBy<T, Y = T>(list: T[], fn: (x: T) => string, valueFn?: (x: T) => Y): Record<string, Y[]>;
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,2CAAuE;AAA5C,mHAAA,qBAAqB,OAAA;AAEhD,SAAgB,IAAI,CAAC,OAAgB;IACnC,MAAM,IAAI,KAAK,CAAC,OAAO,IAAI,QAAQ,CAAC,CAAC;AACvC,CAAC;AAFD,oBAEC;AAED,SAAgB,OAAO,CAAW,IAAS,EAAE,EAAoB,EAAE,OAAqB;IACtF,MAAM,MAAM,GAAwB,EAAE,CAAC;IACvC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;QACjB,MAAM,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;QACpB,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,SAAS,EAAE;YAC/B,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;SACpB;QACD,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAE,CAAc,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3E,CAAC,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC;AAVD,0BAUC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "joist-utils",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -9,22 +9,22 @@
|
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"pg": "^8.7.1",
|
|
12
|
-
"pg-connection-string": "^2.
|
|
12
|
+
"pg-connection-string": "^2.5.0"
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
15
|
"format": "prettier --write '{schema,migrations,src}/**/*.{ts,js,tsx,jsx,graphql}'",
|
|
16
16
|
"test": "jest"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@swc/core": "^1.2.
|
|
20
|
-
"@swc/jest": "^0.2.
|
|
19
|
+
"@swc/core": "^1.2.192",
|
|
20
|
+
"@swc/jest": "^0.2.21",
|
|
21
21
|
"@types/jest": "^26.0.24",
|
|
22
|
-
"@types/node": "^16.
|
|
23
|
-
"jest": "^27.
|
|
24
|
-
"prettier": "^2.
|
|
22
|
+
"@types/node": "^16.11.36",
|
|
23
|
+
"jest": "^27.5.1",
|
|
24
|
+
"prettier": "^2.6.2",
|
|
25
25
|
"prettier-plugin-organize-imports": "^2.3.4",
|
|
26
26
|
"ts-node-dev": "^1.1.8",
|
|
27
|
-
"tsconfig-paths": "^
|
|
28
|
-
"typescript": "^4.
|
|
27
|
+
"tsconfig-paths": "^4.0.0",
|
|
28
|
+
"typescript": "^4.7.2"
|
|
29
29
|
}
|
|
30
30
|
}
|