houdini 0.0.0-20231008055552

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 (372) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +36 -0
  3. package/build/adapter/index.d.ts +3 -0
  4. package/build/adapter-cjs/index.js +33 -0
  5. package/build/adapter-cjs/package.json +1 -0
  6. package/build/adapter-esm/index.js +9 -0
  7. package/build/adapter-esm/package.json +1 -0
  8. package/build/cmd/generate.d.ts +8 -0
  9. package/build/cmd/index.d.ts +1 -0
  10. package/build/cmd/init.d.ts +5 -0
  11. package/build/cmd/pullSchema.d.ts +3 -0
  12. package/build/cmd-cjs/index.js +76228 -0
  13. package/build/cmd-cjs/package.json +1 -0
  14. package/build/cmd-esm/index.js +76233 -0
  15. package/build/cmd-esm/package.json +1 -0
  16. package/build/codegen/generators/artifacts/fieldKey.d.ts +3 -0
  17. package/build/codegen/generators/artifacts/index.d.ts +9 -0
  18. package/build/codegen/generators/artifacts/indexFile.d.ts +2 -0
  19. package/build/codegen/generators/artifacts/inputs.d.ts +4 -0
  20. package/build/codegen/generators/artifacts/operations.d.ts +11 -0
  21. package/build/codegen/generators/artifacts/selection.d.ts +19 -0
  22. package/build/codegen/generators/artifacts/utils.d.ts +8 -0
  23. package/build/codegen/generators/definitions/enums.d.ts +2 -0
  24. package/build/codegen/generators/definitions/index.d.ts +2 -0
  25. package/build/codegen/generators/index.d.ts +6 -0
  26. package/build/codegen/generators/indexFile/index.d.ts +2 -0
  27. package/build/codegen/generators/persistedQueries/index.d.ts +2 -0
  28. package/build/codegen/generators/runtime/graphqlFunction.d.ts +2 -0
  29. package/build/codegen/generators/runtime/index.d.ts +2 -0
  30. package/build/codegen/generators/runtime/injectPlugins.d.ts +7 -0
  31. package/build/codegen/generators/runtime/pluginIndex.d.ts +5 -0
  32. package/build/codegen/generators/runtime/runtimeConfig.d.ts +7 -0
  33. package/build/codegen/generators/typescript/addReferencedInputTypes.d.ts +4 -0
  34. package/build/codegen/generators/typescript/documentTypes.d.ts +2 -0
  35. package/build/codegen/generators/typescript/imperativeTypeDef.d.ts +2 -0
  36. package/build/codegen/generators/typescript/index.d.ts +2 -0
  37. package/build/codegen/generators/typescript/inlineType.d.ts +24 -0
  38. package/build/codegen/generators/typescript/loadingState.d.ts +8 -0
  39. package/build/codegen/generators/typescript/typeReference.d.ts +8 -0
  40. package/build/codegen/generators/typescript/types.d.ts +7 -0
  41. package/build/codegen/index.d.ts +7 -0
  42. package/build/codegen/transforms/addID.d.ts +2 -0
  43. package/build/codegen/transforms/collectDefinitions.d.ts +9 -0
  44. package/build/codegen/transforms/fragmentVariables.d.ts +17 -0
  45. package/build/codegen/transforms/index.d.ts +7 -0
  46. package/build/codegen/transforms/list.d.ts +9 -0
  47. package/build/codegen/transforms/paginate.d.ts +36 -0
  48. package/build/codegen/transforms/schema.d.ts +2 -0
  49. package/build/codegen/transforms/typename.d.ts +2 -0
  50. package/build/codegen/utils/commonjs.d.ts +5 -0
  51. package/build/codegen/utils/flattenSelections.d.ts +11 -0
  52. package/build/codegen/utils/index.d.ts +4 -0
  53. package/build/codegen/utils/moduleExport.d.ts +4 -0
  54. package/build/codegen/utils/murmur.d.ts +9 -0
  55. package/build/codegen/utils/objectIdentificationSelection.d.ts +3 -0
  56. package/build/codegen/validators/index.d.ts +4 -0
  57. package/build/codegen/validators/noIDAlias.d.ts +2 -0
  58. package/build/codegen/validators/plugins.d.ts +3 -0
  59. package/build/codegen/validators/typeCheck.d.ts +5 -0
  60. package/build/codegen/validators/uniqueNames.d.ts +2 -0
  61. package/build/codegen-cjs/index.js +63600 -0
  62. package/build/codegen-cjs/package.json +1 -0
  63. package/build/codegen-esm/index.js +63599 -0
  64. package/build/codegen-esm/package.json +1 -0
  65. package/build/lib/cleanupFiles.d.ts +1 -0
  66. package/build/lib/config.d.ts +156 -0
  67. package/build/lib/constants.d.ts +8 -0
  68. package/build/lib/deepMerge.d.ts +1 -0
  69. package/build/lib/detectTools.d.ts +16 -0
  70. package/build/lib/error.d.ts +9 -0
  71. package/build/lib/fs.d.ts +34 -0
  72. package/build/lib/graphql.d.ts +32 -0
  73. package/build/lib/imports.d.ts +20 -0
  74. package/build/lib/index.d.ts +22 -0
  75. package/build/lib/introspection.d.ts +3 -0
  76. package/build/lib/parse.d.ts +18 -0
  77. package/build/lib/path.d.ts +13 -0
  78. package/build/lib/pipeline.d.ts +3 -0
  79. package/build/lib/plugin.d.ts +2 -0
  80. package/build/lib/router/conventions.d.ts +26 -0
  81. package/build/lib/router/index.d.ts +9 -0
  82. package/build/lib/router/manifest.d.ts +12 -0
  83. package/build/lib/router/server.d.ts +7 -0
  84. package/build/lib/router/types.d.ts +11 -0
  85. package/build/lib/types.d.ts +303 -0
  86. package/build/lib/walk.d.ts +28 -0
  87. package/build/lib-cjs/index.js +69081 -0
  88. package/build/lib-cjs/package.json +1 -0
  89. package/build/lib-esm/index.js +69002 -0
  90. package/build/lib-esm/package.json +1 -0
  91. package/build/runtime/cache/cache.d.ts +147 -0
  92. package/build/runtime/cache/gc.d.ts +10 -0
  93. package/build/runtime/cache/index.d.ts +3 -0
  94. package/build/runtime/cache/lists.d.ts +87 -0
  95. package/build/runtime/cache/schema.d.ts +21 -0
  96. package/build/runtime/cache/staleManager.d.ts +31 -0
  97. package/build/runtime/cache/storage.d.ts +108 -0
  98. package/build/runtime/cache/stuff.d.ts +1 -0
  99. package/build/runtime/cache/subscription.d.ts +49 -0
  100. package/build/runtime/client/documentStore.d.ts +104 -0
  101. package/build/runtime/client/index.d.ts +43 -0
  102. package/build/runtime/client/plugins/cache.d.ts +9 -0
  103. package/build/runtime/client/plugins/fetch.d.ts +38 -0
  104. package/build/runtime/client/plugins/fetchParams.d.ts +9 -0
  105. package/build/runtime/client/plugins/fragment.d.ts +2 -0
  106. package/build/runtime/client/plugins/index.d.ts +8 -0
  107. package/build/runtime/client/plugins/injectedPlugins.d.ts +4 -0
  108. package/build/runtime/client/plugins/mutation.d.ts +1 -0
  109. package/build/runtime/client/plugins/query.d.ts +2 -0
  110. package/build/runtime/client/plugins/subscription.d.ts +20 -0
  111. package/build/runtime/client/plugins/throwOnError.d.ts +8 -0
  112. package/build/runtime/client/utils/documentPlugins.d.ts +3 -0
  113. package/build/runtime/client/utils/index.d.ts +1 -0
  114. package/build/runtime/generated.d.ts +5 -0
  115. package/build/runtime/imports/config.d.ts +3 -0
  116. package/build/runtime/imports/pluginConfig.d.ts +3 -0
  117. package/build/runtime/index.d.ts +8 -0
  118. package/build/runtime/lib/config.d.ts +175 -0
  119. package/build/runtime/lib/constants.d.ts +6 -0
  120. package/build/runtime/lib/deepEquals.d.ts +1 -0
  121. package/build/runtime/lib/flatten.d.ts +2 -0
  122. package/build/runtime/lib/index.d.ts +9 -0
  123. package/build/runtime/lib/key.d.ts +6 -0
  124. package/build/runtime/lib/log.d.ts +6 -0
  125. package/build/runtime/lib/lru.d.ts +52 -0
  126. package/build/runtime/lib/pageInfo.d.ts +7 -0
  127. package/build/runtime/lib/pagination.d.ts +27 -0
  128. package/build/runtime/lib/scalars.d.ts +14 -0
  129. package/build/runtime/lib/selection.d.ts +2 -0
  130. package/build/runtime/lib/store.d.ts +19 -0
  131. package/build/runtime/lib/types.d.ts +359 -0
  132. package/build/runtime/public/cache.d.ts +43 -0
  133. package/build/runtime/public/index.d.ts +1 -0
  134. package/build/runtime/public/list.d.ts +18 -0
  135. package/build/runtime/public/record.d.ts +40 -0
  136. package/build/runtime/public/tests/test.d.ts +156 -0
  137. package/build/runtime/public/types.d.ts +62 -0
  138. package/build/runtime/router/cookies.d.ts +41 -0
  139. package/build/runtime/router/jwt.d.ts +117 -0
  140. package/build/runtime/router/match.d.ts +38 -0
  141. package/build/runtime/router/server.d.ts +22 -0
  142. package/build/runtime/router/session.d.ts +22 -0
  143. package/build/runtime/router/types.d.ts +23 -0
  144. package/build/runtime-cjs/cache/cache.d.ts +147 -0
  145. package/build/runtime-cjs/cache/cache.js +918 -0
  146. package/build/runtime-cjs/cache/gc.d.ts +10 -0
  147. package/build/runtime-cjs/cache/gc.js +73 -0
  148. package/build/runtime-cjs/cache/index.d.ts +3 -0
  149. package/build/runtime-cjs/cache/index.js +27 -0
  150. package/build/runtime-cjs/cache/lists.d.ts +87 -0
  151. package/build/runtime-cjs/cache/lists.js +434 -0
  152. package/build/runtime-cjs/cache/schema.d.ts +21 -0
  153. package/build/runtime-cjs/cache/schema.js +66 -0
  154. package/build/runtime-cjs/cache/staleManager.d.ts +31 -0
  155. package/build/runtime-cjs/cache/staleManager.js +98 -0
  156. package/build/runtime-cjs/cache/storage.d.ts +108 -0
  157. package/build/runtime-cjs/cache/storage.js +414 -0
  158. package/build/runtime-cjs/cache/stuff.d.ts +1 -0
  159. package/build/runtime-cjs/cache/stuff.js +53 -0
  160. package/build/runtime-cjs/cache/subscription.d.ts +49 -0
  161. package/build/runtime-cjs/cache/subscription.js +297 -0
  162. package/build/runtime-cjs/client/documentStore.d.ts +104 -0
  163. package/build/runtime-cjs/client/documentStore.js +416 -0
  164. package/build/runtime-cjs/client/index.d.ts +43 -0
  165. package/build/runtime-cjs/client/index.js +129 -0
  166. package/build/runtime-cjs/client/plugins/cache.d.ts +9 -0
  167. package/build/runtime-cjs/client/plugins/cache.js +131 -0
  168. package/build/runtime-cjs/client/plugins/fetch.d.ts +38 -0
  169. package/build/runtime-cjs/client/plugins/fetch.js +191 -0
  170. package/build/runtime-cjs/client/plugins/fetchParams.d.ts +9 -0
  171. package/build/runtime-cjs/client/plugins/fetchParams.js +45 -0
  172. package/build/runtime-cjs/client/plugins/fragment.d.ts +2 -0
  173. package/build/runtime-cjs/client/plugins/fragment.js +83 -0
  174. package/build/runtime-cjs/client/plugins/index.d.ts +8 -0
  175. package/build/runtime-cjs/client/plugins/index.js +25 -0
  176. package/build/runtime-cjs/client/plugins/injectedPlugins.d.ts +4 -0
  177. package/build/runtime-cjs/client/plugins/injectedPlugins.js +27 -0
  178. package/build/runtime-cjs/client/plugins/mutation.d.ts +1 -0
  179. package/build/runtime-cjs/client/plugins/mutation.js +90 -0
  180. package/build/runtime-cjs/client/plugins/query.d.ts +2 -0
  181. package/build/runtime-cjs/client/plugins/query.js +82 -0
  182. package/build/runtime-cjs/client/plugins/subscription.d.ts +20 -0
  183. package/build/runtime-cjs/client/plugins/subscription.js +114 -0
  184. package/build/runtime-cjs/client/plugins/throwOnError.d.ts +8 -0
  185. package/build/runtime-cjs/client/plugins/throwOnError.js +47 -0
  186. package/build/runtime-cjs/client/utils/documentPlugins.d.ts +3 -0
  187. package/build/runtime-cjs/client/utils/documentPlugins.js +56 -0
  188. package/build/runtime-cjs/client/utils/index.d.ts +1 -0
  189. package/build/runtime-cjs/client/utils/index.js +18 -0
  190. package/build/runtime-cjs/generated.d.ts +5 -0
  191. package/build/runtime-cjs/generated.js +16 -0
  192. package/build/runtime-cjs/imports/config.d.ts +3 -0
  193. package/build/runtime-cjs/imports/config.js +26 -0
  194. package/build/runtime-cjs/imports/pluginConfig.d.ts +3 -0
  195. package/build/runtime-cjs/imports/pluginConfig.js +27 -0
  196. package/build/runtime-cjs/index.d.ts +8 -0
  197. package/build/runtime-cjs/index.js +55 -0
  198. package/build/runtime-cjs/lib/config.d.ts +175 -0
  199. package/build/runtime-cjs/lib/config.js +106 -0
  200. package/build/runtime-cjs/lib/constants.d.ts +6 -0
  201. package/build/runtime-cjs/lib/constants.js +38 -0
  202. package/build/runtime-cjs/lib/deepEquals.d.ts +1 -0
  203. package/build/runtime-cjs/lib/deepEquals.js +54 -0
  204. package/build/runtime-cjs/lib/flatten.d.ts +2 -0
  205. package/build/runtime-cjs/lib/flatten.js +41 -0
  206. package/build/runtime-cjs/lib/index.d.ts +9 -0
  207. package/build/runtime-cjs/lib/index.js +26 -0
  208. package/build/runtime-cjs/lib/key.d.ts +6 -0
  209. package/build/runtime-cjs/lib/key.js +41 -0
  210. package/build/runtime-cjs/lib/log.d.ts +6 -0
  211. package/build/runtime-cjs/lib/log.js +72 -0
  212. package/build/runtime-cjs/lib/lru.d.ts +52 -0
  213. package/build/runtime-cjs/lib/lru.js +73 -0
  214. package/build/runtime-cjs/lib/pageInfo.d.ts +7 -0
  215. package/build/runtime-cjs/lib/pageInfo.js +79 -0
  216. package/build/runtime-cjs/lib/pagination.d.ts +27 -0
  217. package/build/runtime-cjs/lib/pagination.js +219 -0
  218. package/build/runtime-cjs/lib/scalars.d.ts +14 -0
  219. package/build/runtime-cjs/lib/scalars.js +145 -0
  220. package/build/runtime-cjs/lib/selection.d.ts +2 -0
  221. package/build/runtime-cjs/lib/selection.js +66 -0
  222. package/build/runtime-cjs/lib/store.d.ts +19 -0
  223. package/build/runtime-cjs/lib/store.js +81 -0
  224. package/build/runtime-cjs/lib/types.d.ts +359 -0
  225. package/build/runtime-cjs/lib/types.js +86 -0
  226. package/build/runtime-cjs/package.json +1 -0
  227. package/build/runtime-cjs/public/cache.d.ts +43 -0
  228. package/build/runtime-cjs/public/cache.js +100 -0
  229. package/build/runtime-cjs/public/index.d.ts +1 -0
  230. package/build/runtime-cjs/public/index.js +28 -0
  231. package/build/runtime-cjs/public/list.d.ts +18 -0
  232. package/build/runtime-cjs/public/list.js +151 -0
  233. package/build/runtime-cjs/public/record.d.ts +40 -0
  234. package/build/runtime-cjs/public/record.js +89 -0
  235. package/build/runtime-cjs/public/tests/test.d.ts +156 -0
  236. package/build/runtime-cjs/public/tests/test.js +58 -0
  237. package/build/runtime-cjs/public/types.d.ts +62 -0
  238. package/build/runtime-cjs/public/types.js +16 -0
  239. package/build/runtime-cjs/router/cookies.d.ts +41 -0
  240. package/build/runtime-cjs/router/cookies.js +168 -0
  241. package/build/runtime-cjs/router/jwt.d.ts +117 -0
  242. package/build/runtime-cjs/router/jwt.js +181 -0
  243. package/build/runtime-cjs/router/match.d.ts +38 -0
  244. package/build/runtime-cjs/router/match.js +149 -0
  245. package/build/runtime-cjs/router/server.d.ts +22 -0
  246. package/build/runtime-cjs/router/server.js +95 -0
  247. package/build/runtime-cjs/router/session.d.ts +22 -0
  248. package/build/runtime-cjs/router/session.js +77 -0
  249. package/build/runtime-cjs/router/types.d.ts +23 -0
  250. package/build/runtime-cjs/router/types.js +16 -0
  251. package/build/runtime-esm/cache/cache.d.ts +147 -0
  252. package/build/runtime-esm/cache/cache.js +892 -0
  253. package/build/runtime-esm/cache/gc.d.ts +10 -0
  254. package/build/runtime-esm/cache/gc.js +49 -0
  255. package/build/runtime-esm/cache/index.d.ts +3 -0
  256. package/build/runtime-esm/cache/index.js +5 -0
  257. package/build/runtime-esm/cache/lists.d.ts +87 -0
  258. package/build/runtime-esm/cache/lists.js +408 -0
  259. package/build/runtime-esm/cache/schema.d.ts +21 -0
  260. package/build/runtime-esm/cache/schema.js +42 -0
  261. package/build/runtime-esm/cache/staleManager.d.ts +31 -0
  262. package/build/runtime-esm/cache/staleManager.js +74 -0
  263. package/build/runtime-esm/cache/storage.d.ts +108 -0
  264. package/build/runtime-esm/cache/storage.js +387 -0
  265. package/build/runtime-esm/cache/stuff.d.ts +1 -0
  266. package/build/runtime-esm/cache/stuff.js +29 -0
  267. package/build/runtime-esm/cache/subscription.d.ts +49 -0
  268. package/build/runtime-esm/cache/subscription.js +273 -0
  269. package/build/runtime-esm/client/documentStore.d.ts +104 -0
  270. package/build/runtime-esm/client/documentStore.js +392 -0
  271. package/build/runtime-esm/client/index.d.ts +43 -0
  272. package/build/runtime-esm/client/index.js +100 -0
  273. package/build/runtime-esm/client/plugins/cache.d.ts +9 -0
  274. package/build/runtime-esm/client/plugins/cache.js +101 -0
  275. package/build/runtime-esm/client/plugins/fetch.d.ts +38 -0
  276. package/build/runtime-esm/client/plugins/fetch.js +165 -0
  277. package/build/runtime-esm/client/plugins/fetchParams.d.ts +9 -0
  278. package/build/runtime-esm/client/plugins/fetchParams.js +21 -0
  279. package/build/runtime-esm/client/plugins/fragment.d.ts +2 -0
  280. package/build/runtime-esm/client/plugins/fragment.js +53 -0
  281. package/build/runtime-esm/client/plugins/index.d.ts +8 -0
  282. package/build/runtime-esm/client/plugins/index.js +8 -0
  283. package/build/runtime-esm/client/plugins/injectedPlugins.d.ts +4 -0
  284. package/build/runtime-esm/client/plugins/injectedPlugins.js +5 -0
  285. package/build/runtime-esm/client/plugins/mutation.d.ts +1 -0
  286. package/build/runtime-esm/client/plugins/mutation.js +60 -0
  287. package/build/runtime-esm/client/plugins/query.d.ts +2 -0
  288. package/build/runtime-esm/client/plugins/query.js +52 -0
  289. package/build/runtime-esm/client/plugins/subscription.d.ts +20 -0
  290. package/build/runtime-esm/client/plugins/subscription.js +90 -0
  291. package/build/runtime-esm/client/plugins/throwOnError.d.ts +8 -0
  292. package/build/runtime-esm/client/plugins/throwOnError.js +23 -0
  293. package/build/runtime-esm/client/utils/documentPlugins.d.ts +3 -0
  294. package/build/runtime-esm/client/utils/documentPlugins.js +32 -0
  295. package/build/runtime-esm/client/utils/index.d.ts +1 -0
  296. package/build/runtime-esm/client/utils/index.js +1 -0
  297. package/build/runtime-esm/generated.d.ts +5 -0
  298. package/build/runtime-esm/generated.js +0 -0
  299. package/build/runtime-esm/imports/config.d.ts +3 -0
  300. package/build/runtime-esm/imports/config.js +4 -0
  301. package/build/runtime-esm/imports/pluginConfig.d.ts +3 -0
  302. package/build/runtime-esm/imports/pluginConfig.js +5 -0
  303. package/build/runtime-esm/index.d.ts +8 -0
  304. package/build/runtime-esm/index.js +22 -0
  305. package/build/runtime-esm/lib/config.d.ts +175 -0
  306. package/build/runtime-esm/lib/config.js +69 -0
  307. package/build/runtime-esm/lib/constants.d.ts +6 -0
  308. package/build/runtime-esm/lib/constants.js +12 -0
  309. package/build/runtime-esm/lib/deepEquals.d.ts +1 -0
  310. package/build/runtime-esm/lib/deepEquals.js +30 -0
  311. package/build/runtime-esm/lib/flatten.d.ts +2 -0
  312. package/build/runtime-esm/lib/flatten.js +17 -0
  313. package/build/runtime-esm/lib/index.d.ts +9 -0
  314. package/build/runtime-esm/lib/index.js +9 -0
  315. package/build/runtime-esm/lib/key.d.ts +6 -0
  316. package/build/runtime-esm/lib/key.js +17 -0
  317. package/build/runtime-esm/lib/log.d.ts +6 -0
  318. package/build/runtime-esm/lib/log.js +43 -0
  319. package/build/runtime-esm/lib/lru.d.ts +52 -0
  320. package/build/runtime-esm/lib/lru.js +48 -0
  321. package/build/runtime-esm/lib/pageInfo.d.ts +7 -0
  322. package/build/runtime-esm/lib/pageInfo.js +52 -0
  323. package/build/runtime-esm/lib/pagination.d.ts +27 -0
  324. package/build/runtime-esm/lib/pagination.js +194 -0
  325. package/build/runtime-esm/lib/scalars.d.ts +14 -0
  326. package/build/runtime-esm/lib/scalars.js +118 -0
  327. package/build/runtime-esm/lib/selection.d.ts +2 -0
  328. package/build/runtime-esm/lib/selection.js +42 -0
  329. package/build/runtime-esm/lib/store.d.ts +19 -0
  330. package/build/runtime-esm/lib/store.js +57 -0
  331. package/build/runtime-esm/lib/types.d.ts +359 -0
  332. package/build/runtime-esm/lib/types.js +50 -0
  333. package/build/runtime-esm/package.json +1 -0
  334. package/build/runtime-esm/public/cache.d.ts +43 -0
  335. package/build/runtime-esm/public/cache.js +76 -0
  336. package/build/runtime-esm/public/index.d.ts +1 -0
  337. package/build/runtime-esm/public/index.js +4 -0
  338. package/build/runtime-esm/public/list.d.ts +18 -0
  339. package/build/runtime-esm/public/list.js +127 -0
  340. package/build/runtime-esm/public/record.d.ts +40 -0
  341. package/build/runtime-esm/public/record.js +65 -0
  342. package/build/runtime-esm/public/tests/test.d.ts +156 -0
  343. package/build/runtime-esm/public/tests/test.js +34 -0
  344. package/build/runtime-esm/public/types.d.ts +62 -0
  345. package/build/runtime-esm/public/types.js +0 -0
  346. package/build/runtime-esm/router/cookies.d.ts +41 -0
  347. package/build/runtime-esm/router/cookies.js +143 -0
  348. package/build/runtime-esm/router/jwt.d.ts +117 -0
  349. package/build/runtime-esm/router/jwt.js +155 -0
  350. package/build/runtime-esm/router/match.d.ts +38 -0
  351. package/build/runtime-esm/router/match.js +122 -0
  352. package/build/runtime-esm/router/server.d.ts +22 -0
  353. package/build/runtime-esm/router/server.js +70 -0
  354. package/build/runtime-esm/router/session.d.ts +22 -0
  355. package/build/runtime-esm/router/session.js +52 -0
  356. package/build/runtime-esm/router/types.d.ts +23 -0
  357. package/build/runtime-esm/router/types.js +0 -0
  358. package/build/test/index.d.ts +26 -0
  359. package/build/test-cjs/index.js +64259 -0
  360. package/build/test-cjs/package.json +1 -0
  361. package/build/test-esm/index.js +64254 -0
  362. package/build/test-esm/package.json +1 -0
  363. package/build/vite/ast.d.ts +10 -0
  364. package/build/vite/houdini.d.ts +11 -0
  365. package/build/vite/imports.d.ts +40 -0
  366. package/build/vite/index.d.ts +7 -0
  367. package/build/vite/schema.d.ts +3 -0
  368. package/build/vite-cjs/index.js +77666 -0
  369. package/build/vite-cjs/package.json +1 -0
  370. package/build/vite-esm/index.js +77661 -0
  371. package/build/vite-esm/package.json +1 -0
  372. package/package.json +112 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Alec Aivazis
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,36 @@
1
+ <div align="center">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/HoudiniGraphql/houdini/main/.github/assets/logo_l.svg">
4
+ <img height="140" alt="Houdini's logo (dark or light)" src="https://raw.githubusercontent.com/HoudiniGraphql/houdini/main/.github/assets/logo_d.svg">
5
+ </picture>
6
+ <br />
7
+ <br />
8
+ <strong>
9
+ The disappearing GraphQL clients.
10
+ </strong>
11
+ <br />
12
+ <br />
13
+ <a href="https://npmjs.org/package/houdini">
14
+ <img src="https://img.shields.io/npm/v/houdini.svg" alt="version" />
15
+ </a>
16
+ <a href="https://github.com/HoudiniGraphql/houdini/actions">
17
+ <img src="https://github.com/HoudiniGraphql/houdini/actions/workflows/tests.yml/badge.svg" alt="CI Tests" />
18
+ </a>
19
+ <a href="https://github.com/HoudiniGraphql/houdini">
20
+ <img src="https://img.shields.io/github/stars/HoudiniGraphql/houdini.svg?label=stars" alt="github stars" />
21
+ </a>
22
+ <a href="https://npmjs.org/package/houdini">
23
+ <img src="https://img.shields.io/npm/dm/houdini.svg" alt="downloads" />
24
+ </a>
25
+ <a href="https://github.com/HoudiniGraphql/houdini/blob/main/LICENSE">
26
+ <img src="https://img.shields.io/github/license/HoudiniGraphql/houdini.svg?maxAge=2592000" alt="license" />
27
+ </a>
28
+ </div>
29
+
30
+ ----
31
+
32
+ At its core, houdini seeks to enable a high quality developer experience
33
+ without compromising bundle size. Like Svelte, houdini shifts what is
34
+ traditionally handled by a bloated runtime into a compile step that allows
35
+ for the generation of an incredibly lean GraphQL abstraction for your application.
36
+ See more at <a href="https://www.houdinigraphql.com">HoudiniGraphQL.com</a> 🚀
@@ -0,0 +1,3 @@
1
+ import type { serverAdapterFactory as createAdapter } from '../runtime/router/server';
2
+ export declare const endpoint: string;
3
+ export declare let createServerAdapter: (args: Omit<Parameters<typeof createAdapter>[0], 'on_render' | 'manifest' | 'yoga' | 'schema' | 'graphqlEndpoint' | 'client'>) => ReturnType<typeof createAdapter>;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/adapter/index.tsx
21
+ var adapter_exports = {};
22
+ __export(adapter_exports, {
23
+ createServerAdapter: () => createServerAdapter,
24
+ endpoint: () => endpoint
25
+ });
26
+ module.exports = __toCommonJS(adapter_exports);
27
+ var endpoint = "";
28
+ var createServerAdapter;
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ createServerAdapter,
32
+ endpoint
33
+ });
@@ -0,0 +1 @@
1
+ {"type":"commonjs"}
@@ -0,0 +1,9 @@
1
+ import { createRequire as conflict_free } from 'module'; const require = conflict_free(import.meta.url);
2
+
3
+ // src/adapter/index.tsx
4
+ var endpoint = "";
5
+ var createServerAdapter;
6
+ export {
7
+ createServerAdapter,
8
+ endpoint
9
+ };
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1,8 @@
1
+ export declare function generate(args?: {
2
+ pullSchema: boolean;
3
+ persistOutput?: string;
4
+ output?: string;
5
+ headers: string[];
6
+ log?: string;
7
+ verbose: boolean;
8
+ }): Promise<void>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare function init(_path: string | undefined, args: {
2
+ headers?: string[];
3
+ yes?: boolean;
4
+ }): Promise<void>;
5
+ export declare function finale_logs(package_manager: 'npm' | 'yarn' | 'pnpm'): void;
@@ -0,0 +1,3 @@
1
+ export default function (args: {
2
+ headers: string[];
3
+ }): Promise<void>;