@graphitation/supermassive 1.1.0 → 1.1.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 CHANGED
@@ -1 +1 @@
1
- [{"/mnt/vss/_work/1/s/packages/supermassive/src/__tests__/execute.test.ts":"1","/mnt/vss/_work/1/s/packages/supermassive/src/__tests__/extractImplicitTypes.test.ts":"2","/mnt/vss/_work/1/s/packages/supermassive/src/__tests__/subscribe.test.ts":"3","/mnt/vss/_work/1/s/packages/supermassive/src/ast/TypedAST.ts":"4","/mnt/vss/_work/1/s/packages/supermassive/src/ast/__tests__/addTypesToRequestDocument.test.ts":"5","/mnt/vss/_work/1/s/packages/supermassive/src/ast/addTypesToRequestDocument.ts":"6","/mnt/vss/_work/1/s/packages/supermassive/src/benchmarks/index.ts":"7","/mnt/vss/_work/1/s/packages/supermassive/src/benchmarks/nice-benchmark.ts":"8","/mnt/vss/_work/1/s/packages/supermassive/src/benchmarks/swapi-schema/index.ts":"9","/mnt/vss/_work/1/s/packages/supermassive/src/benchmarks/swapi-schema/models.ts":"10","/mnt/vss/_work/1/s/packages/supermassive/src/benchmarks/swapi-schema/resolvers.ts":"11","/mnt/vss/_work/1/s/packages/supermassive/src/bin/__tests__/typeDefsToImplicitResolvers.test.ts":"12","/mnt/vss/_work/1/s/packages/supermassive/src/bin/supermassive.ts":"13","/mnt/vss/_work/1/s/packages/supermassive/src/codegen/__tests__/index.test.ts":"14","/mnt/vss/_work/1/s/packages/supermassive/src/codegen/context/__tests__/import.test.ts":"15","/mnt/vss/_work/1/s/packages/supermassive/src/codegen/context/expect.ts":"16","/mnt/vss/_work/1/s/packages/supermassive/src/codegen/context/import.ts":"17","/mnt/vss/_work/1/s/packages/supermassive/src/codegen/context/index.ts":"18","/mnt/vss/_work/1/s/packages/supermassive/src/codegen/context/model.ts":"19","/mnt/vss/_work/1/s/packages/supermassive/src/codegen/context/utilities.ts":"20","/mnt/vss/_work/1/s/packages/supermassive/src/codegen/index.ts":"21","/mnt/vss/_work/1/s/packages/supermassive/src/codegen/models.ts":"22","/mnt/vss/_work/1/s/packages/supermassive/src/codegen/resolvers.ts":"23","/mnt/vss/_work/1/s/packages/supermassive/src/codegen/typedVisitor.ts":"24","/mnt/vss/_work/1/s/packages/supermassive/src/codegen/types.ts":"25","/mnt/vss/_work/1/s/packages/supermassive/src/codegen/utilities.ts":"26","/mnt/vss/_work/1/s/packages/supermassive/src/collectFields.ts":"27","/mnt/vss/_work/1/s/packages/supermassive/src/compiledQuery.ts":"28","/mnt/vss/_work/1/s/packages/supermassive/src/definition.ts":"29","/mnt/vss/_work/1/s/packages/supermassive/src/directives.ts":"30","/mnt/vss/_work/1/s/packages/supermassive/src/executeWithSchema.ts":"31","/mnt/vss/_work/1/s/packages/supermassive/src/executeWithoutSchema.ts":"32","/mnt/vss/_work/1/s/packages/supermassive/src/extractImplicitTypesRuntime.ts":"33","/mnt/vss/_work/1/s/packages/supermassive/src/extractors/extractImplicitTypesToTypescript.ts":"34","/mnt/vss/_work/1/s/packages/supermassive/src/extractors/index.ts":"35","/mnt/vss/_work/1/s/packages/supermassive/src/index.ts":"36","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/Maybe.ts":"37","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/ObjMap.ts":"38","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/Path.ts":"39","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/PromiseOrValue.ts":"40","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/devAssert.ts":"41","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/didYouMean.ts":"42","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/identityFunc.ts":"43","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/inspect.ts":"44","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/instanceOf.ts":"45","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/invariant.ts":"46","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/isAsyncIterable.ts":"47","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/isIterableObject.ts":"48","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/isObjectLike.ts":"49","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/isPromise.ts":"50","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/keyMap.ts":"51","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/keyValMap.ts":"52","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/mapValue.ts":"53","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/memoize3.ts":"54","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/naturalCompare.ts":"55","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/printPathArray.ts":"56","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/promiseForObject.ts":"57","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/promiseReduce.ts":"58","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/suggestionList.ts":"59","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/toObjMap.ts":"60","/mnt/vss/_work/1/s/packages/supermassive/src/subscribeWithSchema.ts":"61","/mnt/vss/_work/1/s/packages/supermassive/src/subscribeWithoutSchema.ts":"62","/mnt/vss/_work/1/s/packages/supermassive/src/transforms/annotateDocumentGraphQLTransform.ts":"63","/mnt/vss/_work/1/s/packages/supermassive/src/transforms/transformerTestUtils.ts":"64","/mnt/vss/_work/1/s/packages/supermassive/src/types.ts":"65","/mnt/vss/_work/1/s/packages/supermassive/src/utilities/blankGraphQLTag.ts":"66","/mnt/vss/_work/1/s/packages/supermassive/src/utilities/mapAsyncIterator.ts":"67","/mnt/vss/_work/1/s/packages/supermassive/src/utilities/mergeResolvers.ts":"68","/mnt/vss/_work/1/s/packages/supermassive/src/utilities/typeNameFromAST.ts":"69","/mnt/vss/_work/1/s/packages/supermassive/src/values.ts":"70"},{"size":6041,"mtime":1664527807405,"results":"71","hashOfConfig":"72"},{"size":1603,"mtime":1664527807405,"results":"73","hashOfConfig":"72"},{"size":6845,"mtime":1664527807405,"results":"74","hashOfConfig":"72"},{"size":14345,"mtime":1664527807405,"results":"75","hashOfConfig":"72"},{"size":5297,"mtime":1664527807405,"results":"76","hashOfConfig":"72"},{"size":2189,"mtime":1664527807405,"results":"77","hashOfConfig":"72"},{"size":3662,"mtime":1664527807405,"results":"78","hashOfConfig":"72"},{"size":712,"mtime":1664527807405,"results":"79","hashOfConfig":"72"},{"size":382,"mtime":1664527807405,"results":"80","hashOfConfig":"72"},{"size":128,"mtime":1664527807405,"results":"81","hashOfConfig":"72"},{"size":10233,"mtime":1664527807405,"results":"82","hashOfConfig":"72"},{"size":848,"mtime":1664527807405,"results":"83","hashOfConfig":"72"},{"size":4391,"mtime":1664527807405,"results":"84","hashOfConfig":"72"},{"size":30189,"mtime":1664527807405,"results":"85","hashOfConfig":"72"},{"size":4728,"mtime":1664527807405,"results":"86","hashOfConfig":"72"},{"size":1448,"mtime":1664527807405,"results":"87","hashOfConfig":"72"},{"size":1563,"mtime":1664527807405,"results":"88","hashOfConfig":"72"},{"size":10419,"mtime":1664527807405,"results":"89","hashOfConfig":"72"},{"size":1974,"mtime":1664527807405,"results":"90","hashOfConfig":"72"},{"size":629,"mtime":1664527807405,"results":"91","hashOfConfig":"72"},{"size":748,"mtime":1664527807405,"results":"92","hashOfConfig":"72"},{"size":7825,"mtime":1664527807405,"results":"93","hashOfConfig":"72"},{"size":8027,"mtime":1664527807405,"results":"94","hashOfConfig":"72"},{"size":2908,"mtime":1664527807405,"results":"95","hashOfConfig":"72"},{"size":380,"mtime":1664527807405,"results":"96","hashOfConfig":"72"},{"size":7596,"mtime":1664527807405,"results":"97","hashOfConfig":"72"},{"size":5387,"mtime":1664527807405,"results":"98","hashOfConfig":"72"},{"size":3431,"mtime":1664527807405,"results":"99","hashOfConfig":"72"},{"size":1649,"mtime":1664527807405,"results":"100","hashOfConfig":"72"},{"size":6589,"mtime":1664527807405,"results":"101","hashOfConfig":"72"},{"size":1230,"mtime":1664527807405,"results":"102","hashOfConfig":"72"},{"size":28220,"mtime":1664527807409,"results":"103","hashOfConfig":"72"},{"size":4918,"mtime":1664527807409,"results":"104","hashOfConfig":"72"},{"size":14787,"mtime":1664527807409,"results":"105","hashOfConfig":"72"},{"size":87,"mtime":1664527807409,"results":"106","hashOfConfig":"72"},{"size":1881,"mtime":1664527807409,"results":"107","hashOfConfig":"72"},{"size":134,"mtime":1664527807409,"results":"108","hashOfConfig":"72"},{"size":277,"mtime":1664527807409,"results":"109","hashOfConfig":"72"},{"size":711,"mtime":1664527807409,"results":"110","hashOfConfig":"72"},{"size":48,"mtime":1664527807409,"results":"111","hashOfConfig":"72"},{"size":269,"mtime":1664527807409,"results":"112","hashOfConfig":"72"},{"size":1038,"mtime":1664527807409,"results":"113","hashOfConfig":"72"},{"size":108,"mtime":1664527807409,"results":"114","hashOfConfig":"72"},{"size":2797,"mtime":1664527807409,"results":"115","hashOfConfig":"72"},{"size":2294,"mtime":1664527807409,"results":"116","hashOfConfig":"72"},{"size":357,"mtime":1664527807409,"results":"117","hashOfConfig":"72"},{"size":325,"mtime":1664527807409,"results":"118","hashOfConfig":"72"},{"size":778,"mtime":1664527807409,"results":"119","hashOfConfig":"72"},{"size":278,"mtime":1664527807409,"results":"120","hashOfConfig":"72"},{"size":227,"mtime":1664527807409,"results":"121","hashOfConfig":"72"},{"size":921,"mtime":1664527807409,"results":"122","hashOfConfig":"72"},{"size":764,"mtime":1664527807409,"results":"123","hashOfConfig":"72"},{"size":441,"mtime":1664527807409,"results":"124","hashOfConfig":"72"},{"size":821,"mtime":1664527807409,"results":"125","hashOfConfig":"72"},{"size":1314,"mtime":1664527807409,"results":"126","hashOfConfig":"72"},{"size":253,"mtime":1664527807409,"results":"127","hashOfConfig":"72"},{"size":650,"mtime":1664527807409,"results":"128","hashOfConfig":"72"},{"size":803,"mtime":1664527807409,"results":"129","hashOfConfig":"72"},{"size":3938,"mtime":1664527807409,"results":"130","hashOfConfig":"72"},{"size":503,"mtime":1664527807409,"results":"131","hashOfConfig":"72"},{"size":1280,"mtime":1664527807409,"results":"132","hashOfConfig":"72"},{"size":9122,"mtime":1664527807409,"results":"133","hashOfConfig":"72"},{"size":495,"mtime":1664527807409,"results":"134","hashOfConfig":"72"},{"size":6652,"mtime":1664527807409,"results":"135","hashOfConfig":"72"},{"size":4576,"mtime":1664527807409,"results":"136","hashOfConfig":"72"},{"size":104,"mtime":1664527807409,"results":"137","hashOfConfig":"72"},{"size":1815,"mtime":1664527807409,"results":"138","hashOfConfig":"72"},{"size":735,"mtime":1664527807409,"results":"139","hashOfConfig":"72"},{"size":308,"mtime":1664527807409,"results":"140","hashOfConfig":"72"},{"size":9318,"mtime":1664527807409,"results":"141","hashOfConfig":"72"},{"filePath":"142","messages":"143","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"r3n4ti",{"filePath":"144","messages":"145","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"146","messages":"147","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"148","messages":"149","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"150","messages":"151","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"152","messages":"153","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"154","messages":"155","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"156","messages":"157","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"158","messages":"159","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"160","messages":"161","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"162","messages":"163","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"164","messages":"165","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"166","messages":"167","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"168","messages":"169","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"170","messages":"171","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"172","messages":"173","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"174","messages":"175","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"176","messages":"177","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"178","messages":"179","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"180","messages":"181","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"182","messages":"183","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"184","messages":"185","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"186","messages":"187","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"188","messages":"189","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"190","messages":"191","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"192","messages":"193","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"194","messages":"195","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"196","messages":"197","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"198","messages":"199","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"200","messages":"201","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"202","messages":"203","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"204","messages":"205","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"206","messages":"207","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"208","messages":"209","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"210","messages":"211","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"212","messages":"213","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"214","messages":"215","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"216","messages":"217","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"218","messages":"219","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"220","messages":"221","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"222","messages":"223","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"224","messages":"225","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"226","messages":"227","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"228","messages":"229","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"230","messages":"231","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"232","messages":"233","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"234","messages":"235","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"236","messages":"237","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"238","messages":"239","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"240","messages":"241","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"242","messages":"243","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"244","messages":"245","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"246","messages":"247","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"248","messages":"249","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"250","messages":"251","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"252","messages":"253","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"254","messages":"255","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"256","messages":"257","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"258","messages":"259","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"260","messages":"261","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"262","messages":"263","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"264","messages":"265","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"266","messages":"267","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"268","messages":"269","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"270","messages":"271","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"272","messages":"273","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"274","messages":"275","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"276","messages":"277","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"278","messages":"279","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"280","messages":"281","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/mnt/vss/_work/1/s/packages/supermassive/src/__tests__/execute.test.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/__tests__/extractImplicitTypes.test.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/__tests__/subscribe.test.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/ast/TypedAST.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/ast/__tests__/addTypesToRequestDocument.test.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/ast/addTypesToRequestDocument.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/benchmarks/index.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/benchmarks/nice-benchmark.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/benchmarks/swapi-schema/index.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/benchmarks/swapi-schema/models.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/benchmarks/swapi-schema/resolvers.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/bin/__tests__/typeDefsToImplicitResolvers.test.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/bin/supermassive.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/codegen/__tests__/index.test.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/codegen/context/__tests__/import.test.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/codegen/context/expect.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/codegen/context/import.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/codegen/context/index.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/codegen/context/model.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/codegen/context/utilities.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/codegen/index.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/codegen/models.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/codegen/resolvers.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/codegen/typedVisitor.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/codegen/types.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/codegen/utilities.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/collectFields.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/compiledQuery.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/definition.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/directives.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/executeWithSchema.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/executeWithoutSchema.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/extractImplicitTypesRuntime.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/extractors/extractImplicitTypesToTypescript.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/extractors/index.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/index.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/Maybe.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/ObjMap.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/Path.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/PromiseOrValue.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/devAssert.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/didYouMean.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/identityFunc.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/inspect.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/instanceOf.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/invariant.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/isAsyncIterable.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/isIterableObject.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/isObjectLike.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/isPromise.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/keyMap.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/keyValMap.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/mapValue.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/memoize3.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/naturalCompare.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/printPathArray.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/promiseForObject.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/promiseReduce.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/suggestionList.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/toObjMap.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/subscribeWithSchema.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/subscribeWithoutSchema.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/transforms/annotateDocumentGraphQLTransform.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/transforms/transformerTestUtils.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/types.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/utilities/blankGraphQLTag.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/utilities/mapAsyncIterator.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/utilities/mergeResolvers.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/utilities/typeNameFromAST.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/values.ts",[]]
1
+ [{"/mnt/vss/_work/1/s/packages/supermassive/src/__tests__/execute.test.ts":"1","/mnt/vss/_work/1/s/packages/supermassive/src/__tests__/extractImplicitTypes.test.ts":"2","/mnt/vss/_work/1/s/packages/supermassive/src/__tests__/subscribe.test.ts":"3","/mnt/vss/_work/1/s/packages/supermassive/src/ast/TypedAST.ts":"4","/mnt/vss/_work/1/s/packages/supermassive/src/ast/__tests__/addTypesToRequestDocument.test.ts":"5","/mnt/vss/_work/1/s/packages/supermassive/src/ast/addTypesToRequestDocument.ts":"6","/mnt/vss/_work/1/s/packages/supermassive/src/benchmarks/index.ts":"7","/mnt/vss/_work/1/s/packages/supermassive/src/benchmarks/nice-benchmark.ts":"8","/mnt/vss/_work/1/s/packages/supermassive/src/benchmarks/swapi-schema/index.ts":"9","/mnt/vss/_work/1/s/packages/supermassive/src/benchmarks/swapi-schema/models.ts":"10","/mnt/vss/_work/1/s/packages/supermassive/src/benchmarks/swapi-schema/resolvers.ts":"11","/mnt/vss/_work/1/s/packages/supermassive/src/bin/__tests__/typeDefsToImplicitResolvers.test.ts":"12","/mnt/vss/_work/1/s/packages/supermassive/src/bin/supermassive.ts":"13","/mnt/vss/_work/1/s/packages/supermassive/src/codegen/__tests__/index.test.ts":"14","/mnt/vss/_work/1/s/packages/supermassive/src/codegen/context/__tests__/import.test.ts":"15","/mnt/vss/_work/1/s/packages/supermassive/src/codegen/context/expect.ts":"16","/mnt/vss/_work/1/s/packages/supermassive/src/codegen/context/import.ts":"17","/mnt/vss/_work/1/s/packages/supermassive/src/codegen/context/index.ts":"18","/mnt/vss/_work/1/s/packages/supermassive/src/codegen/context/model.ts":"19","/mnt/vss/_work/1/s/packages/supermassive/src/codegen/context/utilities.ts":"20","/mnt/vss/_work/1/s/packages/supermassive/src/codegen/index.ts":"21","/mnt/vss/_work/1/s/packages/supermassive/src/codegen/models.ts":"22","/mnt/vss/_work/1/s/packages/supermassive/src/codegen/resolvers.ts":"23","/mnt/vss/_work/1/s/packages/supermassive/src/codegen/typedVisitor.ts":"24","/mnt/vss/_work/1/s/packages/supermassive/src/codegen/types.ts":"25","/mnt/vss/_work/1/s/packages/supermassive/src/codegen/utilities.ts":"26","/mnt/vss/_work/1/s/packages/supermassive/src/collectFields.ts":"27","/mnt/vss/_work/1/s/packages/supermassive/src/compiledQuery.ts":"28","/mnt/vss/_work/1/s/packages/supermassive/src/definition.ts":"29","/mnt/vss/_work/1/s/packages/supermassive/src/directives.ts":"30","/mnt/vss/_work/1/s/packages/supermassive/src/executeWithSchema.ts":"31","/mnt/vss/_work/1/s/packages/supermassive/src/executeWithoutSchema.ts":"32","/mnt/vss/_work/1/s/packages/supermassive/src/extractImplicitTypesRuntime.ts":"33","/mnt/vss/_work/1/s/packages/supermassive/src/extractors/extractImplicitTypesToTypescript.ts":"34","/mnt/vss/_work/1/s/packages/supermassive/src/extractors/index.ts":"35","/mnt/vss/_work/1/s/packages/supermassive/src/index.ts":"36","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/Maybe.ts":"37","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/ObjMap.ts":"38","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/Path.ts":"39","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/PromiseOrValue.ts":"40","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/devAssert.ts":"41","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/didYouMean.ts":"42","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/identityFunc.ts":"43","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/inspect.ts":"44","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/instanceOf.ts":"45","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/invariant.ts":"46","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/isAsyncIterable.ts":"47","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/isIterableObject.ts":"48","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/isObjectLike.ts":"49","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/isPromise.ts":"50","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/keyMap.ts":"51","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/keyValMap.ts":"52","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/mapValue.ts":"53","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/memoize3.ts":"54","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/naturalCompare.ts":"55","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/printPathArray.ts":"56","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/promiseForObject.ts":"57","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/promiseReduce.ts":"58","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/suggestionList.ts":"59","/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/toObjMap.ts":"60","/mnt/vss/_work/1/s/packages/supermassive/src/subscribeWithSchema.ts":"61","/mnt/vss/_work/1/s/packages/supermassive/src/subscribeWithoutSchema.ts":"62","/mnt/vss/_work/1/s/packages/supermassive/src/transforms/annotateDocumentGraphQLTransform.ts":"63","/mnt/vss/_work/1/s/packages/supermassive/src/transforms/transformerTestUtils.ts":"64","/mnt/vss/_work/1/s/packages/supermassive/src/types.ts":"65","/mnt/vss/_work/1/s/packages/supermassive/src/utilities/blankGraphQLTag.ts":"66","/mnt/vss/_work/1/s/packages/supermassive/src/utilities/mapAsyncIterator.ts":"67","/mnt/vss/_work/1/s/packages/supermassive/src/utilities/mergeResolvers.ts":"68","/mnt/vss/_work/1/s/packages/supermassive/src/utilities/typeNameFromAST.ts":"69","/mnt/vss/_work/1/s/packages/supermassive/src/values.ts":"70"},{"size":6041,"mtime":1664988174638,"results":"71","hashOfConfig":"72"},{"size":1603,"mtime":1664988174638,"results":"73","hashOfConfig":"72"},{"size":6845,"mtime":1664988174638,"results":"74","hashOfConfig":"72"},{"size":14345,"mtime":1664988174638,"results":"75","hashOfConfig":"72"},{"size":5297,"mtime":1664988174638,"results":"76","hashOfConfig":"72"},{"size":2189,"mtime":1664988174638,"results":"77","hashOfConfig":"72"},{"size":3662,"mtime":1664988174638,"results":"78","hashOfConfig":"72"},{"size":712,"mtime":1664988174638,"results":"79","hashOfConfig":"72"},{"size":382,"mtime":1664988174638,"results":"80","hashOfConfig":"72"},{"size":128,"mtime":1664988174638,"results":"81","hashOfConfig":"72"},{"size":10233,"mtime":1664988174638,"results":"82","hashOfConfig":"72"},{"size":848,"mtime":1664988174642,"results":"83","hashOfConfig":"72"},{"size":4391,"mtime":1664988174642,"results":"84","hashOfConfig":"72"},{"size":37082,"mtime":1664988174642,"results":"85","hashOfConfig":"72"},{"size":4728,"mtime":1664988174642,"results":"86","hashOfConfig":"72"},{"size":1448,"mtime":1664988174642,"results":"87","hashOfConfig":"72"},{"size":1563,"mtime":1664988174642,"results":"88","hashOfConfig":"72"},{"size":9890,"mtime":1664988174642,"results":"89","hashOfConfig":"72"},{"size":1870,"mtime":1664988174642,"results":"90","hashOfConfig":"72"},{"size":629,"mtime":1664988174642,"results":"91","hashOfConfig":"72"},{"size":748,"mtime":1664988174642,"results":"92","hashOfConfig":"72"},{"size":8088,"mtime":1664988174642,"results":"93","hashOfConfig":"72"},{"size":7150,"mtime":1664988174642,"results":"94","hashOfConfig":"72"},{"size":2908,"mtime":1664988174642,"results":"95","hashOfConfig":"72"},{"size":380,"mtime":1664988174642,"results":"96","hashOfConfig":"72"},{"size":9977,"mtime":1664988174642,"results":"97","hashOfConfig":"72"},{"size":5387,"mtime":1664988174642,"results":"98","hashOfConfig":"72"},{"size":3431,"mtime":1664988174642,"results":"99","hashOfConfig":"72"},{"size":1649,"mtime":1664988174642,"results":"100","hashOfConfig":"72"},{"size":6589,"mtime":1664988174642,"results":"101","hashOfConfig":"72"},{"size":1230,"mtime":1664988174642,"results":"102","hashOfConfig":"72"},{"size":28220,"mtime":1664988174642,"results":"103","hashOfConfig":"72"},{"size":4918,"mtime":1664988174642,"results":"104","hashOfConfig":"72"},{"size":14787,"mtime":1664988174642,"results":"105","hashOfConfig":"72"},{"size":87,"mtime":1664988174642,"results":"106","hashOfConfig":"72"},{"size":1881,"mtime":1664988174642,"results":"107","hashOfConfig":"72"},{"size":134,"mtime":1664988174642,"results":"108","hashOfConfig":"72"},{"size":277,"mtime":1664988174642,"results":"109","hashOfConfig":"72"},{"size":711,"mtime":1664988174642,"results":"110","hashOfConfig":"72"},{"size":48,"mtime":1664988174642,"results":"111","hashOfConfig":"72"},{"size":269,"mtime":1664988174642,"results":"112","hashOfConfig":"72"},{"size":1038,"mtime":1664988174642,"results":"113","hashOfConfig":"72"},{"size":108,"mtime":1664988174642,"results":"114","hashOfConfig":"72"},{"size":2797,"mtime":1664988174642,"results":"115","hashOfConfig":"72"},{"size":2294,"mtime":1664988174642,"results":"116","hashOfConfig":"72"},{"size":357,"mtime":1664988174642,"results":"117","hashOfConfig":"72"},{"size":325,"mtime":1664988174642,"results":"118","hashOfConfig":"72"},{"size":778,"mtime":1664988174642,"results":"119","hashOfConfig":"72"},{"size":278,"mtime":1664988174642,"results":"120","hashOfConfig":"72"},{"size":227,"mtime":1664988174642,"results":"121","hashOfConfig":"72"},{"size":921,"mtime":1664988174642,"results":"122","hashOfConfig":"72"},{"size":764,"mtime":1664988174642,"results":"123","hashOfConfig":"72"},{"size":441,"mtime":1664988174642,"results":"124","hashOfConfig":"72"},{"size":821,"mtime":1664988174642,"results":"125","hashOfConfig":"72"},{"size":1314,"mtime":1664988174642,"results":"126","hashOfConfig":"72"},{"size":253,"mtime":1664988174642,"results":"127","hashOfConfig":"72"},{"size":650,"mtime":1664988174642,"results":"128","hashOfConfig":"72"},{"size":803,"mtime":1664988174642,"results":"129","hashOfConfig":"72"},{"size":3938,"mtime":1664988174642,"results":"130","hashOfConfig":"72"},{"size":503,"mtime":1664988174642,"results":"131","hashOfConfig":"72"},{"size":1280,"mtime":1664988174642,"results":"132","hashOfConfig":"72"},{"size":9122,"mtime":1664988174642,"results":"133","hashOfConfig":"72"},{"size":495,"mtime":1664988174646,"results":"134","hashOfConfig":"72"},{"size":6652,"mtime":1664988174646,"results":"135","hashOfConfig":"72"},{"size":4576,"mtime":1664988174646,"results":"136","hashOfConfig":"72"},{"size":104,"mtime":1664988174646,"results":"137","hashOfConfig":"72"},{"size":1815,"mtime":1664988174646,"results":"138","hashOfConfig":"72"},{"size":735,"mtime":1664988174646,"results":"139","hashOfConfig":"72"},{"size":308,"mtime":1664988174646,"results":"140","hashOfConfig":"72"},{"size":9318,"mtime":1664988174646,"results":"141","hashOfConfig":"72"},{"filePath":"142","messages":"143","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"ezl7dg",{"filePath":"144","messages":"145","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"146","messages":"147","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"148","messages":"149","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"150","messages":"151","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"152","messages":"153","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"154","messages":"155","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"156","messages":"157","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"158","messages":"159","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"160","messages":"161","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"162","messages":"163","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"164","messages":"165","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"166","messages":"167","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"168","messages":"169","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"170","messages":"171","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"172","messages":"173","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"174","messages":"175","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"176","messages":"177","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"178","messages":"179","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"180","messages":"181","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"182","messages":"183","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"184","messages":"185","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"186","messages":"187","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"188","messages":"189","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"190","messages":"191","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"192","messages":"193","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"194","messages":"195","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"196","messages":"197","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"198","messages":"199","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"200","messages":"201","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"202","messages":"203","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"204","messages":"205","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"206","messages":"207","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"208","messages":"209","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"210","messages":"211","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"212","messages":"213","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"214","messages":"215","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"216","messages":"217","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"218","messages":"219","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"220","messages":"221","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"222","messages":"223","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"224","messages":"225","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"226","messages":"227","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"228","messages":"229","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"230","messages":"231","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"232","messages":"233","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"234","messages":"235","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"236","messages":"237","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"238","messages":"239","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"240","messages":"241","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"242","messages":"243","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"244","messages":"245","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"246","messages":"247","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"248","messages":"249","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"250","messages":"251","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"252","messages":"253","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"254","messages":"255","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"256","messages":"257","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"258","messages":"259","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"260","messages":"261","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"262","messages":"263","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"264","messages":"265","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"266","messages":"267","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"268","messages":"269","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"270","messages":"271","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"272","messages":"273","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"274","messages":"275","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"276","messages":"277","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"278","messages":"279","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"280","messages":"281","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/mnt/vss/_work/1/s/packages/supermassive/src/__tests__/execute.test.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/__tests__/extractImplicitTypes.test.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/__tests__/subscribe.test.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/ast/TypedAST.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/ast/__tests__/addTypesToRequestDocument.test.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/ast/addTypesToRequestDocument.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/benchmarks/index.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/benchmarks/nice-benchmark.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/benchmarks/swapi-schema/index.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/benchmarks/swapi-schema/models.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/benchmarks/swapi-schema/resolvers.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/bin/__tests__/typeDefsToImplicitResolvers.test.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/bin/supermassive.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/codegen/__tests__/index.test.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/codegen/context/__tests__/import.test.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/codegen/context/expect.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/codegen/context/import.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/codegen/context/index.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/codegen/context/model.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/codegen/context/utilities.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/codegen/index.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/codegen/models.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/codegen/resolvers.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/codegen/typedVisitor.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/codegen/types.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/codegen/utilities.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/collectFields.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/compiledQuery.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/definition.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/directives.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/executeWithSchema.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/executeWithoutSchema.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/extractImplicitTypesRuntime.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/extractors/extractImplicitTypesToTypescript.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/extractors/index.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/index.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/Maybe.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/ObjMap.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/Path.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/PromiseOrValue.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/devAssert.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/didYouMean.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/identityFunc.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/inspect.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/instanceOf.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/invariant.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/isAsyncIterable.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/isIterableObject.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/isObjectLike.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/isPromise.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/keyMap.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/keyValMap.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/mapValue.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/memoize3.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/naturalCompare.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/printPathArray.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/promiseForObject.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/promiseReduce.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/suggestionList.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/jsutils/toObjMap.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/subscribeWithSchema.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/subscribeWithoutSchema.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/transforms/annotateDocumentGraphQLTransform.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/transforms/transformerTestUtils.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/types.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/utilities/blankGraphQLTag.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/utilities/mapAsyncIterator.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/utilities/mergeResolvers.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/utilities/typeNameFromAST.ts",[],"/mnt/vss/_work/1/s/packages/supermassive/src/values.ts",[]]
package/CHANGELOG.md CHANGED
@@ -1,12 +1,20 @@
1
1
  # Change Log - @graphitation/supermassive
2
2
 
3
- This log was last generated on Fri, 30 Sep 2022 08:56:05 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 05 Oct 2022 16:48:37 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 1.1.1
8
+
9
+ Wed, 05 Oct 2022 16:48:37 GMT
10
+
11
+ ### Patches
12
+
13
+ - Hotfix: typescript codegen fixes (models and models file path) (jakubvejr@microsoft.com)
14
+
7
15
  ## 1.1.0
8
16
 
9
- Fri, 30 Sep 2022 08:56:05 GMT
17
+ Fri, 30 Sep 2022 08:56:18 GMT
10
18
 
11
19
  ### Minor changes
12
20
 
@@ -52,8 +52,8 @@ var import_extractImplicitTypesToTypescript = require("../extractors/extractImpl
52
52
  var import_graphql = require("graphql");
53
53
  var import_codegen = require("../codegen");
54
54
  var glob = __toESM(require("fast-glob"));
55
- const PREPEND_TO_INTERFACES = `// @ts-nocheck \r
56
- /* eslint-disable */ \r
55
+ const PREPEND_TO_INTERFACES = `/* eslint-disable */ \r
56
+ // @ts-nocheck \r
57
57
  // This file was automatically generated (by @graphitaiton/supermassive) and should not be edited.\r
58
58
  `;
59
59
  function supermassive() {
@@ -29,8 +29,8 @@ import { extractImplicitTypesToTypescript } from "../extractors/extractImplicitT
29
29
  import { parse } from "graphql";
30
30
  import { generateTS } from "../codegen.mjs";
31
31
  import * as glob from "fast-glob";
32
- var PREPEND_TO_INTERFACES = `// @ts-nocheck \r
33
- /* eslint-disable */ \r
32
+ var PREPEND_TO_INTERFACES = `/* eslint-disable */ \r
33
+ // @ts-nocheck \r
34
34
  // This file was automatically generated (by @graphitaiton/supermassive) and should not be edited.\r
35
35
  `;
36
36
  function supermassive() {
@@ -25,19 +25,20 @@ export declare class TsCodegenContext {
25
25
  private typeNameToImports;
26
26
  private typeNameToModels;
27
27
  private allModelNames;
28
- private scalars;
28
+ private allPossibleModels;
29
29
  constructor(options: TsCodegenContextOptions);
30
30
  addImport(imp: DefinitionImport, node: ASTNode): void;
31
+ addPossibleModel(possibleModel: string): void;
31
32
  addModel(model: DefinitionModel, node: ASTNode): void;
32
33
  getAllImportDeclarations(): ts.ImportDeclaration[];
33
34
  getAllModelImportDeclarations(): ts.ImportDeclaration[];
34
- addScalar(scalarName: string | null): void;
35
+ getScalarDeclaration(scalarName: string | null): ts.TypeAliasDeclaration | undefined;
35
36
  getAllResolverImportDeclarations(): ts.ImportDeclaration[];
36
37
  getBaseModelType(): TypeLocation;
37
38
  getContextType(): TypeLocation;
38
39
  getResolveInfoType(): TypeLocation;
39
- getDefaultTypes(): (ts.InterfaceDeclaration | ts.TypeAliasDeclaration)[];
40
- getModelType(typeName: string, putModelSuffix: boolean, saveModels?: boolean, useScalars?: boolean): TypeLocation;
40
+ getDefaultTypes(): ts.InterfaceDeclaration[];
41
+ getModelType(typeName: string, useScalars?: boolean): TypeLocation;
41
42
  getDefinedModelType(typeName: string): TypeLocation | null;
42
43
  }
43
44
  export declare function extractContext(options: Partial<TsCodegenContextOptions>, document: DocumentNode): TsCodegenContext;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/codegen/context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAKZ,OAAO,EACR,MAAM,SAAS,CAAC;AACjB,OAAO,EAIN,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAM7D,oBAAY,uBAAuB,GAAG;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,SAAS,EAAE;QACT,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;KACrB,CAAC;IACF,OAAO,EAAE;QACP,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;KACrB,CAAC;IACF,WAAW,EAAE;QACX,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;KACrB,CAAC;CACH,CAAC;AAIF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAMnD,CAAC;AAsBF,qBAAa,gBAAgB;IAUf,OAAO,CAAC,OAAO;IAT3B,OAAO,CAAC,OAAO,CAAqB;IACpC,OAAO,CAAC,iBAAiB,CAGvB;IACF,OAAO,CAAC,gBAAgB,CAA+B;IACvD,OAAO,CAAC,aAAa,CAAc;IACnC,OAAO,CAAC,OAAO,CAAsB;gBAEjB,OAAO,EAAE,uBAAuB;IAQpD,SAAS,CAAC,GAAG,EAAE,gBAAgB,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI;IAyBrD,QAAQ,CAAC,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI;IAiBrD,wBAAwB,IAAI,EAAE,CAAC,iBAAiB,EAAE;IASlD,6BAA6B,IAAI,EAAE,CAAC,iBAAiB,EAAE;IAmBvD,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAenC,gCAAgC,IAAI,EAAE,CAAC,iBAAiB,EAAE;IAmC1D,gBAAgB,IAAI,YAAY;IAIhC,cAAc,IAAI,YAAY;IAQ9B,kBAAkB,IAAI,YAAY;IAIlC,eAAe;IA6Df,YAAY,CACV,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,OAAO,EACvB,UAAU,UAAQ,EAClB,UAAU,UAAQ,GACjB,YAAY;IAwBf,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI;CAU3D;AAED,wBAAgB,cAAc,CAC5B,OAAO,EAAE,OAAO,CAAC,uBAAuB,CAAC,EACzC,QAAQ,EAAE,YAAY,GACrB,gBAAgB,CAoBlB;AAED,qBAAa,YAAY;IACX,OAAO,CAAC,IAAI;IAAiB,OAAO,CAAC,IAAI;gBAAjC,IAAI,EAAE,MAAM,GAAG,IAAI,EAAU,IAAI,EAAE,MAAM;IAE7D,eAAe,IAAI,EAAE,CAAC,iBAAiB;IAavC,YAAY,IAAI,EAAE,CAAC,UAAU;CAU9B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/codegen/context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAKZ,OAAO,EACR,MAAM,SAAS,CAAC;AACjB,OAAO,EAIN,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAM7D,oBAAY,uBAAuB,GAAG;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,SAAS,EAAE;QACT,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;KACrB,CAAC;IACF,OAAO,EAAE;QACP,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;KACrB,CAAC;IACF,WAAW,EAAE;QACX,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;KACrB,CAAC;CACH,CAAC;AAIF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAMnD,CAAC;AAsBF,qBAAa,gBAAgB;IAUf,OAAO,CAAC,OAAO;IAT3B,OAAO,CAAC,OAAO,CAAqB;IACpC,OAAO,CAAC,iBAAiB,CAGvB;IACF,OAAO,CAAC,gBAAgB,CAA+B;IACvD,OAAO,CAAC,aAAa,CAAc;IACnC,OAAO,CAAC,iBAAiB,CAAc;gBAEnB,OAAO,EAAE,uBAAuB;IAQpD,SAAS,CAAC,GAAG,EAAE,gBAAgB,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI;IAyBrD,gBAAgB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI;IAI7C,QAAQ,CAAC,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI;IAcrD,wBAAwB,IAAI,EAAE,CAAC,iBAAiB,EAAE;IASlD,6BAA6B,IAAI,EAAE,CAAC,iBAAiB,EAAE;IAmBvD,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IA2B9C,gCAAgC,IAAI,EAAE,CAAC,iBAAiB,EAAE;IAmC1D,gBAAgB,IAAI,YAAY;IAIhC,cAAc,IAAI,YAAY;IAQ9B,kBAAkB,IAAI,YAAY;IAIlC,eAAe;IAyBf,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,UAAQ,GAAG,YAAY;IAoBhE,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI;CAQ3D;AAED,wBAAgB,cAAc,CAC5B,OAAO,EAAE,OAAO,CAAC,uBAAuB,CAAC,EACzC,QAAQ,EAAE,YAAY,GACrB,gBAAgB,CA6ClB;AAED,qBAAa,YAAY;IACX,OAAO,CAAC,IAAI;IAAiB,OAAO,CAAC,IAAI;gBAAjC,IAAI,EAAE,MAAM,GAAG,IAAI,EAAU,IAAI,EAAE,MAAM;IAE7D,eAAe,IAAI,EAAE,CAAC,iBAAiB;IAavC,YAAY,IAAI,EAAE,CAAC,UAAU;CAU9B"}
@@ -78,7 +78,7 @@ class TsCodegenContext {
78
78
  this.typeNameToImports = /* @__PURE__ */ new Map();
79
79
  this.typeNameToModels = /* @__PURE__ */ new Map();
80
80
  this.allModelNames = /* @__PURE__ */ new Set();
81
- this.scalars = /* @__PURE__ */ new Map();
81
+ this.allPossibleModels = /* @__PURE__ */ new Set();
82
82
  }
83
83
  addImport(imp, node) {
84
84
  var _a;
@@ -98,14 +98,14 @@ class TsCodegenContext {
98
98
  }
99
99
  this.imports.push(imp);
100
100
  }
101
+ addPossibleModel(possibleModel) {
102
+ this.allPossibleModels.add(possibleModel);
103
+ }
101
104
  addModel(model, node) {
102
105
  const existingModel = this.typeNameToModels.get(model.typeName);
103
106
  if (existingModel) {
104
107
  throw new import_graphql.GraphQLError(`Model for type ${model.typeName} is defined multiple times`, [existingModel.directive, node]);
105
108
  }
106
- if (this.scalars.has(model.typeName) && model.importName) {
107
- return;
108
- }
109
109
  this.typeNameToModels.set(model.typeName, model);
110
110
  }
111
111
  getAllImportDeclarations() {
@@ -121,15 +121,18 @@ class TsCodegenContext {
121
121
  }).filter(Boolean);
122
122
  return imports.concat(models);
123
123
  }
124
- addScalar(scalarName) {
124
+ getScalarDeclaration(scalarName) {
125
125
  if (!scalarName || BUILT_IN_SCALARS.hasOwnProperty(scalarName)) {
126
126
  return;
127
127
  }
128
+ let model;
128
129
  if (this.typeNameToModels.has(scalarName)) {
129
- this.scalars.set(scalarName, this.typeNameToModels.get(scalarName).modelName);
130
- return;
130
+ const { from, modelName, tsType } = this.typeNameToModels.get(scalarName);
131
+ model = from ? modelName : tsType;
132
+ } else {
133
+ model = DEFAULT_SCALAR_TYPE;
131
134
  }
132
- this.scalars.set(scalarName, DEFAULT_SCALAR_TYPE);
135
+ return import_typescript.factory.createTypeAliasDeclaration(void 0, [import_typescript.factory.createModifier(import_typescript.default.SyntaxKind.ExportKeyword)], import_typescript.factory.createIdentifier((0, import_utilities2.addModelSuffix)(scalarName)), void 0, import_typescript.factory.createTypeReferenceNode(import_typescript.factory.createIdentifier(model), void 0));
133
136
  }
134
137
  getAllResolverImportDeclarations() {
135
138
  const imports = [];
@@ -140,7 +143,7 @@ class TsCodegenContext {
140
143
  if (this.options.context.from && this.options.context.name) {
141
144
  imports.push((0, import_utilities.createImportDeclaration)([this.options.context.name], this.options.context.from));
142
145
  }
143
- imports.push((0, import_utilities.createImportDeclaration)(Array.from(this.allModelNames), "./models.interface.ts"));
146
+ imports.push((0, import_utilities.createImportDeclaration)(Array.from(this.allModelNames), "./models.interface"));
144
147
  imports.push(...this.getAllImportDeclarations());
145
148
  return imports;
146
149
  }
@@ -157,34 +160,25 @@ class TsCodegenContext {
157
160
  return [
158
161
  (0, import_typescript.addSyntheticLeadingComment)(import_typescript.factory.createInterfaceDeclaration(void 0, [import_typescript.factory.createModifier(import_typescript.default.SyntaxKind.ExportKeyword)], import_typescript.factory.createIdentifier("BaseModel"), void 0, void 0, [
159
162
  import_typescript.factory.createPropertySignature(void 0, import_typescript.factory.createIdentifier("__typename"), void 0, import_typescript.factory.createKeywordTypeNode(import_typescript.default.SyntaxKind.StringKeyword))
160
- ]), import_typescript.SyntaxKind.SingleLineCommentTrivia, " Base type for all models. Enables automatic resolution of abstract GraphQL types (interfaces, unions)", true),
161
- ...Array.from(this.scalars).map(([key, value]) => import_typescript.factory.createTypeAliasDeclaration(void 0, [import_typescript.factory.createModifier(import_typescript.default.SyntaxKind.ExportKeyword)], import_typescript.factory.createIdentifier(key), void 0, import_typescript.factory.createTypeReferenceNode(import_typescript.factory.createIdentifier(value), void 0))),
162
- ...Array.from(this.scalars).filter(([key]) => {
163
- return this.typeNameToModels.has(key) && !this.typeNameToModels.get(key).importName;
164
- }).map(([key]) => import_typescript.factory.createTypeAliasDeclaration(void 0, [import_typescript.factory.createModifier(import_typescript.default.SyntaxKind.ExportKeyword)], import_typescript.factory.createIdentifier(this.typeNameToModels.get(key).modelName), void 0, import_typescript.factory.createTypeReferenceNode(import_typescript.factory.createIdentifier(this.typeNameToModels.get(key).tsType), void 0)))
163
+ ]), import_typescript.SyntaxKind.SingleLineCommentTrivia, " Base type for all models. Enables automatic resolution of abstract GraphQL types (interfaces, unions)", true)
165
164
  ];
166
165
  }
167
- getModelType(typeName, putModelSuffix, saveModels = false, useScalars = false) {
168
- if (this.scalars.has(typeName)) {
169
- this.allModelNames.add(typeName);
170
- return new TypeLocation(null, useScalars ? typeName : this.scalars.get(typeName));
171
- } else if (BUILT_IN_SCALARS.hasOwnProperty(typeName)) {
166
+ getModelType(typeName, useScalars = false) {
167
+ if (BUILT_IN_SCALARS.hasOwnProperty(typeName)) {
172
168
  return new TypeLocation(null, BUILT_IN_SCALARS[typeName]);
173
169
  } else if (this.typeNameToImports.has(typeName)) {
174
170
  let { modelName } = this.typeNameToImports.get(typeName);
175
171
  return new TypeLocation(null, modelName);
176
172
  } else {
177
- const modelName = putModelSuffix ? (0, import_utilities2.addModelSuffix)(typeName) : typeName;
178
- if (saveModels) {
173
+ const modelName = this.allPossibleModels.has(typeName) ? (0, import_utilities2.addModelSuffix)(typeName) : typeName;
174
+ if (this.allPossibleModels.has(typeName)) {
179
175
  this.allModelNames.add(modelName);
180
176
  }
181
177
  return new TypeLocation(null, modelName);
182
178
  }
183
179
  }
184
180
  getDefinedModelType(typeName) {
185
- if (this.scalars.has(typeName)) {
186
- return new TypeLocation(null, typeName);
187
- } else if (this.typeNameToModels.has(typeName)) {
181
+ if (this.typeNameToModels.has(typeName)) {
188
182
  let imp = this.typeNameToModels.get(typeName);
189
183
  return new TypeLocation(null, imp.modelName);
190
184
  } else {
@@ -204,6 +198,31 @@ function extractContext(options, document) {
204
198
  context.addModel((0, import_model.processModelDirective)(node, ancestors), node);
205
199
  }
206
200
  }
201
+ },
202
+ EnumTypeDefinition: {
203
+ enter(node) {
204
+ context.addPossibleModel(node.name.value);
205
+ }
206
+ },
207
+ ObjectTypeDefinition: {
208
+ enter(node) {
209
+ context.addPossibleModel(node.name.value);
210
+ }
211
+ },
212
+ UnionTypeDefinition: {
213
+ enter(node) {
214
+ context.addPossibleModel(node.name.value);
215
+ }
216
+ },
217
+ ScalarTypeDefinition: {
218
+ enter(node) {
219
+ context.addPossibleModel(node.name.value);
220
+ }
221
+ },
222
+ InterfaceTypeDefinition: {
223
+ enter(node) {
224
+ context.addPossibleModel(node.name.value);
225
+ }
207
226
  }
208
227
  });
209
228
  return context;
@@ -61,7 +61,7 @@ var TsCodegenContext = class {
61
61
  this.typeNameToImports = /* @__PURE__ */ new Map();
62
62
  this.typeNameToModels = /* @__PURE__ */ new Map();
63
63
  this.allModelNames = /* @__PURE__ */ new Set();
64
- this.scalars = /* @__PURE__ */ new Map();
64
+ this.allPossibleModels = /* @__PURE__ */ new Set();
65
65
  }
66
66
  addImport(imp, node) {
67
67
  var _a;
@@ -81,14 +81,14 @@ var TsCodegenContext = class {
81
81
  }
82
82
  this.imports.push(imp);
83
83
  }
84
+ addPossibleModel(possibleModel) {
85
+ this.allPossibleModels.add(possibleModel);
86
+ }
84
87
  addModel(model, node) {
85
88
  const existingModel = this.typeNameToModels.get(model.typeName);
86
89
  if (existingModel) {
87
90
  throw new GraphQLError(`Model for type ${model.typeName} is defined multiple times`, [existingModel.directive, node]);
88
91
  }
89
- if (this.scalars.has(model.typeName) && model.importName) {
90
- return;
91
- }
92
92
  this.typeNameToModels.set(model.typeName, model);
93
93
  }
94
94
  getAllImportDeclarations() {
@@ -104,15 +104,18 @@ var TsCodegenContext = class {
104
104
  }).filter(Boolean);
105
105
  return imports.concat(models);
106
106
  }
107
- addScalar(scalarName) {
107
+ getScalarDeclaration(scalarName) {
108
108
  if (!scalarName || BUILT_IN_SCALARS.hasOwnProperty(scalarName)) {
109
109
  return;
110
110
  }
111
+ let model;
111
112
  if (this.typeNameToModels.has(scalarName)) {
112
- this.scalars.set(scalarName, this.typeNameToModels.get(scalarName).modelName);
113
- return;
113
+ const { from, modelName, tsType } = this.typeNameToModels.get(scalarName);
114
+ model = from ? modelName : tsType;
115
+ } else {
116
+ model = DEFAULT_SCALAR_TYPE;
114
117
  }
115
- this.scalars.set(scalarName, DEFAULT_SCALAR_TYPE);
118
+ return factory.createTypeAliasDeclaration(void 0, [factory.createModifier(ts.SyntaxKind.ExportKeyword)], factory.createIdentifier(addModelSuffix(scalarName)), void 0, factory.createTypeReferenceNode(factory.createIdentifier(model), void 0));
116
119
  }
117
120
  getAllResolverImportDeclarations() {
118
121
  const imports = [];
@@ -123,7 +126,7 @@ var TsCodegenContext = class {
123
126
  if (this.options.context.from && this.options.context.name) {
124
127
  imports.push(createImportDeclaration([this.options.context.name], this.options.context.from));
125
128
  }
126
- imports.push(createImportDeclaration(Array.from(this.allModelNames), "./models.interface.ts"));
129
+ imports.push(createImportDeclaration(Array.from(this.allModelNames), "./models.interface"));
127
130
  imports.push(...this.getAllImportDeclarations());
128
131
  return imports;
129
132
  }
@@ -140,34 +143,25 @@ var TsCodegenContext = class {
140
143
  return [
141
144
  addSyntheticLeadingComment(factory.createInterfaceDeclaration(void 0, [factory.createModifier(ts.SyntaxKind.ExportKeyword)], factory.createIdentifier("BaseModel"), void 0, void 0, [
142
145
  factory.createPropertySignature(void 0, factory.createIdentifier("__typename"), void 0, factory.createKeywordTypeNode(ts.SyntaxKind.StringKeyword))
143
- ]), SyntaxKind.SingleLineCommentTrivia, " Base type for all models. Enables automatic resolution of abstract GraphQL types (interfaces, unions)", true),
144
- ...Array.from(this.scalars).map(([key, value]) => factory.createTypeAliasDeclaration(void 0, [factory.createModifier(ts.SyntaxKind.ExportKeyword)], factory.createIdentifier(key), void 0, factory.createTypeReferenceNode(factory.createIdentifier(value), void 0))),
145
- ...Array.from(this.scalars).filter(([key]) => {
146
- return this.typeNameToModels.has(key) && !this.typeNameToModels.get(key).importName;
147
- }).map(([key]) => factory.createTypeAliasDeclaration(void 0, [factory.createModifier(ts.SyntaxKind.ExportKeyword)], factory.createIdentifier(this.typeNameToModels.get(key).modelName), void 0, factory.createTypeReferenceNode(factory.createIdentifier(this.typeNameToModels.get(key).tsType), void 0)))
146
+ ]), SyntaxKind.SingleLineCommentTrivia, " Base type for all models. Enables automatic resolution of abstract GraphQL types (interfaces, unions)", true)
148
147
  ];
149
148
  }
150
- getModelType(typeName, putModelSuffix, saveModels = false, useScalars = false) {
151
- if (this.scalars.has(typeName)) {
152
- this.allModelNames.add(typeName);
153
- return new TypeLocation(null, useScalars ? typeName : this.scalars.get(typeName));
154
- } else if (BUILT_IN_SCALARS.hasOwnProperty(typeName)) {
149
+ getModelType(typeName, useScalars = false) {
150
+ if (BUILT_IN_SCALARS.hasOwnProperty(typeName)) {
155
151
  return new TypeLocation(null, BUILT_IN_SCALARS[typeName]);
156
152
  } else if (this.typeNameToImports.has(typeName)) {
157
153
  let { modelName } = this.typeNameToImports.get(typeName);
158
154
  return new TypeLocation(null, modelName);
159
155
  } else {
160
- const modelName = putModelSuffix ? addModelSuffix(typeName) : typeName;
161
- if (saveModels) {
156
+ const modelName = this.allPossibleModels.has(typeName) ? addModelSuffix(typeName) : typeName;
157
+ if (this.allPossibleModels.has(typeName)) {
162
158
  this.allModelNames.add(modelName);
163
159
  }
164
160
  return new TypeLocation(null, modelName);
165
161
  }
166
162
  }
167
163
  getDefinedModelType(typeName) {
168
- if (this.scalars.has(typeName)) {
169
- return new TypeLocation(null, typeName);
170
- } else if (this.typeNameToModels.has(typeName)) {
164
+ if (this.typeNameToModels.has(typeName)) {
171
165
  let imp = this.typeNameToModels.get(typeName);
172
166
  return new TypeLocation(null, imp.modelName);
173
167
  } else {
@@ -187,6 +181,31 @@ function extractContext(options, document) {
187
181
  context.addModel(processModelDirective(node, ancestors), node);
188
182
  }
189
183
  }
184
+ },
185
+ EnumTypeDefinition: {
186
+ enter(node) {
187
+ context.addPossibleModel(node.name.value);
188
+ }
189
+ },
190
+ ObjectTypeDefinition: {
191
+ enter(node) {
192
+ context.addPossibleModel(node.name.value);
193
+ }
194
+ },
195
+ UnionTypeDefinition: {
196
+ enter(node) {
197
+ context.addPossibleModel(node.name.value);
198
+ }
199
+ },
200
+ ScalarTypeDefinition: {
201
+ enter(node) {
202
+ context.addPossibleModel(node.name.value);
203
+ }
204
+ },
205
+ InterfaceTypeDefinition: {
206
+ enter(node) {
207
+ context.addPossibleModel(node.name.value);
208
+ }
190
209
  }
191
210
  });
192
211
  return context;
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/codegen/context/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,OAAO,EACP,aAAa,EAGd,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAG3C,eAAO,MAAM,oBAAoB,UAAU,CAAC;AAE5C,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,aAAa,EACnB,SAAS,EAAE,aAAa,CAAC,OAAO,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC,GACzD,eAAe,CA2CjB"}
1
+ {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/codegen/context/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,OAAO,EACP,aAAa,EAGd,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAG3C,eAAO,MAAM,oBAAoB,UAAU,CAAC;AAE5C,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,aAAa,EACnB,SAAS,EAAE,aAAa,CAAC,OAAO,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC,GACzD,eAAe,CAwCjB"}
@@ -40,7 +40,7 @@ function processModelDirective(node, ancestors) {
40
40
  const typeName = typeDef.name.value;
41
41
  return {
42
42
  typeName,
43
- modelName: typeDef.kind === "ScalarTypeDefinition" ? (0, import_utilities.addModelSuffix)(typeName) : `_${(0, import_utilities.addModelSuffix)(typeName)}`,
43
+ modelName: `_${(0, import_utilities.addModelSuffix)(typeName)}`,
44
44
  tsType: tsType.value,
45
45
  importName: from ? (0, import_utilities.createVariableNameFromImport)(from.value) : null,
46
46
  from: (from == null ? void 0 : from.value) || null,
@@ -20,7 +20,7 @@ function processModelDirective(node, ancestors) {
20
20
  const typeName = typeDef.name.value;
21
21
  return {
22
22
  typeName,
23
- modelName: typeDef.kind === "ScalarTypeDefinition" ? addModelSuffix(typeName) : `_${addModelSuffix(typeName)}`,
23
+ modelName: `_${addModelSuffix(typeName)}`,
24
24
  tsType: tsType.value,
25
25
  importName: from ? createVariableNameFromImport(from.value) : null,
26
26
  from: (from == null ? void 0 : from.value) || null,
@@ -1 +1 @@
1
- {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/codegen/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAQ7C,wBAAgB,cAAc,CAC5B,OAAO,EAAE,gBAAgB,EACzB,QAAQ,EAAE,YAAY,GACrB,EAAE,CAAC,UAAU,CAEf"}
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/codegen/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAO7C,wBAAgB,cAAc,CAC5B,OAAO,EAAE,gBAAgB,EACzB,QAAQ,EAAE,YAAY,GACrB,EAAE,CAAC,UAAU,CAEf"}
@@ -98,8 +98,12 @@ function createModelsReducer(context) {
98
98
  InterfaceTypeDefinition: {
99
99
  leave(node) {
100
100
  const extendTypes = [context.getBaseModelType()];
101
+ const interfaces = node.interfaces || [];
101
102
  return import_typescript.factory.createInterfaceDeclaration(void 0, [import_typescript.factory.createModifier(import_typescript.default.SyntaxKind.ExportKeyword)], import_typescript.factory.createIdentifier((0, import_utilities.addModelSuffix)(node.name)), void 0, [
102
- import_typescript.factory.createHeritageClause(import_typescript.default.SyntaxKind.ExtendsKeyword, extendTypes.map((type) => import_typescript.factory.createExpressionWithTypeArguments(type.toExpression(), void 0)))
103
+ import_typescript.factory.createHeritageClause(import_typescript.default.SyntaxKind.ExtendsKeyword, [
104
+ ...extendTypes.map((type) => import_typescript.factory.createExpressionWithTypeArguments(type.toExpression(), void 0)),
105
+ ...interfaces.map((interfaceExpression) => import_typescript.factory.createExpressionWithTypeArguments(interfaceExpression, void 0))
106
+ ])
103
107
  ], [
104
108
  import_typescript.factory.createPropertySignature(void 0, "__typename", void 0, import_typescript.factory.createKeywordTypeNode(import_typescript.default.SyntaxKind.StringKeyword))
105
109
  ]);
@@ -114,18 +118,16 @@ function createModelsReducer(context) {
114
118
  },
115
119
  ScalarTypeDefinition: {
116
120
  leave(node) {
117
- context.addScalar(node.name);
118
- return null;
121
+ return context.getScalarDeclaration(node.name) || null;
119
122
  }
120
123
  },
121
124
  NamedType: {
122
- leave(node, _a, _p, path, ancestors) {
123
- const isAncestorInput = (0, import_utilities.isDirectAncestorInput)(ancestors);
125
+ leave(node, _a, _p, path) {
124
126
  const isImplementedInterface = path[path.length - 2] === "interfaces";
125
127
  if (isImplementedInterface) {
126
128
  return import_typescript.factory.createIdentifier((0, import_utilities.addModelSuffix)(node.name));
127
129
  }
128
- return (0, import_utilities.createNullableType)(context.getModelType(node.name, !isAncestorInput).toTypeReference());
130
+ return (0, import_utilities.createNullableType)(context.getModelType(node.name).toTypeReference());
129
131
  }
130
132
  },
131
133
  ListType: {
@@ -4,7 +4,6 @@ import { visit } from "./typedVisitor.mjs";
4
4
  import {
5
5
  createNullableType,
6
6
  createNonNullableType,
7
- isDirectAncestorInput,
8
7
  addModelSuffix
9
8
  } from "./utilities.mjs";
10
9
  function generateModels(context, document) {
@@ -79,8 +78,12 @@ function createModelsReducer(context) {
79
78
  InterfaceTypeDefinition: {
80
79
  leave(node) {
81
80
  const extendTypes = [context.getBaseModelType()];
81
+ const interfaces = node.interfaces || [];
82
82
  return factory.createInterfaceDeclaration(void 0, [factory.createModifier(ts.SyntaxKind.ExportKeyword)], factory.createIdentifier(addModelSuffix(node.name)), void 0, [
83
- factory.createHeritageClause(ts.SyntaxKind.ExtendsKeyword, extendTypes.map((type) => factory.createExpressionWithTypeArguments(type.toExpression(), void 0)))
83
+ factory.createHeritageClause(ts.SyntaxKind.ExtendsKeyword, [
84
+ ...extendTypes.map((type) => factory.createExpressionWithTypeArguments(type.toExpression(), void 0)),
85
+ ...interfaces.map((interfaceExpression) => factory.createExpressionWithTypeArguments(interfaceExpression, void 0))
86
+ ])
84
87
  ], [
85
88
  factory.createPropertySignature(void 0, "__typename", void 0, factory.createKeywordTypeNode(ts.SyntaxKind.StringKeyword))
86
89
  ]);
@@ -95,18 +98,16 @@ function createModelsReducer(context) {
95
98
  },
96
99
  ScalarTypeDefinition: {
97
100
  leave(node) {
98
- context.addScalar(node.name);
99
- return null;
101
+ return context.getScalarDeclaration(node.name) || null;
100
102
  }
101
103
  },
102
104
  NamedType: {
103
- leave(node, _a, _p, path, ancestors) {
104
- const isAncestorInput = isDirectAncestorInput(ancestors);
105
+ leave(node, _a, _p, path) {
105
106
  const isImplementedInterface = path[path.length - 2] === "interfaces";
106
107
  if (isImplementedInterface) {
107
108
  return factory.createIdentifier(addModelSuffix(node.name));
108
109
  }
109
- return createNullableType(context.getModelType(node.name, !isAncestorInput).toTypeReference());
110
+ return createNullableType(context.getModelType(node.name).toTypeReference());
110
111
  }
111
112
  },
112
113
  ListType: {
@@ -1 +1 @@
1
- {"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../src/codegen/resolvers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,MAAM,YAAY,CAAC;AACzC,OAAO,EACL,YAAY,EAIb,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAO7C,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,gBAAgB,EACzB,QAAQ,EAAE,YAAY,GACrB,EAAE,CAAC,UAAU,CAEf"}
1
+ {"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../src/codegen/resolvers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,MAAM,YAAY,CAAC;AACzC,OAAO,EACL,YAAY,EAIb,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAS7C,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,gBAAgB,EACzB,QAAQ,EAAE,YAAY,GACrB,EAAE,CAAC,UAAU,CAEf"}
@@ -71,20 +71,29 @@ function createResolversReducer(context) {
71
71
  if (["Query", "Mutation", "Subscription"].includes(parentName)) {
72
72
  modelIdentifier = import_typescript.factory.createKeywordTypeNode(import_typescript.default.SyntaxKind.UnknownKeyword);
73
73
  } else if (parentObject.kind !== import_graphql.Kind.INTERFACE_TYPE_DEFINITION) {
74
- modelIdentifier = context.getModelType(parentName, true, true).toTypeReference();
74
+ modelIdentifier = context.getModelType(parentName).toTypeReference();
75
75
  }
76
- return import_typescript.factory.createTypeAliasDeclaration(void 0, [import_typescript.factory.createModifier(import_typescript.default.SyntaxKind.ExportKeyword)], import_typescript.factory.createIdentifier(node.name), void 0, import_typescript.factory.createFunctionTypeNode(void 0, [
77
- import_typescript.factory.createParameterDeclaration(void 0, void 0, void 0, import_typescript.factory.createIdentifier("model"), void 0, modelIdentifier, void 0),
78
- import_typescript.factory.createParameterDeclaration(void 0, void 0, void 0, import_typescript.factory.createIdentifier("args"), void 0, import_typescript.factory.createTypeLiteralNode(node.arguments || []), void 0),
79
- import_typescript.factory.createParameterDeclaration(void 0, void 0, void 0, import_typescript.factory.createIdentifier("context"), void 0, context.getContextType().toTypeReference(), void 0),
80
- import_typescript.factory.createParameterDeclaration(void 0, void 0, void 0, import_typescript.factory.createIdentifier("info"), void 0, context.getResolveInfoType().toTypeReference(), void 0)
81
- ], import_typescript.factory.createTypeReferenceNode(import_typescript.factory.createIdentifier("PromiseOrValue"), [node.type])));
76
+ const resolverParametersDefinitions = {
77
+ parent: {
78
+ name: "model",
79
+ type: modelIdentifier
80
+ },
81
+ args: { name: "args", type: node.arguments || [] },
82
+ context: {
83
+ name: "context",
84
+ type: context.getContextType().toTypeReference()
85
+ },
86
+ resolveInfo: {
87
+ name: "info",
88
+ type: context.getResolveInfoType().toTypeReference()
89
+ }
90
+ };
91
+ return import_typescript.factory.createTypeAliasDeclaration(void 0, [import_typescript.factory.createModifier(import_typescript.default.SyntaxKind.ExportKeyword)], import_typescript.factory.createIdentifier(node.name), void 0, import_typescript.factory.createFunctionTypeNode(void 0, (0, import_utilities.getResolverParameters)(resolverParametersDefinitions), (0, import_utilities.getResolverReturnType)(node.type, parentName, resolverParametersDefinitions)));
82
92
  }
83
93
  },
84
94
  NamedType: {
85
- leave(node, _a, _p, _path, ancestors) {
86
- const isAncestorInput = (0, import_utilities.isDirectAncestorInput)(ancestors);
87
- return (0, import_utilities.createNullableType)(context.getModelType(node.name, !isAncestorInput, !isAncestorInput, true).toTypeReference());
95
+ leave(node, _a, _p, _path) {
96
+ return (0, import_utilities.createNullableType)(context.getModelType(node.name, true).toTypeReference());
88
97
  }
89
98
  },
90
99
  ListType: {
@@ -9,7 +9,8 @@ import { visit } from "./typedVisitor.mjs";
9
9
  import {
10
10
  createNullableType,
11
11
  createNonNullableType,
12
- isDirectAncestorInput
12
+ getResolverReturnType,
13
+ getResolverParameters
13
14
  } from "./utilities.mjs";
14
15
  function generateResolvers(context, document) {
15
16
  return visit(document, createResolversReducer(context));
@@ -55,20 +56,29 @@ function createResolversReducer(context) {
55
56
  if (["Query", "Mutation", "Subscription"].includes(parentName)) {
56
57
  modelIdentifier = factory.createKeywordTypeNode(ts.SyntaxKind.UnknownKeyword);
57
58
  } else if (parentObject.kind !== Kind.INTERFACE_TYPE_DEFINITION) {
58
- modelIdentifier = context.getModelType(parentName, true, true).toTypeReference();
59
+ modelIdentifier = context.getModelType(parentName).toTypeReference();
59
60
  }
60
- return factory.createTypeAliasDeclaration(void 0, [factory.createModifier(ts.SyntaxKind.ExportKeyword)], factory.createIdentifier(node.name), void 0, factory.createFunctionTypeNode(void 0, [
61
- factory.createParameterDeclaration(void 0, void 0, void 0, factory.createIdentifier("model"), void 0, modelIdentifier, void 0),
62
- factory.createParameterDeclaration(void 0, void 0, void 0, factory.createIdentifier("args"), void 0, factory.createTypeLiteralNode(node.arguments || []), void 0),
63
- factory.createParameterDeclaration(void 0, void 0, void 0, factory.createIdentifier("context"), void 0, context.getContextType().toTypeReference(), void 0),
64
- factory.createParameterDeclaration(void 0, void 0, void 0, factory.createIdentifier("info"), void 0, context.getResolveInfoType().toTypeReference(), void 0)
65
- ], factory.createTypeReferenceNode(factory.createIdentifier("PromiseOrValue"), [node.type])));
61
+ const resolverParametersDefinitions = {
62
+ parent: {
63
+ name: "model",
64
+ type: modelIdentifier
65
+ },
66
+ args: { name: "args", type: node.arguments || [] },
67
+ context: {
68
+ name: "context",
69
+ type: context.getContextType().toTypeReference()
70
+ },
71
+ resolveInfo: {
72
+ name: "info",
73
+ type: context.getResolveInfoType().toTypeReference()
74
+ }
75
+ };
76
+ return factory.createTypeAliasDeclaration(void 0, [factory.createModifier(ts.SyntaxKind.ExportKeyword)], factory.createIdentifier(node.name), void 0, factory.createFunctionTypeNode(void 0, getResolverParameters(resolverParametersDefinitions), getResolverReturnType(node.type, parentName, resolverParametersDefinitions)));
66
77
  }
67
78
  },
68
79
  NamedType: {
69
- leave(node, _a, _p, _path, ancestors) {
70
- const isAncestorInput = isDirectAncestorInput(ancestors);
71
- return createNullableType(context.getModelType(node.name, !isAncestorInput, !isAncestorInput, true).toTypeReference());
80
+ leave(node, _a, _p, _path) {
81
+ return createNullableType(context.getModelType(node.name, true).toTypeReference());
72
82
  }
73
83
  },
74
84
  ListType: {
@@ -1,9 +1,19 @@
1
1
  import ts from "typescript";
2
- import { ASTNode } from "graphql";
3
2
  export declare function createNullableType(node: ts.TypeNode): ts.UnionTypeNode;
3
+ declare type ResolverParameterDefinition<T> = {
4
+ name: string;
5
+ type: T;
6
+ };
7
+ declare type ResolverParametersDefinitions = {
8
+ parent: ResolverParameterDefinition<ts.TypeReferenceNode>;
9
+ args: ResolverParameterDefinition<readonly ts.TypeElement[]>;
10
+ context: ResolverParameterDefinition<ts.TypeReferenceNode>;
11
+ resolveInfo: ResolverParameterDefinition<ts.TypeReferenceNode>;
12
+ };
13
+ export declare function getResolverParameters({ parent, args, context, resolveInfo, }: ResolverParametersDefinitions): ts.ParameterDeclaration[];
14
+ export declare function getResolverReturnType(typeNode: ts.TypeNode, parentName: string, resolverParametersDefinitions: ResolverParametersDefinitions): ts.TypeReferenceNode | ts.UnionTypeNode;
4
15
  export declare function createNonNullableType(node: ts.TypeNode): ts.TypeNode;
5
16
  export declare function addModelSuffix(typeName: string): string;
6
- export declare function isDirectAncestorInput(ancestors: readonly (ASTNode | readonly ASTNode[])[]): boolean;
7
17
  export declare function createVariableNameFromImport(path: string): string;
8
18
  export declare type CamelCaseOptions = {
9
19
  /**
@@ -36,4 +46,5 @@ export declare type CamelCaseOptions = {
36
46
  readonly locale?: false | string | readonly string[];
37
47
  };
38
48
  export declare function camelCase(input: string | readonly string[], options: CamelCaseOptions): string;
49
+ export {};
39
50
  //# sourceMappingURL=utilities.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../src/codegen/utilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,OAAO,EAAQ,MAAM,SAAS,CAAC;AAIxC,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,GAAG,EAAE,CAAC,aAAa,CAKtE;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,GAAG,EAAE,CAAC,QAAQ,CAMpE;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,UAM9C;AAED,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,SAAS,CAAC,OAAO,GAAG,SAAS,OAAO,EAAE,CAAC,EAAE,GACnD,OAAO,CAeT;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAYjE;AA6FD,oBAAY,gBAAgB,GAAG;IAC7B;;;QAGC;IACD,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAE9B;;;QAGC;IACD,QAAQ,CAAC,4BAA4B,CAAC,EAAE,OAAO,CAAC;IAEhD;;;;;;;;;;;;;;;;QAgBC;IACD,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,SAAS,MAAM,EAAE,CAAC;CACtD,CAAC;AAEF,wBAAgB,SAAS,CACvB,KAAK,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,EACjC,OAAO,EAAE,gBAAgB,UA8D1B"}
1
+ {"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../src/codegen/utilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,MAAM,YAAY,CAAC;AAIzC,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,GAAG,EAAE,CAAC,aAAa,CAKtE;AAED,aAAK,2BAA2B,CAAC,CAAC,IAAI;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,CAAC,CAAA;CAAE,CAAC;AAChE,aAAK,6BAA6B,GAAG;IACnC,MAAM,EAAE,2BAA2B,CAAC,EAAE,CAAC,iBAAiB,CAAC,CAAC;IAC1D,IAAI,EAAE,2BAA2B,CAAC,SAAS,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC;IAC7D,OAAO,EAAE,2BAA2B,CAAC,EAAE,CAAC,iBAAiB,CAAC,CAAC;IAC3D,WAAW,EAAE,2BAA2B,CAAC,EAAE,CAAC,iBAAiB,CAAC,CAAC;CAChE,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,IAAI,EACJ,OAAO,EACP,WAAW,GACZ,EAAE,6BAA6B,6BAmC/B;AACD,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,EAAE,CAAC,QAAQ,EACrB,UAAU,EAAE,MAAM,EAClB,6BAA6B,EAAE,6BAA6B,2CAmD7D;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,GAAG,EAAE,CAAC,QAAQ,CAMpE;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,UAM9C;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAYjE;AA6FD,oBAAY,gBAAgB,GAAG;IAC7B;;;QAGC;IACD,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAE9B;;;QAGC;IACD,QAAQ,CAAC,4BAA4B,CAAC,EAAE,OAAO,CAAC;IAEhD;;;;;;;;;;;;;;;;QAgBC;IACD,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,SAAS,MAAM,EAAE,CAAC;CACtD,CAAC;AAEF,wBAAgB,SAAS,CACvB,KAAK,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,EACjC,OAAO,EAAE,gBAAgB,UA8D1B"}
@@ -1,6 +1,8 @@
1
1
  var __create = Object.create;
2
2
  var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
7
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
8
  var __getProtoOf = Object.getPrototypeOf;
@@ -18,6 +20,7 @@ var __spreadValues = (a, b) => {
18
20
  }
19
21
  return a;
20
22
  };
23
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21
24
  var __export = (target, all) => {
22
25
  for (var name in all)
23
26
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -39,11 +42,11 @@ __export(utilities_exports, {
39
42
  createNonNullableType: () => createNonNullableType,
40
43
  createNullableType: () => createNullableType,
41
44
  createVariableNameFromImport: () => createVariableNameFromImport,
42
- isDirectAncestorInput: () => isDirectAncestorInput
45
+ getResolverParameters: () => getResolverParameters,
46
+ getResolverReturnType: () => getResolverReturnType
43
47
  });
44
48
  module.exports = __toCommonJS(utilities_exports);
45
49
  var import_typescript = __toESM(require("typescript"));
46
- var import_graphql = require("graphql");
47
50
  const MODEL_SUFFIX = "Model";
48
51
  function createNullableType(node) {
49
52
  return import_typescript.factory.createUnionTypeNode([
@@ -51,6 +54,38 @@ function createNullableType(node) {
51
54
  import_typescript.factory.createLiteralTypeNode(import_typescript.factory.createNull())
52
55
  ]);
53
56
  }
57
+ function getResolverParameters({
58
+ parent,
59
+ args,
60
+ context,
61
+ resolveInfo
62
+ }) {
63
+ return [
64
+ import_typescript.factory.createParameterDeclaration(void 0, void 0, void 0, import_typescript.factory.createIdentifier(parent.name), void 0, parent.type),
65
+ import_typescript.factory.createParameterDeclaration(void 0, void 0, void 0, import_typescript.factory.createIdentifier(args.name), void 0, import_typescript.factory.createTypeLiteralNode(args.type)),
66
+ import_typescript.factory.createParameterDeclaration(void 0, void 0, void 0, import_typescript.factory.createIdentifier(context.name), void 0, context.type),
67
+ import_typescript.factory.createParameterDeclaration(void 0, void 0, void 0, import_typescript.factory.createIdentifier(resolveInfo.name), void 0, resolveInfo.type)
68
+ ];
69
+ }
70
+ function getResolverReturnType(typeNode, parentName, resolverParametersDefinitions) {
71
+ if (parentName !== "Subscription") {
72
+ return import_typescript.factory.createTypeReferenceNode(import_typescript.factory.createIdentifier("PromiseOrValue"), [typeNode]);
73
+ }
74
+ return import_typescript.factory.createUnionTypeNode([
75
+ import_typescript.factory.createTypeReferenceNode(import_typescript.factory.createIdentifier("AsyncIterator"), [
76
+ typeNode
77
+ ]),
78
+ import_typescript.factory.createFunctionTypeNode([import_typescript.factory.createTypeParameterDeclaration(import_typescript.factory.createIdentifier("A"))], [], import_typescript.factory.createTypeLiteralNode([
79
+ import_typescript.factory.createPropertySignature(void 0, import_typescript.factory.createIdentifier("subscribe"), void 0, import_typescript.factory.createFunctionTypeNode(void 0, getResolverParameters(resolverParametersDefinitions), import_typescript.factory.createTypeReferenceNode(import_typescript.factory.createIdentifier("AsyncIterator"), [import_typescript.factory.createTypeReferenceNode(import_typescript.factory.createIdentifier("A"))]))),
80
+ import_typescript.factory.createPropertySignature(void 0, import_typescript.factory.createIdentifier("resolve"), void 0, import_typescript.factory.createFunctionTypeNode(void 0, getResolverParameters(__spreadProps(__spreadValues({}, resolverParametersDefinitions), {
81
+ parent: {
82
+ name: "parent",
83
+ type: import_typescript.factory.createTypeReferenceNode(import_typescript.factory.createIdentifier("A"))
84
+ }
85
+ })), typeNode))
86
+ ]))
87
+ ]);
88
+ }
54
89
  function createNonNullableType(node) {
55
90
  if (import_typescript.default.isUnionTypeNode(node)) {
56
91
  return node.types[0];
@@ -64,15 +99,6 @@ function addModelSuffix(typeName) {
64
99
  }
65
100
  return `${typeName}${MODEL_SUFFIX}`;
66
101
  }
67
- function isDirectAncestorInput(ancestors) {
68
- const directAncestors = ancestors[ancestors.length - 1];
69
- if (Array.isArray(directAncestors)) {
70
- return directAncestors.some((directAncestor) => {
71
- return "kind" in directAncestor && directAncestor.kind === import_graphql.Kind.INPUT_VALUE_DEFINITION;
72
- });
73
- }
74
- return "kind" in directAncestors && directAncestors.kind === import_graphql.Kind.INPUT_VALUE_DEFINITION;
75
- }
76
102
  function createVariableNameFromImport(path) {
77
103
  return camelCase(path.replace(/\.\.\//g, "up-").replace(/@/g, "NS-").replace(/\.\//g, "cwd-").replace(/\//g, "-"), {
78
104
  pascalCase: true,
@@ -1,4 +1,6 @@
1
1
  var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
2
4
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
4
6
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
@@ -14,10 +16,10 @@ var __spreadValues = (a, b) => {
14
16
  }
15
17
  return a;
16
18
  };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
17
20
 
18
21
  // src/codegen/utilities.ts
19
22
  import ts, { factory } from "typescript";
20
- import { Kind } from "graphql";
21
23
  var MODEL_SUFFIX = "Model";
22
24
  function createNullableType(node) {
23
25
  return factory.createUnionTypeNode([
@@ -25,6 +27,38 @@ function createNullableType(node) {
25
27
  factory.createLiteralTypeNode(factory.createNull())
26
28
  ]);
27
29
  }
30
+ function getResolverParameters({
31
+ parent,
32
+ args,
33
+ context,
34
+ resolveInfo
35
+ }) {
36
+ return [
37
+ factory.createParameterDeclaration(void 0, void 0, void 0, factory.createIdentifier(parent.name), void 0, parent.type),
38
+ factory.createParameterDeclaration(void 0, void 0, void 0, factory.createIdentifier(args.name), void 0, factory.createTypeLiteralNode(args.type)),
39
+ factory.createParameterDeclaration(void 0, void 0, void 0, factory.createIdentifier(context.name), void 0, context.type),
40
+ factory.createParameterDeclaration(void 0, void 0, void 0, factory.createIdentifier(resolveInfo.name), void 0, resolveInfo.type)
41
+ ];
42
+ }
43
+ function getResolverReturnType(typeNode, parentName, resolverParametersDefinitions) {
44
+ if (parentName !== "Subscription") {
45
+ return factory.createTypeReferenceNode(factory.createIdentifier("PromiseOrValue"), [typeNode]);
46
+ }
47
+ return factory.createUnionTypeNode([
48
+ factory.createTypeReferenceNode(factory.createIdentifier("AsyncIterator"), [
49
+ typeNode
50
+ ]),
51
+ factory.createFunctionTypeNode([factory.createTypeParameterDeclaration(factory.createIdentifier("A"))], [], factory.createTypeLiteralNode([
52
+ factory.createPropertySignature(void 0, factory.createIdentifier("subscribe"), void 0, factory.createFunctionTypeNode(void 0, getResolverParameters(resolverParametersDefinitions), factory.createTypeReferenceNode(factory.createIdentifier("AsyncIterator"), [factory.createTypeReferenceNode(factory.createIdentifier("A"))]))),
53
+ factory.createPropertySignature(void 0, factory.createIdentifier("resolve"), void 0, factory.createFunctionTypeNode(void 0, getResolverParameters(__spreadProps(__spreadValues({}, resolverParametersDefinitions), {
54
+ parent: {
55
+ name: "parent",
56
+ type: factory.createTypeReferenceNode(factory.createIdentifier("A"))
57
+ }
58
+ })), typeNode))
59
+ ]))
60
+ ]);
61
+ }
28
62
  function createNonNullableType(node) {
29
63
  if (ts.isUnionTypeNode(node)) {
30
64
  return node.types[0];
@@ -38,15 +72,6 @@ function addModelSuffix(typeName) {
38
72
  }
39
73
  return `${typeName}${MODEL_SUFFIX}`;
40
74
  }
41
- function isDirectAncestorInput(ancestors) {
42
- const directAncestors = ancestors[ancestors.length - 1];
43
- if (Array.isArray(directAncestors)) {
44
- return directAncestors.some((directAncestor) => {
45
- return "kind" in directAncestor && directAncestor.kind === Kind.INPUT_VALUE_DEFINITION;
46
- });
47
- }
48
- return "kind" in directAncestors && directAncestors.kind === Kind.INPUT_VALUE_DEFINITION;
49
- }
50
75
  function createVariableNameFromImport(path) {
51
76
  return camelCase(path.replace(/\.\.\//g, "up-").replace(/@/g, "NS-").replace(/\.\//g, "cwd-").replace(/\//g, "-"), {
52
77
  pascalCase: true,
@@ -144,5 +169,6 @@ export {
144
169
  createNonNullableType,
145
170
  createNullableType,
146
171
  createVariableNameFromImport,
147
- isDirectAncestorInput
172
+ getResolverParameters,
173
+ getResolverReturnType
148
174
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@graphitation/supermassive",
3
3
  "license": "MIT",
4
- "version": "1.1.0",
4
+ "version": "1.1.1",
5
5
  "bin": {
6
6
  "supermassive": "./bin/supermassive.js"
7
7
  },