silgi 0.41.29 → 0.41.30
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.d.mts +2 -1
- package/dist/core/index.mjs +2 -2
- package/dist/index.d.mts +1 -0
- package/package.json +1 -1
package/dist/cli/index.mjs
CHANGED
package/dist/core/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SilgiConfig, Silgi, SilgiEvent, HTTPMethod, SilgiSchema, RouteEntry, CustomRequestInit, SilgiRuntimeContext, BaseMethodSchema, MergeAll, ServiceSetupsForMethods, ServiceDefinitionByMethodAndPath, Routers, ServiceSetup, MiddlewareSetup, SilgiRuntimeShareds, Resolvers, SilgiURL, StorageConfig, SilgiCLI, SilgiStorageBase, SilgiRuntimeConfig } from 'silgi/types';
|
|
2
|
+
import { GraphQLResolveInfo } from 'graphql';
|
|
2
3
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
3
4
|
import { Storage, StorageValue } from 'unstorage';
|
|
4
5
|
import { UseContext } from 'unctx';
|
|
@@ -26,7 +27,7 @@ declare function middleware(event: SilgiEvent, url?: {
|
|
|
26
27
|
declare function handler(event: SilgiEvent, url?: {
|
|
27
28
|
path?: string;
|
|
28
29
|
method?: HTTPMethod | '';
|
|
29
|
-
}, input?: any): Promise<any>;
|
|
30
|
+
}, input?: any, parent?: any, info?: GraphQLResolveInfo): Promise<any>;
|
|
30
31
|
|
|
31
32
|
/**
|
|
32
33
|
* LICENSE: MIT
|
package/dist/core/index.mjs
CHANGED
|
@@ -643,7 +643,7 @@ function getUrlPrefix(path, method) {
|
|
|
643
643
|
};
|
|
644
644
|
}
|
|
645
645
|
|
|
646
|
-
async function orchestrate(route, event, _input) {
|
|
646
|
+
async function orchestrate(route, event, _input, parent, info) {
|
|
647
647
|
const silgiCtx = useSilgi();
|
|
648
648
|
const isGraphQL = event.context.protocol === "GRAPHQL";
|
|
649
649
|
const silgiURL = !isGraphQL ? getUrlPrefix(route.route || event.req.url, route.method) : {
|
|
@@ -1055,7 +1055,7 @@ async function middleware(event, url) {
|
|
|
1055
1055
|
}
|
|
1056
1056
|
return _chain;
|
|
1057
1057
|
}
|
|
1058
|
-
async function handler(event, url, input) {
|
|
1058
|
+
async function handler(event, url, input, parent, info) {
|
|
1059
1059
|
url ??= {};
|
|
1060
1060
|
url.method = event.context.protocol === "GRAPHQL" ? "" : url.method || event.req.method;
|
|
1061
1061
|
const silgiCtx = useSilgi();
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { SilgiError, autoImportTypes, createError, createMiddleware, createResolver, createSchema, createService, createShared, createSilgi, createStorage, deepMergeObjects, defineServiceSetup, getEvent, getEventContext, getUrlPrefix, handleResponse, handler, isError, kHandled, kNotFound, middleware, replaceRuntimeValues, silgiCLICtx, silgiCtx, silgiFetch, storageMount, tryUseSilgi, tryUseSilgiCLI, updateRuntimeStorage, useRuntime, useSilgi, useSilgiCLI, useSilgiStorage } from './core/index.mjs';
|
|
2
2
|
import 'silgi/types';
|
|
3
|
+
import 'graphql';
|
|
3
4
|
import '@standard-schema/spec';
|
|
4
5
|
import 'unstorage';
|
|
5
6
|
import 'unctx';
|