@graphql-tools/load
Advanced tools
Comparing version
@@ -43,3 +43,3 @@ 'use strict'; | ||
return tslib.__awaiter(this, void 0, void 0, function () { | ||
var cached, _b, _c, loader, canLoad, error_1, e_1_1; | ||
var cached, _b, _c, loader, canLoad, loadedValue, error_1, e_1_1; | ||
return tslib.__generator(this, function (_d) { | ||
@@ -69,3 +69,5 @@ switch (_d.label) { | ||
return [4 /*yield*/, loader.load(pointer, options)]; | ||
case 6: return [2 /*return*/, _d.sent()]; | ||
case 6: | ||
loadedValue = _d.sent(); | ||
return [2 /*return*/, loadedValue]; | ||
case 7: return [3 /*break*/, 9]; | ||
@@ -367,3 +369,3 @@ case 8: | ||
}; | ||
var collect = useStack.apply(void 0, tslib.__spread(stack)); | ||
var collect = useStack.apply(void 0, tslib.__spreadArray([], tslib.__read(stack))); | ||
var addGlob = function (_a) { | ||
@@ -387,3 +389,3 @@ var pointerOptions = _a.pointerOptions, pointer = _a.pointer; | ||
if (ignoreList.length > 0) { | ||
globs.push.apply(globs, tslib.__spread(ignoreList)); | ||
globs.push.apply(globs, tslib.__spreadArray([], tslib.__read(ignoreList))); | ||
} | ||
@@ -438,3 +440,3 @@ } | ||
schema: result, | ||
document: graphql.parse(utils.printSchemaWithDirectives(result)), | ||
document: utils.getDocumentNodeFromSchema(result), | ||
}, | ||
@@ -735,3 +737,3 @@ pointer: pointer, | ||
var NON_OPERATION_KINDS = Object.keys(graphql.Kind) | ||
.reduce(function (prev, v) { return tslib.__spread(prev, [graphql.Kind[v]]); }, []) | ||
.reduce(function (prev, v) { return tslib.__spreadArray(tslib.__spreadArray([], tslib.__read(prev)), [graphql.Kind[v]]); }, []) | ||
.filter(function (v) { return !OPERATION_KINDS.includes(v); }); | ||
@@ -738,0 +740,0 @@ /** |
@@ -1,5 +0,5 @@ | ||
import { __awaiter, __generator, __asyncValues, __values, __assign, __spread } from 'tslib'; | ||
import { asArray, debugLog, isDocumentString, parseGraphQLSDL, printSchemaWithDirectives, fixSchemaAst, compareStrings } from '@graphql-tools/utils/es5'; | ||
import { __awaiter, __generator, __asyncValues, __values, __assign, __spreadArray, __read } from 'tslib'; | ||
import { asArray, debugLog, isDocumentString, parseGraphQLSDL, getDocumentNodeFromSchema, fixSchemaAst, printSchemaWithDirectives, compareStrings } from '@graphql-tools/utils/es5'; | ||
import { cwd } from 'process'; | ||
import { isSchema, parse, Kind, Source, print } from 'graphql'; | ||
import { isSchema, Kind, Source, print } from 'graphql'; | ||
import isGlob from 'is-glob'; | ||
@@ -36,3 +36,3 @@ import pLimit from 'p-limit'; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var cached, _b, _c, loader, canLoad, error_1, e_1_1; | ||
var cached, _b, _c, loader, canLoad, loadedValue, error_1, e_1_1; | ||
return __generator(this, function (_d) { | ||
@@ -62,3 +62,5 @@ switch (_d.label) { | ||
return [4 /*yield*/, loader.load(pointer, options)]; | ||
case 6: return [2 /*return*/, _d.sent()]; | ||
case 6: | ||
loadedValue = _d.sent(); | ||
return [2 /*return*/, loadedValue]; | ||
case 7: return [3 /*break*/, 9]; | ||
@@ -360,3 +362,3 @@ case 8: | ||
}; | ||
var collect = useStack.apply(void 0, __spread(stack)); | ||
var collect = useStack.apply(void 0, __spreadArray([], __read(stack))); | ||
var addGlob = function (_a) { | ||
@@ -380,3 +382,3 @@ var pointerOptions = _a.pointerOptions, pointer = _a.pointer; | ||
if (ignoreList.length > 0) { | ||
globs.push.apply(globs, __spread(ignoreList)); | ||
globs.push.apply(globs, __spreadArray([], __read(ignoreList))); | ||
} | ||
@@ -431,3 +433,3 @@ } | ||
schema: result, | ||
document: parse(printSchemaWithDirectives(result)), | ||
document: getDocumentNodeFromSchema(result), | ||
}, | ||
@@ -728,3 +730,3 @@ pointer: pointer, | ||
var NON_OPERATION_KINDS = Object.keys(Kind) | ||
.reduce(function (prev, v) { return __spread(prev, [Kind[v]]); }, []) | ||
.reduce(function (prev, v) { return __spreadArray(__spreadArray([], __read(prev)), [Kind[v]]); }, []) | ||
.filter(function (v) { return !OPERATION_KINDS.includes(v); }); | ||
@@ -731,0 +733,0 @@ /** |
{ | ||
"name": "@graphql-tools/load/es5", | ||
"version": "6.2.5", | ||
"version": "6.2.8", | ||
"description": "A set of utils for faster development of GraphQL tools", | ||
@@ -10,13 +10,17 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@graphql-tools/merge": "^6.2.5", | ||
"@graphql-tools/utils": "^7.0.0", | ||
"globby": "11.0.1", | ||
"@graphql-tools/merge": "^6.2.12", | ||
"@graphql-tools/utils": "^7.5.0", | ||
"globby": "11.0.3", | ||
"import-from": "3.0.0", | ||
"is-glob": "4.0.1", | ||
"p-limit": "3.0.2", | ||
"tslib": "~2.0.1", | ||
"p-limit": "3.1.0", | ||
"tslib": "~2.2.0", | ||
"unixify": "1.0.0", | ||
"valid-url": "1.0.9" | ||
}, | ||
"repository": "git@github.com:ardatan/graphql-tools.git", | ||
"repository": { | ||
"type": "git", | ||
"url": "ardatan/graphql-tools", | ||
"directory": "packages/load" | ||
}, | ||
"author": "Dotan Simha <dotansimha@gmail.com>", | ||
@@ -23,0 +27,0 @@ "license": "MIT", |
@@ -48,3 +48,4 @@ 'use strict'; | ||
if (canLoad) { | ||
return await loader.load(pointer, options); | ||
const loadedValue = await loader.load(pointer, options); | ||
return loadedValue; | ||
} | ||
@@ -350,3 +351,3 @@ } | ||
schema: result, | ||
document: graphql.parse(utils.printSchemaWithDirectives(result)), | ||
document: utils.getDocumentNodeFromSchema(result), | ||
}, | ||
@@ -353,0 +354,0 @@ pointer, |
@@ -1,4 +0,4 @@ | ||
import { asArray, debugLog, printSchemaWithDirectives, isDocumentString, parseGraphQLSDL, fixSchemaAst, compareStrings } from '@graphql-tools/utils'; | ||
import { asArray, debugLog, getDocumentNodeFromSchema, isDocumentString, parseGraphQLSDL, fixSchemaAst, printSchemaWithDirectives, compareStrings } from '@graphql-tools/utils'; | ||
import { cwd } from 'process'; | ||
import { isSchema, parse, Kind, Source, print } from 'graphql'; | ||
import { isSchema, Kind, Source, print } from 'graphql'; | ||
import isGlob from 'is-glob'; | ||
@@ -41,3 +41,4 @@ import pLimit from 'p-limit'; | ||
if (canLoad) { | ||
return await loader.load(pointer, options); | ||
const loadedValue = await loader.load(pointer, options); | ||
return loadedValue; | ||
} | ||
@@ -343,3 +344,3 @@ } | ||
schema: result, | ||
document: parse(printSchemaWithDirectives(result)), | ||
document: getDocumentNodeFromSchema(result), | ||
}, | ||
@@ -346,0 +347,0 @@ pointer, |
{ | ||
"name": "@graphql-tools/load", | ||
"version": "6.2.5", | ||
"version": "6.2.8", | ||
"description": "A set of utils for faster development of GraphQL tools", | ||
@@ -10,13 +10,17 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@graphql-tools/merge": "^6.2.5", | ||
"@graphql-tools/utils": "^7.0.0", | ||
"globby": "11.0.1", | ||
"@graphql-tools/merge": "^6.2.12", | ||
"@graphql-tools/utils": "^7.5.0", | ||
"globby": "11.0.3", | ||
"import-from": "3.0.0", | ||
"is-glob": "4.0.1", | ||
"p-limit": "3.0.2", | ||
"tslib": "~2.0.1", | ||
"p-limit": "3.1.0", | ||
"tslib": "~2.2.0", | ||
"unixify": "1.0.0", | ||
"valid-url": "1.0.9" | ||
}, | ||
"repository": "git@github.com:ardatan/graphql-tools.git", | ||
"repository": { | ||
"type": "git", | ||
"url": "ardatan/graphql-tools", | ||
"directory": "packages/load" | ||
}, | ||
"author": "Dotan Simha <dotansimha@gmail.com>", | ||
@@ -23,0 +27,0 @@ "license": "MIT", |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
353143
0.57%38
5.56%3296
0.18%0
-100%9
Infinity%0
-100%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated
Updated