postgraphile 4.12.11 → 5.0.0-0.3
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/CHANGELOG.md +46 -0
- package/LICENSE.md +15 -20
- package/README.md +20 -171
- package/dist/cli-run.d.ts +3 -0
- package/dist/cli-run.d.ts.map +1 -0
- package/dist/cli-run.js +7 -0
- package/dist/cli-run.js.map +1 -0
- package/dist/cli.d.ts +21 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +180 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +88 -0
- package/dist/index.js.map +1 -0
- package/dist/plugins/PgV4BehaviorPlugin.d.ts +11 -0
- package/dist/plugins/PgV4BehaviorPlugin.d.ts.map +1 -0
- package/dist/plugins/PgV4BehaviorPlugin.js +73 -0
- package/dist/plugins/PgV4BehaviorPlugin.js.map +1 -0
- package/dist/plugins/PgV4InflectionPlugin.d.ts +11 -0
- package/dist/plugins/PgV4InflectionPlugin.d.ts.map +1 -0
- package/dist/plugins/PgV4InflectionPlugin.js +91 -0
- package/dist/plugins/PgV4InflectionPlugin.js.map +1 -0
- package/dist/plugins/PgV4NoIgnoreIndexes.d.ts +2 -0
- package/dist/plugins/PgV4NoIgnoreIndexes.d.ts.map +1 -0
- package/dist/plugins/PgV4NoIgnoreIndexes.js +72 -0
- package/dist/plugins/PgV4NoIgnoreIndexes.js.map +1 -0
- package/dist/plugins/PgV4SmartTagsPlugin.d.ts +11 -0
- package/dist/plugins/PgV4SmartTagsPlugin.d.ts.map +1 -0
- package/dist/plugins/PgV4SmartTagsPlugin.js +190 -0
- package/dist/plugins/PgV4SmartTagsPlugin.js.map +1 -0
- package/dist/presets/amber.d.ts +5 -0
- package/dist/presets/amber.d.ts.map +1 -0
- package/dist/presets/amber.js +38 -0
- package/dist/presets/amber.js.map +1 -0
- package/dist/presets/v4.d.ts +34 -0
- package/dist/presets/v4.d.ts.map +1 -0
- package/dist/presets/v4.js +142 -0
- package/dist/presets/v4.js.map +1 -0
- package/dist/schema.d.ts +34 -0
- package/dist/schema.d.ts.map +1 -0
- package/dist/schema.js +82 -0
- package/dist/schema.js.map +1 -0
- package/package.json +77 -154
- package/build/assets/favicon.ico.d.ts +0 -3
- package/build/assets/favicon.ico.js +0 -6
- package/build/assets/graphiql.html.d.ts +0 -2
- package/build/assets/graphiql.html.js +0 -6
- package/build/index.d.ts +0 -8
- package/build/index.js +0 -34
- package/build/interfaces.d.ts +0 -162
- package/build/interfaces.js +0 -3
- package/build/plugins.d.ts +0 -3
- package/build/plugins.js +0 -53
- package/build/postgraphile/cli.d.ts +0 -3
- package/build/postgraphile/cli.js +0 -541
- package/build/postgraphile/extendedFormatError.d.ts +0 -9
- package/build/postgraphile/extendedFormatError.js +0 -51
- package/build/postgraphile/http/createPostGraphileHttpRequestHandler.d.ts +0 -11
- package/build/postgraphile/http/createPostGraphileHttpRequestHandler.js +0 -974
- package/build/postgraphile/http/frameworks.d.ts +0 -110
- package/build/postgraphile/http/frameworks.js +0 -258
- package/build/postgraphile/http/liveSubscribe.d.ts +0 -22
- package/build/postgraphile/http/liveSubscribe.js +0 -89
- package/build/postgraphile/http/mapAsyncIterator.d.ts +0 -15
- package/build/postgraphile/http/mapAsyncIterator.js +0 -71
- package/build/postgraphile/http/setupServerSentEvents.d.ts +0 -9
- package/build/postgraphile/http/setupServerSentEvents.js +0 -51
- package/build/postgraphile/http/subscriptions.d.ts +0 -7
- package/build/postgraphile/http/subscriptions.js +0 -410
- package/build/postgraphile/index.d.ts +0 -5
- package/build/postgraphile/index.js +0 -14
- package/build/postgraphile/pluginHook.d.ts +0 -104
- package/build/postgraphile/pluginHook.js +0 -100
- package/build/postgraphile/postgraphile.d.ts +0 -20
- package/build/postgraphile/postgraphile.js +0 -332
- package/build/postgraphile/postgraphilerc.d.ts +0 -2
- package/build/postgraphile/postgraphilerc.js +0 -16
- package/build/postgraphile/schema/exportPostGraphileSchema.d.ts +0 -6
- package/build/postgraphile/schema/exportPostGraphileSchema.js +0 -45
- package/build/postgraphile/shutdownActions.d.ts +0 -41
- package/build/postgraphile/shutdownActions.js +0 -87
- package/build/postgraphile/withPostGraphileContext.d.ts +0 -55
- package/build/postgraphile/withPostGraphileContext.js +0 -457
- package/build/postgres/inventory/pgClientFromContext.d.ts +0 -8
- package/build/postgres/inventory/pgClientFromContext.js +0 -21
- package/build-turbo/assets/favicon.ico.d.ts +0 -3
- package/build-turbo/assets/favicon.ico.js +0 -6
- package/build-turbo/assets/graphiql.html.d.ts +0 -2
- package/build-turbo/assets/graphiql.html.js +0 -6
- package/build-turbo/index.d.ts +0 -8
- package/build-turbo/index.js +0 -34
- package/build-turbo/interfaces.d.ts +0 -162
- package/build-turbo/interfaces.js +0 -3
- package/build-turbo/plugins.d.ts +0 -3
- package/build-turbo/plugins.js +0 -53
- package/build-turbo/postgraphile/cli.d.ts +0 -3
- package/build-turbo/postgraphile/cli.js +0 -572
- package/build-turbo/postgraphile/extendedFormatError.d.ts +0 -9
- package/build-turbo/postgraphile/extendedFormatError.js +0 -61
- package/build-turbo/postgraphile/http/createPostGraphileHttpRequestHandler.d.ts +0 -11
- package/build-turbo/postgraphile/http/createPostGraphileHttpRequestHandler.js +0 -982
- package/build-turbo/postgraphile/http/frameworks.d.ts +0 -110
- package/build-turbo/postgraphile/http/frameworks.js +0 -258
- package/build-turbo/postgraphile/http/liveSubscribe.d.ts +0 -22
- package/build-turbo/postgraphile/http/liveSubscribe.js +0 -89
- package/build-turbo/postgraphile/http/mapAsyncIterator.d.ts +0 -15
- package/build-turbo/postgraphile/http/mapAsyncIterator.js +0 -71
- package/build-turbo/postgraphile/http/setupServerSentEvents.d.ts +0 -9
- package/build-turbo/postgraphile/http/setupServerSentEvents.js +0 -51
- package/build-turbo/postgraphile/http/subscriptions.d.ts +0 -7
- package/build-turbo/postgraphile/http/subscriptions.js +0 -409
- package/build-turbo/postgraphile/index.d.ts +0 -5
- package/build-turbo/postgraphile/index.js +0 -14
- package/build-turbo/postgraphile/pluginHook.d.ts +0 -104
- package/build-turbo/postgraphile/pluginHook.js +0 -100
- package/build-turbo/postgraphile/postgraphile.d.ts +0 -20
- package/build-turbo/postgraphile/postgraphile.js +0 -337
- package/build-turbo/postgraphile/postgraphilerc.d.ts +0 -2
- package/build-turbo/postgraphile/postgraphilerc.js +0 -16
- package/build-turbo/postgraphile/schema/exportPostGraphileSchema.d.ts +0 -6
- package/build-turbo/postgraphile/schema/exportPostGraphileSchema.js +0 -45
- package/build-turbo/postgraphile/shutdownActions.d.ts +0 -41
- package/build-turbo/postgraphile/shutdownActions.js +0 -87
- package/build-turbo/postgraphile/withPostGraphileContext.d.ts +0 -55
- package/build-turbo/postgraphile/withPostGraphileContext.js +0 -466
- package/build-turbo/postgres/inventory/pgClientFromContext.d.ts +0 -8
- package/build-turbo/postgres/inventory/pgClientFromContext.js +0 -21
- package/cli.js +0 -6
- package/index.js +0 -5
- package/isTurbo.js +0 -11
- package/plugins.d.ts +0 -1
- package/plugins.js +0 -5
- package/sponsors.json +0 -150
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.$$pgClient = void 0;
|
|
4
|
-
const pg_1 = require("pg");
|
|
5
|
-
exports.$$pgClient = 'pgClient';
|
|
6
|
-
/**
|
|
7
|
-
* Retrieves a Postgres client from a context, throwing an error if such a
|
|
8
|
-
* client does not exist.
|
|
9
|
-
*/
|
|
10
|
-
function getPgClientFromContext(context) {
|
|
11
|
-
if (context == null || typeof context !== 'object')
|
|
12
|
-
throw new Error('Context must be an object.');
|
|
13
|
-
const client = context[exports.$$pgClient];
|
|
14
|
-
if (client == null)
|
|
15
|
-
throw new Error('Postgres client does not exist on the context.');
|
|
16
|
-
if (!(client instanceof pg_1.ClientBase))
|
|
17
|
-
throw new Error('Postgres client on context is of the incorrect type.');
|
|
18
|
-
return client;
|
|
19
|
-
}
|
|
20
|
-
exports.default = getPgClientFromContext;
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGdDbGllbnRGcm9tQ29udGV4dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wb3N0Z3Jlcy9pbnZlbnRvcnkvcGdDbGllbnRGcm9tQ29udGV4dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFFQSwyQkFBNEM7QUFFL0IsUUFBQSxVQUFVLEdBQUcsVUFBVSxDQUFDO0FBRXJDOzs7R0FHRztBQUNILFNBQXdCLHNCQUFzQixDQUFDLE9BQWM7SUFDM0QsSUFBSSxPQUFPLElBQUksSUFBSSxJQUFJLE9BQU8sT0FBTyxLQUFLLFFBQVE7UUFBRSxNQUFNLElBQUksS0FBSyxDQUFDLDRCQUE0QixDQUFDLENBQUM7SUFFbEcsTUFBTSxNQUFNLEdBQUcsT0FBTyxDQUFDLGtCQUFVLENBQUMsQ0FBQztJQUVuQyxJQUFJLE1BQU0sSUFBSSxJQUFJO1FBQUUsTUFBTSxJQUFJLEtBQUssQ0FBQyxnREFBZ0QsQ0FBQyxDQUFDO0lBRXRGLElBQUksQ0FBQyxDQUFDLE1BQU0sWUFBWSxlQUFVLENBQUM7UUFDakMsTUFBTSxJQUFJLEtBQUssQ0FBQyxzREFBc0QsQ0FBQyxDQUFDO0lBRTFFLE9BQU8sTUFBb0IsQ0FBQztBQUM5QixDQUFDO0FBWEQseUNBV0MifQ==
|
package/cli.js
DELETED
package/index.js
DELETED
package/isTurbo.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
if (process.env.GRAPHILE_TURBO === '1') {
|
|
2
|
-
const major = parseInt(process.version.replace(/\..*$/, ''), 10);
|
|
3
|
-
if (major < 14) {
|
|
4
|
-
throw new Error(
|
|
5
|
-
'Turbo mode currently requires Node v14 or higher, please upgrade Node.js or remove the GRAPHILE_TURBO environmental variable.',
|
|
6
|
-
);
|
|
7
|
-
}
|
|
8
|
-
module.exports = true;
|
|
9
|
-
} else {
|
|
10
|
-
module.exports = false;
|
|
11
|
-
}
|
package/plugins.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './build/plugins';
|
package/plugins.js
DELETED
package/sponsors.json
DELETED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
"ARK",
|
|
3
|
-
"Alvin Ali Khaled",
|
|
4
|
-
"Axinom",
|
|
5
|
-
"Axinom",
|
|
6
|
-
"Axinom",
|
|
7
|
-
"Benjamin Berman",
|
|
8
|
-
"CJ Lazell",
|
|
9
|
-
"CartoLab",
|
|
10
|
-
"Chad Furman",
|
|
11
|
-
"Chad Furman",
|
|
12
|
-
"Chad Furman",
|
|
13
|
-
"Chad Furman",
|
|
14
|
-
"Chad Furman",
|
|
15
|
-
"Chad Furman",
|
|
16
|
-
"Chris Watland",
|
|
17
|
-
"DocIQ",
|
|
18
|
-
"DocIQ",
|
|
19
|
-
"DocIQ",
|
|
20
|
-
"Dovetail",
|
|
21
|
-
"Dovetail",
|
|
22
|
-
"Dovetail",
|
|
23
|
-
"Dovetail",
|
|
24
|
-
"Dovetail",
|
|
25
|
-
"Dovetail",
|
|
26
|
-
"Enzuzo",
|
|
27
|
-
"Enzuzo",
|
|
28
|
-
"Enzuzo",
|
|
29
|
-
"Enzuzo",
|
|
30
|
-
"Enzuzo",
|
|
31
|
-
"Enzuzo",
|
|
32
|
-
"Fanatics",
|
|
33
|
-
"Fanatics",
|
|
34
|
-
"Fanatics",
|
|
35
|
-
"Fanatics",
|
|
36
|
-
"Fanatics",
|
|
37
|
-
"Fanatics",
|
|
38
|
-
"GraphCDN",
|
|
39
|
-
"GraphCDN",
|
|
40
|
-
"GraphCDN",
|
|
41
|
-
"GraphCDN",
|
|
42
|
-
"GraphCDN",
|
|
43
|
-
"GraphCDN",
|
|
44
|
-
"HR-ON",
|
|
45
|
-
"HR-ON",
|
|
46
|
-
"HR-ON",
|
|
47
|
-
"IFCHOR GROUP",
|
|
48
|
-
"IaSQL",
|
|
49
|
-
"IaSQL",
|
|
50
|
-
"IaSQL",
|
|
51
|
-
"IaSQL",
|
|
52
|
-
"IaSQL",
|
|
53
|
-
"IaSQL",
|
|
54
|
-
"Ian Stewart",
|
|
55
|
-
"Ian Stewart",
|
|
56
|
-
"Ian Stewart",
|
|
57
|
-
"Jack Dinker",
|
|
58
|
-
"Jack Dinker",
|
|
59
|
-
"Jack Dinker",
|
|
60
|
-
"James Rascoe",
|
|
61
|
-
"Jimmy Liu",
|
|
62
|
-
"Joe Dennis",
|
|
63
|
-
"Joe Dennis",
|
|
64
|
-
"Joe Dennis",
|
|
65
|
-
"Kadi Kraman",
|
|
66
|
-
"Keith Layne",
|
|
67
|
-
"Luxor Labs",
|
|
68
|
-
"Luxor Labs",
|
|
69
|
-
"Luxor Labs",
|
|
70
|
-
"Mansoor Razzaq",
|
|
71
|
-
"Mark",
|
|
72
|
-
"Matt Bretl",
|
|
73
|
-
"Nathanael Beisiegel",
|
|
74
|
-
"Nathanael Beisiegel",
|
|
75
|
-
"Nathanael Beisiegel",
|
|
76
|
-
"Notably",
|
|
77
|
-
"Notably",
|
|
78
|
-
"Notably",
|
|
79
|
-
"Olli Selamaa",
|
|
80
|
-
"OnThisSpot",
|
|
81
|
-
"Paul Melnikow",
|
|
82
|
-
"Philipp Litzenberger",
|
|
83
|
-
"Politics Rewired",
|
|
84
|
-
"Politics Rewired",
|
|
85
|
-
"Politics Rewired",
|
|
86
|
-
"Politics Rewired",
|
|
87
|
-
"Politics Rewired",
|
|
88
|
-
"Politics Rewired",
|
|
89
|
-
"PostHog",
|
|
90
|
-
"PostHog",
|
|
91
|
-
"PostHog",
|
|
92
|
-
"Postlight",
|
|
93
|
-
"Principia Mentis",
|
|
94
|
-
"Principia Mentis",
|
|
95
|
-
"Principia Mentis",
|
|
96
|
-
"Qwick",
|
|
97
|
-
"Qwick",
|
|
98
|
-
"Qwick",
|
|
99
|
-
"Qwick",
|
|
100
|
-
"Qwick",
|
|
101
|
-
"Qwick",
|
|
102
|
-
"Robert Claypool",
|
|
103
|
-
"Robert Claypool",
|
|
104
|
-
"Robert Claypool",
|
|
105
|
-
"Sam Levin",
|
|
106
|
-
"Sen Palanisami",
|
|
107
|
-
"Simon Elliott",
|
|
108
|
-
"Splitgraph",
|
|
109
|
-
"Story.ai",
|
|
110
|
-
"Story.ai",
|
|
111
|
-
"Story.ai",
|
|
112
|
-
"Story.ai",
|
|
113
|
-
"Story.ai",
|
|
114
|
-
"Story.ai",
|
|
115
|
-
"Stéphane Klein",
|
|
116
|
-
"SuperRare Labs",
|
|
117
|
-
"SuperRare Labs",
|
|
118
|
-
"SuperRare Labs",
|
|
119
|
-
"Surge",
|
|
120
|
-
"Surge",
|
|
121
|
-
"Surge",
|
|
122
|
-
"Surge",
|
|
123
|
-
"Surge",
|
|
124
|
-
"Surge",
|
|
125
|
-
"Taiste",
|
|
126
|
-
"Taiste",
|
|
127
|
-
"Taiste",
|
|
128
|
-
"The Guild",
|
|
129
|
-
"The Guild",
|
|
130
|
-
"The Guild",
|
|
131
|
-
"The Guild",
|
|
132
|
-
"The Guild",
|
|
133
|
-
"The Guild",
|
|
134
|
-
"William Baxter",
|
|
135
|
-
"William Baxter",
|
|
136
|
-
"William Baxter",
|
|
137
|
-
"Zentered",
|
|
138
|
-
"Zymego",
|
|
139
|
-
"domonda",
|
|
140
|
-
"domonda",
|
|
141
|
-
"domonda",
|
|
142
|
-
"latch.bio",
|
|
143
|
-
"latch.bio",
|
|
144
|
-
"latch.bio",
|
|
145
|
-
"nick",
|
|
146
|
-
"nigelrmtaylor",
|
|
147
|
-
"nigelrmtaylor",
|
|
148
|
-
"nigelrmtaylor",
|
|
149
|
-
"svarmony"
|
|
150
|
-
]
|