grafast 0.0.0 → 0.0.1-0.1
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/LICENSE.md +26 -0
- package/README.md +3 -1
- package/dist/LICENSES.txt +273 -0
- package/dist/args.d.ts +3 -0
- package/dist/assert.d.ts +3 -0
- package/dist/bucket.d.ts +24 -0
- package/dist/config.d.ts +9 -0
- package/dist/constraints.d.ts +30 -0
- package/dist/deferred.d.ts +6 -0
- package/dist/dev.d.ts +3 -0
- package/dist/envelop.d.ts +7 -0
- package/dist/envelop.js +1 -0
- package/dist/error.d.ts +13 -0
- package/dist/establishOperationPlan.d.ts +9 -0
- package/dist/execute.d.ts +5 -0
- package/dist/exportAs.d.ts +5 -0
- package/dist/global.d.ts +3 -0
- package/dist/grafastGraphql.d.ts +5 -0
- package/dist/grafastPrint.d.ts +5 -0
- package/dist/graphqlCollectFields.d.ts +12 -0
- package/dist/graphqlMergeSelectionSets.d.ts +4 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +169 -0
- package/dist/input.d.ts +11 -0
- package/dist/inspect.d.ts +4 -0
- package/dist/interfaces.d.ts +261 -0
- package/dist/makeGrafastSchema.d.ts +52 -0
- package/dist/mermaid.d.ts +15 -0
- package/dist/opPlan-input.d.ts +6 -0
- package/dist/polymorphic.d.ts +6 -0
- package/dist/prepare.d.ts +11 -0
- package/dist/step.d.ts +104 -0
- package/dist/stringifyPayload.d.ts +3 -0
- package/dist/stripAnsi.d.ts +3 -0
- package/dist/subscribe.d.ts +4 -0
- package/dist/utils.d.ts +60 -0
- package/package.json +60 -9
- package/index.js +0 -1
package/LICENSE.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Graphile Sponsors-only Software
|
|
2
|
+
|
|
3
|
+
Copyright © 2022 Benjie Gillam. All rights reserved.
|
|
4
|
+
|
|
5
|
+
This package is _not_ (yet) open source software, it may only be used by
|
|
6
|
+
graphile sponsors. for more information, please see https://grafast.org
|
|
7
|
+
|
|
8
|
+
This is explicitly pre-release software, it has not yet gone through rigorous
|
|
9
|
+
testing and probably includes security and stability issues both known and
|
|
10
|
+
unknown. Usage of this software is entirely at your own risk.
|
|
11
|
+
|
|
12
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
+
SOFTWARE.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
The contents of the `node_modules` directory are produced from external
|
|
23
|
+
libraries; their license terms will likely differ from the terms above - you
|
|
24
|
+
should review them also.
|
|
25
|
+
|
|
26
|
+
Licenses of bundled dependencies (if any) are detailed in dist/LICENSES.txt
|
package/README.md
CHANGED
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
THIRD PARTY SOFTWARE NOTICES AND INFORMATION
|
|
2
|
+
Do Not Translate or Localize
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
--------------------------------------------------------------------------------
|
|
6
|
+
ansi-styles v4.3.0 - Sindre Sorhus
|
|
7
|
+
chalk/ansi-styles
|
|
8
|
+
--------------------------------------------------------------------------------
|
|
9
|
+
|
|
10
|
+
MIT License
|
|
11
|
+
|
|
12
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
13
|
+
|
|
14
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
15
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
16
|
+
the Software without restriction, including without limitation the rights to
|
|
17
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
18
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
19
|
+
subject to the following conditions:
|
|
20
|
+
|
|
21
|
+
The above copyright notice and this permission notice shall be included in all
|
|
22
|
+
copies or substantial portions of the Software.
|
|
23
|
+
|
|
24
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
25
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
26
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
27
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
28
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
29
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
--------------------------------------------------------------------------------
|
|
33
|
+
chalk v4.1.2
|
|
34
|
+
chalk/chalk
|
|
35
|
+
--------------------------------------------------------------------------------
|
|
36
|
+
|
|
37
|
+
MIT License
|
|
38
|
+
|
|
39
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
40
|
+
|
|
41
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
42
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
43
|
+
the Software without restriction, including without limitation the rights to
|
|
44
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
45
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
46
|
+
subject to the following conditions:
|
|
47
|
+
|
|
48
|
+
The above copyright notice and this permission notice shall be included in all
|
|
49
|
+
copies or substantial portions of the Software.
|
|
50
|
+
|
|
51
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
52
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
53
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
54
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
55
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
56
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
--------------------------------------------------------------------------------
|
|
60
|
+
color-convert v2.0.1 - Heather Arthur <fayearthur@gmail.com>
|
|
61
|
+
Qix-/color-convert
|
|
62
|
+
--------------------------------------------------------------------------------
|
|
63
|
+
|
|
64
|
+
Copyright (c) 2011-2016 Heather Arthur <fayearthur@gmail.com>
|
|
65
|
+
|
|
66
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
67
|
+
a copy of this software and associated documentation files (the
|
|
68
|
+
"Software"), to deal in the Software without restriction, including
|
|
69
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
70
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
71
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
72
|
+
the following conditions:
|
|
73
|
+
|
|
74
|
+
The above copyright notice and this permission notice shall be
|
|
75
|
+
included in all copies or substantial portions of the Software.
|
|
76
|
+
|
|
77
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
78
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
79
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
80
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
81
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
82
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
83
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
--------------------------------------------------------------------------------
|
|
88
|
+
color-name v1.1.4 - DY <dfcreative@gmail.com>
|
|
89
|
+
git@github.com:colorjs/color-name.git
|
|
90
|
+
--------------------------------------------------------------------------------
|
|
91
|
+
|
|
92
|
+
The MIT License (MIT)
|
|
93
|
+
Copyright (c) 2015 Dmitry Ivanov
|
|
94
|
+
|
|
95
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
96
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
97
|
+
the Software without restriction, including without limitation the rights to
|
|
98
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
99
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
100
|
+
subject to the following conditions:
|
|
101
|
+
|
|
102
|
+
The above copyright notice and this permission notice shall be included in all
|
|
103
|
+
copies or substantial portions of the Software.
|
|
104
|
+
|
|
105
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
106
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
107
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
108
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
109
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
110
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
111
|
+
|
|
112
|
+
--------------------------------------------------------------------------------
|
|
113
|
+
debug v4.3.3 - Josh Junon <josh.junon@protonmail.com>
|
|
114
|
+
git://github.com/debug-js/debug.git
|
|
115
|
+
--------------------------------------------------------------------------------
|
|
116
|
+
|
|
117
|
+
(The MIT License)
|
|
118
|
+
|
|
119
|
+
Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca>
|
|
120
|
+
Copyright (c) 2018-2021 Josh Junon
|
|
121
|
+
|
|
122
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
123
|
+
this software
|
|
124
|
+
and associated documentation files (the 'Software'), to deal in the Software
|
|
125
|
+
without restriction,
|
|
126
|
+
including without limitation the rights to use, copy, modify, merge, publish,
|
|
127
|
+
distribute, sublicense,
|
|
128
|
+
and/or sell copies of the Software, and to permit persons to whom the Software
|
|
129
|
+
is furnished to do so,
|
|
130
|
+
subject to the following conditions:
|
|
131
|
+
|
|
132
|
+
The above copyright notice and this permission notice shall be included in all
|
|
133
|
+
copies or substantial
|
|
134
|
+
portions of the Software.
|
|
135
|
+
|
|
136
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
137
|
+
IMPLIED, INCLUDING BUT NOT
|
|
138
|
+
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
|
|
139
|
+
AND NONINFRINGEMENT.
|
|
140
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
141
|
+
DAMAGES OR OTHER LIABILITY,
|
|
142
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
143
|
+
CONNECTION WITH THE
|
|
144
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
--------------------------------------------------------------------------------
|
|
149
|
+
eventemitter3 v4.0.7 - Arnout Kazemier
|
|
150
|
+
git://github.com/primus/eventemitter3.git
|
|
151
|
+
--------------------------------------------------------------------------------
|
|
152
|
+
|
|
153
|
+
The MIT License (MIT)
|
|
154
|
+
|
|
155
|
+
Copyright (c) 2014 Arnout Kazemier
|
|
156
|
+
|
|
157
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
158
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
159
|
+
in the Software without restriction, including without limitation the rights
|
|
160
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
161
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
162
|
+
furnished to do so, subject to the following conditions:
|
|
163
|
+
|
|
164
|
+
The above copyright notice and this permission notice shall be included in all
|
|
165
|
+
copies or substantial portions of the Software.
|
|
166
|
+
|
|
167
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
168
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
169
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
170
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
171
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
172
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
173
|
+
SOFTWARE.
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
--------------------------------------------------------------------------------
|
|
177
|
+
iterall v1.3.0 - Lee Byron <lee@leebyron.com> (http://leebyron.com/)
|
|
178
|
+
github:leebyron/iterall
|
|
179
|
+
--------------------------------------------------------------------------------
|
|
180
|
+
|
|
181
|
+
Copyright (c) 2016 Lee Byron
|
|
182
|
+
|
|
183
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
184
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
185
|
+
the Software without restriction, including without limitation the rights to
|
|
186
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
187
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
188
|
+
subject to the following conditions:
|
|
189
|
+
|
|
190
|
+
The above copyright notice and this permission notice shall be included in all
|
|
191
|
+
copies or substantial portions of the Software.
|
|
192
|
+
|
|
193
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
194
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
195
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
196
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
197
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
198
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
--------------------------------------------------------------------------------
|
|
202
|
+
ms v2.1.2
|
|
203
|
+
zeit/ms
|
|
204
|
+
--------------------------------------------------------------------------------
|
|
205
|
+
|
|
206
|
+
The MIT License (MIT)
|
|
207
|
+
|
|
208
|
+
Copyright (c) 2016 Zeit, Inc.
|
|
209
|
+
|
|
210
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
211
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
212
|
+
in the Software without restriction, including without limitation the rights
|
|
213
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
214
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
215
|
+
furnished to do so, subject to the following conditions:
|
|
216
|
+
|
|
217
|
+
The above copyright notice and this permission notice shall be included in all
|
|
218
|
+
copies or substantial portions of the Software.
|
|
219
|
+
|
|
220
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
221
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
222
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
223
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
224
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
225
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
226
|
+
SOFTWARE.
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
--------------------------------------------------------------------------------
|
|
230
|
+
supports-color v7.2.0 - Sindre Sorhus
|
|
231
|
+
chalk/supports-color
|
|
232
|
+
--------------------------------------------------------------------------------
|
|
233
|
+
|
|
234
|
+
MIT License
|
|
235
|
+
|
|
236
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
237
|
+
|
|
238
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
239
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
240
|
+
the Software without restriction, including without limitation the rights to
|
|
241
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
242
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
243
|
+
subject to the following conditions:
|
|
244
|
+
|
|
245
|
+
The above copyright notice and this permission notice shall be included in all
|
|
246
|
+
copies or substantial portions of the Software.
|
|
247
|
+
|
|
248
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
249
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
250
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
251
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
252
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
253
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
--------------------------------------------------------------------------------
|
|
257
|
+
tslib v2.4.0 - Microsoft Corp.
|
|
258
|
+
https://github.com/Microsoft/tslib.git
|
|
259
|
+
--------------------------------------------------------------------------------
|
|
260
|
+
|
|
261
|
+
Copyright (c) Microsoft Corporation.
|
|
262
|
+
|
|
263
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
264
|
+
purpose with or without fee is hereby granted.
|
|
265
|
+
|
|
266
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
267
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
268
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
269
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
270
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
271
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
272
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
273
|
+
|
package/dist/args.d.ts
ADDED
package/dist/assert.d.ts
ADDED
package/dist/bucket.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { LayerPlan } from "./engine/LayerPlan";
|
|
2
|
+
import type { MetaByMetaKey } from "./engine/OperationPlan";
|
|
3
|
+
import type { ExecutionEventEmitter } from "./interfaces.js";
|
|
4
|
+
export interface RequestContext {
|
|
5
|
+
readonly eventEmitter: ExecutionEventEmitter | undefined;
|
|
6
|
+
metaByMetaKey: MetaByMetaKey;
|
|
7
|
+
insideGraphQL: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface Bucket {
|
|
10
|
+
layerPlan: LayerPlan;
|
|
11
|
+
size: number;
|
|
12
|
+
noDepsList: readonly undefined[];
|
|
13
|
+
polymorphicPathList: readonly string[];
|
|
14
|
+
store: Map<number, any[]>;
|
|
15
|
+
isComplete: boolean;
|
|
16
|
+
hasErrors: boolean;
|
|
17
|
+
children: {
|
|
18
|
+
[layerPlanId: number]: {
|
|
19
|
+
bucket: Bucket;
|
|
20
|
+
map: Map<number, number | number[]>;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=bucket.d.ts.map
|
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AsyncHooks, PluginHook } from "graphile-config";
|
|
2
|
+
export declare const NULL_PRESET: GraphileConfig.ResolvedPreset;
|
|
3
|
+
declare type GraphileConfigModule = typeof import("graphile-config");
|
|
4
|
+
declare type PromiseOrValue<T> = T | Promise<T>;
|
|
5
|
+
export declare function withGraphileConfig<T>(callback: (graphileConfig: GraphileConfigModule | null) => PromiseOrValue<T>): PromiseOrValue<T>;
|
|
6
|
+
export declare function withHooks<TResult>(resolvedPreset: GraphileConfig.ResolvedPreset, callback: (hooks: AsyncHooks<GraphileConfig.GrafastHooks> | null) => PromiseOrValue<TResult>): PromiseOrValue<TResult>;
|
|
7
|
+
export declare function hook<THookName extends keyof GraphileConfig.GrafastHooks>(resolvedPreset: GraphileConfig.ResolvedPreset, hookName: THookName, ...args: Parameters<GraphileConfig.GrafastHooks[THookName] extends PluginHook<infer U> ? U : never>): PromiseOrValue<void>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
interface ValueConstraint {
|
|
2
|
+
type: "value";
|
|
3
|
+
path: (string | number)[];
|
|
4
|
+
value: unknown;
|
|
5
|
+
}
|
|
6
|
+
interface EqualityConstraint {
|
|
7
|
+
type: "equal";
|
|
8
|
+
path: (string | number)[];
|
|
9
|
+
expectedValue: unknown;
|
|
10
|
+
pass: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface ExistsConstraint {
|
|
13
|
+
type: "exists";
|
|
14
|
+
path: (string | number)[];
|
|
15
|
+
exists: boolean;
|
|
16
|
+
}
|
|
17
|
+
interface LengthConstraint {
|
|
18
|
+
type: "length";
|
|
19
|
+
path: (string | number)[];
|
|
20
|
+
expectedLength: number | null;
|
|
21
|
+
}
|
|
22
|
+
interface IsEmptyConstraint {
|
|
23
|
+
type: "isEmpty";
|
|
24
|
+
path: (string | number)[];
|
|
25
|
+
isEmpty: boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare type Constraint = ValueConstraint | EqualityConstraint | ExistsConstraint | LengthConstraint | IsEmptyConstraint;
|
|
28
|
+
export declare function matchesConstraints(constraints: Constraint[], object: unknown): boolean;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=constraints.d.ts.map
|
package/dist/dev.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Plugin as EnvelopPlugin } from "@envelop/core";
|
|
2
|
+
export interface UseGrafastOptions {
|
|
3
|
+
explainAllowed?: boolean | string[];
|
|
4
|
+
}
|
|
5
|
+
export declare const useGrafast: (options?: UseGrafastOptions) => EnvelopPlugin;
|
|
6
|
+
export declare const useMoreDetailedErrors: () => EnvelopPlugin;
|
|
7
|
+
//# sourceMappingURL=envelop.d.ts.map
|
package/dist/envelop.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";!function(e,s){"object"==typeof exports&&"object"==typeof module?module.exports=s():"function"==typeof define&&define.amd?define([],s):"object"==typeof exports?exports.grafast=s():e.grafast=s()}(this,(()=>(this.webpackChunkgrafast=this.webpackChunkgrafast||[]).push([[764],{3837:(e,s,r)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.useMoreDetailedErrors=s.useGrafast=void 0;const t=r(6587),n=r(6522),a=r(680);function o(e,s){if(!1===e||Array.isArray(e)&&0===e.length)return;const r=Array.isArray(s)?s.join(","):s;if(!r)return;const t=r.split(",");return!0===e||void 0===e?t:e.filter((e=>t.includes(e)))}s.useGrafast=(e={})=>{const{explainAllowed:s=!0}=e;return{async onExecute(e){const r=e.args.contextValue?.req?.headers["x-graphql-explain"],n=o(s,r);e.setExecuteFn((e=>(0,t.execute)(e,{grafast:{explain:n}})))},async onSubscribe(e){const r=e.args.contextValue,t=(r?.req?.headers||r?.request?.headers||r?.connectionParams)?.["x-graphql-explain"],n=o(s,t);e.setSubscribeFn((async e=>(0,a.subscribe)(e,{grafast:{explain:n}})))}}},s.useMoreDetailedErrors=()=>({onExecute:()=>({onExecuteDone({result:e}){"errors"in e&&e.errors&&(e.errors=e.errors.map((e=>{const s=e.toJSON();return Object.assign(s,{message:(0,n.stripAnsi)(s.message),extensions:{stack:(0,n.stripAnsi)(e.stack??"").split("\n")}})})))}})})}},e=>(3837,e(e.s=3837))])));
|
package/dist/error.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface GrafastError extends Error {
|
|
2
|
+
originalError: Error;
|
|
3
|
+
}
|
|
4
|
+
export declare const $$error: unique symbol;
|
|
5
|
+
export declare class _GrafastError extends Error implements GrafastError {
|
|
6
|
+
readonly originalError: Error;
|
|
7
|
+
extensions: Record<string, any>;
|
|
8
|
+
[$$error]: boolean;
|
|
9
|
+
constructor(originalError: Error, planId: number | null);
|
|
10
|
+
}
|
|
11
|
+
export declare function newGrafastError(error: Error, planId: number | null): _GrafastError;
|
|
12
|
+
export declare function isGrafastError(value: any): value is GrafastError;
|
|
13
|
+
//# sourceMappingURL=error.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FragmentDefinitionNode, GraphQLSchema, OperationDefinitionNode } from "graphql";
|
|
2
|
+
import { OperationPlan } from "./index.js";
|
|
3
|
+
import type { BaseGraphQLContext, BaseGraphQLRootValue, BaseGraphQLVariables } from "./interfaces.js";
|
|
4
|
+
declare type Fragments = {
|
|
5
|
+
[key: string]: FragmentDefinitionNode;
|
|
6
|
+
};
|
|
7
|
+
export declare function establishOperationPlan<TVariables extends BaseGraphQLVariables = BaseGraphQLVariables, TContext extends BaseGraphQLContext = BaseGraphQLContext, TRootValue extends BaseGraphQLRootValue = BaseGraphQLRootValue>(schema: GraphQLSchema, operation: OperationDefinitionNode, fragments: Fragments, variableValues: TVariables, context: TContext, rootValue: TRootValue): OperationPlan;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=establishOperationPlan.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AsyncExecutionResult, ExecutionArgs, ExecutionResult } from "graphql";
|
|
2
|
+
import type { PromiseOrValue } from "graphql/jsutils/PromiseOrValue";
|
|
3
|
+
export declare function withGrafastArgs(args: ExecutionArgs, resolvedPreset: GraphileConfig.ResolvedPreset, asString: boolean): PromiseOrValue<ExecutionResult | AsyncGenerator<AsyncExecutionResult, void, void>>;
|
|
4
|
+
export declare function execute(args: ExecutionArgs, resolvedPreset?: GraphileConfig.ResolvedPreset, asString?: boolean): PromiseOrValue<ExecutionResult | AsyncGenerator<AsyncExecutionResult, void, undefined>>;
|
|
5
|
+
//# sourceMappingURL=execute.d.ts.map
|
package/dist/global.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AsyncExecutionResult, ExecutionResult, GraphQLArgs } from "graphql";
|
|
2
|
+
import type { PromiseOrValue } from "graphql/jsutils/PromiseOrValue";
|
|
3
|
+
export declare function grafastGraphql(args: GraphQLArgs, resolvedPreset?: GraphileConfig.ResolvedPreset): PromiseOrValue<ExecutionResult | AsyncGenerator<AsyncExecutionResult, void, undefined>>;
|
|
4
|
+
export declare function grafastGraphqlSync(args: GraphQLArgs, resolvedPreset?: GraphileConfig.ResolvedPreset): ExecutionResult;
|
|
5
|
+
//# sourceMappingURL=grafastGraphql.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function _grafastPrint(symbol: string | symbol | symbol[] | Record<symbol, any> | Map<any, any>, seen: Set<any>): string;
|
|
2
|
+
export declare function grafastColor(text: string, n: number): string;
|
|
3
|
+
export declare function grafastPrint(symbol: symbol | symbol[] | Record<symbol, any> | Map<any, any> | any): string;
|
|
4
|
+
export declare function ansiPad(ansiString: string, targetLength: number, fill: string, position: "start" | "end"): string;
|
|
5
|
+
//# sourceMappingURL=grafastPrint.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FieldNode, SelectionNode } from "graphql";
|
|
2
|
+
import { GraphQLObjectType } from "graphql";
|
|
3
|
+
import type { OperationPlan } from "./engine/OperationPlan.js";
|
|
4
|
+
import type { __TrackedObjectStep } from "./steps/index.js";
|
|
5
|
+
export declare function evalDirectiveArg<T = unknown>(selection: SelectionNode, directiveName: string, argumentName: string, variableValuesStep: __TrackedObjectStep): T | undefined;
|
|
6
|
+
export interface SelectionSetDigest {
|
|
7
|
+
label: string | undefined;
|
|
8
|
+
fields: Map<string, FieldNode[]>;
|
|
9
|
+
deferred: SelectionSetDigest[];
|
|
10
|
+
}
|
|
11
|
+
export declare function graphqlCollectFields(operationPlan: OperationPlan, parentStepId: number, objectType: GraphQLObjectType, selections: readonly SelectionNode[], isMutation?: boolean, visitedFragments?: Set<string>, selectionSetDigest?: SelectionSetDigest): SelectionSetDigest;
|
|
12
|
+
//# sourceMappingURL=graphqlCollectFields.d.ts.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { FieldNode, GraphQLObjectType, SelectionNode } from "graphql";
|
|
2
|
+
import type { OperationPlan } from "./index.js";
|
|
3
|
+
export declare function fieldSelectionsForType(operationPlan: OperationPlan, type: GraphQLObjectType, selections: ReadonlyArray<SelectionNode>, result?: Array<FieldNode>): ReadonlyArray<FieldNode>;
|
|
4
|
+
//# sourceMappingURL=graphqlMergeSelectionSets.d.ts.map
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { exportAsMany } from "./exportAs.js";
|
|
2
|
+
import { grafastPrint } from "./grafastPrint.js";
|
|
3
|
+
import { EnumPlans, FieldPlans, GrafastPlans, InputObjectPlans, InterfaceOrUnionPlans, makeGrafastSchema, ObjectPlans, ScalarPlans } from "./makeGrafastSchema.js";
|
|
4
|
+
import { PrintPlanGraphOptions } from "./mermaid.js";
|
|
5
|
+
import { defer, Deferred } from "./deferred.js";
|
|
6
|
+
import { isDev, noop } from "./dev.js";
|
|
7
|
+
import { OperationPlan } from "./engine/OperationPlan.js";
|
|
8
|
+
import { GrafastError, isGrafastError } from "./error.js";
|
|
9
|
+
import { execute } from "./execute.js";
|
|
10
|
+
import { grafastGraphql, grafastGraphqlSync } from "./grafastGraphql.js";
|
|
11
|
+
import { InputStep } from "./input.js";
|
|
12
|
+
import { $$bypassGraphQL, $$concreteType, $$data, $$eventEmitter, $$extensions, $$idempotent, $$verbatim, ArgumentApplyPlanResolver, ArgumentInputPlanResolver, BaseEventMap, BaseGraphQLArguments, BaseGraphQLContext, BaseGraphQLRootValue, BaseGraphQLVariables, EnumValueApplyPlanResolver, EventCallback, EventMapKey, ExecutionEventEmitter, ExecutionEventMap, ExecutionExtra, FieldArgs, FieldInfo, FieldPlanResolver, GrafastArgumentExtensions, GrafastEnumValueExtensions, GrafastFieldExtensions, GrafastInputFieldExtensions, GrafastObjectTypeExtensions, GrafastResultsList, GrafastResultStreamList, GrafastSubscriber, GrafastValuesList, GraphileArgumentConfig, GraphileFieldConfig, GraphileFieldConfigArgumentMap, GraphileInputFieldConfig, InputObjectFieldApplyPlanResolver, InputObjectFieldInputPlanResolver, InputObjectTypeInputPlanResolver, NodeIdCodec, NodeIdHandler, OutputPlanForType, PolymorphicData, PromiseOrDirect, ScalarPlanResolver, StepOptimizeOptions, StepStreamOptions, TypedEventEmitter } from "./interfaces.js";
|
|
13
|
+
import { polymorphicWrap, resolveType } from "./polymorphic.js";
|
|
14
|
+
import { assertListCapableStep, BaseStep, ExecutableStep, isExecutableStep, isListCapableStep, isModifierStep, isObjectLikeStep, isStreamableStep, ListCapableStep, ModifierStep, ObjectLikeStep, PolymorphicStep, StreamableStep, UnbatchedExecutableStep } from "./step.js";
|
|
15
|
+
import { __InputListStep, __InputObjectStep, __InputStaticLeafStep, __ItemStep, __ListTransformStep, __TrackedObjectStep, __ValueStep, access, AccessStep, ActualKeyByDesiredKey, connection, ConnectionCapableStep, ConnectionStep, constant, ConstantStep, context, debugPlans, deepEval, DeepEvalStep, each, EdgeCapableStep, EdgeStep, error, ErrorStep, filter, FilterPlanMemo, first, FirstStep, GraphQLItemHandler, graphqlItemHandler, GraphQLPolymorphicUnwrap, graphqlPolymorphicUnwrap, graphqlResolver, GraphQLResolverStep, groupBy, GroupByPlanMemo, lambda, LambdaStep, last, LastStep, list, listen, ListenStep, ListStep, listTransform, ListTransformItemPlanCallback, ListTransformOptions, ListTransformReduce, loadMany, LoadManyCallback, loadManyCallback, LoadManyOptions, LoadManySingleRecordStep, LoadManyStep, loadOne, LoadOneCallback, loadOneCallback, LoadOneOptions, LoadOneStep, makeMapper, map, MapStep, node, NodeStep, object, ObjectPlanMeta, ObjectStep, operationPlan, PageInfoCapableStep, partitionByIndex, proxy, ProxyStep, reverse, reverseArray, ReverseStep, setter, SetterCapableStep, SetterStep, specFromNodeId } from "./steps/index.js";
|
|
16
|
+
import { stringifyPayload } from "./stringifyPayload.js";
|
|
17
|
+
import { stripAnsi } from "./stripAnsi.js";
|
|
18
|
+
import { subscribe } from "./subscribe.js";
|
|
19
|
+
import { arrayOfLength, arraysMatch, canRepresentAsIdentifier, evalSafeProperty, getEnumValueConfig, GraphileInputFieldConfigMap, GraphileInputObjectType, GraphileObjectType, inputObjectFieldSpec, InputObjectTypeSpec, isPromiseLike, isSafeObjectPropertyName, newGraphileFieldConfigBuilder, newInputObjectTypeBuilder, newObjectTypeBuilder, objectFieldSpec, objectSpec, ObjectTypeFields, ObjectTypeSpec, stepADependsOnStepB, stepAMayDependOnStepB, stepsAreInSamePhase } from "./utils.js";
|
|
20
|
+
export { isAsyncIterable } from "iterall";
|
|
21
|
+
export { __InputListStep, __InputObjectStep, __InputStaticLeafStep, __ItemStep, __ListTransformStep, __TrackedObjectStep, __ValueStep, $$bypassGraphQL, $$concreteType, $$data, $$eventEmitter, $$extensions, $$idempotent, $$verbatim, access, AccessStep, ActualKeyByDesiredKey, ArgumentApplyPlanResolver, ArgumentInputPlanResolver, arrayOfLength, arraysMatch, assertListCapableStep, BaseEventMap, BaseGraphQLArguments, BaseGraphQLContext, BaseGraphQLRootValue, BaseGraphQLVariables, BaseStep, canRepresentAsIdentifier, connection, ConnectionCapableStep, ConnectionStep, constant, ConstantStep, context, debugPlans, deepEval, DeepEvalStep, defer, Deferred, each, EdgeCapableStep, EdgeStep, EnumPlans, EnumValueApplyPlanResolver, error, ErrorStep, evalSafeProperty, EventCallback, EventMapKey, ExecutableStep, execute, ExecutionEventEmitter, ExecutionEventMap, ExecutionExtra, exportAsMany, FieldArgs, FieldInfo, FieldPlanResolver, FieldPlans, filter, FilterPlanMemo, first, FirstStep, getEnumValueConfig, grafastGraphql as grafast, GrafastArgumentExtensions, GrafastEnumValueExtensions, GrafastError, GrafastFieldExtensions, grafastGraphql, grafastGraphqlSync, GrafastInputFieldExtensions, GrafastObjectTypeExtensions, GrafastPlans, grafastPrint, GrafastResultsList, GrafastResultStreamList, GrafastSubscriber, grafastGraphqlSync as grafastSync, GrafastValuesList, GraphileArgumentConfig, GraphileFieldConfig, GraphileFieldConfigArgumentMap, GraphileInputFieldConfig, GraphileInputFieldConfigMap, GraphileInputObjectType, GraphileObjectType, GraphQLItemHandler, graphqlItemHandler, GraphQLPolymorphicUnwrap, graphqlPolymorphicUnwrap, graphqlResolver, GraphQLResolverStep, groupBy, GroupByPlanMemo, InputObjectFieldApplyPlanResolver, InputObjectFieldInputPlanResolver, inputObjectFieldSpec, InputObjectPlans, InputObjectTypeInputPlanResolver, InputObjectTypeSpec, InputStep, InterfaceOrUnionPlans, isDev, isExecutableStep, isGrafastError, isListCapableStep, isModifierStep, isObjectLikeStep, isPromiseLike, isSafeObjectPropertyName, isStreamableStep, lambda, LambdaStep, last, LastStep, list, ListCapableStep, listen, ListenStep, ListStep, listTransform, ListTransformItemPlanCallback, ListTransformOptions, ListTransformReduce, loadMany, LoadManyCallback, loadManyCallback, LoadManyOptions, LoadManySingleRecordStep, LoadManyStep, loadOne, LoadOneCallback, loadOneCallback, LoadOneOptions, LoadOneStep, makeGrafastSchema, makeMapper, map, MapStep, ModifierStep, newGraphileFieldConfigBuilder, newInputObjectTypeBuilder, newObjectTypeBuilder, node, NodeIdCodec, NodeIdHandler, NodeStep, noop, object, objectFieldSpec, ObjectLikeStep, ObjectPlanMeta, ObjectPlans, objectSpec, ObjectStep, ObjectTypeFields, ObjectTypeSpec, OperationPlan, operationPlan, OutputPlanForType, PageInfoCapableStep, partitionByIndex, PolymorphicData, PolymorphicStep, polymorphicWrap, PrintPlanGraphOptions, PromiseOrDirect, proxy, ProxyStep, resolveType, reverse, reverseArray, ReverseStep, ScalarPlanResolver, ScalarPlans, setter, SetterCapableStep, SetterStep, specFromNodeId, stepADependsOnStepB, stepAMayDependOnStepB, StepOptimizeOptions, stepsAreInSamePhase, StepStreamOptions, StreamableStep, stringifyPayload, stripAnsi, subscribe, TypedEventEmitter, UnbatchedExecutableStep, };
|
|
22
|
+
export { hookArgs } from "./args.js";
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|