Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@deboxsoft/module-core

Package Overview
Dependencies
Maintainers
1
Versions
280
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deboxsoft/module-core - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

12

libs/index.cjs.js

@@ -57,10 +57,13 @@ 'use strict';

const createFetchGraphql = (options, persisted = true) => {
const request = new graphqlRequest.GraphQLClient(options.url, options);
const request2 = new graphqlRequest.GraphQLClient(options.url, options);
if (persisted) {
Container__default['default'].set(graphqlRequest.GraphQLClient, request);
Container__default['default'].set(graphqlRequest.GraphQLClient, request2);
}
return request;
return request2;
};
const getFetchGraphql = () => Container__default['default'].get(graphqlRequest.GraphQLClient);
const fetchGraphql = (query, variables) => getFetchGraphql().request(query, variables);
const gql = graphqlRequest.gql;
const rawRequestGraphql = graphqlRequest.rawRequest;
const requestGraphql = graphqlRequest.request;

@@ -81,5 +84,8 @@ Object.keys(Container).forEach(function (k) {

exports.getLogger = getLogger;
exports.gql = gql;
exports.rawRequestGraphql = rawRequestGraphql;
exports.registerLogger = registerLogger;
exports.requestGraphql = requestGraphql;
exports.tokenLogger = tokenLogger;
exports.utils = index;
//# sourceMappingURL=index.cjs.js.map
import { Token } from 'typedi';
export * from 'typedi';
import { GraphQLClient } from 'graphql-request';
import { GraphQLClient, gql as gql$1, rawRequest, request } from 'graphql-request';
import { RequestInit } from 'graphql-request/dist/types.dom';

@@ -96,3 +97,3 @@ declare const generateId: (size?: number) => string;

declare type GraphqlRequestOptions = {
declare type GraphqlRequestOptions = RequestInit & {
url: string;

@@ -103,3 +104,6 @@ };

declare const fetchGraphql: <V>(query: string, variables?: V | undefined) => Promise<any>;
declare const gql: typeof gql$1;
declare const rawRequestGraphql: typeof rawRequest;
declare const requestGraphql: typeof request;
export { DeboxError, Logger, Maybe, createFetchGraphql, fetchGraphql, getFetchGraphql, getLogger, registerLogger, tokenLogger, index as utils };
export { DeboxError, Logger, Maybe, createFetchGraphql, fetchGraphql, getFetchGraphql, getLogger, gql, rawRequestGraphql, registerLogger, requestGraphql, tokenLogger, index as utils };
import Container__default, { Token } from 'typedi';
export * from 'typedi';
import { nanoid } from 'nanoid';
import { GraphQLClient } from 'graphql-request';
import { GraphQLClient, gql as gql$1, rawRequest, request } from 'graphql-request';

@@ -50,12 +50,15 @@ const generateId = nanoid;

const createFetchGraphql = (options, persisted = true) => {
const request = new GraphQLClient(options.url, options);
const request2 = new GraphQLClient(options.url, options);
if (persisted) {
Container__default.set(GraphQLClient, request);
Container__default.set(GraphQLClient, request2);
}
return request;
return request2;
};
const getFetchGraphql = () => Container__default.get(GraphQLClient);
const fetchGraphql = (query, variables) => getFetchGraphql().request(query, variables);
const gql = gql$1;
const rawRequestGraphql = rawRequest;
const requestGraphql = request;
export { DeboxError, Logger, createFetchGraphql, fetchGraphql, getFetchGraphql, getLogger, registerLogger, tokenLogger, index as utils };
export { DeboxError, Logger, createFetchGraphql, fetchGraphql, getFetchGraphql, getLogger, gql, rawRequestGraphql, registerLogger, requestGraphql, tokenLogger, index as utils };
//# sourceMappingURL=index.js.map
{
"name": "@deboxsoft/module-core",
"version": "1.3.1",
"version": "1.3.2",
"license": "SEE LICENSE IN LICENSE",

@@ -28,2 +28,3 @@ "maintainers": [

"change-case": "^4.1.1",
"graphql-request": "3.3.0",
"nanoid": "^3.1.12",

@@ -38,3 +39,3 @@ "typedi": "0.8.0"

},
"gitHead": "815f1526223582aad27ea1916d3a825f5b89e50a"
"gitHead": "b3e9a01fe218a03c99900e51a67ea119b92324e1"
}

@@ -1,5 +0,6 @@

import { GraphQLClient as GraphqlRequest } from "graphql-request";
import { GraphQLClient as GraphqlRequest, gql as _gql, rawRequest, request } from "graphql-request";
import { RequestInit } from "graphql-request/dist/types.dom";
import Container from "typedi";
type GraphqlRequestOptions = {
type GraphqlRequestOptions = RequestInit & {
url: string;

@@ -20,1 +21,7 @@ };

getFetchGraphql().request(query, variables);
export const gql = _gql;
export const rawRequestGraphql = rawRequest;
export const requestGraphql = request;

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