react-easy-wall 1.0.21 → 1.0.24

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 (209) hide show
  1. package/dist/cjs/components/panel/Panel.js +0 -1
  2. package/dist/cjs/components/panel/Panel.js.map +1 -1
  3. package/dist/cjs/components/panel/PanelAvatar.js +2 -4
  4. package/dist/cjs/components/panel/PanelAvatar.js.map +1 -1
  5. package/dist/cjs/components/panel/PanelButton.js +0 -1
  6. package/dist/cjs/components/panel/PanelButton.js.map +1 -1
  7. package/dist/cjs/components/panel/PanelDivider.js +0 -1
  8. package/dist/cjs/components/panel/PanelDivider.js.map +1 -1
  9. package/dist/cjs/components/panel/PanelFooter.js +0 -1
  10. package/dist/cjs/components/panel/PanelFooter.js.map +1 -1
  11. package/dist/cjs/components/panel/PanelHeader.js +0 -1
  12. package/dist/cjs/components/panel/PanelHeader.js.map +1 -1
  13. package/dist/cjs/components/panel/PanelItem.js +0 -1
  14. package/dist/cjs/components/panel/PanelItem.js.map +1 -1
  15. package/dist/cjs/components/panel/PanelListItems.js +0 -1
  16. package/dist/cjs/components/panel/PanelListItems.js.map +1 -1
  17. package/dist/cjs/components/session/SessionProvider.js +0 -1
  18. package/dist/cjs/components/session/SessionProvider.js.map +1 -1
  19. package/dist/cjs/components/session/SessionUserContext.js +0 -1
  20. package/dist/cjs/components/session/SessionUserContext.js.map +1 -1
  21. package/dist/cjs/components/session/SessionUserProvider.js +0 -1
  22. package/dist/cjs/components/session/SessionUserProvider.js.map +1 -1
  23. package/dist/cjs/node_modules/@apollo/client/errors/CombinedProtocolErrors.js +85 -0
  24. package/dist/cjs/node_modules/@apollo/client/errors/CombinedProtocolErrors.js.map +1 -0
  25. package/dist/cjs/node_modules/@apollo/client/errors/ServerError.js +80 -0
  26. package/dist/cjs/node_modules/@apollo/client/errors/ServerError.js.map +1 -0
  27. package/dist/cjs/node_modules/@apollo/client/errors/ServerParseError.js +77 -0
  28. package/dist/cjs/node_modules/@apollo/client/errors/ServerParseError.js.map +1 -0
  29. package/dist/cjs/node_modules/@apollo/client/errors/index.js +9 -0
  30. package/dist/cjs/node_modules/@apollo/client/errors/index.js.map +1 -0
  31. package/dist/cjs/node_modules/@apollo/client/errors/utils.js +19 -0
  32. package/dist/cjs/node_modules/@apollo/client/errors/utils.js.map +1 -0
  33. package/dist/cjs/node_modules/@apollo/client/link/client-awareness/ClientAwarenessLink.js +91 -0
  34. package/dist/cjs/node_modules/@apollo/client/link/client-awareness/ClientAwarenessLink.js.map +1 -0
  35. package/dist/cjs/node_modules/@apollo/client/link/core/ApolloLink.js +262 -0
  36. package/dist/cjs/node_modules/@apollo/client/link/core/ApolloLink.js.map +1 -0
  37. package/dist/cjs/node_modules/@apollo/client/link/http/BaseHttpLink.js +155 -0
  38. package/dist/cjs/node_modules/@apollo/client/link/http/BaseHttpLink.js.map +1 -0
  39. package/dist/cjs/node_modules/@apollo/client/link/http/HttpLink.js +41 -0
  40. package/dist/cjs/node_modules/@apollo/client/link/http/HttpLink.js.map +1 -0
  41. package/dist/cjs/node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js +168 -0
  42. package/dist/cjs/node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js.map +1 -0
  43. package/dist/cjs/node_modules/@apollo/client/link/http/rewriteURIForGET.js +56 -0
  44. package/dist/cjs/node_modules/@apollo/client/link/http/rewriteURIForGET.js.map +1 -0
  45. package/dist/cjs/node_modules/@apollo/client/link/http/selectHttpOptionsAndBody.js +106 -0
  46. package/dist/cjs/node_modules/@apollo/client/link/http/selectHttpOptionsAndBody.js.map +1 -0
  47. package/dist/cjs/node_modules/@apollo/client/link/http/selectURI.js +18 -0
  48. package/dist/cjs/node_modules/@apollo/client/link/http/selectURI.js.map +1 -0
  49. package/dist/cjs/node_modules/@apollo/client/link/utils/createOperation.js +40 -0
  50. package/dist/cjs/node_modules/@apollo/client/link/utils/createOperation.js.map +1 -0
  51. package/dist/cjs/node_modules/@apollo/client/link/utils/filterOperationVariables.js +27 -0
  52. package/dist/cjs/node_modules/@apollo/client/link/utils/filterOperationVariables.js.map +1 -0
  53. package/dist/cjs/node_modules/@apollo/client/utilities/caching/sizes.js +31 -0
  54. package/dist/cjs/node_modules/@apollo/client/utilities/caching/sizes.js.map +1 -0
  55. package/dist/cjs/node_modules/@apollo/client/utilities/environment/index.production.js +6 -0
  56. package/dist/cjs/node_modules/@apollo/client/utilities/environment/index.production.js.map +1 -0
  57. package/dist/cjs/node_modules/@apollo/client/utilities/graphql/operations.js +65 -0
  58. package/dist/cjs/node_modules/@apollo/client/utilities/graphql/operations.js.map +1 -0
  59. package/dist/cjs/node_modules/@apollo/client/utilities/graphql/print.js +31 -0
  60. package/dist/cjs/node_modules/@apollo/client/utilities/graphql/print.js.map +1 -0
  61. package/dist/cjs/node_modules/@apollo/client/utilities/internal/caches.js +49 -0
  62. package/dist/cjs/node_modules/@apollo/client/utilities/internal/caches.js.map +1 -0
  63. package/dist/cjs/node_modules/@apollo/client/utilities/internal/checkDocument.js +62 -0
  64. package/dist/cjs/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +1 -0
  65. package/dist/cjs/node_modules/@apollo/client/utilities/internal/compact.js +27 -0
  66. package/dist/cjs/node_modules/@apollo/client/utilities/internal/compact.js.map +1 -0
  67. package/dist/cjs/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js +16 -0
  68. package/dist/cjs/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +1 -0
  69. package/dist/cjs/node_modules/@apollo/client/utilities/internal/getOperationName.js +13 -0
  70. package/dist/cjs/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +1 -0
  71. package/dist/cjs/node_modules/@apollo/client/utilities/internal/globals/global.js +21 -0
  72. package/dist/cjs/node_modules/@apollo/client/utilities/internal/globals/global.js.map +1 -0
  73. package/dist/cjs/node_modules/@apollo/client/utilities/internal/globals/maybe.js +11 -0
  74. package/dist/cjs/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +1 -0
  75. package/dist/cjs/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +13 -0
  76. package/dist/cjs/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +1 -0
  77. package/dist/cjs/node_modules/@apollo/client/utilities/internal/makeUniqueId.js +19 -0
  78. package/dist/cjs/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +1 -0
  79. package/dist/cjs/node_modules/@apollo/client/utilities/internal/memoize.js +33 -0
  80. package/dist/cjs/node_modules/@apollo/client/utilities/internal/memoize.js.map +1 -0
  81. package/dist/cjs/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js +20 -0
  82. package/dist/cjs/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +1 -0
  83. package/dist/cjs/node_modules/@apollo/client/utilities/invariant/index.js +94 -0
  84. package/dist/cjs/node_modules/@apollo/client/utilities/invariant/index.js.map +1 -0
  85. package/dist/cjs/node_modules/@apollo/client/version.js +6 -0
  86. package/dist/cjs/node_modules/@apollo/client/version.js.map +1 -0
  87. package/dist/cjs/node_modules/@wry/caches/lib/weak.js +147 -0
  88. package/dist/cjs/node_modules/@wry/caches/lib/weak.js.map +1 -0
  89. package/dist/cjs/node_modules/@wry/trie/lib/index.js +86 -0
  90. package/dist/cjs/node_modules/@wry/trie/lib/index.js.map +1 -0
  91. package/dist/cjs/node_modules/graphql/error/GraphQLError.js +232 -0
  92. package/dist/cjs/node_modules/graphql/error/GraphQLError.js.map +1 -0
  93. package/dist/cjs/node_modules/graphql/error/syntaxError.js +18 -0
  94. package/dist/cjs/node_modules/graphql/error/syntaxError.js.map +1 -0
  95. package/dist/cjs/node_modules/graphql/jsutils/devAssert.js +12 -0
  96. package/dist/cjs/node_modules/graphql/jsutils/devAssert.js.map +1 -0
  97. package/dist/cjs/node_modules/graphql/jsutils/inspect.js +120 -0
  98. package/dist/cjs/node_modules/graphql/jsutils/inspect.js.map +1 -0
  99. package/dist/cjs/node_modules/graphql/jsutils/instanceOf.js +63 -0
  100. package/dist/cjs/node_modules/graphql/jsutils/instanceOf.js.map +1 -0
  101. package/dist/cjs/node_modules/graphql/jsutils/invariant.js +14 -0
  102. package/dist/cjs/node_modules/graphql/jsutils/invariant.js.map +1 -0
  103. package/dist/cjs/node_modules/graphql/jsutils/isObjectLike.js +12 -0
  104. package/dist/cjs/node_modules/graphql/jsutils/isObjectLike.js.map +1 -0
  105. package/dist/cjs/node_modules/graphql/language/ast.js +227 -0
  106. package/dist/cjs/node_modules/graphql/language/ast.js.map +1 -0
  107. package/dist/cjs/node_modules/graphql/language/blockString.js +114 -0
  108. package/dist/cjs/node_modules/graphql/language/blockString.js.map +1 -0
  109. package/dist/cjs/node_modules/graphql/language/characterClasses.js +73 -0
  110. package/dist/cjs/node_modules/graphql/language/characterClasses.js.map +1 -0
  111. package/dist/cjs/node_modules/graphql/language/directiveLocation.js +34 -0
  112. package/dist/cjs/node_modules/graphql/language/directiveLocation.js.map +1 -0
  113. package/dist/cjs/node_modules/graphql/language/kinds.js +63 -0
  114. package/dist/cjs/node_modules/graphql/language/kinds.js.map +1 -0
  115. package/dist/cjs/node_modules/graphql/language/lexer.js +925 -0
  116. package/dist/cjs/node_modules/graphql/language/lexer.js.map +1 -0
  117. package/dist/cjs/node_modules/graphql/language/location.js +36 -0
  118. package/dist/cjs/node_modules/graphql/language/location.js.map +1 -0
  119. package/dist/cjs/node_modules/graphql/language/parser.js +1582 -0
  120. package/dist/cjs/node_modules/graphql/language/parser.js.map +1 -0
  121. package/dist/cjs/node_modules/graphql/language/printLocation.js +72 -0
  122. package/dist/cjs/node_modules/graphql/language/printLocation.js.map +1 -0
  123. package/dist/cjs/node_modules/graphql/language/printString.js +181 -0
  124. package/dist/cjs/node_modules/graphql/language/printString.js.map +1 -0
  125. package/dist/cjs/node_modules/graphql/language/printer.js +374 -0
  126. package/dist/cjs/node_modules/graphql/language/printer.js.map +1 -0
  127. package/dist/cjs/node_modules/graphql/language/source.js +56 -0
  128. package/dist/cjs/node_modules/graphql/language/source.js.map +1 -0
  129. package/dist/cjs/node_modules/graphql/language/tokenKind.js +39 -0
  130. package/dist/cjs/node_modules/graphql/language/tokenKind.js.map +1 -0
  131. package/dist/cjs/node_modules/graphql/language/visitor.js +274 -0
  132. package/dist/cjs/node_modules/graphql/language/visitor.js.map +1 -0
  133. package/dist/cjs/node_modules/graphql-tag/lib/index.js +129 -0
  134. package/dist/cjs/node_modules/graphql-tag/lib/index.js.map +1 -0
  135. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/Observable.js +106 -0
  136. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/Observable.js.map +1 -0
  137. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/Subscriber.js +158 -0
  138. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +1 -0
  139. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/Subscription.js +148 -0
  140. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +1 -0
  141. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/config.js +7 -0
  142. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/config.js.map +1 -0
  143. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/observable/empty.js +8 -0
  144. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +1 -0
  145. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +20 -0
  146. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +1 -0
  147. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +6 -0
  148. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +1 -0
  149. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +17 -0
  150. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +1 -0
  151. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +11 -0
  152. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +1 -0
  153. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +15 -0
  154. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +1 -0
  155. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +10 -0
  156. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +1 -0
  157. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/identity.js +8 -0
  158. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +1 -0
  159. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +8 -0
  160. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +1 -0
  161. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/noop.js +6 -0
  162. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +1 -0
  163. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/pipe.js +18 -0
  164. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +1 -0
  165. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +14 -0
  166. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +1 -0
  167. package/dist/cjs/node_modules/tslib/tslib.es6.js +93 -0
  168. package/dist/cjs/node_modules/tslib/tslib.es6.js.map +1 -0
  169. package/dist/cjs/shared/apollo/apollo.client.js +2 -2
  170. package/dist/cjs/shared/apollo/apollo.client.js.map +1 -1
  171. package/dist/cjs/shared/types/generated.js +2 -2
  172. package/dist/cjs/shared/types/generated.js.map +1 -1
  173. package/dist/esm/_virtual/_commonjsHelpers.js +1 -30
  174. package/dist/esm/_virtual/_commonjsHelpers.js.map +1 -1
  175. package/dist/esm/components/panel/Panel.js +0 -1
  176. package/dist/esm/components/panel/Panel.js.map +1 -1
  177. package/dist/esm/components/panel/PanelAvatar.js +2 -4
  178. package/dist/esm/components/panel/PanelAvatar.js.map +1 -1
  179. package/dist/esm/components/panel/PanelButton.js +0 -1
  180. package/dist/esm/components/panel/PanelButton.js.map +1 -1
  181. package/dist/esm/components/panel/PanelDivider.js +0 -1
  182. package/dist/esm/components/panel/PanelDivider.js.map +1 -1
  183. package/dist/esm/components/panel/PanelFooter.js +0 -1
  184. package/dist/esm/components/panel/PanelFooter.js.map +1 -1
  185. package/dist/esm/components/panel/PanelHeader.js +0 -1
  186. package/dist/esm/components/panel/PanelHeader.js.map +1 -1
  187. package/dist/esm/components/panel/PanelItem.js +0 -1
  188. package/dist/esm/components/panel/PanelItem.js.map +1 -1
  189. package/dist/esm/components/panel/PanelListItems.js +0 -1
  190. package/dist/esm/components/panel/PanelListItems.js.map +1 -1
  191. package/dist/esm/components/session/SessionProvider.js +0 -1
  192. package/dist/esm/components/session/SessionProvider.js.map +1 -1
  193. package/dist/esm/components/session/SessionUserContext.js +0 -1
  194. package/dist/esm/components/session/SessionUserContext.js.map +1 -1
  195. package/dist/esm/components/session/SessionUserProvider.js +0 -1
  196. package/dist/esm/components/session/SessionUserProvider.js.map +1 -1
  197. package/dist/esm/node_modules/@cobuildlab/react-simple-state/lib/hooks.js +2 -2
  198. package/dist/esm/node_modules/@cobuildlab/react-simple-state/lib/hooks.js.map +1 -1
  199. package/dist/esm/node_modules/@cobuildlab/react-simple-state/lib/store-hooks.js +2 -2
  200. package/dist/esm/node_modules/@cobuildlab/react-simple-state/lib/store-hooks.js.map +1 -1
  201. package/dist/esm/node_modules/@cobuildlab/react-simple-state/lib/views.js +2 -2
  202. package/dist/esm/node_modules/@cobuildlab/react-simple-state/lib/views.js.map +1 -1
  203. package/dist/esm/node_modules/@mui/material-nextjs/esm/nextCompatRouter.js +1 -1
  204. package/dist/esm/node_modules/@mui/material-nextjs/esm/v13-appRouter/nextNavigation.js +1 -1
  205. package/dist/esm/shared/apollo/apollo.client.js +1 -1
  206. package/dist/esm/shared/types/generated.js +1 -1
  207. package/dist/esm/types/components/panel/PanelAvatar.d.ts +3 -1
  208. package/dist/index.d.ts +2 -0
  209. package/package.json +1 -1
