@graphql-mesh/postgraphile 1.0.0-alpha-20230523154231-8c60b52d9 → 1.0.0-alpha-20230523154841-376b13623
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/cjs/index.js +2 -3
- package/esm/index.js +2 -3
- package/package.json +9 -6
package/cjs/index.js
CHANGED
|
@@ -23,9 +23,8 @@ class PostGraphileHandler {
|
|
|
23
23
|
this.importFn = importFn;
|
|
24
24
|
}
|
|
25
25
|
async getMeshSource() {
|
|
26
|
-
var _a, _b;
|
|
27
26
|
let pgPool;
|
|
28
|
-
if (typeof
|
|
27
|
+
if (typeof this.config?.pool === 'string') {
|
|
29
28
|
pgPool = await (0, utils_1.loadFromModuleExportExpression)(this.config.pool, {
|
|
30
29
|
cwd: this.baseDir,
|
|
31
30
|
importFn: this.importFn,
|
|
@@ -39,7 +38,7 @@ class PostGraphileHandler {
|
|
|
39
38
|
env: cross_helpers_1.process.env,
|
|
40
39
|
}),
|
|
41
40
|
log: messages => pgLogger.debug(messages),
|
|
42
|
-
...
|
|
41
|
+
...this.config?.pool,
|
|
43
42
|
});
|
|
44
43
|
}
|
|
45
44
|
const id = this.pubsub.subscribe('destroy', () => {
|
package/esm/index.js
CHANGED
|
@@ -20,9 +20,8 @@ export default class PostGraphileHandler {
|
|
|
20
20
|
this.importFn = importFn;
|
|
21
21
|
}
|
|
22
22
|
async getMeshSource() {
|
|
23
|
-
var _a, _b;
|
|
24
23
|
let pgPool;
|
|
25
|
-
if (typeof
|
|
24
|
+
if (typeof this.config?.pool === 'string') {
|
|
26
25
|
pgPool = await loadFromModuleExportExpression(this.config.pool, {
|
|
27
26
|
cwd: this.baseDir,
|
|
28
27
|
importFn: this.importFn,
|
|
@@ -36,7 +35,7 @@ export default class PostGraphileHandler {
|
|
|
36
35
|
env: process.env,
|
|
37
36
|
}),
|
|
38
37
|
log: messages => pgLogger.debug(messages),
|
|
39
|
-
...
|
|
38
|
+
...this.config?.pool,
|
|
40
39
|
});
|
|
41
40
|
}
|
|
42
41
|
const id = this.pubsub.subscribe('destroy', () => {
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-mesh/postgraphile",
|
|
3
|
-
"version": "1.0.0-alpha-
|
|
3
|
+
"version": "1.0.0-alpha-20230523154841-376b13623",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@graphql-mesh/cross-helpers": "0.4.0-alpha-
|
|
7
|
-
"@graphql-mesh/store": "1.0.0-alpha-
|
|
8
|
-
"@graphql-mesh/types": "1.0.0-alpha-
|
|
9
|
-
"@graphql-mesh/utils": "1.0.0-alpha-
|
|
6
|
+
"@graphql-mesh/cross-helpers": "0.4.0-alpha-20230523154841-376b13623",
|
|
7
|
+
"@graphql-mesh/store": "1.0.0-alpha-20230523154841-376b13623",
|
|
8
|
+
"@graphql-mesh/types": "1.0.0-alpha-20230523154841-376b13623",
|
|
9
|
+
"@graphql-mesh/utils": "1.0.0-alpha-20230523154841-376b13623",
|
|
10
10
|
"graphql": "*",
|
|
11
11
|
"tslib": "^2.4.0"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@graphql-mesh/string-interpolation": "0.5.0-alpha-
|
|
14
|
+
"@graphql-mesh/string-interpolation": "0.5.0-alpha-20230523154841-376b13623",
|
|
15
15
|
"@graphql-tools/delegate": "^10.0.0",
|
|
16
16
|
"pg": "^8.6.0",
|
|
17
17
|
"postgraphile": "^4.13.0",
|
|
@@ -23,6 +23,9 @@
|
|
|
23
23
|
"directory": "packages/handlers/postgraphile"
|
|
24
24
|
},
|
|
25
25
|
"license": "MIT",
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=16.0.0"
|
|
28
|
+
},
|
|
26
29
|
"main": "cjs/index.js",
|
|
27
30
|
"module": "esm/index.js",
|
|
28
31
|
"typings": "typings/index.d.ts",
|