@graphql-tools/load
Advanced tools
Comparing version 8.0.7 to 8.0.8
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.loadDocumentsSync = exports.loadDocuments = exports.NON_OPERATION_KINDS = exports.OPERATION_KINDS = void 0; | ||
exports.NON_OPERATION_KINDS = exports.OPERATION_KINDS = void 0; | ||
exports.loadDocuments = loadDocuments; | ||
exports.loadDocumentsSync = loadDocumentsSync; | ||
const graphql_1 = require("graphql"); | ||
@@ -31,3 +33,2 @@ const load_typedefs_js_1 = require("./load-typedefs.js"); | ||
} | ||
exports.loadDocuments = loadDocuments; | ||
/** | ||
@@ -48,2 +49,1 @@ * Synchronously loads executable documents (i.e. operations and fragments) from | ||
} | ||
exports.loadDocumentsSync = loadDocumentsSync; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.loadTypedefsSync = exports.loadTypedefs = void 0; | ||
exports.loadTypedefs = loadTypedefs; | ||
exports.loadTypedefsSync = loadTypedefsSync; | ||
const utils_1 = require("@graphql-tools/utils"); | ||
@@ -44,3 +45,2 @@ const collect_sources_js_1 = require("./load-typedefs/collect-sources.js"); | ||
} | ||
exports.loadTypedefs = loadTypedefs; | ||
/** | ||
@@ -77,3 +77,2 @@ * Synchronously loads any GraphQL documents (i.e. executable documents like | ||
} | ||
exports.loadTypedefsSync = loadTypedefsSync; | ||
// | ||
@@ -80,0 +79,0 @@ function prepareResult({ options, pointerOptionMap, validSources, }) { |
@@ -18,11 +18,22 @@ "use strict"; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importStar = (this && this.__importStar) || (function () { | ||
var ownKeys = function(o) { | ||
ownKeys = Object.getOwnPropertyNames || function (o) { | ||
var ar = []; | ||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||
return ar; | ||
}; | ||
return ownKeys(o); | ||
}; | ||
return function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.collectSourcesSync = exports.collectSources = void 0; | ||
exports.collectSources = collectSources; | ||
exports.collectSourcesSync = collectSourcesSync; | ||
const module_1 = require("module"); | ||
@@ -63,3 +74,2 @@ const process_1 = require("process"); | ||
} | ||
exports.collectSources = collectSources; | ||
function collectSourcesSync({ pointerOptionMap, options, }) { | ||
@@ -91,3 +101,2 @@ const sources = []; | ||
} | ||
exports.collectSourcesSync = collectSourcesSync; | ||
function createHelpers({ sources, stack, }) { | ||
@@ -94,0 +103,0 @@ const addSource = ({ source }) => { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.loadFileSync = exports.loadFile = void 0; | ||
exports.loadFile = loadFile; | ||
exports.loadFileSync = loadFileSync; | ||
const process_1 = require("process"); | ||
@@ -46,3 +47,2 @@ const utils_1 = require("@graphql-tools/utils"); | ||
} | ||
exports.loadFile = loadFile; | ||
function loadFileSync(pointer, options) { | ||
@@ -89,2 +89,1 @@ (0, utils_1.debugTimerStart)(`@graphql-tools/load: loadFileSync ${pointer}`); | ||
} | ||
exports.loadFileSync = loadFileSync; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.applyDefaultOptions = void 0; | ||
exports.applyDefaultOptions = applyDefaultOptions; | ||
const process_1 = require("process"); | ||
@@ -10,2 +10,1 @@ function applyDefaultOptions(options) { | ||
} | ||
exports.applyDefaultOptions = applyDefaultOptions; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.parseSource = void 0; | ||
exports.parseSource = parseSource; | ||
const utils_1 = require("@graphql-tools/utils"); | ||
@@ -24,3 +24,2 @@ const filter_document_kind_js_1 = require("../filter-document-kind.js"); | ||
} | ||
exports.parseSource = parseSource; | ||
// | ||
@@ -27,0 +26,0 @@ function prepareInput({ source, options, pointerOptionMap, }) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.loadSchemaSync = exports.loadSchema = void 0; | ||
exports.loadSchema = loadSchema; | ||
exports.loadSchemaSync = loadSchemaSync; | ||
const graphql_1 = require("graphql"); | ||
@@ -21,3 +22,2 @@ const schema_1 = require("@graphql-tools/schema"); | ||
} | ||
exports.loadSchema = loadSchema; | ||
/** | ||
@@ -35,3 +35,2 @@ * Synchronously loads a schema from the provided pointers. | ||
} | ||
exports.loadSchemaSync = loadSchemaSync; | ||
function includeSources(schema, sources) { | ||
@@ -38,0 +37,0 @@ const finalSources = []; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useCustomLoaderSync = exports.useCustomLoader = exports.getCustomLoaderByPath = void 0; | ||
exports.getCustomLoaderByPath = getCustomLoaderByPath; | ||
exports.useCustomLoader = useCustomLoader; | ||
exports.useCustomLoaderSync = useCustomLoaderSync; | ||
const module_1 = require("module"); | ||
@@ -22,3 +24,2 @@ const path_1 = require("path"); | ||
} | ||
exports.getCustomLoaderByPath = getCustomLoaderByPath; | ||
async function useCustomLoader(loaderPointer, cwd) { | ||
@@ -37,3 +38,2 @@ let loader; | ||
} | ||
exports.useCustomLoader = useCustomLoader; | ||
function useCustomLoaderSync(loaderPointer, cwd) { | ||
@@ -52,2 +52,1 @@ let loader; | ||
} | ||
exports.useCustomLoaderSync = useCustomLoaderSync; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useLimit = exports.useStack = exports.stringToHash = void 0; | ||
exports.stringToHash = stringToHash; | ||
exports.useStack = useStack; | ||
exports.useLimit = useLimit; | ||
const tslib_1 = require("tslib"); | ||
@@ -24,3 +26,2 @@ const p_limit_1 = tslib_1.__importDefault(require("p-limit")); | ||
} | ||
exports.stringToHash = stringToHash; | ||
function useStack(...fns) { | ||
@@ -39,6 +40,4 @@ return (input) => { | ||
} | ||
exports.useStack = useStack; | ||
function useLimit(concurrency) { | ||
return (0, p_limit_1.default)(concurrency); | ||
} | ||
exports.useLimit = useLimit; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.normalizePointers = void 0; | ||
exports.normalizePointers = normalizePointers; | ||
const utils_1 = require("@graphql-tools/utils"); | ||
@@ -35,2 +35,1 @@ function normalizePointers(unnormalizedPointerOrPointers) { | ||
} | ||
exports.normalizePointers = normalizePointers; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useSyncQueue = exports.useQueue = void 0; | ||
exports.useQueue = useQueue; | ||
exports.useSyncQueue = useSyncQueue; | ||
const tslib_1 = require("tslib"); | ||
@@ -20,3 +21,2 @@ const p_limit_1 = tslib_1.__importDefault(require("p-limit")); | ||
} | ||
exports.useQueue = useQueue; | ||
function useSyncQueue() { | ||
@@ -35,2 +35,1 @@ const queue = []; | ||
} | ||
exports.useSyncQueue = useSyncQueue; |
{ | ||
"name": "@graphql-tools/load", | ||
"version": "8.0.7", | ||
"version": "8.0.8", | ||
"description": "A set of utils for faster development of GraphQL tools", | ||
@@ -10,4 +10,4 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@graphql-tools/schema": "^10.0.11", | ||
"@graphql-tools/utils": "^10.6.2", | ||
"@graphql-tools/schema": "^10.0.12", | ||
"@graphql-tools/utils": "^10.6.3", | ||
"p-limit": "3.1.0", | ||
@@ -14,0 +14,0 @@ "tslib": "^2.4.0" |
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
75708