@@ -0,0 +1,120 @@
1
+ 'use strict';
2
+
3
+ const MAX_ARRAY_LENGTH = 10;
4
+ const MAX_RECURSIVE_DEPTH = 2;
5
+ /**
6
+ * Used to print values in error messages.
7
+ */
8
+
9
+ function inspect(value) {
10
+ return formatValue(value, []);
11
+ }
12
+
13
+ function formatValue(value, seenValues) {
14
+ switch (typeof value) {
15
+ case 'string':
16
+ return JSON.stringify(value);
17
+
18
+ case 'function':
19
+ return value.name ? `[function ${value.name}]` : '[function]';
20
+
21
+ case 'object':
22
+ return formatObjectValue(value, seenValues);
23
+
24
+ default:
25
+ return String(value);
26
+ }
27
+ }
28
+
29
+ function formatObjectValue(value, previouslySeenValues) {
30
+ if (value === null) {
31
+ return 'null';
32
+ }
33
+
34
+ if (previouslySeenValues.includes(value)) {
35
+ return '[Circular]';
36
+ }
37
+
38
+ const seenValues = [...previouslySeenValues, value];
39
+
40
+ if (isJSONable(value)) {
41
+ const jsonValue = value.toJSON(); // check for infinite recursion
42
+
43
+ if (jsonValue !== value) {
44
+ return typeof jsonValue === 'string'
45
+ ? jsonValue
46
+ : formatValue(jsonValue, seenValues);
47
+ }
48
+ } else if (Array.isArray(value)) {
49
+ return formatArray(value, seenValues);
50
+ }
51
+
52
+ return formatObject(value, seenValues);
53
+ }
54
+
55
+ function isJSONable(value) {
56
+ return typeof value.toJSON === 'function';
57
+ }
58
+
59
+ function formatObject(object, seenValues) {
60
+ const entries = Object.entries(object);
61
+
62
+ if (entries.length === 0) {
63
+ return '{}';
64
+ }
65
+
66
+ if (seenValues.length > MAX_RECURSIVE_DEPTH) {
67
+ return '[' + getObjectTag(object) + ']';
68
+ }
69
+
70
+ const properties = entries.map(
71
+ ([key, value]) => key + ': ' + formatValue(value, seenValues),
72
+ );
73
+ return '{ ' + properties.join(', ') + ' }';
74
+ }
75
+
76
+ function formatArray(array, seenValues) {
77
+ if (array.length === 0) {
78
+ return '[]';
79
+ }
80
+
81
+ if (seenValues.length > MAX_RECURSIVE_DEPTH) {
82
+ return '[Array]';
83
+ }
84
+
85
+ const len = Math.min(MAX_ARRAY_LENGTH, array.length);
86
+ const remaining = array.length - len;
87
+ const items = [];
88
+
89
+ for (let i = 0; i < len; ++i) {
90
+ items.push(formatValue(array[i], seenValues));
91
+ }
92
+
93
+ if (remaining === 1) {
94
+ items.push('... 1 more item');
95
+ } else if (remaining > 1) {
96
+ items.push(`... ${remaining} more items`);
97
+ }
98
+
99
+ return '[' + items.join(', ') + ']';
100
+ }
101
+
102
+ function getObjectTag(object) {
103
+ const tag = Object.prototype.toString
104
+ .call(object)
105
+ .replace(/^\[object /, '')
106
+ .replace(/]$/, '');
107
+
108
+ if (tag === 'Object' && typeof object.constructor === 'function') {
109
+ const name = object.constructor.name;
110
+
111
+ if (typeof name === 'string' && name !== '') {
112
+ return name;
113
+ }
114
+ }
115
+
116
+ return tag;
117
+ }
118
+
119
+ exports.inspect = inspect;
120
+ //# sourceMappingURL=inspect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inspect.js","sources":["../../../../../node_modules/graphql/jsutils/inspect.mjs"],"sourcesContent":["const MAX_ARRAY_LENGTH = 10;\nconst MAX_RECURSIVE_DEPTH = 2;\n/**\n * Used to print values in error messages.\n */\n\nexport function inspect(value) {\n return formatValue(value, []);\n}\n\nfunction formatValue(value, seenValues) {\n switch (typeof value) {\n case 'string':\n return JSON.stringify(value);\n\n case 'function':\n return value.name ? `[function ${value.name}]` : '[function]';\n\n case 'object':\n return formatObjectValue(value, seenValues);\n\n default:\n return String(value);\n }\n}\n\nfunction formatObjectValue(value, previouslySeenValues) {\n if (value === null) {\n return 'null';\n }\n\n if (previouslySeenValues.includes(value)) {\n return '[Circular]';\n }\n\n const seenValues = [...previouslySeenValues, value];\n\n if (isJSONable(value)) {\n const jsonValue = value.toJSON(); // check for infinite recursion\n\n if (jsonValue !== value) {\n return typeof jsonValue === 'string'\n ? jsonValue\n : formatValue(jsonValue, seenValues);\n }\n } else if (Array.isArray(value)) {\n return formatArray(value, seenValues);\n }\n\n return formatObject(value, seenValues);\n}\n\nfunction isJSONable(value) {\n return typeof value.toJSON === 'function';\n}\n\nfunction formatObject(object, seenValues) {\n const entries = Object.entries(object);\n\n if (entries.length === 0) {\n return '{}';\n }\n\n if (seenValues.length > MAX_RECURSIVE_DEPTH) {\n return '[' + getObjectTag(object) + ']';\n }\n\n const properties = entries.map(\n ([key, value]) => key + ': ' + formatValue(value, seenValues),\n );\n return '{ ' + properties.join(', ') + ' }';\n}\n\nfunction formatArray(array, seenValues) {\n if (array.length === 0) {\n return '[]';\n }\n\n if (seenValues.length > MAX_RECURSIVE_DEPTH) {\n return '[Array]';\n }\n\n const len = Math.min(MAX_ARRAY_LENGTH, array.length);\n const remaining = array.length - len;\n const items = [];\n\n for (let i = 0; i < len; ++i) {\n items.push(formatValue(array[i], seenValues));\n }\n\n if (remaining === 1) {\n items.push('... 1 more item');\n } else if (remaining > 1) {\n items.push(`... ${remaining} more items`);\n }\n\n return '[' + items.join(', ') + ']';\n}\n\nfunction getObjectTag(object) {\n const tag = Object.prototype.toString\n .call(object)\n .replace(/^\\[object /, '')\n .replace(/]$/, '');\n\n if (tag === 'Object' && typeof object.constructor === 'function') {\n const name = object.constructor.name;\n\n if (typeof name === 'string' && name !== '') {\n return name;\n }\n }\n\n return tag;\n}\n"],"names":[],"mappings":";;AAAA,MAAM,gBAAgB,GAAG,EAAE;AAC3B,MAAM,mBAAmB,GAAG,CAAC;AAC7B;AACA;AACA;;AAEO,SAAS,OAAO,CAAC,KAAK,EAAE;AAC/B,EAAE,OAAO,WAAW,CAAC,KAAK,EAAE,EAAE,CAAC;AAC/B;;AAEA,SAAS,WAAW,CAAC,KAAK,EAAE,UAAU,EAAE;AACxC,EAAE,QAAQ,OAAO,KAAK;AACtB,IAAI,KAAK,QA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AS,KAAK,CAAC,EAAE;AACvB,IAAI,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC;AACjC,EAAE,CAAC,MAAM,IAAI,SAAS,GAAG,CAAC,EAAE;AAC5B,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;AAC7C,EAAE;;AAEF,EAAE,OAAO,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,GAAG;AACrC;;AAEA,SAAS,YAAY,CAAC,MAAM,EAAE;AAC9B,EAAE,MAAM,GAAG,GAAG,MAAM,CAAC,SAAS,CAAC;AAC/B,KAAK,IAAI,CAAC,MAAM;AAChB,KAAK,OAAO,CAAC,YAAY,EAAE,EAAE;AAC7B,KAAK,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC;;AAEtB,EAAE,IAAI,GAAG,KAAK,QAAQ,IAAI,OAAO,MAAM,CAAC,WAAW,KAAK,UAAU,EAAE;AACpE,IAAI,MAAM,IAAI,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI;;AAExC,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,EAAE,EAAE;AACjD,MAAM,OAAO,IAAI;AACjB,IAAI;AACJ,EAAE;;AAEF,EAAE,OAAO,GAAG;AACZ;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,63 @@
1
+ 'use strict';
2
+
3
+ var inspect = require('./inspect.js');
4
+
5
+ /* c8 ignore next 3 */
6
+
7
+ const isProduction =
8
+ globalThis.process && // eslint-disable-next-line no-undef
9
+ process.env.NODE_ENV === 'production';
10
+ /**
11
+ * A replacement for instanceof which includes an error warning when multi-realm
12
+ * constructors are detected.
13
+ * See: https://expressjs.com/en/advanced/best-practice-performance.html#set-node_env-to-production
14
+ * See: https://webpack.js.org/guides/production/
15
+ */
16
+
17
+ const instanceOf =
18
+ /* c8 ignore next 6 */
19
+ // FIXME: https://github.com/graphql/graphql-js/issues/2317
20
+ isProduction
21
+ ? function instanceOf(value, constructor) {
22
+ return value instanceof constructor;
23
+ }
24
+ : function instanceOf(value, constructor) {
25
+ if (value instanceof constructor) {
26
+ return true;
27
+ }
28
+
29
+ if (typeof value === 'object' && value !== null) {
30
+ var _value$constructor;
31
+
32
+ // Prefer Symbol.toStringTag since it is immune to minification.
33
+ const className = constructor.prototype[Symbol.toStringTag];
34
+ const valueClassName = // We still need to support constructor's name to detect conflicts with older versions of this library.
35
+ Symbol.toStringTag in value // @ts-expect-error TS bug see, https://github.com/microsoft/TypeScript/issues/38009
36
+ ? value[Symbol.toStringTag]
37
+ : (_value$constructor = value.constructor) === null ||
38
+ _value$constructor === void 0
39
+ ? void 0
40
+ : _value$constructor.name;
41
+
42
+ if (className === valueClassName) {
43
+ const stringifiedValue = inspect.inspect(value);
44
+ throw new Error(`Cannot use ${className} "${stringifiedValue}" from another module or realm.
45
+
46
+ Ensure that there is only one instance of "graphql" in the node_modules
47
+ directory. If different versions of "graphql" are the dependencies of other
48
+ relied on modules, use "resolutions" to ensure only one version is installed.
49
+
50
+ https://yarnpkg.com/en/docs/selective-version-resolutions
51
+
52
+ Duplicate "graphql" modules cannot be used at the same time since different
53
+ versions may have different capabilities and behavior. The data from one
54
+ version used in the function from another could produce confusing and
55
+ spurious results.`);
56
+ }
57
+ }
58
+
59
+ return false;
60
+ };
61
+
62
+ exports.instanceOf = instanceOf;
63
+ //# sourceMappingURL=instanceOf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instanceOf.js","sources":["../../../../../node_modules/graphql/jsutils/instanceOf.mjs"],"sourcesContent":["import { inspect } from './inspect.mjs';\n/* c8 ignore next 3 */\n\nconst isProduction =\n globalThis.process && // eslint-disable-next-line no-undef\n process.env.NODE_ENV === 'production';\n/**\n * A replacement for instanceof which includes an error warning when multi-realm\n * constructors are detected.\n * See: https://expressjs.com/en/advanced/best-practice-performance.html#set-node_env-to-production\n * See: https://webpack.js.org/guides/production/\n */\n\nexport const instanceOf =\n /* c8 ignore next 6 */\n // FIXME: https://github.com/graphql/graphql-js/issues/2317\n isProduction\n ? function instanceOf(value, constructor) {\n return value instanceof constructor;\n }\n : function instanceOf(value, constructor) {\n if (value instanceof constructor) {\n return true;\n }\n\n if (typeof value === 'object' && value !== null) {\n var _value$constructor;\n\n // Prefer Symbol.toStringTag since it is immune to minification.\n const className = constructor.prototype[Symbol.toStringTag];\n const valueClassName = // We still need to support constructor's name to detect conflicts with older versions of this library.\n Symbol.toStringTag in value // @ts-expect-error TS bug see, https://github.com/microsoft/TypeScript/issues/38009\n ? value[Symbol.toStringTag]\n : (_value$constructor = value.constructor) === null ||\n _value$constructor === void 0\n ? void 0\n : _value$constructor.name;\n\n if (className === valueClassName) {\n const stringifiedValue = inspect(value);\n throw new Error(`Cannot use ${className} \"${stringifiedValue}\" from another module or realm.\n\nEnsure that there is only one instance of \"graphql\" in the node_modules\ndirectory. If different versions of \"graphql\" are the dependencies of other\nrelied on modules, use \"resolutions\" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate \"graphql\" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`);\n }\n }\n\n return false;\n };\n"],"names":["inspect"],"mappings":";;;;AACA;;AAEA,MAAM,YAAY;AAClB,EAAE,UAAU,CAAC,OAAO;AACpB,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY;AACvC;AACA;AACA;AACA;AACA;AACA;;AAEY,MAAC,UAAU;AACvB;AACA;AACA,EAAE;AACF,MAAM,SAAS,UAAU,CAAC,KAAK,EAAE,WAAW,EAAE;AAC9C,QAAQ,OAAO,KAAK,YAAY,WAAW;AAC3C,MAAM;AACN,MAAM,SAAS,UAAU,CAAC,KAAK,EAAE,WAAW,EAAE;AAC9C,QAAQ,IAAI,KAAK,YAAY,WAAW,EAAE;AAC1C,UAAU,OAAO,IAAI;AACrB,QAAQ;;AAER,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE;AACzD,UAAU,IAAI,kBAAkB;;AAEhC;AACA,UAAU,MAAM,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,WAAW,CAAC;AACrE,UAAU,MAAM,cAAc;AAC9B,YAAY,MAAM,CAAC,WAAW,IAAI,KAAK;AACvC,gBAAgB,KAAK,CAAC,MAAM,CAAC,WAAW;AACxC,gBAAgB,CAAC,kBAAkB,GAAG,KAAK,CAAC,WAAW,MAAM,IAAI;AACjE,gBAAgB,kBAAkB,KAAK;AACvC,gBAAgB;AAChB,gBAAgB,kBAAkB,CAAC,IAAI;;AAEvC,UAAU,IAAI,SAAS,KAAK,cAAc,EAAE;AAC5C,YAAY,MAAM,gBAAgB,GAAGA,eAAO,CAAC,KAAK,CAAC;AACnD,YAAY,MAAM,IAAI,KAAK,CAAC,CAAC,WAAW,EAAE,SAAS,CAAC,EAAE,EAAE,gBAAgB,CAAC;;AAEzE;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,iBAAiB,CAAC,CAAC;AACnB,UAAU;AACV,QAAQ;;AAER,QAAQ,OAAO,KAAK;AACpB,MAAM;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ function invariant(condition, message) {
4
+ const booleanCondition = Boolean(condition);
5
+
6
+ if (!booleanCondition) {
7
+ throw new Error(
8
+ 'Unexpected invariant triggered.',
9
+ );
10
+ }
11
+ }
12
+
13
+ exports.invariant = invariant;
14
+ //# sourceMappingURL=invariant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invariant.js","sources":["../../../../../node_modules/graphql/jsutils/invariant.mjs"],"sourcesContent":["export function invariant(condition, message) {\n const booleanCondition = Boolean(condition);\n\n if (!booleanCondition) {\n throw new Error(\n message != null ? message : 'Unexpected invariant triggered.',\n );\n }\n}\n"],"names":[],"mappings":";;AAAO,SAAS,SAAS,CAAC,SAAS,EAAE,OAAO,EAAE;AAC9C,EAAE,MAAM,gBAAgB,GAAG,OAAO,CAAC,SAAS,CAAC;;AAE7C,EAAE,IAAI,CAAC,gBAAgB,EAAE;AACzB,IAAI,MAAM,IAAI,KAAK;AACnB,MAAkC,iCAAiC;AACnE,KAAK;AACL,EAAE;AACF;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Return true if `value` is object-like. A value is object-like if it's not
5
+ * `null` and has a `typeof` result of "object".
6
+ */
7
+ function isObjectLike(value) {
8
+ return typeof value == 'object' && value !== null;
9
+ }
10
+
11
+ exports.isObjectLike = isObjectLike;
12
+ //# sourceMappingURL=isObjectLike.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isObjectLike.js","sources":["../../../../../node_modules/graphql/jsutils/isObjectLike.mjs"],"sourcesContent":["/**\n * Return true if `value` is object-like. A value is object-like if it's not\n * `null` and has a `typeof` result of \"object\".\n */\nexport function isObjectLike(value) {\n return typeof value == 'object' && value !== null;\n}\n"],"names":[],"mappings":";;AAAA;AACA;AACA;AACA;AACO,SAAS,YAAY,CAAC,KAAK,EAAE;AACpC,EAAE,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,KAAK,KAAK,IAAI;AACnD;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,227 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Contains a range of UTF-8 character offsets and token references that
5
+ * identify the region of the source from which the AST derived.
6
+ */
7
+ class Location {
8
+ /**
9
+ * The character offset at which this Node begins.
10
+ */
11
+
12
+ /**
13
+ * The character offset at which this Node ends.
14
+ */
15
+
16
+ /**
17
+ * The Token at which this Node begins.
18
+ */
19
+
20
+ /**
21
+ * The Token at which this Node ends.
22
+ */
23
+
24
+ /**
25
+ * The Source document the AST represents.
26
+ */
27
+ constructor(startToken, endToken, source) {
28
+ this.start = startToken.start;
29
+ this.end = endToken.end;
30
+ this.startToken = startToken;
31
+ this.endToken = endToken;
32
+ this.source = source;
33
+ }
34
+
35
+ get [Symbol.toStringTag]() {
36
+ return 'Location';
37
+ }
38
+
39
+ toJSON() {
40
+ return {
41
+ start: this.start,
42
+ end: this.end,
43
+ };
44
+ }
45
+ }
46
+ /**
47
+ * Represents a range of characters represented by a lexical token
48
+ * within a Source.
49
+ */
50
+
51
+ class Token {
52
+ /**
53
+ * The kind of Token.
54
+ */
55
+
56
+ /**
57
+ * The character offset at which this Node begins.
58
+ */
59
+
60
+ /**
61
+ * The character offset at which this Node ends.
62
+ */
63
+
64
+ /**
65
+ * The 1-indexed line number on which this Token appears.
66
+ */
67
+
68
+ /**
69
+ * The 1-indexed column number at which this Token begins.
70
+ */
71
+
72
+ /**
73
+ * For non-punctuation tokens, represents the interpreted value of the token.
74
+ *
75
+ * Note: is undefined for punctuation tokens, but typed as string for
76
+ * convenience in the parser.
77
+ */
78
+
79
+ /**
80
+ * Tokens exist as nodes in a double-linked-list amongst all tokens
81
+ * including ignored tokens. <SOF> is always the first node and <EOF>
82
+ * the last.
83
+ */
84
+ constructor(kind, start, end, line, column, value) {
85
+ this.kind = kind;
86
+ this.start = start;
87
+ this.end = end;
88
+ this.line = line;
89
+ this.column = column; // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
90
+
91
+ this.value = value;
92
+ this.prev = null;
93
+ this.next = null;
94
+ }
95
+
96
+ get [Symbol.toStringTag]() {
97
+ return 'Token';
98
+ }
99
+
100
+ toJSON() {
101
+ return {
102
+ kind: this.kind,
103
+ value: this.value,
104
+ line: this.line,
105
+ column: this.column,
106
+ };
107
+ }
108
+ }
109
+ /**
110
+ * The list of all possible AST node types.
111
+ */
112
+
113
+ /**
114
+ * @internal
115
+ */
116
+ const QueryDocumentKeys = {
117
+ Name: [],
118
+ Document: ['definitions'],
119
+ OperationDefinition: [
120
+ 'description',
121
+ 'name',
122
+ 'variableDefinitions',
123
+ 'directives',
124
+ 'selectionSet',
125
+ ],
126
+ VariableDefinition: [
127
+ 'description',
128
+ 'variable',
129
+ 'type',
130
+ 'defaultValue',
131
+ 'directives',
132
+ ],
133
+ Variable: ['name'],
134
+ SelectionSet: ['selections'],
135
+ Field: ['alias', 'name', 'arguments', 'directives', 'selectionSet'],
136
+ Argument: ['name', 'value'],
137
+ FragmentSpread: ['name', 'directives'],
138
+ InlineFragment: ['typeCondition', 'directives', 'selectionSet'],
139
+ FragmentDefinition: [
140
+ 'description',
141
+ 'name', // Note: fragment variable definitions are deprecated and will removed in v17.0.0
142
+ 'variableDefinitions',
143
+ 'typeCondition',
144
+ 'directives',
145
+ 'selectionSet',
146
+ ],
147
+ IntValue: [],
148
+ FloatValue: [],
149
+ StringValue: [],
150
+ BooleanValue: [],
151
+ NullValue: [],
152
+ EnumValue: [],
153
+ ListValue: ['values'],
154
+ ObjectValue: ['fields'],
155
+ ObjectField: ['name', 'value'],
156
+ Directive: ['name', 'arguments'],
157
+ NamedType: ['name'],
158
+ ListType: ['type'],
159
+ NonNullType: ['type'],
160
+ SchemaDefinition: ['description', 'directives', 'operationTypes'],
161
+ OperationTypeDefinition: ['type'],
162
+ ScalarTypeDefinition: ['description', 'name', 'directives'],
163
+ ObjectTypeDefinition: [
164
+ 'description',
165
+ 'name',
166
+ 'interfaces',
167
+ 'directives',
168
+ 'fields',
169
+ ],
170
+ FieldDefinition: ['description', 'name', 'arguments', 'type', 'directives'],
171
+ InputValueDefinition: [
172
+ 'description',
173
+ 'name',
174
+ 'type',
175
+ 'defaultValue',
176
+ 'directives',
177
+ ],
178
+ InterfaceTypeDefinition: [
179
+ 'description',
180
+ 'name',
181
+ 'interfaces',
182
+ 'directives',
183
+ 'fields',
184
+ ],
185
+ UnionTypeDefinition: ['description', 'name', 'directives', 'types'],
186
+ EnumTypeDefinition: ['description', 'name', 'directives', 'values'],
187
+ EnumValueDefinition: ['description', 'name', 'directives'],
188
+ InputObjectTypeDefinition: ['description', 'name', 'directives', 'fields'],
189
+ DirectiveDefinition: ['description', 'name', 'arguments', 'locations'],
190
+ SchemaExtension: ['directives', 'operationTypes'],
191
+ ScalarTypeExtension: ['name', 'directives'],
192
+ ObjectTypeExtension: ['name', 'interfaces', 'directives', 'fields'],
193
+ InterfaceTypeExtension: ['name', 'interfaces', 'directives', 'fields'],
194
+ UnionTypeExtension: ['name', 'directives', 'types'],
195
+ EnumTypeExtension: ['name', 'directives', 'values'],
196
+ InputObjectTypeExtension: ['name', 'directives', 'fields'],
197
+ TypeCoordinate: ['name'],
198
+ MemberCoordinate: ['name', 'memberName'],
199
+ ArgumentCoordinate: ['name', 'fieldName', 'argumentName'],
200
+ DirectiveCoordinate: ['name'],
201
+ DirectiveArgumentCoordinate: ['name', 'argumentName'],
202
+ };
203
+ const kindValues = new Set(Object.keys(QueryDocumentKeys));
204
+ /**
205
+ * @internal
206
+ */
207
+
208
+ function isNode(maybeNode) {
209
+ const maybeKind =
210
+ maybeNode === null || maybeNode === void 0 ? void 0 : maybeNode.kind;
211
+ return typeof maybeKind === 'string' && kindValues.has(maybeKind);
212
+ }
213
+ /** Name */
214
+
215
+ exports.OperationTypeNode = void 0;
216
+
217
+ (function (OperationTypeNode) {
218
+ OperationTypeNode['QUERY'] = 'query';
219
+ OperationTypeNode['MUTATION'] = 'mutation';
220
+ OperationTypeNode['SUBSCRIPTION'] = 'subscription';
221
+ })(exports.OperationTypeNode || (exports.OperationTypeNode = {}));
222
+
223
+ exports.Location = Location;
224
+ exports.QueryDocumentKeys = QueryDocumentKeys;
225
+ exports.Token = Token;
226
+ exports.isNode = isNode;
227
+ //# sourceMappingURL=ast.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ast.js","sources":["../../../../../node_modules/graphql/language/ast.mjs"],"sourcesContent":["/**\n * Contains a range of UTF-8 character offsets and token references that\n * identify the region of the source from which the AST derived.\n */\nexport class Location {\n /**\n * The character offset at which this Node begins.\n */\n\n /**\n * The character offset at which this Node ends.\n */\n\n /**\n * The Token at which this Node begins.\n */\n\n /**\n * The Token at which this Node ends.\n */\n\n /**\n * The Source document the AST represents.\n */\n constructor(startToken, endToken, source) {\n this.start = startToken.start;\n this.end = endToken.end;\n this.startToken = startToken;\n this.endToken = endToken;\n this.source = source;\n }\n\n get [Symbol.toStringTag]() {\n return 'Location';\n }\n\n toJSON() {\n return {\n start: this.start,\n end: this.end,\n };\n }\n}\n/**\n * Represents a range of characters represented by a lexical token\n * within a Source.\n */\n\nexport class Token {\n /**\n * The kind of Token.\n */\n\n /**\n * The character offset at which this Node begins.\n */\n\n /**\n * The character offset at which this Node ends.\n */\n\n /**\n * The 1-indexed line number on which this Token appears.\n */\n\n /**\n * The 1-indexed column number at which this Token begins.\n */\n\n /**\n * For non-punctuation tokens, represents the interpreted value of the token.\n *\n * Note: is undefined for punctuation tokens, but typed as string for\n * convenience in the parser.\n */\n\n /**\n * Tokens exist as nodes in a double-linked-list amongst all tokens\n * including ignored tokens. <SOF> is always the first node and <EOF>\n * the last.\n */\n constructor(kind, start, end, line, column, value) {\n this.kind = kind;\n this.start = start;\n this.end = end;\n this.line = line;\n this.column = column; // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n\n this.value = value;\n this.prev = null;\n this.next = null;\n }\n\n get [Symbol.toStringTag]() {\n return 'Token';\n }\n\n toJSON() {\n return {\n kind: this.kind,\n value: this.value,\n line: this.line,\n column: this.column,\n };\n }\n}\n/**\n * The list of all possible AST node types.\n */\n\n/**\n * @internal\n */\nexport const QueryDocumentKeys = {\n Name: [],\n Document: ['definitions'],\n OperationDefinition: [\n 'description',\n 'name',\n 'variableDefinitions',\n 'directives',\n 'selectionSet',\n ],\n VariableDefinition: [\n 'description',\n 'variable',\n 'type',\n 'defaultValue',\n 'directives',\n ],\n Variable: ['name'],\n SelectionSet: ['selections'],\n Field: ['alias', 'name', 'arguments', 'directives', 'selectionSet'],\n Argument: ['name', 'value'],\n FragmentSpread: ['name', 'directives'],\n InlineFragment: ['typeCondition', 'directives', 'selectionSet'],\n FragmentDefinition: [\n 'description',\n 'name', // Note: fragment variable definitions are deprecated and will removed in v17.0.0\n 'variableDefinitions',\n 'typeCondition',\n 'directives',\n 'selectionSet',\n ],\n IntValue: [],\n FloatValue: [],\n StringValue: [],\n BooleanValue: [],\n NullValue: [],\n EnumValue: [],\n ListValue: ['values'],\n ObjectValue: ['fields'],\n ObjectField: ['name', 'value'],\n Directive: ['name', 'arguments'],\n NamedType: ['name'],\n ListType: ['type'],\n NonNullType: ['type'],\n SchemaDefinition: ['description', 'directives', 'operationTypes'],\n OperationTypeDefinition: ['type'],\n ScalarTypeDefinition: ['description', 'name', 'directives'],\n ObjectTypeDefinition: [\n 'description',\n 'name',\n 'interfaces',\n 'directives',\n 'fields',\n ],\n FieldDefinition: ['description', 'name', 'arguments', 'type', 'directives'],\n InputValueDefinition: [\n 'description',\n 'name',\n 'type',\n 'defaultValue',\n 'directives',\n ],\n InterfaceTypeDefinition: [\n 'description',\n 'name',\n 'interfaces',\n 'directives',\n 'fields',\n ],\n UnionTypeDefinition: ['description', 'name', 'directives', 'types'],\n EnumTypeDefinition: ['description', 'name', 'directives', 'values'],\n EnumValueDefinition: ['description', 'name', 'directives'],\n InputObjectTypeDefinition: ['description', 'name', 'directives', 'fields'],\n DirectiveDefinition: ['description', 'name', 'arguments', 'locations'],\n SchemaExtension: ['directives', 'operationTypes'],\n ScalarTypeExtension: ['name', 'directives'],\n ObjectTypeExtension: ['name', 'interfaces', 'directives', 'fields'],\n InterfaceTypeExtension: ['name', 'interfaces', 'directives', 'fields'],\n UnionTypeExtension: ['name', 'directives', 'types'],\n EnumTypeExtension: ['name', 'directives', 'values'],\n InputObjectTypeExtension: ['name', 'directives', 'fields'],\n TypeCoordinate: ['name'],\n MemberCoordinate: ['name', 'memberName'],\n ArgumentCoordinate: ['name', 'fieldName', 'argumentName'],\n DirectiveCoordinate: ['name'],\n DirectiveArgumentCoordinate: ['name', 'argumentName'],\n};\nconst kindValues = new Set(Object.keys(QueryDocumentKeys));\n/**\n * @internal\n */\n\nexport function isNode(maybeNode) {\n const maybeKind =\n maybeNode === null || maybeNode === void 0 ? void 0 : maybeNode.kind;\n return typeof maybeKind === 'string' && kindValues.has(maybeKind);\n}\n/** Name */\n\nvar OperationTypeNode;\n\n(function (OperationTypeNode) {\n OperationTypeNode['QUERY'] = 'query';\n OperationTypeNode['MUTATION'] = 'mutation';\n OperationTypeNode['SUBSCRIPTION'] = 'subscription';\n})(OperationTypeNode || (OperationTypeNode = {}));\n\nexport { OperationTypeNode };\n"],"names":["OperationTypeNode"],"mappings":";;AAAA;AACA;AACA;AACA;AACO,MAAM,QAAQ,CAAC;AACtB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,EAAE,WAAW,CAAC,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE;AAC5C,IAAI,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK;AACjC,IAAI,IAAI,CAAC,GAAG,GAAG,QAAQ,CAAC,GAAG;AAC3B,IAAI,IAAI,CAAC,UAAU,GAAG,UAAU;AAChC,IAAI,IAAI,CAAC,QAAQ,GAAG,QAAQ;AAC5B,IAAI,IAAI,CAAC,MAAM,GAAG,MAAM;AACxB,EAAE;;AAEF,EAAE,KAAK,MAAM,CAAC,WAAW,CAAC,GAAG;AAC7B,IAAI,OAAO,UAAU;AACrB,EAAE;;AAEF,EAAE,MAAM,GAAG;AACX,IAAI,OAAO;AACX,MAAM,KAAK,EAAE,IAAI,CAAC,KAAK;AACvB,MAAM,GAAG,EAAE,IAAI,CAAC,GAAG;AACnB,KAAK;AACL,EAAE;AACF;AACA;AACA;AACA;AACA;;AAEO,MAAM,KAAK,CAAC;AACnB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAE,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,MA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E,CAAC,MAAM,EAAE,YAAY,CAAC;AAC1C,EAAE,kBAAkB,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,cAAc,CAAC;AAC3D,EAAE,mBAAmB,EAAE,CAAC,MAAM,CAAC;AAC/B,EAAE,2BAA2B,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC;AACvD;AACA,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;AAC1D;AACA;AACA;;AAEO,SAAS,MAAM,CAAC,SAAS,EAAE;AAClC,EAAE,MAAM,SAAS;AACjB,IAAI,SAAS,KAAK,IAAI,IAAI,SAAS,KAAK,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,IAAI;AACxE,EAAE,OAAO,OAAO,SAAS,KAAK,QAAQ,IAAI,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC;AACnE;AACA;;AAEIA;;AAEJ,CAAC,UAAU,iBAAiB,EAAE;AAC9B,EAAE,iBAAiB,CAAC,OAAO,CAAC,GAAG,OAAO;AACtC,EAAE,iBAAiB,CAAC,UAAU,CAAC,GAAG,UAAU;AAC5C,EAAE,iBAAiB,CAAC,cAAc,CAAC,GAAG,cAAc;AACpD,CAAC,EAAEA,yBAAiB,KAAKA,yBAAiB,GAAG,EAAE,CAAC,CAAC;;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,114 @@
1
+ 'use strict';
2
+
3
+ var characterClasses = require('./characterClasses.js');
4
+
5
+ /**
6
+ * Produces the value of a block string from its parsed raw value, similar to
7
+ * CoffeeScript's block string, Python's docstring trim or Ruby's strip_heredoc.
8
+ *
9
+ * This implements the GraphQL spec's BlockStringValue() static algorithm.
10
+ *
11
+ * @internal
12
+ */
13
+
14
+ function dedentBlockStringLines(lines) {
15
+ var _firstNonEmptyLine2;
16
+
17
+ let commonIndent = Number.MAX_SAFE_INTEGER;
18
+ let firstNonEmptyLine = null;
19
+ let lastNonEmptyLine = -1;
20
+
21
+ for (let i = 0; i < lines.length; ++i) {
22
+ var _firstNonEmptyLine;
23
+
24
+ const line = lines[i];
25
+ const indent = leadingWhitespace(line);
26
+
27
+ if (indent === line.length) {
28
+ continue; // skip empty lines
29
+ }
30
+
31
+ firstNonEmptyLine =
32
+ (_firstNonEmptyLine = firstNonEmptyLine) !== null &&
33
+ _firstNonEmptyLine !== void 0
34
+ ? _firstNonEmptyLine
35
+ : i;
36
+ lastNonEmptyLine = i;
37
+
38
+ if (i !== 0 && indent < commonIndent) {
39
+ commonIndent = indent;
40
+ }
41
+ }
42
+
43
+ return lines // Remove common indentation from all lines but first.
44
+ .map((line, i) => (i === 0 ? line : line.slice(commonIndent))) // Remove leading and trailing blank lines.
45
+ .slice(
46
+ (_firstNonEmptyLine2 = firstNonEmptyLine) !== null &&
47
+ _firstNonEmptyLine2 !== void 0
48
+ ? _firstNonEmptyLine2
49
+ : 0,
50
+ lastNonEmptyLine + 1,
51
+ );
52
+ }
53
+
54
+ function leadingWhitespace(str) {
55
+ let i = 0;
56
+
57
+ while (i < str.length && characterClasses.isWhiteSpace(str.charCodeAt(i))) {
58
+ ++i;
59
+ }
60
+
61
+ return i;
62
+ }
63
+ /**
64
+ * Print a block string in the indented block form by adding a leading and
65
+ * trailing blank line. However, if a block string starts with whitespace and is
66
+ * a single-line, adding a leading blank line would strip that whitespace.
67
+ *
68
+ * @internal
69
+ */
70
+
71
+ function printBlockString(value, options) {
72
+ const escapedValue = value.replace(/"""/g, '\\"""'); // Expand a block string's raw value into independent lines.
73
+
74
+ const lines = escapedValue.split(/\r\n|[\n\r]/g);
75
+ const isSingleLine = lines.length === 1; // If common indentation is found we can fix some of those cases by adding leading new line
76
+
77
+ const forceLeadingNewLine =
78
+ lines.length > 1 &&
79
+ lines
80
+ .slice(1)
81
+ .every((line) => line.length === 0 || characterClasses.isWhiteSpace(line.charCodeAt(0))); // Trailing triple quotes just looks confusing but doesn't force trailing new line
82
+
83
+ const hasTrailingTripleQuotes = escapedValue.endsWith('\\"""'); // Trailing quote (single or double) or slash forces trailing new line
84
+
85
+ const hasTrailingQuote = value.endsWith('"') && !hasTrailingTripleQuotes;
86
+ const hasTrailingSlash = value.endsWith('\\');
87
+ const forceTrailingNewline = hasTrailingQuote || hasTrailingSlash;
88
+ const printAsMultipleLines =
89
+ // add leading and trailing new lines only if it improves readability
90
+ (!isSingleLine ||
91
+ value.length > 70 ||
92
+ forceTrailingNewline ||
93
+ forceLeadingNewLine ||
94
+ hasTrailingTripleQuotes);
95
+ let result = ''; // Format a multi-line block quote to account for leading space.
96
+
97
+ const skipLeadingNewLine = isSingleLine && characterClasses.isWhiteSpace(value.charCodeAt(0));
98
+
99
+ if ((printAsMultipleLines && !skipLeadingNewLine) || forceLeadingNewLine) {
100
+ result += '\n';
101
+ }
102
+
103
+ result += escapedValue;
104
+
105
+ if (printAsMultipleLines || forceTrailingNewline) {
106
+ result += '\n';
107
+ }
108
+
109
+ return '"""' + result + '"""';
110
+ }
111
+
112
+ exports.dedentBlockStringLines = dedentBlockStringLines;
113
+ exports.printBlockString = printBlockString;
114
+ //# sourceMappingURL=blockString.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blockString.js","sources":["../../../../../node_modules/graphql/language/blockString.mjs"],"sourcesContent":["import { isWhiteSpace } from './characterClasses.mjs';\n/**\n * Produces the value of a block string from its parsed raw value, similar to\n * CoffeeScript's block string, Python's docstring trim or Ruby's strip_heredoc.\n *\n * This implements the GraphQL spec's BlockStringValue() static algorithm.\n *\n * @internal\n */\n\nexport function dedentBlockStringLines(lines) {\n var _firstNonEmptyLine2;\n\n let commonIndent = Number.MAX_SAFE_INTEGER;\n let firstNonEmptyLine = null;\n let lastNonEmptyLine = -1;\n\n for (let i = 0; i < lines.length; ++i) {\n var _firstNonEmptyLine;\n\n const line = lines[i];\n const indent = leadingWhitespace(line);\n\n if (indent === line.length) {\n continue; // skip empty lines\n }\n\n firstNonEmptyLine =\n (_firstNonEmptyLine = firstNonEmptyLine) !== null &&\n _firstNonEmptyLine !== void 0\n ? _firstNonEmptyLine\n : i;\n lastNonEmptyLine = i;\n\n if (i !== 0 && indent < commonIndent) {\n commonIndent = indent;\n }\n }\n\n return lines // Remove common indentation from all lines but first.\n .map((line, i) => (i === 0 ? line : line.slice(commonIndent))) // Remove leading and trailing blank lines.\n .slice(\n (_firstNonEmptyLine2 = firstNonEmptyLine) !== null &&\n _firstNonEmptyLine2 !== void 0\n ? _firstNonEmptyLine2\n : 0,\n lastNonEmptyLine + 1,\n );\n}\n\nfunction leadingWhitespace(str) {\n let i = 0;\n\n while (i < str.length && isWhiteSpace(str.charCodeAt(i))) {\n ++i;\n }\n\n return i;\n}\n/**\n * @internal\n */\n\nexport function isPrintableAsBlockString(value) {\n if (value === '') {\n return true; // empty string is printable\n }\n\n let isEmptyLine = true;\n let hasIndent = false;\n let hasCommonIndent = true;\n let seenNonEmptyLine = false;\n\n for (let i = 0; i < value.length; ++i) {\n switch (value.codePointAt(i)) {\n case 0x0000:\n case 0x0001:\n case 0x0002:\n case 0x0003:\n case 0x0004:\n case 0x0005:\n case 0x0006:\n case 0x0007:\n case 0x0008:\n case 0x000b:\n case 0x000c:\n case 0x000e:\n case 0x000f:\n return false;\n // Has non-printable characters\n\n case 0x000d:\n // \\r\n return false;\n // Has \\r or \\r\\n which will be replaced as \\n\n\n case 10:\n // \\n\n if (isEmptyLine && !seenNonEmptyLine) {\n return false; // Has leading new line\n }\n\n seenNonEmptyLine = true;\n isEmptyLine = true;\n hasIndent = false;\n break;\n\n case 9: // \\t\n\n case 32:\n // <space>\n hasIndent || (hasIndent = isEmptyLine);\n break;\n\n default:\n hasCommonIndent && (hasCommonIndent = hasIndent);\n isEmptyLine = false;\n }\n }\n\n if (isEmptyLine) {\n return false; // Has trailing empty lines\n }\n\n if (hasCommonIndent && seenNonEmptyLine) {\n return false; // Has internal indent\n }\n\n return true;\n}\n/**\n * Print a block string in the indented block form by adding a leading and\n * trailing blank line. However, if a block string starts with whitespace and is\n * a single-line, adding a leading blank line would strip that whitespace.\n *\n * @internal\n */\n\nexport function printBlockString(value, options) {\n const escapedValue = value.replace(/\"\"\"/g, '\\\\\"\"\"'); // Expand a block string's raw value into independent lines.\n\n const lines = escapedValue.split(/\\r\\n|[\\n\\r]/g);\n const isSingleLine = lines.length === 1; // If common indentation is found we can fix some of those cases by adding leading new line\n\n const forceLeadingNewLine =\n lines.length > 1 &&\n lines\n .slice(1)\n .every((line) => line.length === 0 || isWhiteSpace(line.charCodeAt(0))); // Trailing triple quotes just looks confusing but doesn't force trailing new line\n\n const hasTrailingTripleQuotes = escapedValue.endsWith('\\\\\"\"\"'); // Trailing quote (single or double) or slash forces trailing new line\n\n const hasTrailingQuote = value.endsWith('\"') && !hasTrailingTripleQuotes;\n const hasTrailingSlash = value.endsWith('\\\\');\n const forceTrailingNewline = hasTrailingQuote || hasTrailingSlash;\n const printAsMultipleLines =\n !(options !== null && options !== void 0 && options.minimize) && // add leading and trailing new lines only if it improves readability\n (!isSingleLine ||\n value.length > 70 ||\n forceTrailingNewline ||\n forceLeadingNewLine ||\n hasTrailingTripleQuotes);\n let result = ''; // Format a multi-line block quote to account for leading space.\n\n const skipLeadingNewLine = isSingleLine && isWhiteSpace(value.charCodeAt(0));\n\n if ((printAsMultipleLines && !skipLeadingNewLine) || forceLeadingNewLine) {\n result += '\\n';\n }\n\n result += escapedValue;\n\n if (printAsMultipleLines || forceTrailingNewline) {\n result += '\\n';\n }\n\n return '\"\"\"' + result + '\"\"\"';\n}\n"],"names":["isWhiteSpace"],"mappings":";;;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO,SAAS,sBAAsB,CAAC,KAAK,EAAE;AAC9C,EAAE,IAAI,mBAAmB;;AAEzB,EAAE,IAAI,YAAY,GAAG,MAAM,CAAC,gBAAgB;AAC5C,EAAE,IAAI,iBAAiB,GAAG,IAAI;AAC9B,EAAE,IAAI,gBAAgB,GAAG,EAAE;;AAE3B,EAAE,KAAK,IAAI,CAAC,GAAG,CAAC,EA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