@golevelup/nestjs-graphql-request
Advanced tools
Comparing version 0.2.3 to 0.2.4
/** | ||
* Injects the GraphQL client configuration from this module into a service/controller | ||
*/ | ||
export declare const InjectGraphQLConfig: () => ParameterDecorator; | ||
export declare const InjectGraphQLConfig: () => PropertyDecorator & ParameterDecorator; | ||
/** | ||
* Injects the GraphQL client provided by this module into a service/controller | ||
*/ | ||
export declare const InjectGraphQLClient: () => ParameterDecorator; | ||
export declare const InjectGraphQLClient: () => PropertyDecorator & ParameterDecorator; | ||
//# sourceMappingURL=graphql-request.decorators.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.InjectGraphQLClient = exports.InjectGraphQLConfig = void 0; | ||
const nestjs_common_1 = require("@golevelup/nestjs-common"); | ||
const common_1 = require("@nestjs/common"); | ||
const graphql_request_constants_1 = require("./graphql-request.constants"); | ||
@@ -9,7 +9,9 @@ /** | ||
*/ | ||
exports.InjectGraphQLConfig = (0, nestjs_common_1.makeInjectableDecorator)(graphql_request_constants_1.GraphQLClientConfigInject); | ||
const InjectGraphQLConfig = () => (0, common_1.Inject)(graphql_request_constants_1.GraphQLClientConfigInject); | ||
exports.InjectGraphQLConfig = InjectGraphQLConfig; | ||
/** | ||
* Injects the GraphQL client provided by this module into a service/controller | ||
*/ | ||
exports.InjectGraphQLClient = (0, nestjs_common_1.makeInjectableDecorator)(graphql_request_constants_1.GraphQLClientInject); | ||
const InjectGraphQLClient = () => (0, common_1.Inject)(graphql_request_constants_1.GraphQLClientInject); | ||
exports.InjectGraphQLClient = InjectGraphQLClient; | ||
//# sourceMappingURL=graphql-request.decorators.js.map |
@@ -1,11 +0,4 @@ | ||
import { GraphQLClient } from 'graphql-request'; | ||
type GraphQLClientConstructorParams = ConstructorParameters<typeof GraphQLClient>; | ||
export interface GraphQLRequestModuleConfig { | ||
endpoint: GraphQLClientConstructorParams[0]; | ||
options?: GraphQLClientConstructorParams[1]; | ||
import { ConfigurableModuleClass } from './graphql-request-module-definition'; | ||
export declare class GraphQLRequestModule extends ConfigurableModuleClass { | ||
} | ||
declare const GraphQLRequestModule_base: import("@golevelup/nestjs-modules").IConfigurableDynamicRootModule<GraphQLRequestModule, GraphQLRequestModuleConfig>; | ||
export declare class GraphQLRequestModule extends GraphQLRequestModule_base { | ||
} | ||
export {}; | ||
//# sourceMappingURL=graphql-request.module.d.ts.map |
@@ -10,23 +10,22 @@ "use strict"; | ||
exports.GraphQLRequestModule = void 0; | ||
const nestjs_modules_1 = require("@golevelup/nestjs-modules"); | ||
const common_1 = require("@nestjs/common"); | ||
const graphql_request_1 = require("graphql-request"); | ||
const graphql_request_module_definition_1 = require("./graphql-request-module-definition"); | ||
const graphql_request_constants_1 = require("./graphql-request.constants"); | ||
let GraphQLRequestModule = class GraphQLRequestModule extends (0, nestjs_modules_1.createConfigurableDynamicRootModule)(graphql_request_constants_1.GraphQLClientConfigInject, { | ||
providers: [ | ||
{ | ||
provide: graphql_request_constants_1.GraphQLClientInject, | ||
useFactory: ({ endpoint, options }) => { | ||
return new graphql_request_1.GraphQLClient(endpoint, options); | ||
}, | ||
inject: [graphql_request_constants_1.GraphQLClientConfigInject], | ||
}, | ||
], | ||
exports: [graphql_request_constants_1.GraphQLClientInject], | ||
}) { | ||
let GraphQLRequestModule = class GraphQLRequestModule extends graphql_request_module_definition_1.ConfigurableModuleClass { | ||
}; | ||
GraphQLRequestModule = __decorate([ | ||
(0, common_1.Module)({}) | ||
(0, common_1.Module)({ | ||
providers: [ | ||
{ | ||
provide: graphql_request_constants_1.GraphQLClientInject, | ||
inject: [graphql_request_module_definition_1.MODULE_OPTIONS_TOKEN], | ||
useFactory: ({ endpoint, options }) => { | ||
return new graphql_request_1.GraphQLClient(endpoint, options); | ||
}, | ||
}, | ||
], | ||
}) | ||
], GraphQLRequestModule); | ||
exports.GraphQLRequestModule = GraphQLRequestModule; | ||
//# sourceMappingURL=graphql-request.module.js.map |
export * from './graphql-request.constants'; | ||
export * from './graphql-request.decorators'; | ||
export * from './graphql-request.module'; | ||
export * from './graphql-request-types'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -20,2 +20,3 @@ "use strict"; | ||
__exportStar(require("./graphql-request.module"), exports); | ||
__exportStar(require("./graphql-request-types"), exports); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@golevelup/nestjs-graphql-request", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Badass utilities for integrating graphql-request and NestJS", | ||
@@ -41,6 +41,3 @@ "author": "Jesse Carter <jesse.r.carter@gmail.com>", | ||
"dependencies": { | ||
"@golevelup/nestjs-common": "^2.0.1", | ||
"@golevelup/nestjs-discovery": "^4.0.2", | ||
"@golevelup/nestjs-modules": "^0.7.1", | ||
"graphql": "^16.8.1", | ||
"graphql": "^16.10.0", | ||
"graphql-request": "^6.1.0" | ||
@@ -62,3 +59,3 @@ }, | ||
}, | ||
"gitHead": "aa7ef033151857ff147cee8fc04c11c8ff7d2f4c" | ||
"gitHead": "84364bac0bdd9372d15374bfd20eac236fddc47e" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
2
26
105
11728
1
0
- Removed@golevelup/nestjs-common@^2.0.1
- Removed@golevelup/nestjs-discovery@^4.0.2
- Removed@golevelup/nestjs-modules@^0.7.1
- Removed@golevelup/nestjs-common@2.0.2(transitive)
- Removed@golevelup/nestjs-discovery@4.0.3(transitive)
- Removed@golevelup/nestjs-modules@0.7.2(transitive)
- Removed@lukeed/csprng@1.1.0(transitive)
- Removed@nestjs/common@11.0.10(transitive)
- Removed@nestjs/core@11.0.10(transitive)
- Removed@nuxt/opencollective@0.4.1(transitive)
- Removedconsola@3.4.0(transitive)
- Removedfast-safe-stringify@2.1.1(transitive)
- Removediterare@1.2.1(transitive)
- Removedlodash@4.17.21(transitive)
- Removedpath-to-regexp@8.2.0(transitive)
- Removedreflect-metadata@0.2.2(transitive)
- Removedrxjs@7.8.2(transitive)
- Removedtslib@2.8.1(transitive)
- Removeduid@2.0.2(transitive)
Updatedgraphql@^16.10.0