@deboxsoft/module-core
Advanced tools
Comparing version 1.5.6 to 1.5.7
@@ -5,4 +5,4 @@ 'use strict'; | ||
var Container = require('typedi'); | ||
var graphqlRequest = require('graphql-request'); | ||
var Container = require('typedi'); | ||
@@ -36,2 +36,10 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
Object.keys(Container).forEach(function (k) { | ||
if (k !== 'default') Object.defineProperty(exports, k, { | ||
enumerable: true, | ||
get: function () { | ||
return Container[k]; | ||
} | ||
}); | ||
}); | ||
exports.DeboxError = DeboxError; | ||
@@ -38,0 +46,0 @@ exports.Logger = Logger; |
@@ -0,1 +1,2 @@ | ||
export * from 'typedi'; | ||
import { GraphQLClient, gql as gql$1, rawRequest, request } from 'graphql-request'; | ||
@@ -2,0 +3,0 @@ import { RequestInit } from 'graphql-request/dist/types.dom'; |
@@ -0,3 +1,4 @@ | ||
import Container__default from 'typedi'; | ||
export * from 'typedi'; | ||
import { GraphQLClient, gql as gql$1, rawRequest, request } from 'graphql-request'; | ||
import Container from 'typedi'; | ||
@@ -17,7 +18,7 @@ class Logger { | ||
if (persisted) { | ||
Container.set(GraphQLClient, request2); | ||
Container__default.set(GraphQLClient, request2); | ||
} | ||
return request2; | ||
}; | ||
const getFetchGraphql = () => Container.get(GraphQLClient); | ||
const getFetchGraphql = () => Container__default.get(GraphQLClient); | ||
const fetchGraphql = (query, variables) => getFetchGraphql().request(query, variables); | ||
@@ -24,0 +25,0 @@ const gql = gql$1; |
{ | ||
"name": "@deboxsoft/module-core", | ||
"version": "1.5.6", | ||
"version": "1.5.7", | ||
"license": "SEE LICENSE IN LICENSE", | ||
@@ -33,7 +33,4 @@ "maintainers": [ | ||
"graphql-request": "3.3.0", | ||
"nanoid": "^3.1.12" | ||
"typedi": "^0.8.0" | ||
}, | ||
"devDependencies": { | ||
"@types/nanoid": "^2.1.0" | ||
}, | ||
"publishConfig": { | ||
@@ -50,3 +47,3 @@ "access": "public" | ||
}, | ||
"gitHead": "3236c9d25957887c5866c9ff12ebf9328af3caec" | ||
"gitHead": "18a65487ac12a27273118a57159bee9b54dbecbf" | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
245706
0
418
+ Addedtypedi@^0.8.0
+ Addedtypedi@0.8.0(transitive)
- Removednanoid@^3.1.12
- Removednanoid@3.3.8(transitive)