graphile-settings 2.2.1 → 2.3.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/esm/index.js +11 -11
- package/index.d.ts +1 -1
- package/index.js +11 -11
- package/package.json +8 -7
package/esm/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
+
import PgManyToMany from '@graphile-contrib/pg-many-to-many';
|
|
2
|
+
import { getEnvOptions } from '@launchql/env';
|
|
3
|
+
import PgPostgis from '@pyramation/postgis';
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import FulltextFilterPlugin from '@pyramation/postgraphile-plugin-fulltext-filter';
|
|
1
6
|
import { NodePlugin } from 'graphile-build';
|
|
7
|
+
import { additionalGraphQLContextFromRequest as langAdditional, LangPlugin
|
|
2
8
|
// @ts-ignore
|
|
3
|
-
|
|
9
|
+
} from 'graphile-i18n';
|
|
4
10
|
// @ts-ignore
|
|
5
11
|
import PgMetaschema from 'graphile-meta-schema';
|
|
6
|
-
import ConnectionFilterPlugin from 'postgraphile-plugin-connection-filter';
|
|
7
12
|
// @ts-ignore
|
|
8
|
-
import
|
|
13
|
+
import PgSearch from 'graphile-search-plugin';
|
|
9
14
|
// @ts-ignore
|
|
10
|
-
import
|
|
11
|
-
import { LangPlugin, additionalGraphQLContextFromRequest as langAdditional
|
|
15
|
+
import PgSimpleInflector from 'graphile-simple-inflector';
|
|
12
16
|
// @ts-ignore
|
|
13
|
-
|
|
14
|
-
import
|
|
17
|
+
import PostGraphileUploadFieldPlugin from 'postgraphile-derived-upload-field';
|
|
18
|
+
import ConnectionFilterPlugin from 'postgraphile-plugin-connection-filter';
|
|
15
19
|
// @ts-ignore
|
|
16
20
|
import PgPostgisFilter from 'postgraphile-plugin-connection-filter-postgis';
|
|
17
|
-
import PgManyToMany from '@graphile-contrib/pg-many-to-many';
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
import PgSearch from 'graphile-search-plugin';
|
|
20
21
|
import LqlTypesPlugin from './plugins/types';
|
|
21
22
|
import { Uploader } from './resolvers/upload';
|
|
22
|
-
import { getEnvOptions } from '@launchql/types';
|
|
23
23
|
export const getGraphileSettings = (rawOpts) => {
|
|
24
24
|
const opts = getEnvOptions(rawOpts);
|
|
25
25
|
const { server, graphile, features, cdn } = opts;
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -4,28 +4,28 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getGraphileSettings = void 0;
|
|
7
|
-
const
|
|
7
|
+
const pg_many_to_many_1 = __importDefault(require("@graphile-contrib/pg-many-to-many"));
|
|
8
|
+
const env_1 = require("@launchql/env");
|
|
9
|
+
const postgis_1 = __importDefault(require("@pyramation/postgis"));
|
|
8
10
|
// @ts-ignore
|
|
9
|
-
const
|
|
11
|
+
const postgraphile_plugin_fulltext_filter_1 = __importDefault(require("@pyramation/postgraphile-plugin-fulltext-filter"));
|
|
12
|
+
const graphile_build_1 = require("graphile-build");
|
|
13
|
+
const graphile_i18n_1 = require("graphile-i18n");
|
|
10
14
|
// @ts-ignore
|
|
11
15
|
const graphile_meta_schema_1 = __importDefault(require("graphile-meta-schema"));
|
|
12
|
-
const postgraphile_plugin_connection_filter_1 = __importDefault(require("postgraphile-plugin-connection-filter"));
|
|
13
16
|
// @ts-ignore
|
|
14
|
-
const
|
|
17
|
+
const graphile_search_plugin_1 = __importDefault(require("graphile-search-plugin"));
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
const graphile_simple_inflector_1 = __importDefault(require("graphile-simple-inflector"));
|
|
15
20
|
// @ts-ignore
|
|
16
21
|
const postgraphile_derived_upload_field_1 = __importDefault(require("postgraphile-derived-upload-field"));
|
|
17
|
-
const
|
|
18
|
-
const postgis_1 = __importDefault(require("@pyramation/postgis"));
|
|
22
|
+
const postgraphile_plugin_connection_filter_1 = __importDefault(require("postgraphile-plugin-connection-filter"));
|
|
19
23
|
// @ts-ignore
|
|
20
24
|
const postgraphile_plugin_connection_filter_postgis_1 = __importDefault(require("postgraphile-plugin-connection-filter-postgis"));
|
|
21
|
-
const pg_many_to_many_1 = __importDefault(require("@graphile-contrib/pg-many-to-many"));
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
const graphile_search_plugin_1 = __importDefault(require("graphile-search-plugin"));
|
|
24
25
|
const types_1 = __importDefault(require("./plugins/types"));
|
|
25
26
|
const upload_1 = require("./resolvers/upload");
|
|
26
|
-
const types_2 = require("@launchql/types");
|
|
27
27
|
const getGraphileSettings = (rawOpts) => {
|
|
28
|
-
const opts = (0,
|
|
28
|
+
const opts = (0, env_1.getEnvOptions)(rawOpts);
|
|
29
29
|
const { server, graphile, features, cdn } = opts;
|
|
30
30
|
// Instantiate uploader with merged cdn opts
|
|
31
31
|
const uploader = new upload_1.Uploader({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphile-settings",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
|
5
5
|
"description": "graphile settings",
|
|
6
6
|
"main": "index.js",
|
|
@@ -31,9 +31,10 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@graphile-contrib/pg-many-to-many": "^1.0.2",
|
|
34
|
-
"@launchql/
|
|
35
|
-
"@launchql/
|
|
36
|
-
"@launchql/
|
|
34
|
+
"@launchql/env": "^2.2.0",
|
|
35
|
+
"@launchql/s3-streamer": "^2.3.0",
|
|
36
|
+
"@launchql/types": "^2.2.0",
|
|
37
|
+
"@launchql/upload-names": "^2.2.0",
|
|
37
38
|
"@pyramation/postgis": "^0.1.1",
|
|
38
39
|
"@pyramation/postgraphile-plugin-fulltext-filter": "^2.0.0",
|
|
39
40
|
"cors": "^2.8.5",
|
|
@@ -41,9 +42,9 @@
|
|
|
41
42
|
"graphile-build": "^4.14.1",
|
|
42
43
|
"graphile-i18n": "^0.0.3",
|
|
43
44
|
"graphile-meta-schema": "^0.2.5",
|
|
44
|
-
"graphile-query": "^2.
|
|
45
|
+
"graphile-query": "^2.2.0",
|
|
45
46
|
"graphile-search-plugin": "^0.1.2",
|
|
46
|
-
"graphile-settings": "^2.
|
|
47
|
+
"graphile-settings": "^2.3.0",
|
|
47
48
|
"graphile-simple-inflector": "^0.1.1",
|
|
48
49
|
"graphql-tag": "2.12.6",
|
|
49
50
|
"lru-cache": "^11.1.0",
|
|
@@ -70,5 +71,5 @@
|
|
|
70
71
|
"launchql",
|
|
71
72
|
"graphql"
|
|
72
73
|
],
|
|
73
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "cbf678ed3d22055b7d972468ca7f822b2662e7d0"
|
|
74
75
|
}
|