silgi 0.41.2 → 0.41.4
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/dist/cli/build.mjs +1 -1
- package/dist/cli/index.mjs +1 -1
- package/dist/core/index.d.mts +2 -2
- package/dist/types/index.d.mts +3 -2
- package/package.json +2 -1
package/dist/cli/build.mjs
CHANGED
|
@@ -659,7 +659,7 @@ function registerExportsWithHooks(silgiInstance, runtimeExports, typeExports, pa
|
|
|
659
659
|
case "schema":
|
|
660
660
|
options.schemas.push(uniqueId);
|
|
661
661
|
break;
|
|
662
|
-
case "
|
|
662
|
+
case "resolver":
|
|
663
663
|
options.resolvers.push(uniqueId);
|
|
664
664
|
break;
|
|
665
665
|
case "middleware":
|
package/dist/cli/index.mjs
CHANGED
package/dist/core/index.d.mts
CHANGED
|
@@ -186,12 +186,12 @@ declare function createService<Path extends string = string, Input extends Stand
|
|
|
186
186
|
|
|
187
187
|
type WildcardVariants<Path extends string, Acc extends string = ''> = Path extends `${infer Head}/${infer Tail}` ? Tail extends '' ? `${Acc}${Head}` : `${Acc}${Head}/${Tail}` | `${Acc}${Head}/*` | `${Acc}${Head}/**` | WildcardVariants<Tail, `${Acc}${Head}/`> : `${Acc}${Path}`;
|
|
188
188
|
type MiddlewarePath<S extends WildcardVariants<keyof ServicesObject>> = S | 'global';
|
|
189
|
-
|
|
189
|
+
interface CreateMiddlewareParams<S extends WildcardVariants<keyof ServicesObject>, UsedMethod extends readonly HttpMethod[] = readonly HttpMethod[], Key extends string = string> {
|
|
190
190
|
path: MiddlewarePath<S>;
|
|
191
191
|
methods?: UsedMethod;
|
|
192
192
|
setup: MiddlewareSetup;
|
|
193
193
|
key: Key;
|
|
194
|
-
}
|
|
194
|
+
}
|
|
195
195
|
type CreateMiddlewareResult<Path extends string, UsedMethod extends readonly HttpMethod[] = readonly HttpMethod[], Key extends string = string> = {
|
|
196
196
|
[K in `${Key}:${Path}`]: {
|
|
197
197
|
setup: MiddlewareSetup;
|
package/dist/types/index.d.mts
CHANGED
|
@@ -16,6 +16,7 @@ import * as h3 from 'h3';
|
|
|
16
16
|
import { Session } from 'h3';
|
|
17
17
|
import * as nitropack_types from 'nitropack/types';
|
|
18
18
|
import { ESMImport, ESMCodeGenOptions } from 'knitwork';
|
|
19
|
+
import { IResolvers } from '@graphql-tools/utils';
|
|
19
20
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
20
21
|
import { NitroApp } from 'nitropack';
|
|
21
22
|
import { RouterContext } from 'rou3';
|
|
@@ -315,7 +316,7 @@ interface SilgiCLI {
|
|
|
315
316
|
services: ResolvedServiceDefinition;
|
|
316
317
|
middleware: SilgiRoute[];
|
|
317
318
|
shareds: SilgiRuntimeShareds;
|
|
318
|
-
resolvers: any[];
|
|
319
|
+
resolvers: IResolvers<any, any>[];
|
|
319
320
|
schemas: Record<string, any>;
|
|
320
321
|
templates: SilgiTemplate[];
|
|
321
322
|
hooks: Hookable<SilgiCLIHooks>;
|
|
@@ -707,7 +708,7 @@ interface Silgi {
|
|
|
707
708
|
globalMiddlewares: SilgiRoute[];
|
|
708
709
|
routerPrefixs: string[];
|
|
709
710
|
schemas: ResolvedSchemaDefinition;
|
|
710
|
-
resolvers: any[];
|
|
711
|
+
resolvers: IResolvers<any, any>[];
|
|
711
712
|
services: ResolvedServiceDefinition;
|
|
712
713
|
shared: SilgiRuntimeShareds;
|
|
713
714
|
plugins: SilgiAppPlugin[];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "silgi",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.41.
|
|
4
|
+
"version": "0.41.4",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"exports": {
|
|
@@ -98,6 +98,7 @@
|
|
|
98
98
|
"@antfu/ni": "^24.3.0",
|
|
99
99
|
"@clack/prompts": "^0.10.1",
|
|
100
100
|
"@fastify/deepmerge": "^3.1.0",
|
|
101
|
+
"@graphql-tools/utils": "^10.8.6",
|
|
101
102
|
"@standard-community/standard-json": "^0.2.0",
|
|
102
103
|
"@standard-schema/spec": "^1.0.0",
|
|
103
104
|
"apiful": "^2.2.0",
|