@leaven-graphql/nestjs 0.2.0 → 0.2.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/dist/index.js +58 -58
- package/package.json +13 -13
package/dist/index.js
CHANGED
|
@@ -526,11 +526,11 @@ class LeavenDriver {
|
|
|
526
526
|
};
|
|
527
527
|
}
|
|
528
528
|
if (contentType.includes("application/graphql")) {
|
|
529
|
-
const
|
|
530
|
-
if (!
|
|
529
|
+
const query = await request.text();
|
|
530
|
+
if (!query) {
|
|
531
531
|
throw new ValidationError("Query is required");
|
|
532
532
|
}
|
|
533
|
-
return { query
|
|
533
|
+
return { query };
|
|
534
534
|
}
|
|
535
535
|
throw new ValidationError(`Unsupported content type "${contentType || "(none)"}": use application/json or application/graphql`);
|
|
536
536
|
}
|
|
@@ -2047,60 +2047,60 @@ MetricsInterceptor = __legacyDecorateClassTS([
|
|
|
2047
2047
|
Injectable6()
|
|
2048
2048
|
], MetricsInterceptor);
|
|
2049
2049
|
export {
|
|
2050
|
-
|
|
2051
|
-
getResolverMetadata,
|
|
2052
|
-
getGqlRoot,
|
|
2053
|
-
getGqlInfo,
|
|
2054
|
-
getGqlContext,
|
|
2055
|
-
getGqlArgs,
|
|
2056
|
-
generateSchemaFile,
|
|
2057
|
-
createGraphQLMiddleware,
|
|
2058
|
-
createContextDecorator,
|
|
2059
|
-
clearResolverMetadata,
|
|
2060
|
-
SubscriptionManager,
|
|
2061
|
-
SubscriptionFilter,
|
|
2062
|
-
Subscription,
|
|
2063
|
-
SchemaBuilderService,
|
|
2064
|
-
SUBSCRIPTION_FILTER_KEY,
|
|
2065
|
-
Root,
|
|
2066
|
-
RolesGuard,
|
|
2067
|
-
Roles,
|
|
2068
|
-
ROLES_KEY,
|
|
2069
|
-
Public,
|
|
2070
|
-
PermissionsGuard,
|
|
2071
|
-
Permissions,
|
|
2072
|
-
Parent,
|
|
2073
|
-
PERMISSIONS_KEY,
|
|
2074
|
-
MetricsInterceptor,
|
|
2075
|
-
LoggingInterceptor,
|
|
2076
|
-
LeavenModule,
|
|
2077
|
-
LeavenGraphQLDriver,
|
|
2078
|
-
LeavenDriver,
|
|
2079
|
-
LEAVEN_PUBSUB,
|
|
2080
|
-
LEAVEN_MODULE_OPTIONS,
|
|
2081
|
-
LEAVEN_MAX_DEPTH,
|
|
2082
|
-
LEAVEN_MAX_COMPLEXITY,
|
|
2083
|
-
LEAVEN_DRIVER,
|
|
2084
|
-
InjectPubSub,
|
|
2085
|
-
Info,
|
|
2086
|
-
IS_PUBLIC_KEY,
|
|
2087
|
-
GraphQLMiddleware,
|
|
2088
|
-
GqlExecutionContext,
|
|
2089
|
-
ErrorFormattingInterceptor,
|
|
2090
|
-
Description,
|
|
2091
|
-
DepthGuard,
|
|
2092
|
-
Deprecated,
|
|
2093
|
-
Decorators,
|
|
2094
|
-
DESCRIPTION_KEY,
|
|
2095
|
-
DEPRECATED_KEY,
|
|
2096
|
-
Context,
|
|
2097
|
-
ComplexityInterceptor,
|
|
2098
|
-
ComplexityGuard,
|
|
2099
|
-
Complexity,
|
|
2100
|
-
CachingInterceptor,
|
|
2101
|
-
CacheHint,
|
|
2102
|
-
COMPLEXITY_KEY,
|
|
2103
|
-
CACHE_KEY,
|
|
2050
|
+
Args,
|
|
2104
2051
|
AuthGuard,
|
|
2105
|
-
|
|
2052
|
+
CACHE_KEY,
|
|
2053
|
+
COMPLEXITY_KEY,
|
|
2054
|
+
CacheHint,
|
|
2055
|
+
CachingInterceptor,
|
|
2056
|
+
Complexity,
|
|
2057
|
+
ComplexityGuard,
|
|
2058
|
+
ComplexityInterceptor,
|
|
2059
|
+
Context,
|
|
2060
|
+
DEPRECATED_KEY,
|
|
2061
|
+
DESCRIPTION_KEY,
|
|
2062
|
+
Decorators,
|
|
2063
|
+
Deprecated,
|
|
2064
|
+
DepthGuard,
|
|
2065
|
+
Description,
|
|
2066
|
+
ErrorFormattingInterceptor,
|
|
2067
|
+
GqlExecutionContext,
|
|
2068
|
+
GraphQLMiddleware,
|
|
2069
|
+
IS_PUBLIC_KEY,
|
|
2070
|
+
Info,
|
|
2071
|
+
InjectPubSub,
|
|
2072
|
+
LEAVEN_DRIVER,
|
|
2073
|
+
LEAVEN_MAX_COMPLEXITY,
|
|
2074
|
+
LEAVEN_MAX_DEPTH,
|
|
2075
|
+
LEAVEN_MODULE_OPTIONS,
|
|
2076
|
+
LEAVEN_PUBSUB,
|
|
2077
|
+
LeavenDriver,
|
|
2078
|
+
LeavenGraphQLDriver,
|
|
2079
|
+
LeavenModule,
|
|
2080
|
+
LoggingInterceptor,
|
|
2081
|
+
MetricsInterceptor,
|
|
2082
|
+
PERMISSIONS_KEY,
|
|
2083
|
+
Parent,
|
|
2084
|
+
Permissions,
|
|
2085
|
+
PermissionsGuard,
|
|
2086
|
+
Public,
|
|
2087
|
+
ROLES_KEY,
|
|
2088
|
+
Roles,
|
|
2089
|
+
RolesGuard,
|
|
2090
|
+
Root,
|
|
2091
|
+
SUBSCRIPTION_FILTER_KEY,
|
|
2092
|
+
SchemaBuilderService,
|
|
2093
|
+
Subscription,
|
|
2094
|
+
SubscriptionFilter,
|
|
2095
|
+
SubscriptionManager,
|
|
2096
|
+
clearResolverMetadata,
|
|
2097
|
+
createContextDecorator,
|
|
2098
|
+
createGraphQLMiddleware,
|
|
2099
|
+
generateSchemaFile,
|
|
2100
|
+
getGqlArgs,
|
|
2101
|
+
getGqlContext,
|
|
2102
|
+
getGqlInfo,
|
|
2103
|
+
getGqlRoot,
|
|
2104
|
+
getResolverMetadata,
|
|
2105
|
+
registerResolverMetadata
|
|
2106
2106
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leaven-graphql/nestjs",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "NestJS integration for Leaven GraphQL",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"README.md"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@graphql-tools/schema": "^10.
|
|
23
|
-
"@leaven-graphql/context": "0.2.
|
|
24
|
-
"@leaven-graphql/core": "0.2.
|
|
25
|
-
"@leaven-graphql/
|
|
26
|
-
"@leaven-graphql/
|
|
27
|
-
"@leaven-graphql/ws": "0.2.
|
|
22
|
+
"@graphql-tools/schema": "^10.1.0",
|
|
23
|
+
"@leaven-graphql/context": "0.2.1",
|
|
24
|
+
"@leaven-graphql/core": "0.2.1",
|
|
25
|
+
"@leaven-graphql/errors": "0.2.1",
|
|
26
|
+
"@leaven-graphql/playground": "0.2.1",
|
|
27
|
+
"@leaven-graphql/ws": "0.2.1"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@nestjs/common": ">=10.0.0",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@lexmata/nestjs-platform-bun": "^0.4.0",
|
|
37
|
-
"@nestjs/common": "^11.
|
|
38
|
-
"@nestjs/core": "^11.
|
|
39
|
-
"@nestjs/graphql": "^13.
|
|
40
|
-
"@nestjs/testing": "^11.
|
|
37
|
+
"@nestjs/common": "^11.2.0",
|
|
38
|
+
"@nestjs/core": "^11.2.0",
|
|
39
|
+
"@nestjs/graphql": "^13.4.4",
|
|
40
|
+
"@nestjs/testing": "^11.2.0",
|
|
41
41
|
"graphql": "^16.12.0",
|
|
42
42
|
"reflect-metadata": "^0.2.2",
|
|
43
43
|
"rxjs": "^7.8.2",
|
|
44
|
-
"typescript": "^
|
|
44
|
+
"typescript": "^6.0.0"
|
|
45
45
|
},
|
|
46
46
|
"keywords": [
|
|
47
47
|
"nestjs",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"directory": "packages/nestjs"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
|
-
"build": "bun build ./src/index.ts --outdir ./dist --target bun --
|
|
61
|
+
"build": "bun build ./src/index.ts --outdir ./dist --target bun --packages external && tsc -p tsconfig.build.json",
|
|
62
62
|
"clean": "rm -rf dist",
|
|
63
63
|
"test": "bun test",
|
|
64
64
|
"typecheck": "tsc --noEmit"
|