graphile-settings 2.6.7 → 2.6.9

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
@@ -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,14 +4,10 @@ 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';
14
- // @ts-ignore
15
11
  import PgSimpleInflector from 'graphile-simple-inflector';
16
12
  import ConnectionFilterPlugin from 'postgraphile-plugin-connection-filter';
17
13
  // @ts-ignore
@@ -98,10 +94,13 @@ export const getGraphileSettings = (rawOpts) => {
98
94
  retryOnInitFail: async (_error) => {
99
95
  return false;
100
96
  },
101
- additionalGraphQLContextFromRequest: (req, res) => ({
102
- ...langAdditional(req, res),
103
- req,
104
- res,
105
- }),
97
+ additionalGraphQLContextFromRequest: async (req, res) => {
98
+ const langContext = await langAdditional(req, res);
99
+ return {
100
+ ...langContext,
101
+ req,
102
+ res,
103
+ };
104
+ },
106
105
  };
107
106
  };
package/index.js CHANGED
@@ -11,11 +11,9 @@ 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"));
18
- // @ts-ignore
19
17
  const graphile_simple_inflector_1 = __importDefault(require("graphile-simple-inflector"));
20
18
  const postgraphile_plugin_connection_filter_1 = __importDefault(require("postgraphile-plugin-connection-filter"));
21
19
  // @ts-ignore
@@ -102,11 +100,14 @@ const getGraphileSettings = (rawOpts) => {
102
100
  retryOnInitFail: async (_error) => {
103
101
  return false;
104
102
  },
105
- additionalGraphQLContextFromRequest: (req, res) => ({
106
- ...(0, graphile_i18n_1.additionalGraphQLContextFromRequest)(req, res),
107
- req,
108
- res,
109
- }),
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
+ },
110
111
  };
111
112
  };
112
113
  exports.getGraphileSettings = getGraphileSettings;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphile-settings",
3
- "version": "2.6.7",
3
+ "version": "2.6.9",
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
- "copy": "copyfiles -f ../../LICENSE README.md package.json dist",
24
- "clean": "rimraf dist/**",
23
+ "clean": "makage clean",
25
24
  "prepack": "npm run build",
26
- "build": "npm run clean; tsc -p tsconfig.json; tsc -p tsconfig.esm.json; npm run copy",
27
- "build:dev": "npm run clean; tsc -p tsconfig.json --declarationMap; tsc -p tsconfig.esm.json; npm run copy",
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.3",
35
- "@launchql/s3-streamer": "^2.6.4",
36
- "@launchql/types": "^2.8.3",
37
- "@launchql/upload-names": "^2.2.7",
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.0.3",
44
- "graphile-meta-schema": "^0.2.5",
45
- "graphile-query": "^2.3.8",
46
- "graphile-search-plugin": "^0.1.7",
47
- "graphile-simple-inflector": "^0.1.1",
42
+ "graphile-i18n": "^0.1.1",
43
+ "graphile-meta-schema": "^0.2.6",
44
+ "graphile-query": "^2.3.9",
45
+ "graphile-search-plugin": "^0.1.9",
46
+ "graphile-simple-inflector": "^0.1.4",
48
47
  "graphql": "15.10.1",
49
48
  "graphql-tag": "2.12.6",
50
49
  "graphql-upload": "^13.0.0",
@@ -61,7 +60,7 @@
61
60
  "@types/express": "^5.0.1",
62
61
  "@types/pg": "^8.15.2",
63
62
  "@types/request-ip": "^0.0.41",
64
- "@types/rimraf": "^4.0.5",
63
+ "makage": "^0.1.6",
65
64
  "nodemon": "^3.1.10",
66
65
  "ts-node": "^10.9.2"
67
66
  },
@@ -72,5 +71,5 @@
72
71
  "launchql",
73
72
  "graphql"
74
73
  ],
75
- "gitHead": "4850ef84ce134d1bb43dc9132619a59257bd1157"
74
+ "gitHead": "e4643c07b6a961b964bbb132308366fc549504a1"
76
75
  }