silgi 0.41.30 → 0.41.31
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/index.mjs +1 -1
- package/dist/core/index.mjs +4 -4
- package/dist/types/index.d.mts +1 -1
- package/package.json +1 -1
package/dist/cli/index.mjs
CHANGED
package/dist/core/index.mjs
CHANGED
|
@@ -714,9 +714,9 @@ async function orchestrate(route, event, _input, parent, info) {
|
|
|
714
714
|
// event
|
|
715
715
|
event,
|
|
716
716
|
// parent - graphql
|
|
717
|
-
|
|
717
|
+
parent,
|
|
718
718
|
// info - graphql
|
|
719
|
-
|
|
719
|
+
info
|
|
720
720
|
);
|
|
721
721
|
await silgiCtx.callHook("fetch:after", {
|
|
722
722
|
event,
|
|
@@ -1104,12 +1104,12 @@ async function handler(event, url, input, parent, info) {
|
|
|
1104
1104
|
}
|
|
1105
1105
|
event.context.params = match.params;
|
|
1106
1106
|
event.context.matchedRoute = match.data;
|
|
1107
|
-
return orchestrate(match.data, event, input);
|
|
1107
|
+
return orchestrate(match.data, event, input, parent, info);
|
|
1108
1108
|
});
|
|
1109
1109
|
} else {
|
|
1110
1110
|
event.context.params = match.params;
|
|
1111
1111
|
event.context.matchedRoute = match.data;
|
|
1112
|
-
return orchestrate(match.data, event, input);
|
|
1112
|
+
return orchestrate(match.data, event, input, parent, info);
|
|
1113
1113
|
}
|
|
1114
1114
|
}
|
|
1115
1115
|
}
|
package/dist/types/index.d.mts
CHANGED
|
@@ -263,7 +263,7 @@ type ServiceHandlerInput<Input extends StandardSchemaV1 = StandardSchemaV1, Path
|
|
|
263
263
|
* Resolved = false -> handler(input, shared, event, source) // all required
|
|
264
264
|
* Resolved = true -> handler(input, shared?, event?, source?) // only input required
|
|
265
265
|
*/
|
|
266
|
-
type ServiceHandler<Parent extends StandardSchemaV1, Input extends StandardSchemaV1, Output extends StandardSchemaV1, PathParams extends StandardSchemaV1 | never | undefined = never, QueryParams extends StandardSchemaV1 | never | undefined = never, Resolved extends boolean = false, HiddenParameters extends boolean = false> = Resolved extends true ? (input: ServiceHandlerInput<Input, PathParams, QueryParams, HiddenParameters>, shared?: SilgiRuntimeShareds, event?: SilgiEvent, parent?: Parent, info?: GraphQLResolveInfo) => Promise<InferOutput<Output>> | InferOutput<Output> : (input: ServiceHandlerInput<Input, PathParams, QueryParams, HiddenParameters>, shared: SilgiRuntimeShareds, event: SilgiEvent, parent
|
|
266
|
+
type ServiceHandler<Parent extends StandardSchemaV1, Input extends StandardSchemaV1, Output extends StandardSchemaV1, PathParams extends StandardSchemaV1 | never | undefined = never, QueryParams extends StandardSchemaV1 | never | undefined = never, Resolved extends boolean = false, HiddenParameters extends boolean = false> = Resolved extends true ? (input: ServiceHandlerInput<Input, PathParams, QueryParams, HiddenParameters>, shared?: SilgiRuntimeShareds, event?: SilgiEvent, parent?: Parent, info?: GraphQLResolveInfo) => Promise<InferOutput<Output>> | InferOutput<Output> : (input: ServiceHandlerInput<Input, PathParams, QueryParams, HiddenParameters>, shared: SilgiRuntimeShareds, event: SilgiEvent, parent?: Parent, info?: GraphQLResolveInfo) => Promise<InferOutput<Output>> | InferOutput<Output>;
|
|
267
267
|
/**
|
|
268
268
|
* Servis setup tipi
|
|
269
269
|
*/
|