@graphitation/supermassive 1.0.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.
Files changed (67) hide show
  1. package/.eslintcache +1 -0
  2. package/CHANGELOG.md +18 -2
  3. package/lib/bin/supermassive.d.ts.map +1 -1
  4. package/lib/bin/supermassive.js +48 -4
  5. package/lib/bin/supermassive.mjs +48 -4
  6. package/lib/codegen/context/expect.d.ts +1 -0
  7. package/lib/codegen/context/expect.d.ts.map +1 -0
  8. package/lib/codegen/context/expect.js +0 -0
  9. package/lib/codegen/context/expect.mjs +0 -0
  10. package/lib/codegen/context/import.d.ts +5 -0
  11. package/lib/codegen/context/import.d.ts.map +1 -0
  12. package/lib/codegen/context/import.js +55 -0
  13. package/lib/codegen/context/import.mjs +37 -0
  14. package/lib/codegen/context/index.d.ts +52 -0
  15. package/lib/codegen/context/index.d.ts.map +1 -0
  16. package/lib/codegen/context/index.js +253 -0
  17. package/lib/codegen/context/index.mjs +242 -0
  18. package/lib/codegen/context/model.d.ts +5 -0
  19. package/lib/codegen/context/model.d.ts.map +1 -0
  20. package/lib/codegen/context/model.js +53 -0
  21. package/lib/codegen/context/model.mjs +37 -0
  22. package/lib/codegen/context/utilities.d.ts +2 -0
  23. package/lib/codegen/context/utilities.d.ts.map +1 -0
  24. package/lib/codegen/context/utilities.js +26 -0
  25. package/lib/codegen/context/utilities.mjs +8 -0
  26. package/lib/codegen/index.d.ts +7 -0
  27. package/lib/codegen/index.d.ts.map +1 -0
  28. package/lib/codegen/index.js +41 -0
  29. package/lib/codegen/index.mjs +23 -0
  30. package/lib/codegen/models.d.ts +5 -0
  31. package/lib/codegen/models.d.ts.map +1 -0
  32. package/lib/codegen/models.js +159 -0
  33. package/lib/codegen/models.mjs +142 -0
  34. package/lib/codegen/resolvers.d.ts +5 -0
  35. package/lib/codegen/resolvers.d.ts.map +1 -0
  36. package/lib/codegen/resolvers.js +155 -0
  37. package/lib/codegen/resolvers.mjs +143 -0
  38. package/lib/codegen/typedVisitor.d.ts +57 -0
  39. package/lib/codegen/typedVisitor.d.ts.map +1 -0
  40. package/lib/codegen/typedVisitor.js +26 -0
  41. package/lib/codegen/typedVisitor.mjs +8 -0
  42. package/lib/codegen/types.d.ts +18 -0
  43. package/lib/codegen/types.d.ts.map +1 -0
  44. package/lib/codegen/types.js +15 -0
  45. package/lib/codegen/types.mjs +0 -0
  46. package/lib/codegen/utilities.d.ts +50 -0
  47. package/lib/codegen/utilities.d.ts.map +1 -0
  48. package/lib/codegen/utilities.js +192 -0
  49. package/lib/codegen/utilities.mjs +174 -0
  50. package/lib/{extractImplicitTypesToTypescript.d.ts → extractors/extractImplicitTypesToTypescript.d.ts} +0 -0
  51. package/lib/extractors/extractImplicitTypesToTypescript.d.ts.map +1 -0
  52. package/lib/{extractImplicitTypesToTypescript.js → extractors/extractImplicitTypesToTypescript.js} +0 -0
  53. package/lib/{extractImplicitTypesToTypescript.mjs → extractors/extractImplicitTypesToTypescript.mjs} +1 -1
  54. package/lib/extractors/index.d.ts +1 -1
  55. package/lib/extractors/index.d.ts.map +1 -1
  56. package/lib/extractors/index.js +1 -1
  57. package/lib/extractors/index.mjs +1 -1
  58. package/lib/index.d.ts +3 -1
  59. package/lib/index.d.ts.map +1 -1
  60. package/lib/index.js +2 -0
  61. package/lib/index.mjs +2 -0
  62. package/lib/utilities/blankGraphQLTag.d.ts +2 -0
  63. package/lib/utilities/blankGraphQLTag.d.ts.map +1 -0
  64. package/lib/utilities/blankGraphQLTag.js +25 -0
  65. package/lib/utilities/blankGraphQLTag.mjs +7 -0
  66. package/package.json +1 -1
  67. package/lib/extractImplicitTypesToTypescript.d.ts.map +0 -1
package/lib/index.mjs CHANGED
@@ -7,12 +7,14 @@ import { addTypesToRequestDocument } from "./ast/addTypesToRequestDocument.mjs";
7
7
  import { extractImplicitTypes } from "./extractImplicitTypesRuntime.mjs";
8
8
  import { specifiedScalars } from "./values.mjs";
9
9
  import { annotateDocumentGraphQLTransform } from "./transforms/annotateDocumentGraphQLTransform.mjs";
10
+ import { generateTS } from "./codegen.mjs";
10
11
  export {
11
12
  addTypesToRequestDocument,
12
13
  annotateDocumentGraphQLTransform,
13
14
  executeWithSchema,
14
15
  executeWithoutSchema,
15
16
  extractImplicitTypes,
17
+ generateTS,
16
18
  specifiedScalars,
17
19
  subscribeWithSchema,
18
20
  subscribeWithoutSchema
@@ -0,0 +1,2 @@
1
+ export default function blankGraphQLTag(strings: TemplateStringsArray): string;
2
+ //# sourceMappingURL=blankGraphQLTag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blankGraphQLTag.d.ts","sourceRoot":"","sources":["../../src/utilities/blankGraphQLTag.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,OAAO,EAAE,oBAAoB,GAAG,MAAM,CAE7E"}
@@ -0,0 +1,25 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var blankGraphQLTag_exports = {};
19
+ __export(blankGraphQLTag_exports, {
20
+ default: () => blankGraphQLTag
21
+ });
22
+ module.exports = __toCommonJS(blankGraphQLTag_exports);
23
+ function blankGraphQLTag(strings) {
24
+ return strings[0];
25
+ }
@@ -0,0 +1,7 @@
1
+ // src/utilities/blankGraphQLTag.ts
2
+ function blankGraphQLTag(strings) {
3
+ return strings[0];
4
+ }
5
+ export {
6
+ blankGraphQLTag as default
7
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@graphitation/supermassive",
3
3
  "license": "MIT",
4
- "version": "1.0.0",
4
+ "version": "1.1.1",
5
5
  "bin": {
6
6
  "supermassive": "./bin/supermassive.js"
7
7
  },
@@ -1 +0,0 @@
1
- {"version":3,"file":"extractImplicitTypesToTypescript.d.ts","sourceRoot":"","sources":["../src/extractImplicitTypesToTypescript.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,MAAM,YAAY,CAAC;AACzC,OAAO,EACL,YAAY,EAab,MAAM,SAAS,CAAC;AAmBjB,wBAAgB,gCAAgC,CAC9C,QAAQ,EAAE,YAAY,GACrB,EAAE,CAAC,UAAU,CA8Jf"}