@graphitation/supermassive 0.5.0 → 0.6.1
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/.eslintcache +1 -1
- package/CHANGELOG.json +61 -1
- package/CHANGELOG.md +34 -2
- package/lib/collectFields.d.ts.map +1 -1
- package/lib/collectFields.js +18 -4
- package/lib/collectFields.mjs +18 -4
- package/lib/definition.d.ts +4 -0
- package/lib/definition.d.ts.map +1 -0
- package/lib/definition.js +50 -0
- package/lib/definition.mjs +28 -0
- package/lib/directives.d.ts +79 -0
- package/lib/directives.d.ts.map +1 -0
- package/lib/directives.js +155 -0
- package/lib/directives.mjs +138 -0
- package/lib/executeWithSchema.d.ts.map +1 -1
- package/lib/executeWithSchema.js +1 -2
- package/lib/executeWithSchema.mjs +2 -3
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -2
- package/lib/index.mjs +0 -2
- package/lib/subscribeWithSchema.d.ts.map +1 -1
- package/lib/subscribeWithSchema.js +1 -2
- package/lib/subscribeWithSchema.mjs +2 -3
- package/lib/values.d.ts +4 -3
- package/lib/values.d.ts.map +1 -1
- package/lib/values.js +6 -2
- package/lib/values.mjs +6 -2
- package/package.json +3 -3
package/.eslintcache
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"/home/runner/work/graphitation/graphitation/packages/supermassive/src/__tests__/execute.test.ts":"1","/home/runner/work/graphitation/graphitation/packages/supermassive/src/__tests__/extractImplicitTypes.test.ts":"2","/home/runner/work/graphitation/graphitation/packages/supermassive/src/__tests__/subscribe.test.ts":"3","/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/TypedAST.ts":"4","/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/__tests__/addTypesToRequestDocument.test.ts":"5","/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/addTypesToRequestDocument.ts":"6","/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/index.ts":"7","/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/nice-benchmark.ts":"8","/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/index.ts":"9","/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/models.ts":"10","/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/resolvers.ts":"11","/home/runner/work/graphitation/graphitation/packages/supermassive/src/bin/__tests__/typeDefsToImplicitResolvers.test.ts":"12","/home/runner/work/graphitation/graphitation/packages/supermassive/src/bin/supermassive.ts":"13","/home/runner/work/graphitation/graphitation/packages/supermassive/src/collectFields.ts":"14","/home/runner/work/graphitation/graphitation/packages/supermassive/src/compiledQuery.ts":"15","/home/runner/work/graphitation/graphitation/packages/supermassive/src/executeWithSchema.ts":"16","/home/runner/work/graphitation/graphitation/packages/supermassive/src/executeWithoutSchema.ts":"17","/home/runner/work/graphitation/graphitation/packages/supermassive/src/extractImplicitTypesRuntime.ts":"18","/home/runner/work/graphitation/graphitation/packages/supermassive/src/extractImplicitTypesToTypescript.ts":"19","/home/runner/work/graphitation/graphitation/packages/supermassive/src/index.ts":"20","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/Maybe.ts":"21","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/ObjMap.ts":"22","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/Path.ts":"23","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/PromiseOrValue.ts":"24","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/devAssert.ts":"25","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/didYouMean.ts":"26","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/identityFunc.ts":"27","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/inspect.ts":"28","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/instanceOf.ts":"29","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/invariant.ts":"30","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isAsyncIterable.ts":"31","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isIterableObject.ts":"32","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isObjectLike.ts":"33","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isPromise.ts":"34","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/keyMap.ts":"35","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/keyValMap.ts":"36","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/mapValue.ts":"37","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/memoize3.ts":"38","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/naturalCompare.ts":"39","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/printPathArray.ts":"40","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/promiseForObject.ts":"41","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/promiseReduce.ts":"42","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/suggestionList.ts":"43","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/toObjMap.ts":"44","/home/runner/work/graphitation/graphitation/packages/supermassive/src/subscribeWithSchema.ts":"45","/home/runner/work/graphitation/graphitation/packages/supermassive/src/subscribeWithoutSchema.ts":"46","/home/runner/work/graphitation/graphitation/packages/supermassive/src/transforms/annotateDocumentGraphQLTransform.ts":"47","/home/runner/work/graphitation/graphitation/packages/supermassive/src/transforms/transformerTestUtils.ts":"48","/home/runner/work/graphitation/graphitation/packages/supermassive/src/types.ts":"49","/home/runner/work/graphitation/graphitation/packages/supermassive/src/utilities/mapAsyncIterator.ts":"50","/home/runner/work/graphitation/graphitation/packages/supermassive/src/utilities/typeNameFromAST.ts":"51","/home/runner/work/graphitation/graphitation/packages/supermassive/src/values.ts":"52"},{"size":4277,"mtime":1642499860367,"results":"53","hashOfConfig":"54"},{"size":3107,"mtime":1642499860367,"results":"55","hashOfConfig":"54"},{"size":7241,"mtime":1642499860367,"results":"56","hashOfConfig":"54"},{"size":14345,"mtime":1642499860367,"results":"57","hashOfConfig":"54"},{"size":5291,"mtime":1642499860367,"results":"58","hashOfConfig":"54"},{"size":2186,"mtime":1642499860367,"results":"59","hashOfConfig":"54"},{"size":3145,"mtime":1642499860367,"results":"60","hashOfConfig":"54"},{"size":712,"mtime":1642499860367,"results":"61","hashOfConfig":"54"},{"size":381,"mtime":1642499860367,"results":"62","hashOfConfig":"54"},{"size":128,"mtime":1642499860367,"results":"63","hashOfConfig":"54"},{"size":10205,"mtime":1642499860367,"results":"64","hashOfConfig":"54"},{"size":846,"mtime":1642499860371,"results":"65","hashOfConfig":"54"},{"size":1650,"mtime":1642499860371,"results":"66","hashOfConfig":"54"},{"size":3913,"mtime":1642499860371,"results":"67","hashOfConfig":"54"},{"size":3431,"mtime":1642499860371,"results":"68","hashOfConfig":"54"},{"size":1387,"mtime":1642499860371,"results":"69","hashOfConfig":"54"},{"size":27153,"mtime":1642499860371,"results":"70","hashOfConfig":"54"},{"size":3998,"mtime":1642499860371,"results":"71","hashOfConfig":"54"},{"size":10386,"mtime":1642499860371,"results":"72","hashOfConfig":"54"},{"size":633,"mtime":1642499860371,"results":"73","hashOfConfig":"54"},{"size":134,"mtime":1642499860371,"results":"74","hashOfConfig":"54"},{"size":277,"mtime":1642499860371,"results":"75","hashOfConfig":"54"},{"size":711,"mtime":1642499860371,"results":"76","hashOfConfig":"54"},{"size":48,"mtime":1642499860371,"results":"77","hashOfConfig":"54"},{"size":269,"mtime":1642499860371,"results":"78","hashOfConfig":"54"},{"size":1038,"mtime":1642499860371,"results":"79","hashOfConfig":"54"},{"size":108,"mtime":1642499860371,"results":"80","hashOfConfig":"54"},{"size":2797,"mtime":1642499860371,"results":"81","hashOfConfig":"54"},{"size":2294,"mtime":1642499860371,"results":"82","hashOfConfig":"54"},{"size":357,"mtime":1642499860371,"results":"83","hashOfConfig":"54"},{"size":325,"mtime":1642499860371,"results":"84","hashOfConfig":"54"},{"size":778,"mtime":1642499860371,"results":"85","hashOfConfig":"54"},{"size":278,"mtime":1642499860371,"results":"86","hashOfConfig":"54"},{"size":227,"mtime":1642499860371,"results":"87","hashOfConfig":"54"},{"size":921,"mtime":1642499860371,"results":"88","hashOfConfig":"54"},{"size":764,"mtime":1642499860371,"results":"89","hashOfConfig":"54"},{"size":441,"mtime":1642499860371,"results":"90","hashOfConfig":"54"},{"size":821,"mtime":1642499860371,"results":"91","hashOfConfig":"54"},{"size":1314,"mtime":1642499860371,"results":"92","hashOfConfig":"54"},{"size":253,"mtime":1642499860371,"results":"93","hashOfConfig":"54"},{"size":650,"mtime":1642499860371,"results":"94","hashOfConfig":"54"},{"size":803,"mtime":1642499860371,"results":"95","hashOfConfig":"54"},{"size":3938,"mtime":1642499860371,"results":"96","hashOfConfig":"54"},{"size":503,"mtime":1642499860371,"results":"97","hashOfConfig":"54"},{"size":1438,"mtime":1642499860371,"results":"98","hashOfConfig":"54"},{"size":8927,"mtime":1642499860371,"results":"99","hashOfConfig":"54"},{"size":495,"mtime":1642499860371,"results":"100","hashOfConfig":"54"},{"size":6644,"mtime":1642499860371,"results":"101","hashOfConfig":"54"},{"size":3824,"mtime":1642499860371,"results":"102","hashOfConfig":"54"},{"size":1813,"mtime":1642499860371,"results":"103","hashOfConfig":"54"},{"size":308,"mtime":1642499860371,"results":"104","hashOfConfig":"54"},{"size":9234,"mtime":1642499860371,"results":"105","hashOfConfig":"54"},{"filePath":"106","messages":"107","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"2qg1xb",{"filePath":"108","messages":"109","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"110","messages":"111","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"112","messages":"113","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"114","messages":"115","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"116","messages":"117","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"118","messages":"119","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"120","messages":"121","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"122","messages":"123","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"124","messages":"125","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"126","messages":"127","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"128","messages":"129","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"130","messages":"131","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"132","messages":"133","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"134","messages":"135","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"136","messages":"137","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"138","messages":"139","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"140","messages":"141","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"142","messages":"143","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"144","messages":"145","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"146","messages":"147","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"148","messages":"149","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"150","messages":"151","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"152","messages":"153","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"154","messages":"155","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"156","messages":"157","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"158","messages":"159","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"160","messages":"161","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"162","messages":"163","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"164","messages":"165","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"166","messages":"167","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"168","messages":"169","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"170","messages":"171","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"172","messages":"173","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"174","messages":"175","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"176","messages":"177","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"178","messages":"179","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"180","messages":"181","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"182","messages":"183","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"184","messages":"185","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"186","messages":"187","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"188","messages":"189","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"190","messages":"191","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"192","messages":"193","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"194","messages":"195","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"196","messages":"197","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"198","messages":"199","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"200","messages":"201","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"202","messages":"203","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"204","messages":"205","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"206","messages":"207","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"208","messages":"209","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/runner/work/graphitation/graphitation/packages/supermassive/src/__tests__/execute.test.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/__tests__/extractImplicitTypes.test.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/__tests__/subscribe.test.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/TypedAST.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/__tests__/addTypesToRequestDocument.test.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/addTypesToRequestDocument.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/index.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/nice-benchmark.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/index.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/models.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/resolvers.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/bin/__tests__/typeDefsToImplicitResolvers.test.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/bin/supermassive.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/collectFields.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/compiledQuery.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/executeWithSchema.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/executeWithoutSchema.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/extractImplicitTypesRuntime.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/extractImplicitTypesToTypescript.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/index.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/Maybe.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/ObjMap.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/Path.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/PromiseOrValue.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/devAssert.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/didYouMean.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/identityFunc.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/inspect.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/instanceOf.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/invariant.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isAsyncIterable.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isIterableObject.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isObjectLike.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isPromise.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/keyMap.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/keyValMap.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/mapValue.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/memoize3.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/naturalCompare.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/printPathArray.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/promiseForObject.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/promiseReduce.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/suggestionList.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/toObjMap.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/subscribeWithSchema.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/subscribeWithoutSchema.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/transforms/annotateDocumentGraphQLTransform.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/transforms/transformerTestUtils.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/types.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/utilities/mapAsyncIterator.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/utilities/typeNameFromAST.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/values.ts",[]]
|
|
1
|
+
[{"/home/runner/work/graphitation/graphitation/packages/supermassive/src/__tests__/execute.test.ts":"1","/home/runner/work/graphitation/graphitation/packages/supermassive/src/__tests__/extractImplicitTypes.test.ts":"2","/home/runner/work/graphitation/graphitation/packages/supermassive/src/__tests__/subscribe.test.ts":"3","/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/TypedAST.ts":"4","/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/__tests__/addTypesToRequestDocument.test.ts":"5","/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/addTypesToRequestDocument.ts":"6","/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/index.ts":"7","/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/nice-benchmark.ts":"8","/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/index.ts":"9","/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/models.ts":"10","/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/resolvers.ts":"11","/home/runner/work/graphitation/graphitation/packages/supermassive/src/bin/__tests__/typeDefsToImplicitResolvers.test.ts":"12","/home/runner/work/graphitation/graphitation/packages/supermassive/src/bin/supermassive.ts":"13","/home/runner/work/graphitation/graphitation/packages/supermassive/src/collectFields.ts":"14","/home/runner/work/graphitation/graphitation/packages/supermassive/src/compiledQuery.ts":"15","/home/runner/work/graphitation/graphitation/packages/supermassive/src/definition.ts":"16","/home/runner/work/graphitation/graphitation/packages/supermassive/src/directives.ts":"17","/home/runner/work/graphitation/graphitation/packages/supermassive/src/executeWithSchema.ts":"18","/home/runner/work/graphitation/graphitation/packages/supermassive/src/executeWithoutSchema.ts":"19","/home/runner/work/graphitation/graphitation/packages/supermassive/src/extractImplicitTypesRuntime.ts":"20","/home/runner/work/graphitation/graphitation/packages/supermassive/src/extractImplicitTypesToTypescript.ts":"21","/home/runner/work/graphitation/graphitation/packages/supermassive/src/index.ts":"22","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/Maybe.ts":"23","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/ObjMap.ts":"24","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/Path.ts":"25","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/PromiseOrValue.ts":"26","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/devAssert.ts":"27","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/didYouMean.ts":"28","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/identityFunc.ts":"29","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/inspect.ts":"30","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/instanceOf.ts":"31","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/invariant.ts":"32","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isAsyncIterable.ts":"33","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isIterableObject.ts":"34","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isObjectLike.ts":"35","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isPromise.ts":"36","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/keyMap.ts":"37","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/keyValMap.ts":"38","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/mapValue.ts":"39","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/memoize3.ts":"40","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/naturalCompare.ts":"41","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/printPathArray.ts":"42","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/promiseForObject.ts":"43","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/promiseReduce.ts":"44","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/suggestionList.ts":"45","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/toObjMap.ts":"46","/home/runner/work/graphitation/graphitation/packages/supermassive/src/subscribeWithSchema.ts":"47","/home/runner/work/graphitation/graphitation/packages/supermassive/src/subscribeWithoutSchema.ts":"48","/home/runner/work/graphitation/graphitation/packages/supermassive/src/transforms/annotateDocumentGraphQLTransform.ts":"49","/home/runner/work/graphitation/graphitation/packages/supermassive/src/transforms/transformerTestUtils.ts":"50","/home/runner/work/graphitation/graphitation/packages/supermassive/src/types.ts":"51","/home/runner/work/graphitation/graphitation/packages/supermassive/src/utilities/mapAsyncIterator.ts":"52","/home/runner/work/graphitation/graphitation/packages/supermassive/src/utilities/typeNameFromAST.ts":"53","/home/runner/work/graphitation/graphitation/packages/supermassive/src/values.ts":"54"},{"size":5252,"mtime":1643024797432,"results":"55","hashOfConfig":"56"},{"size":3107,"mtime":1643024797432,"results":"57","hashOfConfig":"56"},{"size":7241,"mtime":1643024797432,"results":"58","hashOfConfig":"56"},{"size":14345,"mtime":1643024797432,"results":"59","hashOfConfig":"56"},{"size":5291,"mtime":1643024797432,"results":"60","hashOfConfig":"56"},{"size":2186,"mtime":1643024797432,"results":"61","hashOfConfig":"56"},{"size":3145,"mtime":1643024797432,"results":"62","hashOfConfig":"56"},{"size":712,"mtime":1643024797432,"results":"63","hashOfConfig":"56"},{"size":381,"mtime":1643024797432,"results":"64","hashOfConfig":"56"},{"size":128,"mtime":1643024797432,"results":"65","hashOfConfig":"56"},{"size":10205,"mtime":1643024797432,"results":"66","hashOfConfig":"56"},{"size":846,"mtime":1643024797436,"results":"67","hashOfConfig":"56"},{"size":1650,"mtime":1643024797436,"results":"68","hashOfConfig":"56"},{"size":4172,"mtime":1643024797436,"results":"69","hashOfConfig":"56"},{"size":3431,"mtime":1643024797436,"results":"70","hashOfConfig":"56"},{"size":1212,"mtime":1643024797436,"results":"71","hashOfConfig":"56"},{"size":6583,"mtime":1643024797436,"results":"72","hashOfConfig":"56"},{"size":1313,"mtime":1643024797436,"results":"73","hashOfConfig":"56"},{"size":27153,"mtime":1643024797436,"results":"74","hashOfConfig":"56"},{"size":3998,"mtime":1643024797436,"results":"75","hashOfConfig":"56"},{"size":10386,"mtime":1643024797436,"results":"76","hashOfConfig":"56"},{"size":1595,"mtime":1643024797436,"results":"77","hashOfConfig":"56"},{"size":134,"mtime":1643024797436,"results":"78","hashOfConfig":"56"},{"size":277,"mtime":1643024797436,"results":"79","hashOfConfig":"56"},{"size":711,"mtime":1643024797436,"results":"80","hashOfConfig":"56"},{"size":48,"mtime":1643024797436,"results":"81","hashOfConfig":"56"},{"size":269,"mtime":1643024797436,"results":"82","hashOfConfig":"56"},{"size":1038,"mtime":1643024797436,"results":"83","hashOfConfig":"56"},{"size":108,"mtime":1643024797436,"results":"84","hashOfConfig":"56"},{"size":2797,"mtime":1643024797436,"results":"85","hashOfConfig":"56"},{"size":2294,"mtime":1643024797436,"results":"86","hashOfConfig":"56"},{"size":357,"mtime":1643024797436,"results":"87","hashOfConfig":"56"},{"size":325,"mtime":1643024797436,"results":"88","hashOfConfig":"56"},{"size":778,"mtime":1643024797436,"results":"89","hashOfConfig":"56"},{"size":278,"mtime":1643024797436,"results":"90","hashOfConfig":"56"},{"size":227,"mtime":1643024797436,"results":"91","hashOfConfig":"56"},{"size":921,"mtime":1643024797436,"results":"92","hashOfConfig":"56"},{"size":764,"mtime":1643024797436,"results":"93","hashOfConfig":"56"},{"size":441,"mtime":1643024797436,"results":"94","hashOfConfig":"56"},{"size":821,"mtime":1643024797436,"results":"95","hashOfConfig":"56"},{"size":1314,"mtime":1643024797436,"results":"96","hashOfConfig":"56"},{"size":253,"mtime":1643024797436,"results":"97","hashOfConfig":"56"},{"size":650,"mtime":1643024797436,"results":"98","hashOfConfig":"56"},{"size":803,"mtime":1643024797436,"results":"99","hashOfConfig":"56"},{"size":3938,"mtime":1643024797436,"results":"100","hashOfConfig":"56"},{"size":503,"mtime":1643024797436,"results":"101","hashOfConfig":"56"},{"size":1364,"mtime":1643024797436,"results":"102","hashOfConfig":"56"},{"size":8927,"mtime":1643024797436,"results":"103","hashOfConfig":"56"},{"size":495,"mtime":1643024797436,"results":"104","hashOfConfig":"56"},{"size":6644,"mtime":1643024797436,"results":"105","hashOfConfig":"56"},{"size":3824,"mtime":1643024797436,"results":"106","hashOfConfig":"56"},{"size":1813,"mtime":1643024797436,"results":"107","hashOfConfig":"56"},{"size":308,"mtime":1643024797436,"results":"108","hashOfConfig":"56"},{"size":9274,"mtime":1643024797436,"results":"109","hashOfConfig":"56"},{"filePath":"110","messages":"111","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"2qg1xb",{"filePath":"112","messages":"113","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"114","messages":"115","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"116","messages":"117","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"118","messages":"119","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"120","messages":"121","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"122","messages":"123","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"124","messages":"125","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"126","messages":"127","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"128","messages":"129","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"130","messages":"131","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"132","messages":"133","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"134","messages":"135","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"136","messages":"137","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"138","messages":"139","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"140","messages":"141","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"142","messages":"143","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"144","messages":"145","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"146","messages":"147","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"148","messages":"149","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"150","messages":"151","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"152","messages":"153","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"154","messages":"155","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"156","messages":"157","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"158","messages":"159","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"160","messages":"161","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"162","messages":"163","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"164","messages":"165","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"166","messages":"167","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"168","messages":"169","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"170","messages":"171","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"172","messages":"173","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"174","messages":"175","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"176","messages":"177","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"178","messages":"179","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"180","messages":"181","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"182","messages":"183","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"184","messages":"185","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"186","messages":"187","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"188","messages":"189","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"190","messages":"191","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"192","messages":"193","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"194","messages":"195","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"196","messages":"197","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"198","messages":"199","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"200","messages":"201","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"202","messages":"203","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"204","messages":"205","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"206","messages":"207","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"208","messages":"209","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"210","messages":"211","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"212","messages":"213","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"214","messages":"215","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"216","messages":"217","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/runner/work/graphitation/graphitation/packages/supermassive/src/__tests__/execute.test.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/__tests__/extractImplicitTypes.test.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/__tests__/subscribe.test.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/TypedAST.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/__tests__/addTypesToRequestDocument.test.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/addTypesToRequestDocument.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/index.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/nice-benchmark.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/index.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/models.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/resolvers.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/bin/__tests__/typeDefsToImplicitResolvers.test.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/bin/supermassive.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/collectFields.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/compiledQuery.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/definition.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/directives.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/executeWithSchema.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/executeWithoutSchema.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/extractImplicitTypesRuntime.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/extractImplicitTypesToTypescript.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/index.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/Maybe.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/ObjMap.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/Path.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/PromiseOrValue.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/devAssert.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/didYouMean.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/identityFunc.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/inspect.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/instanceOf.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/invariant.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isAsyncIterable.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isIterableObject.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isObjectLike.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isPromise.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/keyMap.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/keyValMap.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/mapValue.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/memoize3.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/naturalCompare.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/printPathArray.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/promiseForObject.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/promiseReduce.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/suggestionList.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/toObjMap.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/subscribeWithSchema.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/subscribeWithoutSchema.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/transforms/annotateDocumentGraphQLTransform.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/transforms/transformerTestUtils.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/types.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/utilities/mapAsyncIterator.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/utilities/typeNameFromAST.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/values.ts",[]]
|
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,67 @@
|
|
|
2
2
|
"name": "@graphitation/supermassive",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Mon, 24 Jan 2022 11:48:42 GMT",
|
|
6
|
+
"tag": "@graphitation/supermassive_v0.6.1",
|
|
7
|
+
"version": "0.6.1",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "mnovikov@microsoft.com",
|
|
12
|
+
"package": "@graphitation/supermassive",
|
|
13
|
+
"commit": "ce2d4f019baf1717202a3c33ec0d75fa3b5a4fb3",
|
|
14
|
+
"comment": "Fix Webpack 4 compat"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Mon, 24 Jan 2022 11:18:59 GMT",
|
|
21
|
+
"tag": "@graphitation/supermassive_v0.6.0",
|
|
22
|
+
"version": "0.6.0",
|
|
23
|
+
"comments": {
|
|
24
|
+
"minor": [
|
|
25
|
+
{
|
|
26
|
+
"author": "jakubvejr@microsoft.com",
|
|
27
|
+
"package": "@graphitation/supermassive",
|
|
28
|
+
"commit": "6f7d0728d4f196601758acde6fb2b02477201df5",
|
|
29
|
+
"comment": "Directives implemented"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"date": "Wed, 19 Jan 2022 13:39:52 GMT",
|
|
36
|
+
"tag": "@graphitation/supermassive_v0.5.2",
|
|
37
|
+
"version": "0.5.2",
|
|
38
|
+
"comments": {
|
|
39
|
+
"patch": [
|
|
40
|
+
{
|
|
41
|
+
"author": "jakubvejr@microsoft.com",
|
|
42
|
+
"package": "@graphitation/supermassive",
|
|
43
|
+
"commit": "bbcd6d2d5fe95073e9bea820f92298f397edda26",
|
|
44
|
+
"comment": "Export AST types"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"date": "Tue, 18 Jan 2022 12:29:14 GMT",
|
|
51
|
+
"tag": "@graphitation/supermassive_v0.5.1",
|
|
52
|
+
"version": "0.5.1",
|
|
53
|
+
"comments": {
|
|
54
|
+
"patch": [
|
|
55
|
+
{
|
|
56
|
+
"author": "jakubvejr@microsoft.com",
|
|
57
|
+
"package": "@graphitation/supermassive",
|
|
58
|
+
"commit": "e48a7490997e1c9cd3487c1b2c178c56c1ce5a1b",
|
|
59
|
+
"comment": "Reexported type fixed"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"date": "Tue, 18 Jan 2022 09:59:51 GMT",
|
|
6
66
|
"tag": "@graphitation/supermassive_v0.5.0",
|
|
7
67
|
"version": "0.5.0",
|
|
8
68
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,44 @@
|
|
|
1
1
|
# Change Log - @graphitation/supermassive
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 24 Jan 2022 11:48:42 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.6.1
|
|
8
|
+
|
|
9
|
+
Mon, 24 Jan 2022 11:48:42 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Fix Webpack 4 compat (mnovikov@microsoft.com)
|
|
14
|
+
|
|
15
|
+
## 0.6.0
|
|
16
|
+
|
|
17
|
+
Mon, 24 Jan 2022 11:18:59 GMT
|
|
18
|
+
|
|
19
|
+
### Minor changes
|
|
20
|
+
|
|
21
|
+
- Directives implemented (jakubvejr@microsoft.com)
|
|
22
|
+
|
|
23
|
+
## 0.5.2
|
|
24
|
+
|
|
25
|
+
Wed, 19 Jan 2022 13:39:52 GMT
|
|
26
|
+
|
|
27
|
+
### Patches
|
|
28
|
+
|
|
29
|
+
- Export AST types (jakubvejr@microsoft.com)
|
|
30
|
+
|
|
31
|
+
## 0.5.1
|
|
32
|
+
|
|
33
|
+
Tue, 18 Jan 2022 12:29:14 GMT
|
|
34
|
+
|
|
35
|
+
### Patches
|
|
36
|
+
|
|
37
|
+
- Reexported type fixed (jakubvejr@microsoft.com)
|
|
38
|
+
|
|
7
39
|
## 0.5.0
|
|
8
40
|
|
|
9
|
-
Tue, 18 Jan 2022 09:59:
|
|
41
|
+
Tue, 18 Jan 2022 09:59:51 GMT
|
|
10
42
|
|
|
11
43
|
### Minor changes
|
|
12
44
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collectFields.d.ts","sourceRoot":"","sources":["../src/collectFields.ts"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EACT,sBAAsB,EAGtB,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"collectFields.d.ts","sourceRoot":"","sources":["../src/collectFields.ts"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EACT,sBAAsB,EAGtB,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAI/C,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAC3B,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,MAAM,CAAC,sBAAsB,CAAC,EACzC,cAAc,EAAE;IAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,EAC/C,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,gBAAgB,EAC9B,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,EACrC,oBAAoB,EAAE,GAAG,CAAC,MAAM,CAAC,GAChC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAgE/B"}
|
package/lib/collectFields.js
CHANGED
|
@@ -25,11 +25,13 @@ __export(exports, {
|
|
|
25
25
|
collectFields: () => collectFields
|
|
26
26
|
});
|
|
27
27
|
var import_graphql = __toModule(require("graphql"));
|
|
28
|
+
var import_values = __toModule(require("./values"));
|
|
29
|
+
var import_directives = __toModule(require("./directives"));
|
|
28
30
|
function collectFields(resolvers, fragments, variableValues, runtimeTypeName, selectionSet, fields, visitedFragmentNames) {
|
|
29
31
|
for (const selection of selectionSet.selections) {
|
|
30
32
|
switch (selection.kind) {
|
|
31
33
|
case import_graphql.Kind.FIELD: {
|
|
32
|
-
if (!shouldIncludeNode(variableValues, selection)) {
|
|
34
|
+
if (!shouldIncludeNode(resolvers, variableValues, selection)) {
|
|
33
35
|
continue;
|
|
34
36
|
}
|
|
35
37
|
const name = getFieldEntryKey(selection);
|
|
@@ -42,7 +44,7 @@ function collectFields(resolvers, fragments, variableValues, runtimeTypeName, se
|
|
|
42
44
|
break;
|
|
43
45
|
}
|
|
44
46
|
case import_graphql.Kind.INLINE_FRAGMENT: {
|
|
45
|
-
if (!shouldIncludeNode(variableValues, selection) || !doesFragmentConditionMatch(selection, runtimeTypeName)) {
|
|
47
|
+
if (!shouldIncludeNode(resolvers, variableValues, selection) || !doesFragmentConditionMatch(selection, runtimeTypeName)) {
|
|
46
48
|
continue;
|
|
47
49
|
}
|
|
48
50
|
collectFields(resolvers, fragments, variableValues, runtimeTypeName, selection.selectionSet, fields, visitedFragmentNames);
|
|
@@ -50,7 +52,7 @@ function collectFields(resolvers, fragments, variableValues, runtimeTypeName, se
|
|
|
50
52
|
}
|
|
51
53
|
case import_graphql.Kind.FRAGMENT_SPREAD: {
|
|
52
54
|
const fragName = selection.name.value;
|
|
53
|
-
if (visitedFragmentNames.has(fragName) || !shouldIncludeNode(variableValues, selection)) {
|
|
55
|
+
if (visitedFragmentNames.has(fragName) || !shouldIncludeNode(resolvers, variableValues, selection)) {
|
|
54
56
|
continue;
|
|
55
57
|
}
|
|
56
58
|
visitedFragmentNames.add(fragName);
|
|
@@ -65,7 +67,19 @@ function collectFields(resolvers, fragments, variableValues, runtimeTypeName, se
|
|
|
65
67
|
}
|
|
66
68
|
return fields;
|
|
67
69
|
}
|
|
68
|
-
function shouldIncludeNode(variableValues, node) {
|
|
70
|
+
function shouldIncludeNode(resolvers, variableValues, node) {
|
|
71
|
+
var _a;
|
|
72
|
+
if (!((_a = node.directives) == null ? void 0 : _a.length)) {
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
const skip = (0, import_values.getDirectiveValues)(import_directives.GraphQLSkipDirective, node, resolvers, variableValues);
|
|
76
|
+
if ((skip == null ? void 0 : skip.if) === true) {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
const include = (0, import_values.getDirectiveValues)(import_directives.GraphQLIncludeDirective, node, resolvers, variableValues);
|
|
80
|
+
if ((include == null ? void 0 : include.if) === false) {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
69
83
|
return true;
|
|
70
84
|
}
|
|
71
85
|
function doesFragmentConditionMatch(fragment, typeName) {
|
package/lib/collectFields.mjs
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
// src/collectFields.ts
|
|
2
2
|
import {Kind} from "graphql";
|
|
3
|
+
import {getDirectiveValues} from "./values.mjs";
|
|
4
|
+
import {GraphQLSkipDirective, GraphQLIncludeDirective} from "./directives.mjs";
|
|
3
5
|
function collectFields(resolvers, fragments, variableValues, runtimeTypeName, selectionSet, fields, visitedFragmentNames) {
|
|
4
6
|
for (const selection of selectionSet.selections) {
|
|
5
7
|
switch (selection.kind) {
|
|
6
8
|
case Kind.FIELD: {
|
|
7
|
-
if (!shouldIncludeNode(variableValues, selection)) {
|
|
9
|
+
if (!shouldIncludeNode(resolvers, variableValues, selection)) {
|
|
8
10
|
continue;
|
|
9
11
|
}
|
|
10
12
|
const name = getFieldEntryKey(selection);
|
|
@@ -17,7 +19,7 @@ function collectFields(resolvers, fragments, variableValues, runtimeTypeName, se
|
|
|
17
19
|
break;
|
|
18
20
|
}
|
|
19
21
|
case Kind.INLINE_FRAGMENT: {
|
|
20
|
-
if (!shouldIncludeNode(variableValues, selection) || !doesFragmentConditionMatch(selection, runtimeTypeName)) {
|
|
22
|
+
if (!shouldIncludeNode(resolvers, variableValues, selection) || !doesFragmentConditionMatch(selection, runtimeTypeName)) {
|
|
21
23
|
continue;
|
|
22
24
|
}
|
|
23
25
|
collectFields(resolvers, fragments, variableValues, runtimeTypeName, selection.selectionSet, fields, visitedFragmentNames);
|
|
@@ -25,7 +27,7 @@ function collectFields(resolvers, fragments, variableValues, runtimeTypeName, se
|
|
|
25
27
|
}
|
|
26
28
|
case Kind.FRAGMENT_SPREAD: {
|
|
27
29
|
const fragName = selection.name.value;
|
|
28
|
-
if (visitedFragmentNames.has(fragName) || !shouldIncludeNode(variableValues, selection)) {
|
|
30
|
+
if (visitedFragmentNames.has(fragName) || !shouldIncludeNode(resolvers, variableValues, selection)) {
|
|
29
31
|
continue;
|
|
30
32
|
}
|
|
31
33
|
visitedFragmentNames.add(fragName);
|
|
@@ -40,7 +42,19 @@ function collectFields(resolvers, fragments, variableValues, runtimeTypeName, se
|
|
|
40
42
|
}
|
|
41
43
|
return fields;
|
|
42
44
|
}
|
|
43
|
-
function shouldIncludeNode(variableValues, node) {
|
|
45
|
+
function shouldIncludeNode(resolvers, variableValues, node) {
|
|
46
|
+
var _a;
|
|
47
|
+
if (!((_a = node.directives) == null ? void 0 : _a.length)) {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
const skip = getDirectiveValues(GraphQLSkipDirective, node, resolvers, variableValues);
|
|
51
|
+
if ((skip == null ? void 0 : skip.if) === true) {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
const include = getDirectiveValues(GraphQLIncludeDirective, node, resolvers, variableValues);
|
|
55
|
+
if ((include == null ? void 0 : include.if) === false) {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
44
58
|
return true;
|
|
45
59
|
}
|
|
46
60
|
function doesFragmentConditionMatch(fragment, typeName) {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { GraphQLFieldConfigArgumentMap, GraphQLArgument } from "graphql";
|
|
2
|
+
export declare function defineArguments(config: GraphQLFieldConfigArgumentMap): ReadonlyArray<GraphQLArgument>;
|
|
3
|
+
export declare function argsToArgsConfig(args: ReadonlyArray<GraphQLArgument>): GraphQLFieldConfigArgumentMap;
|
|
4
|
+
//# sourceMappingURL=definition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../src/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,6BAA6B,EAC7B,eAAe,EAChB,MAAM,SAAS,CAAC;AAOjB,wBAAgB,eAAe,CAC7B,MAAM,EAAE,6BAA6B,GACpC,aAAa,CAAC,eAAe,CAAC,CAUhC;AAED,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,aAAa,CAAC,eAAe,CAAC,GACnC,6BAA6B,CAa/B"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", {value: true});
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, {get: all[name], enumerable: true});
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
16
|
+
__defProp(target, key, {get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable});
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toModule = (module2) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? {get: () => module2.default, enumerable: true} : {value: module2, enumerable: true})), module2);
|
|
22
|
+
};
|
|
23
|
+
__markAsModule(exports);
|
|
24
|
+
__export(exports, {
|
|
25
|
+
argsToArgsConfig: () => argsToArgsConfig,
|
|
26
|
+
defineArguments: () => defineArguments
|
|
27
|
+
});
|
|
28
|
+
var import_toObjMap = __toModule(require("./jsutils/toObjMap"));
|
|
29
|
+
var import_keyValMap = __toModule(require("./jsutils/keyValMap"));
|
|
30
|
+
function defineArguments(config) {
|
|
31
|
+
return Object.entries(config).map(([argName, argConfig]) => ({
|
|
32
|
+
name: argName,
|
|
33
|
+
description: argConfig.description,
|
|
34
|
+
type: argConfig.type,
|
|
35
|
+
defaultValue: argConfig.defaultValue,
|
|
36
|
+
deprecationReason: argConfig.deprecationReason,
|
|
37
|
+
extensions: argConfig.extensions && (0, import_toObjMap.toObjMap)(argConfig.extensions),
|
|
38
|
+
astNode: argConfig.astNode
|
|
39
|
+
}));
|
|
40
|
+
}
|
|
41
|
+
function argsToArgsConfig(args) {
|
|
42
|
+
return (0, import_keyValMap.keyValMap)(args, (arg) => arg.name, (arg) => ({
|
|
43
|
+
description: arg.description,
|
|
44
|
+
type: arg.type,
|
|
45
|
+
defaultValue: arg.defaultValue,
|
|
46
|
+
deprecationReason: arg.deprecationReason,
|
|
47
|
+
extensions: arg.extensions,
|
|
48
|
+
astNode: arg.astNode
|
|
49
|
+
}));
|
|
50
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// src/definition.ts
|
|
2
|
+
import {toObjMap} from "./jsutils/toObjMap.mjs";
|
|
3
|
+
import {keyValMap} from "./jsutils/keyValMap.mjs";
|
|
4
|
+
function defineArguments(config) {
|
|
5
|
+
return Object.entries(config).map(([argName, argConfig]) => ({
|
|
6
|
+
name: argName,
|
|
7
|
+
description: argConfig.description,
|
|
8
|
+
type: argConfig.type,
|
|
9
|
+
defaultValue: argConfig.defaultValue,
|
|
10
|
+
deprecationReason: argConfig.deprecationReason,
|
|
11
|
+
extensions: argConfig.extensions && toObjMap(argConfig.extensions),
|
|
12
|
+
astNode: argConfig.astNode
|
|
13
|
+
}));
|
|
14
|
+
}
|
|
15
|
+
function argsToArgsConfig(args) {
|
|
16
|
+
return keyValMap(args, (arg) => arg.name, (arg) => ({
|
|
17
|
+
description: arg.description,
|
|
18
|
+
type: arg.type,
|
|
19
|
+
defaultValue: arg.defaultValue,
|
|
20
|
+
deprecationReason: arg.deprecationReason,
|
|
21
|
+
extensions: arg.extensions,
|
|
22
|
+
astNode: arg.astNode
|
|
23
|
+
}));
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
argsToArgsConfig,
|
|
27
|
+
defineArguments
|
|
28
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { GraphQLArgument, DirectiveLocationEnum, GraphQLFieldConfigArgumentMap } from "graphql";
|
|
2
|
+
import type { Maybe } from "./jsutils/Maybe";
|
|
3
|
+
import type { DirectiveDefinitionNode } from "./ast/TypedAST";
|
|
4
|
+
/**
|
|
5
|
+
* Test if the given value is a GraphQL directive.
|
|
6
|
+
*/
|
|
7
|
+
export declare function isDirective(directive: unknown): directive is GraphQLDirective;
|
|
8
|
+
export declare function assertDirective(directive: unknown): GraphQLDirective;
|
|
9
|
+
/**
|
|
10
|
+
* Custom extensions
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* Use a unique identifier name for your extension, for example the name of
|
|
14
|
+
* your library or project. Do not use a shortened identifier as this increases
|
|
15
|
+
* the risk of conflicts. We recommend you add at most one extension field,
|
|
16
|
+
* an object which can contain all the values you need.
|
|
17
|
+
*/
|
|
18
|
+
export interface GraphQLDirectiveExtensions {
|
|
19
|
+
[attributeName: string]: unknown;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Directives are used by the GraphQL runtime as a way of modifying execution
|
|
23
|
+
* behavior. Type system creators will usually not create these directly.
|
|
24
|
+
*/
|
|
25
|
+
export declare class GraphQLDirective {
|
|
26
|
+
name: string;
|
|
27
|
+
description: Maybe<string>;
|
|
28
|
+
locations: ReadonlyArray<DirectiveLocationEnum>;
|
|
29
|
+
args: ReadonlyArray<GraphQLArgument>;
|
|
30
|
+
isRepeatable: boolean;
|
|
31
|
+
extensions: Maybe<Readonly<GraphQLDirectiveExtensions>>;
|
|
32
|
+
astNode: Maybe<DirectiveDefinitionNode>;
|
|
33
|
+
constructor(config: Readonly<GraphQLDirectiveConfig>);
|
|
34
|
+
toConfig(): GraphQLDirectiveNormalizedConfig;
|
|
35
|
+
toString(): string;
|
|
36
|
+
toJSON(): string;
|
|
37
|
+
get [Symbol.toStringTag](): string;
|
|
38
|
+
}
|
|
39
|
+
export interface GraphQLDirectiveConfig {
|
|
40
|
+
name: string;
|
|
41
|
+
description?: Maybe<string>;
|
|
42
|
+
locations: ReadonlyArray<DirectiveLocationEnum>;
|
|
43
|
+
args?: Maybe<GraphQLFieldConfigArgumentMap>;
|
|
44
|
+
isRepeatable?: Maybe<boolean>;
|
|
45
|
+
extensions?: Maybe<Readonly<GraphQLDirectiveExtensions>>;
|
|
46
|
+
astNode?: Maybe<DirectiveDefinitionNode>;
|
|
47
|
+
}
|
|
48
|
+
interface GraphQLDirectiveNormalizedConfig extends GraphQLDirectiveConfig {
|
|
49
|
+
args: GraphQLFieldConfigArgumentMap;
|
|
50
|
+
isRepeatable: boolean;
|
|
51
|
+
extensions: Maybe<Readonly<GraphQLDirectiveExtensions>>;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Used to conditionally include fields or fragments.
|
|
55
|
+
*/
|
|
56
|
+
export declare const GraphQLIncludeDirective: GraphQLDirective;
|
|
57
|
+
/**
|
|
58
|
+
* Used to conditionally skip (exclude) fields or fragments.
|
|
59
|
+
*/
|
|
60
|
+
export declare const GraphQLSkipDirective: GraphQLDirective;
|
|
61
|
+
/**
|
|
62
|
+
* Constant string used for default reason for a deprecation.
|
|
63
|
+
*/
|
|
64
|
+
export declare const DEFAULT_DEPRECATION_REASON = "No longer supported";
|
|
65
|
+
/**
|
|
66
|
+
* Used to declare element of a GraphQL schema as deprecated.
|
|
67
|
+
*/
|
|
68
|
+
export declare const GraphQLDeprecatedDirective: GraphQLDirective;
|
|
69
|
+
/**
|
|
70
|
+
* Used to provide a URL for specifying the behaviour of custom scalar definitions.
|
|
71
|
+
*/
|
|
72
|
+
export declare const GraphQLSpecifiedByDirective: GraphQLDirective;
|
|
73
|
+
/**
|
|
74
|
+
* The full list of specified directives.
|
|
75
|
+
*/
|
|
76
|
+
export declare const specifiedDirectives: ReadonlyArray<GraphQLDirective>;
|
|
77
|
+
export declare function isSpecifiedDirective(directive: GraphQLDirective): boolean;
|
|
78
|
+
export {};
|
|
79
|
+
//# sourceMappingURL=directives.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directives.d.ts","sourceRoot":"","sources":["../src/directives.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,eAAe,EAEf,qBAAqB,EAErB,6BAA6B,EAC9B,MAAM,SAAS,CAAC;AAMjB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAI9D;;GAEG;AACH,wBAAgB,WAAW,CAAC,SAAS,EAAE,OAAO,GAAG,SAAS,IAAI,gBAAgB,CAE7E;AAED,wBAAgB,eAAe,CAAC,SAAS,EAAE,OAAO,GAAG,gBAAgB,CAOpE;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,0BAA0B;IACzC,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC;CAClC;AAED;;;GAGG;AACH,qBAAa,gBAAgB;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B,SAAS,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;IAChD,IAAI,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IACrC,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,0BAA0B,CAAC,CAAC,CAAC;IACxD,OAAO,EAAE,KAAK,CAAC,uBAAuB,CAAC,CAAC;gBAE5B,MAAM,EAAE,QAAQ,CAAC,sBAAsB,CAAC;IAuBpD,QAAQ,IAAI,gCAAgC;IAY5C,QAAQ,IAAI,MAAM;IAIlB,MAAM,IAAI,MAAM;IAIhB,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,WAEvB;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B,SAAS,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;IAChD,IAAI,CAAC,EAAE,KAAK,CAAC,6BAA6B,CAAC,CAAC;IAC5C,YAAY,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC9B,UAAU,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,0BAA0B,CAAC,CAAC,CAAC;IACzD,OAAO,CAAC,EAAE,KAAK,CAAC,uBAAuB,CAAC,CAAC;CAC1C;AAED,UAAU,gCAAiC,SAAQ,sBAAsB;IACvE,IAAI,EAAE,6BAA6B,CAAC;IACpC,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,0BAA0B,CAAC,CAAC,CAAC;CACzD;AAED;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,gBAepC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,gBAejC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,0BAA0B,wBAAwB,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,0BAA0B,EAAE,gBAmBxC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,gBAYzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC,gBAAgB,CAO/D,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,gBAAgB,GAAG,OAAO,CAEzE"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", {value: true});
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, {get: all[name], enumerable: true});
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
16
|
+
__defProp(target, key, {get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable});
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toModule = (module2) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? {get: () => module2.default, enumerable: true} : {value: module2, enumerable: true})), module2);
|
|
22
|
+
};
|
|
23
|
+
__markAsModule(exports);
|
|
24
|
+
__export(exports, {
|
|
25
|
+
DEFAULT_DEPRECATION_REASON: () => DEFAULT_DEPRECATION_REASON,
|
|
26
|
+
GraphQLDeprecatedDirective: () => GraphQLDeprecatedDirective,
|
|
27
|
+
GraphQLDirective: () => GraphQLDirective,
|
|
28
|
+
GraphQLIncludeDirective: () => GraphQLIncludeDirective,
|
|
29
|
+
GraphQLSkipDirective: () => GraphQLSkipDirective,
|
|
30
|
+
GraphQLSpecifiedByDirective: () => GraphQLSpecifiedByDirective,
|
|
31
|
+
assertDirective: () => assertDirective,
|
|
32
|
+
isDirective: () => isDirective,
|
|
33
|
+
isSpecifiedDirective: () => isSpecifiedDirective,
|
|
34
|
+
specifiedDirectives: () => specifiedDirectives
|
|
35
|
+
});
|
|
36
|
+
var import_graphql = __toModule(require("graphql"));
|
|
37
|
+
var import_inspect = __toModule(require("./jsutils/inspect"));
|
|
38
|
+
var import_toObjMap = __toModule(require("./jsutils/toObjMap"));
|
|
39
|
+
var import_devAssert = __toModule(require("./jsutils/devAssert"));
|
|
40
|
+
var import_instanceOf = __toModule(require("./jsutils/instanceOf"));
|
|
41
|
+
var import_isObjectLike = __toModule(require("./jsutils/isObjectLike"));
|
|
42
|
+
var import_definition = __toModule(require("./definition"));
|
|
43
|
+
function isDirective(directive) {
|
|
44
|
+
return (0, import_instanceOf.instanceOf)(directive, GraphQLDirective);
|
|
45
|
+
}
|
|
46
|
+
function assertDirective(directive) {
|
|
47
|
+
if (!isDirective(directive)) {
|
|
48
|
+
throw new Error(`Expected ${(0, import_inspect.inspect)(directive)} to be a GraphQL directive.`);
|
|
49
|
+
}
|
|
50
|
+
return directive;
|
|
51
|
+
}
|
|
52
|
+
class GraphQLDirective {
|
|
53
|
+
constructor(config) {
|
|
54
|
+
var _a, _b;
|
|
55
|
+
this.name = config.name;
|
|
56
|
+
this.description = config.description;
|
|
57
|
+
this.locations = config.locations;
|
|
58
|
+
this.isRepeatable = (_a = config.isRepeatable) != null ? _a : false;
|
|
59
|
+
this.extensions = config.extensions && (0, import_toObjMap.toObjMap)(config.extensions);
|
|
60
|
+
this.astNode = config.astNode;
|
|
61
|
+
(0, import_devAssert.devAssert)(config.name, "Directive must be named.");
|
|
62
|
+
(0, import_devAssert.devAssert)(Array.isArray(config.locations), `@${config.name} locations must be an Array.`);
|
|
63
|
+
const args = (_b = config.args) != null ? _b : {};
|
|
64
|
+
(0, import_devAssert.devAssert)((0, import_isObjectLike.isObjectLike)(args) && !Array.isArray(args), `@${config.name} args must be an object with argument names as keys.`);
|
|
65
|
+
this.args = (0, import_definition.defineArguments)(args);
|
|
66
|
+
}
|
|
67
|
+
toConfig() {
|
|
68
|
+
return {
|
|
69
|
+
name: this.name,
|
|
70
|
+
description: this.description,
|
|
71
|
+
locations: this.locations,
|
|
72
|
+
args: (0, import_definition.argsToArgsConfig)(this.args),
|
|
73
|
+
isRepeatable: this.isRepeatable,
|
|
74
|
+
extensions: this.extensions,
|
|
75
|
+
astNode: this.astNode
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
toString() {
|
|
79
|
+
return "@" + this.name;
|
|
80
|
+
}
|
|
81
|
+
toJSON() {
|
|
82
|
+
return this.toString();
|
|
83
|
+
}
|
|
84
|
+
get [Symbol.toStringTag]() {
|
|
85
|
+
return "GraphQLDirective";
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
const GraphQLIncludeDirective = new GraphQLDirective({
|
|
89
|
+
name: "include",
|
|
90
|
+
description: "Directs the executor to include this field or fragment only when the `if` argument is true.",
|
|
91
|
+
locations: [
|
|
92
|
+
import_graphql.DirectiveLocation.FIELD,
|
|
93
|
+
import_graphql.DirectiveLocation.FRAGMENT_SPREAD,
|
|
94
|
+
import_graphql.DirectiveLocation.INLINE_FRAGMENT
|
|
95
|
+
],
|
|
96
|
+
args: {
|
|
97
|
+
if: {
|
|
98
|
+
type: new import_graphql.GraphQLNonNull(import_graphql.GraphQLBoolean),
|
|
99
|
+
description: "Included when true."
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
const GraphQLSkipDirective = new GraphQLDirective({
|
|
104
|
+
name: "skip",
|
|
105
|
+
description: "Directs the executor to skip this field or fragment when the `if` argument is true.",
|
|
106
|
+
locations: [
|
|
107
|
+
import_graphql.DirectiveLocation.FIELD,
|
|
108
|
+
import_graphql.DirectiveLocation.FRAGMENT_SPREAD,
|
|
109
|
+
import_graphql.DirectiveLocation.INLINE_FRAGMENT
|
|
110
|
+
],
|
|
111
|
+
args: {
|
|
112
|
+
if: {
|
|
113
|
+
type: new import_graphql.GraphQLNonNull(import_graphql.GraphQLBoolean),
|
|
114
|
+
description: "Skipped when true."
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
const DEFAULT_DEPRECATION_REASON = "No longer supported";
|
|
119
|
+
const GraphQLDeprecatedDirective = new GraphQLDirective({
|
|
120
|
+
name: "deprecated",
|
|
121
|
+
description: "Marks an element of a GraphQL schema as no longer supported.",
|
|
122
|
+
locations: [
|
|
123
|
+
import_graphql.DirectiveLocation.FIELD_DEFINITION,
|
|
124
|
+
import_graphql.DirectiveLocation.ARGUMENT_DEFINITION,
|
|
125
|
+
import_graphql.DirectiveLocation.INPUT_FIELD_DEFINITION,
|
|
126
|
+
import_graphql.DirectiveLocation.ENUM_VALUE
|
|
127
|
+
],
|
|
128
|
+
args: {
|
|
129
|
+
reason: {
|
|
130
|
+
type: import_graphql.GraphQLString,
|
|
131
|
+
description: "Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",
|
|
132
|
+
defaultValue: DEFAULT_DEPRECATION_REASON
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
const GraphQLSpecifiedByDirective = new GraphQLDirective({
|
|
137
|
+
name: "specifiedBy",
|
|
138
|
+
description: "Exposes a URL that specifies the behaviour of this scalar.",
|
|
139
|
+
locations: [import_graphql.DirectiveLocation.SCALAR],
|
|
140
|
+
args: {
|
|
141
|
+
url: {
|
|
142
|
+
type: new import_graphql.GraphQLNonNull(import_graphql.GraphQLString),
|
|
143
|
+
description: "The URL that specifies the behaviour of this scalar."
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
const specifiedDirectives = Object.freeze([
|
|
148
|
+
GraphQLIncludeDirective,
|
|
149
|
+
GraphQLSkipDirective,
|
|
150
|
+
GraphQLDeprecatedDirective,
|
|
151
|
+
GraphQLSpecifiedByDirective
|
|
152
|
+
]);
|
|
153
|
+
function isSpecifiedDirective(directive) {
|
|
154
|
+
return specifiedDirectives.some(({name}) => name === directive.name);
|
|
155
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
// src/directives.ts
|
|
2
|
+
import {
|
|
3
|
+
GraphQLString,
|
|
4
|
+
GraphQLBoolean,
|
|
5
|
+
GraphQLNonNull,
|
|
6
|
+
DirectiveLocation
|
|
7
|
+
} from "graphql";
|
|
8
|
+
import {inspect} from "./jsutils/inspect.mjs";
|
|
9
|
+
import {toObjMap} from "./jsutils/toObjMap.mjs";
|
|
10
|
+
import {devAssert} from "./jsutils/devAssert.mjs";
|
|
11
|
+
import {instanceOf} from "./jsutils/instanceOf.mjs";
|
|
12
|
+
import {isObjectLike} from "./jsutils/isObjectLike.mjs";
|
|
13
|
+
import {defineArguments, argsToArgsConfig} from "./definition.mjs";
|
|
14
|
+
function isDirective(directive) {
|
|
15
|
+
return instanceOf(directive, GraphQLDirective);
|
|
16
|
+
}
|
|
17
|
+
function assertDirective(directive) {
|
|
18
|
+
if (!isDirective(directive)) {
|
|
19
|
+
throw new Error(`Expected ${inspect(directive)} to be a GraphQL directive.`);
|
|
20
|
+
}
|
|
21
|
+
return directive;
|
|
22
|
+
}
|
|
23
|
+
var GraphQLDirective = class {
|
|
24
|
+
constructor(config) {
|
|
25
|
+
var _a, _b;
|
|
26
|
+
this.name = config.name;
|
|
27
|
+
this.description = config.description;
|
|
28
|
+
this.locations = config.locations;
|
|
29
|
+
this.isRepeatable = (_a = config.isRepeatable) != null ? _a : false;
|
|
30
|
+
this.extensions = config.extensions && toObjMap(config.extensions);
|
|
31
|
+
this.astNode = config.astNode;
|
|
32
|
+
devAssert(config.name, "Directive must be named.");
|
|
33
|
+
devAssert(Array.isArray(config.locations), `@${config.name} locations must be an Array.`);
|
|
34
|
+
const args = (_b = config.args) != null ? _b : {};
|
|
35
|
+
devAssert(isObjectLike(args) && !Array.isArray(args), `@${config.name} args must be an object with argument names as keys.`);
|
|
36
|
+
this.args = defineArguments(args);
|
|
37
|
+
}
|
|
38
|
+
toConfig() {
|
|
39
|
+
return {
|
|
40
|
+
name: this.name,
|
|
41
|
+
description: this.description,
|
|
42
|
+
locations: this.locations,
|
|
43
|
+
args: argsToArgsConfig(this.args),
|
|
44
|
+
isRepeatable: this.isRepeatable,
|
|
45
|
+
extensions: this.extensions,
|
|
46
|
+
astNode: this.astNode
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
toString() {
|
|
50
|
+
return "@" + this.name;
|
|
51
|
+
}
|
|
52
|
+
toJSON() {
|
|
53
|
+
return this.toString();
|
|
54
|
+
}
|
|
55
|
+
get [Symbol.toStringTag]() {
|
|
56
|
+
return "GraphQLDirective";
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
var GraphQLIncludeDirective = new GraphQLDirective({
|
|
60
|
+
name: "include",
|
|
61
|
+
description: "Directs the executor to include this field or fragment only when the `if` argument is true.",
|
|
62
|
+
locations: [
|
|
63
|
+
DirectiveLocation.FIELD,
|
|
64
|
+
DirectiveLocation.FRAGMENT_SPREAD,
|
|
65
|
+
DirectiveLocation.INLINE_FRAGMENT
|
|
66
|
+
],
|
|
67
|
+
args: {
|
|
68
|
+
if: {
|
|
69
|
+
type: new GraphQLNonNull(GraphQLBoolean),
|
|
70
|
+
description: "Included when true."
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
var GraphQLSkipDirective = new GraphQLDirective({
|
|
75
|
+
name: "skip",
|
|
76
|
+
description: "Directs the executor to skip this field or fragment when the `if` argument is true.",
|
|
77
|
+
locations: [
|
|
78
|
+
DirectiveLocation.FIELD,
|
|
79
|
+
DirectiveLocation.FRAGMENT_SPREAD,
|
|
80
|
+
DirectiveLocation.INLINE_FRAGMENT
|
|
81
|
+
],
|
|
82
|
+
args: {
|
|
83
|
+
if: {
|
|
84
|
+
type: new GraphQLNonNull(GraphQLBoolean),
|
|
85
|
+
description: "Skipped when true."
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
var DEFAULT_DEPRECATION_REASON = "No longer supported";
|
|
90
|
+
var GraphQLDeprecatedDirective = new GraphQLDirective({
|
|
91
|
+
name: "deprecated",
|
|
92
|
+
description: "Marks an element of a GraphQL schema as no longer supported.",
|
|
93
|
+
locations: [
|
|
94
|
+
DirectiveLocation.FIELD_DEFINITION,
|
|
95
|
+
DirectiveLocation.ARGUMENT_DEFINITION,
|
|
96
|
+
DirectiveLocation.INPUT_FIELD_DEFINITION,
|
|
97
|
+
DirectiveLocation.ENUM_VALUE
|
|
98
|
+
],
|
|
99
|
+
args: {
|
|
100
|
+
reason: {
|
|
101
|
+
type: GraphQLString,
|
|
102
|
+
description: "Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",
|
|
103
|
+
defaultValue: DEFAULT_DEPRECATION_REASON
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
var GraphQLSpecifiedByDirective = new GraphQLDirective({
|
|
108
|
+
name: "specifiedBy",
|
|
109
|
+
description: "Exposes a URL that specifies the behaviour of this scalar.",
|
|
110
|
+
locations: [DirectiveLocation.SCALAR],
|
|
111
|
+
args: {
|
|
112
|
+
url: {
|
|
113
|
+
type: new GraphQLNonNull(GraphQLString),
|
|
114
|
+
description: "The URL that specifies the behaviour of this scalar."
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
var specifiedDirectives = Object.freeze([
|
|
119
|
+
GraphQLIncludeDirective,
|
|
120
|
+
GraphQLSkipDirective,
|
|
121
|
+
GraphQLDeprecatedDirective,
|
|
122
|
+
GraphQLSpecifiedByDirective
|
|
123
|
+
]);
|
|
124
|
+
function isSpecifiedDirective(directive) {
|
|
125
|
+
return specifiedDirectives.some(({name}) => name === directive.name);
|
|
126
|
+
}
|
|
127
|
+
export {
|
|
128
|
+
DEFAULT_DEPRECATION_REASON,
|
|
129
|
+
GraphQLDeprecatedDirective,
|
|
130
|
+
GraphQLDirective,
|
|
131
|
+
GraphQLIncludeDirective,
|
|
132
|
+
GraphQLSkipDirective,
|
|
133
|
+
GraphQLSpecifiedByDirective,
|
|
134
|
+
assertDirective,
|
|
135
|
+
isDirective,
|
|
136
|
+
isSpecifiedDirective,
|
|
137
|
+
specifiedDirectives
|
|
138
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executeWithSchema.d.ts","sourceRoot":"","sources":["../src/executeWithSchema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"executeWithSchema.d.ts","sourceRoot":"","sources":["../src/executeWithSchema.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAa,eAAe,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAE9E,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,SAAS,EACT,QAAQ,EAAE,WAAW,EACrB,SAAS,EACT,YAAY,EACZ,cAAc,EACd,aAAa,EACb,aAAa,EACb,YAAY,GACb,EAAE,uBAAuB,GAAG,cAAc,CAAC,eAAe,CAAC,CA2B3D"}
|
package/lib/executeWithSchema.js
CHANGED
|
@@ -38,7 +38,6 @@ __markAsModule(exports);
|
|
|
38
38
|
__export(exports, {
|
|
39
39
|
executeWithSchema: () => executeWithSchema
|
|
40
40
|
});
|
|
41
|
-
var import_schema = __toModule(require("@graphql-tools/schema"));
|
|
42
41
|
var import_graphql = __toModule(require("graphql"));
|
|
43
42
|
var import_index = __toModule(require("./index"));
|
|
44
43
|
function executeWithSchema({
|
|
@@ -52,7 +51,7 @@ function executeWithSchema({
|
|
|
52
51
|
fieldResolver,
|
|
53
52
|
typeResolver
|
|
54
53
|
}) {
|
|
55
|
-
const schema = (0,
|
|
54
|
+
const schema = (0, import_graphql.buildASTSchema)(typeDefs);
|
|
56
55
|
let extractedResolvers = {};
|
|
57
56
|
const getTypeByName = (name) => {
|
|
58
57
|
const type = import_index.specifiedScalars[name] || extractedResolvers[name];
|
|
@@ -16,8 +16,7 @@ var __objSpread = (a, b) => {
|
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
// src/executeWithSchema.ts
|
|
19
|
-
import {
|
|
20
|
-
import {isInputType} from "graphql";
|
|
19
|
+
import {isInputType, buildASTSchema} from "graphql";
|
|
21
20
|
import {
|
|
22
21
|
addTypesToRequestDocument,
|
|
23
22
|
executeWithoutSchema,
|
|
@@ -35,7 +34,7 @@ function executeWithSchema({
|
|
|
35
34
|
fieldResolver,
|
|
36
35
|
typeResolver
|
|
37
36
|
}) {
|
|
38
|
-
const schema =
|
|
37
|
+
const schema = buildASTSchema(typeDefs);
|
|
39
38
|
let extractedResolvers = {};
|
|
40
39
|
const getTypeByName = (name) => {
|
|
41
40
|
const type = specifiedScalars[name] || extractedResolvers[name];
|
package/lib/index.d.ts
CHANGED
|
@@ -7,5 +7,5 @@ export { addTypesToRequestDocument } from "./ast/addTypesToRequestDocument";
|
|
|
7
7
|
export { extractImplicitTypes } from "./extractImplicitTypesRuntime";
|
|
8
8
|
export { specifiedScalars } from "./values";
|
|
9
9
|
export { annotateDocumentGraphQLTransform } from "./transforms/annotateDocumentGraphQLTransform";
|
|
10
|
-
export { DocumentNode } from "./ast/TypedAST";
|
|
10
|
+
export type { NameNode, DocumentNode, OperationDefinitionNode, VariableDefinitionNode, VariableNode, SelectionSetNode, FieldNode, ArgumentNode, FragmentSpreadNode, InlineFragmentNode, FragmentDefinitionNode, IntValueNode, FloatValueNode, StringValueNode, BooleanValueNode, NullValueNode, EnumValueNode, ListValueNode, ObjectValueNode, ObjectFieldNode, DirectiveNode, NamedTypeNode, ListTypeNode, NonNullTypeNode, SchemaDefinitionNode, OperationTypeDefinitionNode, ScalarTypeDefinitionNode, ObjectTypeDefinitionNode, FieldDefinitionNode, InputValueDefinitionNode, InterfaceTypeDefinitionNode, UnionTypeDefinitionNode, EnumTypeDefinitionNode, EnumValueDefinitionNode, InputObjectTypeDefinitionNode, DirectiveDefinitionNode, SchemaExtensionNode, ScalarTypeExtensionNode, ObjectTypeExtensionNode, InterfaceTypeExtensionNode, UnionTypeExtensionNode, EnumTypeExtensionNode, InputObjectTypeExtensionNode, } from "./ast/TypedAST";
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAE5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAO,EAAE,gCAAgC,EAAE,MAAM,+CAA+C,CAAC;AAEjG,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAE5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAO,EAAE,gCAAgC,EAAE,MAAM,+CAA+C,CAAC;AAEjG,YAAY,EACV,QAAQ,EACR,YAAY,EACZ,uBAAuB,EACvB,sBAAsB,EACtB,YAAY,EACZ,gBAAgB,EAChB,SAAS,EACT,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,YAAY,EACZ,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,aAAa,EACb,eAAe,EACf,eAAe,EACf,aAAa,EACb,aAAa,EACb,YAAY,EACZ,eAAe,EACf,oBAAoB,EACpB,2BAA2B,EAC3B,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,wBAAwB,EACxB,2BAA2B,EAC3B,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,EACvB,6BAA6B,EAC7B,uBAAuB,EACvB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC1B,sBAAsB,EACtB,qBAAqB,EACrB,4BAA4B,GAC7B,MAAM,gBAAgB,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -22,7 +22,6 @@ var __toModule = (module2) => {
|
|
|
22
22
|
};
|
|
23
23
|
__markAsModule(exports);
|
|
24
24
|
__export(exports, {
|
|
25
|
-
DocumentNode: () => import_TypedAST.DocumentNode,
|
|
26
25
|
addTypesToRequestDocument: () => import_addTypesToRequestDocument.addTypesToRequestDocument,
|
|
27
26
|
annotateDocumentGraphQLTransform: () => import_annotateDocumentGraphQLTransform.annotateDocumentGraphQLTransform,
|
|
28
27
|
executeWithSchema: () => import_executeWithSchema.executeWithSchema,
|
|
@@ -40,4 +39,3 @@ var import_addTypesToRequestDocument = __toModule(require("./ast/addTypesToReque
|
|
|
40
39
|
var import_extractImplicitTypesRuntime = __toModule(require("./extractImplicitTypesRuntime"));
|
|
41
40
|
var import_values = __toModule(require("./values"));
|
|
42
41
|
var import_annotateDocumentGraphQLTransform = __toModule(require("./transforms/annotateDocumentGraphQLTransform"));
|
|
43
|
-
var import_TypedAST = __toModule(require("./ast/TypedAST"));
|
package/lib/index.mjs
CHANGED
|
@@ -7,9 +7,7 @@ import {addTypesToRequestDocument} from "./ast/addTypesToRequestDocument.mjs";
|
|
|
7
7
|
import {extractImplicitTypes} from "./extractImplicitTypesRuntime.mjs";
|
|
8
8
|
import {specifiedScalars} from "./values.mjs";
|
|
9
9
|
import {annotateDocumentGraphQLTransform} from "./transforms/annotateDocumentGraphQLTransform.mjs";
|
|
10
|
-
import {DocumentNode} from "./ast/TypedAST.mjs";
|
|
11
10
|
export {
|
|
12
|
-
DocumentNode,
|
|
13
11
|
addTypesToRequestDocument,
|
|
14
12
|
annotateDocumentGraphQLTransform,
|
|
15
13
|
executeWithSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscribeWithSchema.d.ts","sourceRoot":"","sources":["../src/subscribeWithSchema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"subscribeWithSchema.d.ts","sourceRoot":"","sources":["../src/subscribeWithSchema.ts"],"names":[],"mappings":"AAQA,OAAO,EAAa,eAAe,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAE9E,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,SAAS,EACT,QAAQ,EAAE,WAAW,EACrB,SAAS,EACT,YAAY,EACZ,cAAc,EACd,aAAa,EACb,aAAa,EACb,YAAY,GACb,EAAE,uBAAuB,GAAG,OAAO,CAClC,cAAc,CAAC,eAAe,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,eAAe,CAC9D,CA6BA"}
|
|
@@ -38,7 +38,6 @@ __markAsModule(exports);
|
|
|
38
38
|
__export(exports, {
|
|
39
39
|
subscribeWithSchema: () => subscribeWithSchema
|
|
40
40
|
});
|
|
41
|
-
var import_schema = __toModule(require("@graphql-tools/schema"));
|
|
42
41
|
var import_graphql = __toModule(require("graphql"));
|
|
43
42
|
var import_index = __toModule(require("./index"));
|
|
44
43
|
function subscribeWithSchema({
|
|
@@ -52,7 +51,7 @@ function subscribeWithSchema({
|
|
|
52
51
|
fieldResolver,
|
|
53
52
|
typeResolver
|
|
54
53
|
}) {
|
|
55
|
-
const schema = (0,
|
|
54
|
+
const schema = (0, import_graphql.buildASTSchema)(typeDefs);
|
|
56
55
|
let extractedResolvers = {};
|
|
57
56
|
const getTypeByName = (name) => {
|
|
58
57
|
const type = import_index.specifiedScalars[name] || extractedResolvers[name];
|
|
@@ -16,8 +16,7 @@ var __objSpread = (a, b) => {
|
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
// src/subscribeWithSchema.ts
|
|
19
|
-
import {
|
|
20
|
-
import {isInputType} from "graphql";
|
|
19
|
+
import {isInputType, buildASTSchema} from "graphql";
|
|
21
20
|
import {
|
|
22
21
|
addTypesToRequestDocument,
|
|
23
22
|
subscribeWithoutSchema,
|
|
@@ -35,7 +34,7 @@ function subscribeWithSchema({
|
|
|
35
34
|
fieldResolver,
|
|
36
35
|
typeResolver
|
|
37
36
|
}) {
|
|
38
|
-
const schema =
|
|
37
|
+
const schema = buildASTSchema(typeDefs);
|
|
39
38
|
let extractedResolvers = {};
|
|
40
39
|
const getTypeByName = (name) => {
|
|
41
40
|
const type = specifiedScalars[name] || extractedResolvers[name];
|
package/lib/values.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { DirectiveNode, FieldNode, VariableDefinitionNode } from "./ast/TypedAST
|
|
|
3
3
|
import type { Maybe } from "./jsutils/Maybe";
|
|
4
4
|
import type { ObjMap } from "./jsutils/ObjMap";
|
|
5
5
|
import { Resolvers } from "./types";
|
|
6
|
+
import { GraphQLDirective } from "./directives";
|
|
6
7
|
declare type CoercedVariableValues = {
|
|
7
8
|
errors: Array<GraphQLError>;
|
|
8
9
|
coerced?: never;
|
|
@@ -52,9 +53,9 @@ export declare function getArgumentValues(resolvers: Resolvers, node: FieldNode
|
|
|
52
53
|
* exposed to user code. Care should be taken to not pull values from the
|
|
53
54
|
* Object prototype.
|
|
54
55
|
*/
|
|
55
|
-
export declare function getDirectiveValues(
|
|
56
|
-
directives?:
|
|
57
|
-
}, variableValues?: Maybe<ObjMap<unknown>>): undefined | {
|
|
56
|
+
export declare function getDirectiveValues(directiveDef: GraphQLDirective, node: {
|
|
57
|
+
directives?: ReadonlyArray<DirectiveNode>;
|
|
58
|
+
}, resolvers: Resolvers, variableValues?: Maybe<ObjMap<unknown>>): undefined | {
|
|
58
59
|
[argument: string]: unknown;
|
|
59
60
|
};
|
|
60
61
|
export declare const specifiedScalars: {
|
package/lib/values.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"values.d.ts","sourceRoot":"","sources":["../src/values.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAMZ,iBAAiB,EAYlB,MAAM,SAAS,CAAC;AACjB,OAAO,EAEL,aAAa,EACb,SAAS,EAET,sBAAsB,EACvB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"values.d.ts","sourceRoot":"","sources":["../src/values.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAMZ,iBAAiB,EAYlB,MAAM,SAAS,CAAC;AACjB,OAAO,EAEL,aAAa,EACb,SAAS,EAET,sBAAsB,EACvB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,aAAK,qBAAqB,GACtB;IAAE,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAAC,OAAO,CAAC,EAAE,KAAK,CAAA;CAAE,GAChD;IAAE,OAAO,EAAE;QAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAAC,MAAM,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAEjE;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,aAAa,CAAC,sBAAsB,CAAC,EAClD,MAAM,EAAE;IAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,EACvC,OAAO,CAAC,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GAC/B,qBAAqB,CA0BvB;AAmFD;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,SAAS,GAAG,aAAa,EAC/B,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,GACtC;IAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAmEjC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAChC,YAAY,EAAE,gBAAgB,EAC9B,IAAI,EAAE;IAAE,UAAU,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC,CAAA;CAAE,EACnD,SAAS,EAAE,SAAS,EACpB,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,GACtC,SAAS,GAAG;IAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAS7C;AAMD,eAAO,MAAM,gBAAgB,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,iBAAiB,CAAA;CAMhE,CAAC"}
|
package/lib/values.js
CHANGED
|
@@ -119,8 +119,12 @@ function getArgumentValues(resolvers, node, variableValues) {
|
|
|
119
119
|
}
|
|
120
120
|
return coercedValues;
|
|
121
121
|
}
|
|
122
|
-
function getDirectiveValues(
|
|
123
|
-
|
|
122
|
+
function getDirectiveValues(directiveDef, node, resolvers, variableValues) {
|
|
123
|
+
var _a;
|
|
124
|
+
const directiveNode = (_a = node.directives) == null ? void 0 : _a.find((directive) => directive.name.value === directiveDef.name);
|
|
125
|
+
if (directiveNode) {
|
|
126
|
+
return getArgumentValues(resolvers, directiveNode, variableValues);
|
|
127
|
+
}
|
|
124
128
|
}
|
|
125
129
|
function hasOwnProperty(obj, prop) {
|
|
126
130
|
return Object.prototype.hasOwnProperty.call(obj, prop);
|
package/lib/values.mjs
CHANGED
|
@@ -106,8 +106,12 @@ function getArgumentValues(resolvers, node, variableValues) {
|
|
|
106
106
|
}
|
|
107
107
|
return coercedValues;
|
|
108
108
|
}
|
|
109
|
-
function getDirectiveValues(
|
|
110
|
-
|
|
109
|
+
function getDirectiveValues(directiveDef, node, resolvers, variableValues) {
|
|
110
|
+
var _a;
|
|
111
|
+
const directiveNode = (_a = node.directives) == null ? void 0 : _a.find((directive) => directive.name.value === directiveDef.name);
|
|
112
|
+
if (directiveNode) {
|
|
113
|
+
return getArgumentValues(resolvers, directiveNode, variableValues);
|
|
114
|
+
}
|
|
111
115
|
}
|
|
112
116
|
function hasOwnProperty(obj, prop) {
|
|
113
117
|
return Object.prototype.hasOwnProperty.call(obj, prop);
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphitation/supermassive",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.1",
|
|
5
5
|
"bin": {
|
|
6
6
|
"supermassive": "./bin/supermassive.js"
|
|
7
7
|
},
|
|
8
|
-
"main": "./lib/index
|
|
8
|
+
"main": "./lib/index",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://github.com/microsoft/graphitation.git",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@graphitation/graphql-js-tag": "*",
|
|
24
|
+
"@graphql-tools/schema": "^7.1.5",
|
|
24
25
|
"@ts-morph/bootstrap": "^0.11.0",
|
|
25
26
|
"@types/benchmark": "^2.1.0",
|
|
26
27
|
"@types/jest": "^26.0.22",
|
|
@@ -36,7 +37,6 @@
|
|
|
36
37
|
"access": "public",
|
|
37
38
|
"publishConfig": {},
|
|
38
39
|
"dependencies": {
|
|
39
|
-
"@graphql-tools/schema": "^7.1.5",
|
|
40
40
|
"commander": "^8.3.0",
|
|
41
41
|
"graphql": "^15.6.1",
|
|
42
42
|
"typescript": "^4.4.3"
|