@nestjs/apollo 12.2.0 → 12.2.2
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/README.md +1 -1
- package/dist/decorators/plugin.decorator.js +1 -2
- package/dist/drivers/apollo-base.driver.d.ts.map +1 -1
- package/dist/drivers/apollo-base.driver.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/services/index.d.ts +2 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +4 -0
- package/dist/utils/async-iterator.util.d.ts.map +1 -1
- package/dist/utils/async-iterator.util.js +2 -0
- package/dist/utils/get-apollo-server.d.ts +1 -1
- package/dist/utils/get-apollo-server.d.ts.map +1 -1
- package/dist/utils/get-apollo-server.js +3 -1
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<a href="
|
|
2
|
+
<a href="https://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="120" alt="Nest Logo" /></a>
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<p align="center">A progressive <a href="http://nodejs.org" target="blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Plugin =
|
|
3
|
+
exports.Plugin = Plugin;
|
|
4
4
|
const common_1 = require("@nestjs/common");
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
6
|
/**
|
|
@@ -11,4 +11,3 @@ function Plugin() {
|
|
|
11
11
|
(0, common_1.SetMetadata)(constants_1.PLUGIN_METADATA, true)(target);
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
-
exports.Plugin = Plugin;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apollo-base.driver.d.ts","sourceRoot":"","sources":["../../lib/drivers/apollo-base.driver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAYhE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAGxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"apollo-base.driver.d.ts","sourceRoot":"","sources":["../../lib/drivers/apollo-base.driver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAYhE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAGxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAUnD,8BAAsB,gBAAgB,CACpC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,kBAAkB,CAClD,SAAQ,qBAAqB,CAAC,CAAC,CAAC;IAChC,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;IAElD,IAAI,QAAQ,IAAI,YAAY,CAAC,WAAW,CAAC,CAExC;IAEY,KAAK,CAAC,aAAa,EAAE,CAAC;IAa5B,IAAI;IAIE,mBAAmB,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IA6CjD,sBAAsB,CAC3B,WAAW,EAAE,OAAO,EACpB,QAAQ,EAAE,CACR,OAAO,EAAE,GAAG,EACZ,SAAS,EAAE,GAAG,EACd,OAAO,EAAE,GAAG,KACT,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,EAC/B,sBAAsB,EAAE,QAAQ,IAExB,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,4EAE1C,GAAG;cAMQ,eAAe,CAC7B,OAAO,EAAE,CAAC,EACV,EAAE,YAAY,EAAE,GAAE;QAAE,YAAY,CAAC,EAAE,MAAM,IAAI,CAAA;KAAO;cAkCtC,eAAe,CAC7B,OAAO,EAAE,CAAC,EACV,EAAE,YAAY,EAAE,GAAE;QAAE,YAAY,CAAC,EAAE,MAAM,IAAI,CAAA;KAAO;IAuCtD,OAAO,CAAC,iBAAiB;IAuBzB,OAAO,CAAC,0BAA0B;IA0ClC,OAAO,CAAC,mBAAmB;IA8B3B,OAAO,CAAC,iBAAiB;CAgB1B"}
|
|
@@ -16,6 +16,7 @@ const omit = require("lodash.omit");
|
|
|
16
16
|
const async_iterator_util_1 = require("../utils/async-iterator.util");
|
|
17
17
|
const apolloPredefinedExceptions = {
|
|
18
18
|
[common_1.HttpStatus.BAD_REQUEST]: errors_1.ApolloServerErrorCode.BAD_REQUEST,
|
|
19
|
+
[common_1.HttpStatus.UNPROCESSABLE_ENTITY]: errors_1.ApolloServerErrorCode.BAD_USER_INPUT,
|
|
19
20
|
[common_1.HttpStatus.UNAUTHORIZED]: 'UNAUTHENTICATED',
|
|
20
21
|
[common_1.HttpStatus.FORBIDDEN]: 'FORBIDDEN',
|
|
21
22
|
};
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"async-iterator.util.d.ts","sourceRoot":"","sources":["../../lib/utils/async-iterator.util.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"async-iterator.util.d.ts","sourceRoot":"","sources":["../../lib/utils/async-iterator.util.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI;IAC7B,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9C,MAAM,IAAI,GAAG,CAAC;IACd,KAAK,CAAC,KAAK,EAAE,GAAG,GAAG,GAAG,CAAC;IACvB,CAAC,eAAe,CAAC,EAAE,GAAG,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAU,CAAC,qBAC5B,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,YAC5B,QAAQ,KACjB,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CA0D1B,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createAsyncIterator = void 0;
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-floating-promises */
|
|
5
|
+
/* eslint-disable @typescript-eslint/prefer-promise-reject-errors */
|
|
4
6
|
const iterall_1 = require("iterall");
|
|
5
7
|
const createAsyncIterator = async (lazyFactory, filterFn) => {
|
|
6
8
|
const asyncIterator = await lazyFactory;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { INestApplicationContext } from '@nestjs/common';
|
|
2
1
|
import { ApolloServer, type BaseContext } from '@apollo/server';
|
|
2
|
+
import { INestApplicationContext } from '@nestjs/common';
|
|
3
3
|
type GetApolloServer = (app: INestApplicationContext) => ApolloServer<BaseContext>;
|
|
4
4
|
/**
|
|
5
5
|
* Returns the underlying ApolloServer instance for a given application.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-apollo-server.d.ts","sourceRoot":"","sources":["../../lib/utils/get-apollo-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"get-apollo-server.d.ts","sourceRoot":"","sources":["../../lib/utils/get-apollo-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAIzD,KAAK,eAAe,GAAG,CACrB,GAAG,EAAE,uBAAuB,KACzB,YAAY,CAAC,WAAW,CAAC,CAAC;AAE/B;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,eAW7B,CAAC"}
|
|
@@ -12,7 +12,9 @@ const getApolloServer = (app) => {
|
|
|
12
12
|
const graphqlModule = app.get(graphql_1.GraphQLModule);
|
|
13
13
|
return graphqlModule.graphQlAdapter?.instance;
|
|
14
14
|
}
|
|
15
|
-
catch
|
|
15
|
+
catch {
|
|
16
|
+
/* empty */
|
|
17
|
+
}
|
|
16
18
|
throw new Error(`Nest could not find the "GraphQLModule" in your application's container. Please, double-check if it's registered in the given application.`);
|
|
17
19
|
};
|
|
18
20
|
exports.getApolloServer = getApolloServer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/apollo",
|
|
3
|
-
"version": "12.2.
|
|
3
|
+
"version": "12.2.2",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@apollo)",
|
|
5
5
|
"author": "Kamil Mysliwiec",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
"url": "https://github.com/nestjs/graphql/issues"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@apollo/gateway": "2.
|
|
25
|
+
"@apollo/gateway": "2.8.5",
|
|
26
26
|
"@apollo/server": "4.9.3",
|
|
27
27
|
"@apollo/server-plugin-response-cache": "4.1.0",
|
|
28
28
|
"@apollo/subgraph": "2.2.3",
|
|
29
29
|
"@as-integrations/fastify": "2.1.1",
|
|
30
|
-
"@nestjs/common": "10.
|
|
31
|
-
"@nestjs/core": "10.
|
|
32
|
-
"@nestjs/platform-express": "10.
|
|
33
|
-
"@nestjs/platform-fastify": "10.
|
|
34
|
-
"@nestjs/testing": "10.
|
|
30
|
+
"@nestjs/common": "10.4.13",
|
|
31
|
+
"@nestjs/core": "10.4.13",
|
|
32
|
+
"@nestjs/platform-express": "10.4.13",
|
|
33
|
+
"@nestjs/platform-fastify": "10.4.13",
|
|
34
|
+
"@nestjs/testing": "10.4.13",
|
|
35
35
|
"apollo-cache-inmemory": "1.6.6",
|
|
36
36
|
"apollo-client": "2.6.10",
|
|
37
37
|
"apollo-link-ws": "1.0.20"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@apollo/server-plugin-landing-page-graphql-playground": "4.0.0",
|
|
41
41
|
"iterall": "1.3.0",
|
|
42
42
|
"lodash.omit": "4.5.0",
|
|
43
|
-
"tslib": "2.
|
|
43
|
+
"tslib": "2.8.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@apollo/gateway": "^2.0.0",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"optional": true
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "d2b9e6e1b99af478cfdb273a0a6b531bf7760e97"
|
|
67
67
|
}
|