New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@golevelup/nestjs-graphql-request

Package Overview
Dependencies
Maintainers
3
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@golevelup/nestjs-graphql-request - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

lib/graphql-request-module-definition.d.ts

4

lib/graphql-request.decorators.d.ts
/**
* 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc