@envelop/core 2.4.0-alpha-0969daf.0 → 2.4.0-alpha-35741fe.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +5 -0
- package/index.mjs +5 -1
- package/package.json +1 -1
- package/utils.d.ts +1 -0
package/index.js
CHANGED
|
@@ -341,6 +341,10 @@ function getInMemoryLRUCache({ max = 1000, onDelete = () => { }, } = {}) {
|
|
|
341
341
|
},
|
|
342
342
|
};
|
|
343
343
|
}
|
|
344
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
345
|
+
function isSourceObject(maybeSource) {
|
|
346
|
+
return maybeSource != null && maybeSource.body != null;
|
|
347
|
+
}
|
|
344
348
|
|
|
345
349
|
function createEnvelopOrchestrator(plugins) {
|
|
346
350
|
let schema = null;
|
|
@@ -1339,6 +1343,7 @@ exports.isIntrospectionOperation = isIntrospectionOperation;
|
|
|
1339
1343
|
exports.isIntrospectionOperationString = isIntrospectionOperationString;
|
|
1340
1344
|
exports.isOperationDefinition = isOperationDefinition;
|
|
1341
1345
|
exports.isPluginEnabled = isPluginEnabled;
|
|
1346
|
+
exports.isSourceObject = isSourceObject;
|
|
1342
1347
|
exports.makeExecute = makeExecute;
|
|
1343
1348
|
exports.makeSubscribe = makeSubscribe;
|
|
1344
1349
|
exports.mapAsyncIterator = mapAsyncIterator;
|
package/index.mjs
CHANGED
|
@@ -337,6 +337,10 @@ function getInMemoryLRUCache({ max = 1000, onDelete = () => { }, } = {}) {
|
|
|
337
337
|
},
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
341
|
+
function isSourceObject(maybeSource) {
|
|
342
|
+
return maybeSource != null && maybeSource.body != null;
|
|
343
|
+
}
|
|
340
344
|
|
|
341
345
|
function createEnvelopOrchestrator(plugins) {
|
|
342
346
|
let schema = null;
|
|
@@ -1311,4 +1315,4 @@ const useImmediateIntrospection = () => {
|
|
|
1311
1315
|
};
|
|
1312
1316
|
};
|
|
1313
1317
|
|
|
1314
|
-
export { DEFAULT_ERROR_MESSAGE, EnvelopError, enableIf, envelop, envelopIsIntrospectionSymbol, errorAsyncIterator, finalAsyncIterator, formatError, getInMemoryLRUCache, handleStreamOrSingleExecutionResult, isAsyncIterable, isIntrospectionDocument, isIntrospectionOperation, isIntrospectionOperationString, isOperationDefinition, isPluginEnabled, makeExecute, makeSubscribe, mapAsyncIterator, useAsyncSchema, useEnvelop, useErrorHandler, useExtendContext, useImmediateIntrospection, useLazyLoadedSchema, useLogger, useMaskedErrors, usePayloadFormatter, useSchema, useTiming };
|
|
1318
|
+
export { DEFAULT_ERROR_MESSAGE, EnvelopError, enableIf, envelop, envelopIsIntrospectionSymbol, errorAsyncIterator, finalAsyncIterator, formatError, getInMemoryLRUCache, handleStreamOrSingleExecutionResult, isAsyncIterable, isIntrospectionDocument, isIntrospectionOperation, isIntrospectionOperationString, isOperationDefinition, isPluginEnabled, isSourceObject, makeExecute, makeSubscribe, mapAsyncIterator, useAsyncSchema, useEnvelop, useErrorHandler, useExtendContext, useImmediateIntrospection, useLazyLoadedSchema, useLogger, useMaskedErrors, usePayloadFormatter, useSchema, useTiming };
|
package/package.json
CHANGED
package/utils.d.ts
CHANGED