@nestjs/apollo 12.2.0 → 12.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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Plugin = void 0;
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;AASnD,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,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AU,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
@@ -3,4 +3,5 @@ export * from './drivers';
3
3
  export * from './errors';
4
4
  export * from './interfaces';
5
5
  export * from './utils';
6
+ export * from './services';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -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
@@ -6,3 +6,4 @@ tslib_1.__exportStar(require("./drivers"), exports);
6
6
  tslib_1.__exportStar(require("./errors"), exports);
7
7
  tslib_1.__exportStar(require("./interfaces"), exports);
8
8
  tslib_1.__exportStar(require("./utils"), exports);
9
+ tslib_1.__exportStar(require("./services"), exports);
@@ -0,0 +1,2 @@
1
+ export * from './plugins-explorer.service';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./plugins-explorer.service"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"async-iterator.util.d.ts","sourceRoot":"","sources":["../../lib/utils/async-iterator.util.ts"],"names":[],"mappings":"AAAA,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,8DAEpB,QAAQ,8BA2DnB,CAAC"}
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,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAIzD,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAEhE,KAAK,eAAe,GAAG,CACrB,GAAG,EAAE,uBAAuB,KACzB,YAAY,CAAC,WAAW,CAAC,CAAC;AAE/B;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,eAS7B,CAAC"}
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 (error) { }
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.0",
3
+ "version": "12.2.1",
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.3.3",
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.2.10",
31
- "@nestjs/core": "10.2.10",
32
- "@nestjs/platform-express": "10.2.10",
33
- "@nestjs/platform-fastify": "10.2.10",
34
- "@nestjs/testing": "10.2.10",
30
+ "@nestjs/common": "10.4.6",
31
+ "@nestjs/core": "10.4.6",
32
+ "@nestjs/platform-express": "10.4.6",
33
+ "@nestjs/platform-fastify": "10.4.6",
34
+ "@nestjs/testing": "10.4.6",
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.6.3"
43
+ "tslib": "2.8.0"
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": "f9549c039e0c613ed4bcab8e7cae22ddc1011f88"
66
+ "gitHead": "2549a5cbe798d74485e48832109c0e1108d2e44c"
67
67
  }