graphile-settings 2.6.8 → 2.6.10
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 +2 -1
- package/esm/index.js +9 -9
- package/index.js +8 -6
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -126,6 +126,8 @@ app.listen(settings.port);
|
|
|
126
126
|
* `graphile-search-plugin`
|
|
127
127
|
* `./plugins/types` (custom LaunchQL plugin)
|
|
128
128
|
|
|
129
|
+
---
|
|
130
|
+
|
|
129
131
|
## Education and Tutorials
|
|
130
132
|
|
|
131
133
|
1. 🚀 [Quickstart: Getting Up and Running](https://launchql.com/learn/quickstart)
|
|
@@ -200,4 +202,3 @@ Common issues and solutions for pgpm, PostgreSQL, and testing.
|
|
|
200
202
|
AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
|
|
201
203
|
|
|
202
204
|
No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.
|
|
203
|
-
|
package/esm/index.js
CHANGED
|
@@ -4,10 +4,7 @@ import PgPostgis from '@pyramation/postgis';
|
|
|
4
4
|
// @ts-ignore
|
|
5
5
|
import FulltextFilterPlugin from '@pyramation/postgraphile-plugin-fulltext-filter';
|
|
6
6
|
import { NodePlugin } from 'graphile-build';
|
|
7
|
-
import { additionalGraphQLContextFromRequest as langAdditional, LangPlugin
|
|
8
|
-
// @ts-ignore
|
|
9
|
-
} from 'graphile-i18n';
|
|
10
|
-
// @ts-ignore
|
|
7
|
+
import { additionalGraphQLContextFromRequest as langAdditional, LangPlugin } from 'graphile-i18n';
|
|
11
8
|
import PgMetaschema from 'graphile-meta-schema';
|
|
12
9
|
// @ts-ignore
|
|
13
10
|
import PgSearch from 'graphile-search-plugin';
|
|
@@ -97,10 +94,13 @@ export const getGraphileSettings = (rawOpts) => {
|
|
|
97
94
|
retryOnInitFail: async (_error) => {
|
|
98
95
|
return false;
|
|
99
96
|
},
|
|
100
|
-
additionalGraphQLContextFromRequest: (req, res) =>
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
97
|
+
additionalGraphQLContextFromRequest: async (req, res) => {
|
|
98
|
+
const langContext = await langAdditional(req, res);
|
|
99
|
+
return {
|
|
100
|
+
...langContext,
|
|
101
|
+
req,
|
|
102
|
+
res,
|
|
103
|
+
};
|
|
104
|
+
},
|
|
105
105
|
};
|
|
106
106
|
};
|
package/index.js
CHANGED
|
@@ -11,7 +11,6 @@ const postgis_1 = __importDefault(require("@pyramation/postgis"));
|
|
|
11
11
|
const postgraphile_plugin_fulltext_filter_1 = __importDefault(require("@pyramation/postgraphile-plugin-fulltext-filter"));
|
|
12
12
|
const graphile_build_1 = require("graphile-build");
|
|
13
13
|
const graphile_i18n_1 = require("graphile-i18n");
|
|
14
|
-
// @ts-ignore
|
|
15
14
|
const graphile_meta_schema_1 = __importDefault(require("graphile-meta-schema"));
|
|
16
15
|
// @ts-ignore
|
|
17
16
|
const graphile_search_plugin_1 = __importDefault(require("graphile-search-plugin"));
|
|
@@ -101,11 +100,14 @@ const getGraphileSettings = (rawOpts) => {
|
|
|
101
100
|
retryOnInitFail: async (_error) => {
|
|
102
101
|
return false;
|
|
103
102
|
},
|
|
104
|
-
additionalGraphQLContextFromRequest: (req, res) =>
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
103
|
+
additionalGraphQLContextFromRequest: async (req, res) => {
|
|
104
|
+
const langContext = await (0, graphile_i18n_1.additionalGraphQLContextFromRequest)(req, res);
|
|
105
|
+
return {
|
|
106
|
+
...langContext,
|
|
107
|
+
req,
|
|
108
|
+
res,
|
|
109
|
+
};
|
|
110
|
+
},
|
|
109
111
|
};
|
|
110
112
|
};
|
|
111
113
|
exports.getGraphileSettings = getGraphileSettings;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphile-settings",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.10",
|
|
4
4
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
|
5
5
|
"description": "graphile settings",
|
|
6
6
|
"main": "index.js",
|
|
@@ -20,31 +20,30 @@
|
|
|
20
20
|
"url": "https://github.com/launchql/launchql/issues"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
|
-
"
|
|
24
|
-
"clean": "rimraf dist/**",
|
|
23
|
+
"clean": "makage clean",
|
|
25
24
|
"prepack": "npm run build",
|
|
26
|
-
"build": "
|
|
27
|
-
"build:dev": "
|
|
25
|
+
"build": "makage build",
|
|
26
|
+
"build:dev": "makage build --dev",
|
|
28
27
|
"lint": "eslint . --fix",
|
|
29
28
|
"test": "jest",
|
|
30
29
|
"test:watch": "jest --watch"
|
|
31
30
|
},
|
|
32
31
|
"dependencies": {
|
|
33
32
|
"@graphile-contrib/pg-many-to-many": "^1.0.2",
|
|
34
|
-
"@launchql/env": "^2.5.
|
|
35
|
-
"@launchql/s3-streamer": "^2.6.
|
|
36
|
-
"@launchql/types": "^2.8.
|
|
37
|
-
"@launchql/upload-names": "^2.2.
|
|
33
|
+
"@launchql/env": "^2.5.5",
|
|
34
|
+
"@launchql/s3-streamer": "^2.6.6",
|
|
35
|
+
"@launchql/types": "^2.8.5",
|
|
36
|
+
"@launchql/upload-names": "^2.2.9",
|
|
38
37
|
"@pyramation/postgis": "^0.1.1",
|
|
39
38
|
"@pyramation/postgraphile-plugin-fulltext-filter": "^2.0.0",
|
|
40
39
|
"cors": "^2.8.5",
|
|
41
40
|
"express": "^5.1.0",
|
|
42
41
|
"graphile-build": "^4.14.1",
|
|
43
|
-
"graphile-i18n": "^0.
|
|
44
|
-
"graphile-meta-schema": "^0.2.
|
|
45
|
-
"graphile-query": "^2.3.
|
|
46
|
-
"graphile-search-plugin": "^0.1.
|
|
47
|
-
"graphile-simple-inflector": "^0.1.
|
|
42
|
+
"graphile-i18n": "^0.1.2",
|
|
43
|
+
"graphile-meta-schema": "^0.2.7",
|
|
44
|
+
"graphile-query": "^2.3.9",
|
|
45
|
+
"graphile-search-plugin": "^0.1.10",
|
|
46
|
+
"graphile-simple-inflector": "^0.1.5",
|
|
48
47
|
"graphql": "15.10.1",
|
|
49
48
|
"graphql-tag": "2.12.6",
|
|
50
49
|
"graphql-upload": "^13.0.0",
|
|
@@ -61,6 +60,7 @@
|
|
|
61
60
|
"@types/express": "^5.0.1",
|
|
62
61
|
"@types/pg": "^8.15.2",
|
|
63
62
|
"@types/request-ip": "^0.0.41",
|
|
63
|
+
"makage": "^0.1.6",
|
|
64
64
|
"nodemon": "^3.1.10",
|
|
65
65
|
"ts-node": "^10.9.2"
|
|
66
66
|
},
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"launchql",
|
|
72
72
|
"graphql"
|
|
73
73
|
],
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "1da5f98bd18b47382b652e104cdc4db1b9ee79db"
|
|
75
75
|
}
|