@quantiya/codevibe-claude-plugin 1.0.0 → 1.0.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 (1547) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/dist/http-api.js +1 -1
  3. package/dist/http-api.js.map +1 -1
  4. package/hooks/session-start.sh +10 -1
  5. package/node_modules/@quantiya/codevibe-core/README.md +178 -0
  6. package/node_modules/@quantiya/codevibe-core/bin/codevibe.js +7 -0
  7. package/node_modules/@quantiya/codevibe-core/dist/appsync/appsync-client.d.ts +132 -0
  8. package/node_modules/@quantiya/codevibe-core/dist/appsync/appsync-client.js +568 -0
  9. package/node_modules/@quantiya/codevibe-core/dist/appsync/index.d.ts +2 -0
  10. package/node_modules/@quantiya/codevibe-core/dist/appsync/index.js +10 -0
  11. package/node_modules/@quantiya/codevibe-core/dist/appsync/queries.d.ts +16 -0
  12. package/node_modules/@quantiya/codevibe-core/dist/appsync/queries.js +189 -0
  13. package/node_modules/@quantiya/codevibe-core/dist/auth/auth-cli.d.ts +5 -0
  14. package/node_modules/@quantiya/codevibe-core/dist/auth/auth-cli.js +217 -0
  15. package/node_modules/@quantiya/codevibe-core/dist/auth/auth-service.d.ts +53 -0
  16. package/node_modules/@quantiya/codevibe-core/dist/auth/auth-service.js +310 -0
  17. package/node_modules/@quantiya/codevibe-core/dist/auth/index.d.ts +2 -0
  18. package/node_modules/@quantiya/codevibe-core/dist/auth/index.js +9 -0
  19. package/node_modules/@quantiya/codevibe-core/dist/config/config.d.ts +53 -0
  20. package/node_modules/@quantiya/codevibe-core/dist/config/config.js +123 -0
  21. package/node_modules/@quantiya/codevibe-core/dist/config/index.d.ts +2 -0
  22. package/node_modules/@quantiya/codevibe-core/dist/config/index.js +8 -0
  23. package/node_modules/@quantiya/codevibe-core/dist/crypto/crypto-service.d.ts +118 -0
  24. package/node_modules/@quantiya/codevibe-core/dist/crypto/crypto-service.js +284 -0
  25. package/node_modules/@quantiya/codevibe-core/dist/crypto/index.d.ts +1 -0
  26. package/node_modules/@quantiya/codevibe-core/dist/crypto/index.js +9 -0
  27. package/node_modules/@quantiya/codevibe-core/dist/index.d.ts +14 -0
  28. package/node_modules/@quantiya/codevibe-core/dist/index.js +68 -0
  29. package/node_modules/@quantiya/codevibe-core/dist/keychain/index.d.ts +1 -0
  30. package/node_modules/@quantiya/codevibe-core/dist/keychain/index.js +8 -0
  31. package/node_modules/@quantiya/codevibe-core/dist/keychain/keychain-manager.d.ts +125 -0
  32. package/node_modules/@quantiya/codevibe-core/dist/keychain/keychain-manager.js +375 -0
  33. package/node_modules/@quantiya/codevibe-core/dist/logger/index.d.ts +1 -0
  34. package/node_modules/@quantiya/codevibe-core/dist/logger/index.js +8 -0
  35. package/node_modules/@quantiya/codevibe-core/dist/logger/logger.d.ts +35 -0
  36. package/node_modules/@quantiya/codevibe-core/dist/logger/logger.js +142 -0
  37. package/node_modules/@quantiya/codevibe-core/dist/prompt-parser.d.ts +39 -0
  38. package/node_modules/@quantiya/codevibe-core/dist/prompt-parser.js +236 -0
  39. package/node_modules/@quantiya/codevibe-core/dist/session/index.d.ts +2 -0
  40. package/node_modules/@quantiya/codevibe-core/dist/session/index.js +7 -0
  41. package/node_modules/@quantiya/codevibe-core/dist/session/session-resume.d.ts +55 -0
  42. package/node_modules/@quantiya/codevibe-core/dist/session/session-resume.js +151 -0
  43. package/node_modules/@quantiya/codevibe-core/dist/types/auth.d.ts +15 -0
  44. package/node_modules/@quantiya/codevibe-core/dist/types/auth.js +3 -0
  45. package/node_modules/@quantiya/codevibe-core/dist/types/encryption.d.ts +54 -0
  46. package/node_modules/@quantiya/codevibe-core/dist/types/encryption.js +3 -0
  47. package/node_modules/@quantiya/codevibe-core/dist/types/events.d.ts +74 -0
  48. package/node_modules/@quantiya/codevibe-core/dist/types/events.js +28 -0
  49. package/node_modules/@quantiya/codevibe-core/dist/types/index.d.ts +4 -0
  50. package/node_modules/@quantiya/codevibe-core/dist/types/index.js +22 -0
  51. package/node_modules/@quantiya/codevibe-core/dist/types/session.d.ts +59 -0
  52. package/node_modules/@quantiya/codevibe-core/dist/types/session.js +22 -0
  53. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/CHANGELOG.md +274 -0
  54. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/CONTRIBUTING.md +18 -0
  55. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/LICENSE.md +9 -0
  56. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/README.md +466 -0
  57. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/bin/uuid +2 -0
  58. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/index.js +79 -0
  59. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/md5.js +223 -0
  60. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/native.js +11 -0
  61. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/nil.js +8 -0
  62. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/parse.js +45 -0
  63. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/regex.js +8 -0
  64. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/rng.js +25 -0
  65. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/sha1.js +104 -0
  66. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/stringify.js +44 -0
  67. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v1.js +107 -0
  68. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v3.js +16 -0
  69. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v35.js +80 -0
  70. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v4.js +43 -0
  71. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v5.js +16 -0
  72. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/validate.js +17 -0
  73. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/version.js +21 -0
  74. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/index.js +9 -0
  75. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/md5.js +215 -0
  76. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/native.js +4 -0
  77. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/nil.js +1 -0
  78. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/parse.js +35 -0
  79. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/regex.js +1 -0
  80. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/rng.js +18 -0
  81. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
  82. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/stringify.js +33 -0
  83. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v1.js +95 -0
  84. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v3.js +4 -0
  85. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v35.js +66 -0
  86. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v4.js +29 -0
  87. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v5.js +4 -0
  88. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/validate.js +7 -0
  89. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/version.js +11 -0
  90. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/index.js +9 -0
  91. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/md5.js +13 -0
  92. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/native.js +4 -0
  93. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/nil.js +1 -0
  94. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/parse.js +35 -0
  95. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/regex.js +1 -0
  96. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/rng.js +12 -0
  97. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/sha1.js +13 -0
  98. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/stringify.js +33 -0
  99. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v1.js +95 -0
  100. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v3.js +4 -0
  101. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v35.js +66 -0
  102. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v4.js +29 -0
  103. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v5.js +4 -0
  104. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/validate.js +7 -0
  105. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/version.js +11 -0
  106. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/index.js +79 -0
  107. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/md5-browser.js +223 -0
  108. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/md5.js +23 -0
  109. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/native-browser.js +11 -0
  110. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/native.js +15 -0
  111. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/nil.js +8 -0
  112. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/parse.js +45 -0
  113. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/regex.js +8 -0
  114. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/rng-browser.js +25 -0
  115. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/rng.js +24 -0
  116. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/sha1-browser.js +104 -0
  117. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/sha1.js +23 -0
  118. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/stringify.js +44 -0
  119. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/uuid-bin.js +85 -0
  120. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v1.js +107 -0
  121. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v3.js +16 -0
  122. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v35.js +80 -0
  123. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v4.js +43 -0
  124. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v5.js +16 -0
  125. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/validate.js +17 -0
  126. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/version.js +21 -0
  127. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/package.json +135 -0
  128. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/wrapper.mjs +10 -0
  129. package/node_modules/@quantiya/codevibe-core/package.json +51 -0
  130. package/node_modules/accepts/HISTORY.md +250 -0
  131. package/node_modules/accepts/LICENSE +23 -0
  132. package/node_modules/accepts/README.md +140 -0
  133. package/node_modules/accepts/index.js +238 -0
  134. package/node_modules/accepts/package.json +47 -0
  135. package/node_modules/base64-js/LICENSE +21 -0
  136. package/node_modules/base64-js/README.md +34 -0
  137. package/node_modules/base64-js/base64js.min.js +1 -0
  138. package/node_modules/base64-js/index.d.ts +3 -0
  139. package/node_modules/base64-js/index.js +150 -0
  140. package/node_modules/base64-js/package.json +47 -0
  141. package/node_modules/bl/.travis.yml +17 -0
  142. package/node_modules/bl/BufferList.js +396 -0
  143. package/node_modules/bl/LICENSE.md +13 -0
  144. package/node_modules/bl/README.md +247 -0
  145. package/node_modules/bl/bl.js +84 -0
  146. package/node_modules/bl/package.json +37 -0
  147. package/node_modules/bl/test/convert.js +21 -0
  148. package/node_modules/bl/test/indexOf.js +492 -0
  149. package/node_modules/bl/test/isBufferList.js +32 -0
  150. package/node_modules/bl/test/test.js +869 -0
  151. package/node_modules/body-parser/LICENSE +23 -0
  152. package/node_modules/body-parser/README.md +494 -0
  153. package/node_modules/body-parser/index.js +80 -0
  154. package/node_modules/body-parser/lib/read.js +250 -0
  155. package/node_modules/body-parser/lib/types/json.js +166 -0
  156. package/node_modules/body-parser/lib/types/raw.js +43 -0
  157. package/node_modules/body-parser/lib/types/text.js +37 -0
  158. package/node_modules/body-parser/lib/types/urlencoded.js +142 -0
  159. package/node_modules/body-parser/lib/utils.js +96 -0
  160. package/node_modules/body-parser/package.json +52 -0
  161. package/node_modules/buffer/AUTHORS.md +70 -0
  162. package/node_modules/buffer/LICENSE +21 -0
  163. package/node_modules/buffer/README.md +410 -0
  164. package/node_modules/buffer/index.d.ts +186 -0
  165. package/node_modules/buffer/index.js +1817 -0
  166. package/node_modules/buffer/package.json +96 -0
  167. package/node_modules/bytes/History.md +97 -0
  168. package/node_modules/bytes/LICENSE +23 -0
  169. package/node_modules/bytes/Readme.md +152 -0
  170. package/node_modules/bytes/index.js +170 -0
  171. package/node_modules/bytes/package.json +42 -0
  172. package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
  173. package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
  174. package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
  175. package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
  176. package/node_modules/call-bind-apply-helpers/LICENSE +21 -0
  177. package/node_modules/call-bind-apply-helpers/README.md +62 -0
  178. package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
  179. package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
  180. package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
  181. package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
  182. package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
  183. package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
  184. package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
  185. package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
  186. package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
  187. package/node_modules/call-bind-apply-helpers/index.js +15 -0
  188. package/node_modules/call-bind-apply-helpers/package.json +85 -0
  189. package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
  190. package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
  191. package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
  192. package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
  193. package/node_modules/call-bound/.eslintrc +13 -0
  194. package/node_modules/call-bound/.github/FUNDING.yml +12 -0
  195. package/node_modules/call-bound/.nycrc +9 -0
  196. package/node_modules/call-bound/CHANGELOG.md +42 -0
  197. package/node_modules/call-bound/LICENSE +21 -0
  198. package/node_modules/call-bound/README.md +53 -0
  199. package/node_modules/call-bound/index.d.ts +94 -0
  200. package/node_modules/call-bound/index.js +19 -0
  201. package/node_modules/call-bound/package.json +99 -0
  202. package/node_modules/call-bound/test/index.js +61 -0
  203. package/node_modules/call-bound/tsconfig.json +10 -0
  204. package/node_modules/chownr/LICENSE +15 -0
  205. package/node_modules/chownr/README.md +3 -0
  206. package/node_modules/chownr/chownr.js +167 -0
  207. package/node_modules/chownr/package.json +29 -0
  208. package/node_modules/content-disposition/HISTORY.md +72 -0
  209. package/node_modules/content-disposition/LICENSE +22 -0
  210. package/node_modules/content-disposition/README.md +142 -0
  211. package/node_modules/content-disposition/index.js +458 -0
  212. package/node_modules/content-disposition/package.json +43 -0
  213. package/node_modules/content-type/HISTORY.md +29 -0
  214. package/node_modules/content-type/LICENSE +22 -0
  215. package/node_modules/content-type/README.md +94 -0
  216. package/node_modules/content-type/index.js +225 -0
  217. package/node_modules/content-type/package.json +42 -0
  218. package/node_modules/cookie/LICENSE +24 -0
  219. package/node_modules/cookie/README.md +317 -0
  220. package/node_modules/cookie/SECURITY.md +25 -0
  221. package/node_modules/cookie/index.js +335 -0
  222. package/node_modules/cookie/package.json +44 -0
  223. package/node_modules/cookie-signature/History.md +70 -0
  224. package/node_modules/cookie-signature/LICENSE +22 -0
  225. package/node_modules/cookie-signature/Readme.md +23 -0
  226. package/node_modules/cookie-signature/index.js +47 -0
  227. package/node_modules/cookie-signature/package.json +24 -0
  228. package/node_modules/debug/LICENSE +20 -0
  229. package/node_modules/debug/README.md +481 -0
  230. package/node_modules/debug/package.json +64 -0
  231. package/node_modules/debug/src/browser.js +272 -0
  232. package/node_modules/debug/src/common.js +292 -0
  233. package/node_modules/debug/src/index.js +10 -0
  234. package/node_modules/debug/src/node.js +263 -0
  235. package/node_modules/decompress-response/index.d.ts +22 -0
  236. package/node_modules/decompress-response/index.js +58 -0
  237. package/node_modules/decompress-response/license +9 -0
  238. package/node_modules/decompress-response/package.json +56 -0
  239. package/node_modules/decompress-response/readme.md +48 -0
  240. package/node_modules/deep-extend/CHANGELOG.md +46 -0
  241. package/node_modules/deep-extend/LICENSE +20 -0
  242. package/node_modules/deep-extend/README.md +91 -0
  243. package/node_modules/deep-extend/index.js +1 -0
  244. package/node_modules/deep-extend/lib/deep-extend.js +150 -0
  245. package/node_modules/deep-extend/package.json +62 -0
  246. package/node_modules/depd/History.md +103 -0
  247. package/node_modules/depd/LICENSE +22 -0
  248. package/node_modules/depd/Readme.md +280 -0
  249. package/node_modules/depd/index.js +538 -0
  250. package/node_modules/depd/lib/browser/index.js +77 -0
  251. package/node_modules/depd/package.json +45 -0
  252. package/node_modules/detect-libc/LICENSE +201 -0
  253. package/node_modules/detect-libc/README.md +163 -0
  254. package/node_modules/detect-libc/index.d.ts +14 -0
  255. package/node_modules/detect-libc/lib/detect-libc.js +313 -0
  256. package/node_modules/detect-libc/lib/elf.js +39 -0
  257. package/node_modules/detect-libc/lib/filesystem.js +51 -0
  258. package/node_modules/detect-libc/lib/process.js +24 -0
  259. package/node_modules/detect-libc/package.json +44 -0
  260. package/node_modules/dotenv/CHANGELOG.md +520 -0
  261. package/node_modules/dotenv/LICENSE +23 -0
  262. package/node_modules/dotenv/README-es.md +411 -0
  263. package/node_modules/dotenv/README.md +645 -0
  264. package/node_modules/dotenv/SECURITY.md +1 -0
  265. package/node_modules/dotenv/config.d.ts +1 -0
  266. package/node_modules/dotenv/config.js +9 -0
  267. package/node_modules/dotenv/lib/cli-options.js +17 -0
  268. package/node_modules/dotenv/lib/env-options.js +28 -0
  269. package/node_modules/dotenv/lib/main.d.ts +162 -0
  270. package/node_modules/dotenv/lib/main.js +386 -0
  271. package/node_modules/dotenv/package.json +62 -0
  272. package/node_modules/dunder-proto/.eslintrc +5 -0
  273. package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
  274. package/node_modules/dunder-proto/.nycrc +13 -0
  275. package/node_modules/dunder-proto/CHANGELOG.md +24 -0
  276. package/node_modules/dunder-proto/LICENSE +21 -0
  277. package/node_modules/dunder-proto/README.md +54 -0
  278. package/node_modules/dunder-proto/get.d.ts +5 -0
  279. package/node_modules/dunder-proto/get.js +30 -0
  280. package/node_modules/dunder-proto/package.json +76 -0
  281. package/node_modules/dunder-proto/set.d.ts +5 -0
  282. package/node_modules/dunder-proto/set.js +35 -0
  283. package/node_modules/dunder-proto/test/get.js +34 -0
  284. package/node_modules/dunder-proto/test/index.js +4 -0
  285. package/node_modules/dunder-proto/test/set.js +50 -0
  286. package/node_modules/dunder-proto/tsconfig.json +9 -0
  287. package/node_modules/ee-first/LICENSE +22 -0
  288. package/node_modules/ee-first/README.md +80 -0
  289. package/node_modules/ee-first/index.js +95 -0
  290. package/node_modules/ee-first/package.json +29 -0
  291. package/node_modules/encodeurl/LICENSE +22 -0
  292. package/node_modules/encodeurl/README.md +109 -0
  293. package/node_modules/encodeurl/index.js +60 -0
  294. package/node_modules/encodeurl/package.json +40 -0
  295. package/node_modules/end-of-stream/LICENSE +21 -0
  296. package/node_modules/end-of-stream/README.md +54 -0
  297. package/node_modules/end-of-stream/index.js +96 -0
  298. package/node_modules/end-of-stream/package.json +37 -0
  299. package/node_modules/es-define-property/.eslintrc +13 -0
  300. package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
  301. package/node_modules/es-define-property/.nycrc +9 -0
  302. package/node_modules/es-define-property/CHANGELOG.md +29 -0
  303. package/node_modules/es-define-property/LICENSE +21 -0
  304. package/node_modules/es-define-property/README.md +49 -0
  305. package/node_modules/es-define-property/index.d.ts +3 -0
  306. package/node_modules/es-define-property/index.js +14 -0
  307. package/node_modules/es-define-property/package.json +81 -0
  308. package/node_modules/es-define-property/test/index.js +56 -0
  309. package/node_modules/es-define-property/tsconfig.json +10 -0
  310. package/node_modules/es-errors/.eslintrc +5 -0
  311. package/node_modules/es-errors/.github/FUNDING.yml +12 -0
  312. package/node_modules/es-errors/CHANGELOG.md +40 -0
  313. package/node_modules/es-errors/LICENSE +21 -0
  314. package/node_modules/es-errors/README.md +55 -0
  315. package/node_modules/es-errors/eval.d.ts +3 -0
  316. package/node_modules/es-errors/eval.js +4 -0
  317. package/node_modules/es-errors/index.d.ts +3 -0
  318. package/node_modules/es-errors/index.js +4 -0
  319. package/node_modules/es-errors/package.json +80 -0
  320. package/node_modules/es-errors/range.d.ts +3 -0
  321. package/node_modules/es-errors/range.js +4 -0
  322. package/node_modules/es-errors/ref.d.ts +3 -0
  323. package/node_modules/es-errors/ref.js +4 -0
  324. package/node_modules/es-errors/syntax.d.ts +3 -0
  325. package/node_modules/es-errors/syntax.js +4 -0
  326. package/node_modules/es-errors/test/index.js +19 -0
  327. package/node_modules/es-errors/tsconfig.json +49 -0
  328. package/node_modules/es-errors/type.d.ts +3 -0
  329. package/node_modules/es-errors/type.js +4 -0
  330. package/node_modules/es-errors/uri.d.ts +3 -0
  331. package/node_modules/es-errors/uri.js +4 -0
  332. package/node_modules/es-object-atoms/.eslintrc +16 -0
  333. package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
  334. package/node_modules/es-object-atoms/CHANGELOG.md +37 -0
  335. package/node_modules/es-object-atoms/LICENSE +21 -0
  336. package/node_modules/es-object-atoms/README.md +63 -0
  337. package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
  338. package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
  339. package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
  340. package/node_modules/es-object-atoms/ToObject.js +10 -0
  341. package/node_modules/es-object-atoms/index.d.ts +3 -0
  342. package/node_modules/es-object-atoms/index.js +4 -0
  343. package/node_modules/es-object-atoms/isObject.d.ts +3 -0
  344. package/node_modules/es-object-atoms/isObject.js +6 -0
  345. package/node_modules/es-object-atoms/package.json +80 -0
  346. package/node_modules/es-object-atoms/test/index.js +38 -0
  347. package/node_modules/es-object-atoms/tsconfig.json +6 -0
  348. package/node_modules/escape-html/LICENSE +24 -0
  349. package/node_modules/escape-html/Readme.md +43 -0
  350. package/node_modules/escape-html/index.js +78 -0
  351. package/node_modules/escape-html/package.json +24 -0
  352. package/node_modules/etag/HISTORY.md +83 -0
  353. package/node_modules/etag/LICENSE +22 -0
  354. package/node_modules/etag/README.md +159 -0
  355. package/node_modules/etag/index.js +131 -0
  356. package/node_modules/etag/package.json +47 -0
  357. package/node_modules/expand-template/.travis.yml +6 -0
  358. package/node_modules/expand-template/LICENSE +21 -0
  359. package/node_modules/expand-template/README.md +43 -0
  360. package/node_modules/expand-template/index.js +26 -0
  361. package/node_modules/expand-template/package.json +29 -0
  362. package/node_modules/expand-template/test.js +67 -0
  363. package/node_modules/express/History.md +3858 -0
  364. package/node_modules/express/LICENSE +24 -0
  365. package/node_modules/express/Readme.md +266 -0
  366. package/node_modules/express/index.js +11 -0
  367. package/node_modules/express/lib/application.js +631 -0
  368. package/node_modules/express/lib/express.js +81 -0
  369. package/node_modules/express/lib/request.js +515 -0
  370. package/node_modules/express/lib/response.js +1039 -0
  371. package/node_modules/express/lib/utils.js +269 -0
  372. package/node_modules/express/lib/view.js +205 -0
  373. package/node_modules/express/package.json +98 -0
  374. package/node_modules/finalhandler/HISTORY.md +233 -0
  375. package/node_modules/finalhandler/LICENSE +22 -0
  376. package/node_modules/finalhandler/README.md +147 -0
  377. package/node_modules/finalhandler/index.js +293 -0
  378. package/node_modules/finalhandler/package.json +43 -0
  379. package/node_modules/forwarded/HISTORY.md +21 -0
  380. package/node_modules/forwarded/LICENSE +22 -0
  381. package/node_modules/forwarded/README.md +57 -0
  382. package/node_modules/forwarded/index.js +90 -0
  383. package/node_modules/forwarded/package.json +45 -0
  384. package/node_modules/fresh/HISTORY.md +80 -0
  385. package/node_modules/fresh/LICENSE +23 -0
  386. package/node_modules/fresh/README.md +117 -0
  387. package/node_modules/fresh/index.js +136 -0
  388. package/node_modules/fresh/package.json +46 -0
  389. package/node_modules/fs-constants/LICENSE +21 -0
  390. package/node_modules/fs-constants/README.md +26 -0
  391. package/node_modules/fs-constants/browser.js +1 -0
  392. package/node_modules/fs-constants/index.js +1 -0
  393. package/node_modules/fs-constants/package.json +19 -0
  394. package/node_modules/function-bind/.eslintrc +21 -0
  395. package/node_modules/function-bind/.github/FUNDING.yml +12 -0
  396. package/node_modules/function-bind/.github/SECURITY.md +3 -0
  397. package/node_modules/function-bind/.nycrc +13 -0
  398. package/node_modules/function-bind/CHANGELOG.md +136 -0
  399. package/node_modules/function-bind/LICENSE +20 -0
  400. package/node_modules/function-bind/README.md +46 -0
  401. package/node_modules/function-bind/implementation.js +84 -0
  402. package/node_modules/function-bind/index.js +5 -0
  403. package/node_modules/function-bind/package.json +87 -0
  404. package/node_modules/function-bind/test/.eslintrc +9 -0
  405. package/node_modules/function-bind/test/index.js +252 -0
  406. package/node_modules/get-intrinsic/.eslintrc +42 -0
  407. package/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
  408. package/node_modules/get-intrinsic/.nycrc +9 -0
  409. package/node_modules/get-intrinsic/CHANGELOG.md +186 -0
  410. package/node_modules/get-intrinsic/LICENSE +21 -0
  411. package/node_modules/get-intrinsic/README.md +71 -0
  412. package/node_modules/get-intrinsic/index.js +378 -0
  413. package/node_modules/get-intrinsic/package.json +97 -0
  414. package/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
  415. package/node_modules/get-proto/.eslintrc +10 -0
  416. package/node_modules/get-proto/.github/FUNDING.yml +12 -0
  417. package/node_modules/get-proto/.nycrc +9 -0
  418. package/node_modules/get-proto/CHANGELOG.md +21 -0
  419. package/node_modules/get-proto/LICENSE +21 -0
  420. package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
  421. package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
  422. package/node_modules/get-proto/README.md +50 -0
  423. package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
  424. package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
  425. package/node_modules/get-proto/index.d.ts +5 -0
  426. package/node_modules/get-proto/index.js +27 -0
  427. package/node_modules/get-proto/package.json +81 -0
  428. package/node_modules/get-proto/test/index.js +68 -0
  429. package/node_modules/get-proto/tsconfig.json +9 -0
  430. package/node_modules/github-from-package/.travis.yml +4 -0
  431. package/node_modules/github-from-package/LICENSE +18 -0
  432. package/node_modules/github-from-package/example/package.json +8 -0
  433. package/node_modules/github-from-package/example/url.js +3 -0
  434. package/node_modules/github-from-package/index.js +17 -0
  435. package/node_modules/github-from-package/package.json +30 -0
  436. package/node_modules/github-from-package/readme.markdown +53 -0
  437. package/node_modules/github-from-package/test/a.json +8 -0
  438. package/node_modules/github-from-package/test/b.json +5 -0
  439. package/node_modules/github-from-package/test/c.json +5 -0
  440. package/node_modules/github-from-package/test/d.json +7 -0
  441. package/node_modules/github-from-package/test/e.json +5 -0
  442. package/node_modules/github-from-package/test/url.js +19 -0
  443. package/node_modules/gopd/.eslintrc +16 -0
  444. package/node_modules/gopd/.github/FUNDING.yml +12 -0
  445. package/node_modules/gopd/CHANGELOG.md +45 -0
  446. package/node_modules/gopd/LICENSE +21 -0
  447. package/node_modules/gopd/README.md +40 -0
  448. package/node_modules/gopd/gOPD.d.ts +1 -0
  449. package/node_modules/gopd/gOPD.js +4 -0
  450. package/node_modules/gopd/index.d.ts +5 -0
  451. package/node_modules/gopd/index.js +15 -0
  452. package/node_modules/gopd/package.json +77 -0
  453. package/node_modules/gopd/test/index.js +36 -0
  454. package/node_modules/gopd/tsconfig.json +9 -0
  455. package/node_modules/graphql/LICENSE +21 -0
  456. package/node_modules/graphql/NotSupportedTSVersion.d.ts +1 -0
  457. package/node_modules/graphql/README.md +203 -0
  458. package/node_modules/graphql/error/GraphQLError.d.ts +152 -0
  459. package/node_modules/graphql/error/GraphQLError.js +267 -0
  460. package/node_modules/graphql/error/GraphQLError.mjs +253 -0
  461. package/node_modules/graphql/error/index.d.ts +9 -0
  462. package/node_modules/graphql/error/index.js +41 -0
  463. package/node_modules/graphql/error/index.mjs +3 -0
  464. package/node_modules/graphql/error/locatedError.d.ts +13 -0
  465. package/node_modules/graphql/error/locatedError.js +40 -0
  466. package/node_modules/graphql/error/locatedError.mjs +32 -0
  467. package/node_modules/graphql/error/syntaxError.d.ts +11 -0
  468. package/node_modules/graphql/error/syntaxError.js +19 -0
  469. package/node_modules/graphql/error/syntaxError.mjs +12 -0
  470. package/node_modules/graphql/execution/collectFields.d.ts +45 -0
  471. package/node_modules/graphql/execution/collectFields.js +229 -0
  472. package/node_modules/graphql/execution/collectFields.mjs +213 -0
  473. package/node_modules/graphql/execution/execute.d.ts +190 -0
  474. package/node_modules/graphql/execution/execute.js +1054 -0
  475. package/node_modules/graphql/execution/execute.mjs +1026 -0
  476. package/node_modules/graphql/execution/index.d.ts +18 -0
  477. package/node_modules/graphql/execution/index.js +73 -0
  478. package/node_modules/graphql/execution/index.mjs +13 -0
  479. package/node_modules/graphql/execution/mapAsyncIterator.d.ts +9 -0
  480. package/node_modules/graphql/execution/mapAsyncIterator.js +68 -0
  481. package/node_modules/graphql/execution/mapAsyncIterator.mjs +61 -0
  482. package/node_modules/graphql/execution/subscribe.d.ts +72 -0
  483. package/node_modules/graphql/execution/subscribe.js +244 -0
  484. package/node_modules/graphql/execution/subscribe.mjs +222 -0
  485. package/node_modules/graphql/execution/values.d.ts +79 -0
  486. package/node_modules/graphql/execution/values.js +300 -0
  487. package/node_modules/graphql/execution/values.mjs +263 -0
  488. package/node_modules/graphql/graphql.d.ts +67 -0
  489. package/node_modules/graphql/graphql.js +96 -0
  490. package/node_modules/graphql/graphql.mjs +122 -0
  491. package/node_modules/graphql/index.d.ts +428 -0
  492. package/node_modules/graphql/index.js +1311 -0
  493. package/node_modules/graphql/index.mjs +262 -0
  494. package/node_modules/graphql/jsutils/Maybe.d.ts +2 -0
  495. package/node_modules/graphql/jsutils/Maybe.js +5 -0
  496. package/node_modules/graphql/jsutils/Maybe.mjs +1 -0
  497. package/node_modules/graphql/jsutils/ObjMap.d.ts +16 -0
  498. package/node_modules/graphql/jsutils/ObjMap.js +5 -0
  499. package/node_modules/graphql/jsutils/ObjMap.mjs +1 -0
  500. package/node_modules/graphql/jsutils/Path.d.ts +20 -0
  501. package/node_modules/graphql/jsutils/Path.js +33 -0
  502. package/node_modules/graphql/jsutils/Path.mjs +25 -0
  503. package/node_modules/graphql/jsutils/PromiseOrValue.d.ts +1 -0
  504. package/node_modules/graphql/jsutils/PromiseOrValue.js +5 -0
  505. package/node_modules/graphql/jsutils/PromiseOrValue.mjs +1 -0
  506. package/node_modules/graphql/jsutils/devAssert.d.ts +1 -0
  507. package/node_modules/graphql/jsutils/devAssert.js +14 -0
  508. package/node_modules/graphql/jsutils/devAssert.mjs +7 -0
  509. package/node_modules/graphql/jsutils/didYouMean.d.ts +8 -0
  510. package/node_modules/graphql/jsutils/didYouMean.js +38 -0
  511. package/node_modules/graphql/jsutils/didYouMean.mjs +32 -0
  512. package/node_modules/graphql/jsutils/groupBy.d.ts +7 -0
  513. package/node_modules/graphql/jsutils/groupBy.js +26 -0
  514. package/node_modules/graphql/jsutils/groupBy.mjs +19 -0
  515. package/node_modules/graphql/jsutils/identityFunc.d.ts +4 -0
  516. package/node_modules/graphql/jsutils/identityFunc.js +13 -0
  517. package/node_modules/graphql/jsutils/identityFunc.mjs +6 -0
  518. package/node_modules/graphql/jsutils/inspect.d.ts +4 -0
  519. package/node_modules/graphql/jsutils/inspect.js +121 -0
  520. package/node_modules/graphql/jsutils/inspect.mjs +115 -0
  521. package/node_modules/graphql/jsutils/instanceOf.d.ts +16 -0
  522. package/node_modules/graphql/jsutils/instanceOf.js +65 -0
  523. package/node_modules/graphql/jsutils/instanceOf.mjs +57 -0
  524. package/node_modules/graphql/jsutils/invariant.d.ts +4 -0
  525. package/node_modules/graphql/jsutils/invariant.js +16 -0
  526. package/node_modules/graphql/jsutils/invariant.mjs +9 -0
  527. package/node_modules/graphql/jsutils/isAsyncIterable.d.ts +7 -0
  528. package/node_modules/graphql/jsutils/isAsyncIterable.js +18 -0
  529. package/node_modules/graphql/jsutils/isAsyncIterable.mjs +11 -0
  530. package/node_modules/graphql/jsutils/isIterableObject.d.ts +20 -0
  531. package/node_modules/graphql/jsutils/isIterableObject.js +32 -0
  532. package/node_modules/graphql/jsutils/isIterableObject.mjs +25 -0
  533. package/node_modules/graphql/jsutils/isObjectLike.d.ts +7 -0
  534. package/node_modules/graphql/jsutils/isObjectLike.js +14 -0
  535. package/node_modules/graphql/jsutils/isObjectLike.mjs +7 -0
  536. package/node_modules/graphql/jsutils/isPromise.d.ts +5 -0
  537. package/node_modules/graphql/jsutils/isPromise.js +17 -0
  538. package/node_modules/graphql/jsutils/isPromise.mjs +10 -0
  539. package/node_modules/graphql/jsutils/keyMap.d.ts +32 -0
  540. package/node_modules/graphql/jsutils/keyMap.js +43 -0
  541. package/node_modules/graphql/jsutils/keyMap.mjs +36 -0
  542. package/node_modules/graphql/jsutils/keyValMap.d.ts +23 -0
  543. package/node_modules/graphql/jsutils/keyValMap.js +33 -0
  544. package/node_modules/graphql/jsutils/keyValMap.mjs +26 -0
  545. package/node_modules/graphql/jsutils/mapValue.d.ts +9 -0
  546. package/node_modules/graphql/jsutils/mapValue.js +20 -0
  547. package/node_modules/graphql/jsutils/mapValue.mjs +13 -0
  548. package/node_modules/graphql/jsutils/memoize3.d.ts +9 -0
  549. package/node_modules/graphql/jsutils/memoize3.js +41 -0
  550. package/node_modules/graphql/jsutils/memoize3.mjs +34 -0
  551. package/node_modules/graphql/jsutils/naturalCompare.d.ts +8 -0
  552. package/node_modules/graphql/jsutils/naturalCompare.js +69 -0
  553. package/node_modules/graphql/jsutils/naturalCompare.mjs +61 -0
  554. package/node_modules/graphql/jsutils/printPathArray.d.ts +6 -0
  555. package/node_modules/graphql/jsutils/printPathArray.js +17 -0
  556. package/node_modules/graphql/jsutils/printPathArray.mjs +10 -0
  557. package/node_modules/graphql/jsutils/promiseForObject.d.ts +11 -0
  558. package/node_modules/graphql/jsutils/promiseForObject.js +25 -0
  559. package/node_modules/graphql/jsutils/promiseForObject.mjs +18 -0
  560. package/node_modules/graphql/jsutils/promiseReduce.d.ts +13 -0
  561. package/node_modules/graphql/jsutils/promiseReduce.js +27 -0
  562. package/node_modules/graphql/jsutils/promiseReduce.mjs +20 -0
  563. package/node_modules/graphql/jsutils/suggestionList.d.ts +8 -0
  564. package/node_modules/graphql/jsutils/suggestionList.js +139 -0
  565. package/node_modules/graphql/jsutils/suggestionList.mjs +130 -0
  566. package/node_modules/graphql/jsutils/toError.d.ts +4 -0
  567. package/node_modules/graphql/jsutils/toError.js +25 -0
  568. package/node_modules/graphql/jsutils/toError.mjs +18 -0
  569. package/node_modules/graphql/jsutils/toObjMap.d.ts +5 -0
  570. package/node_modules/graphql/jsutils/toObjMap.js +24 -0
  571. package/node_modules/graphql/jsutils/toObjMap.mjs +17 -0
  572. package/node_modules/graphql/language/ast.d.ts +582 -0
  573. package/node_modules/graphql/language/ast.js +237 -0
  574. package/node_modules/graphql/language/ast.mjs +221 -0
  575. package/node_modules/graphql/language/blockString.d.ts +28 -0
  576. package/node_modules/graphql/language/blockString.js +195 -0
  577. package/node_modules/graphql/language/blockString.mjs +178 -0
  578. package/node_modules/graphql/language/characterClasses.d.ts +47 -0
  579. package/node_modules/graphql/language/characterClasses.js +75 -0
  580. package/node_modules/graphql/language/characterClasses.mjs +64 -0
  581. package/node_modules/graphql/language/directiveLocation.d.ts +33 -0
  582. package/node_modules/graphql/language/directiveLocation.js +39 -0
  583. package/node_modules/graphql/language/directiveLocation.mjs +33 -0
  584. package/node_modules/graphql/language/index.d.ts +110 -0
  585. package/node_modules/graphql/language/index.js +227 -0
  586. package/node_modules/graphql/language/index.mjs +36 -0
  587. package/node_modules/graphql/language/kinds.d.ts +72 -0
  588. package/node_modules/graphql/language/kinds.js +68 -0
  589. package/node_modules/graphql/language/kinds.mjs +62 -0
  590. package/node_modules/graphql/language/lexer.d.ts +96 -0
  591. package/node_modules/graphql/language/lexer.js +1016 -0
  592. package/node_modules/graphql/language/lexer.mjs +915 -0
  593. package/node_modules/graphql/language/location.d.ts +16 -0
  594. package/node_modules/graphql/language/location.js +38 -0
  595. package/node_modules/graphql/language/location.mjs +30 -0
  596. package/node_modules/graphql/language/parser.d.ts +592 -0
  597. package/node_modules/graphql/language/parser.js +1692 -0
  598. package/node_modules/graphql/language/parser.mjs +1645 -0
  599. package/node_modules/graphql/language/predicates.d.ts +37 -0
  600. package/node_modules/graphql/language/predicates.js +120 -0
  601. package/node_modules/graphql/language/predicates.mjs +90 -0
  602. package/node_modules/graphql/language/printLocation.d.ts +14 -0
  603. package/node_modules/graphql/language/printLocation.js +74 -0
  604. package/node_modules/graphql/language/printLocation.mjs +66 -0
  605. package/node_modules/graphql/language/printString.d.ts +5 -0
  606. package/node_modules/graphql/language/printString.js +183 -0
  607. package/node_modules/graphql/language/printString.mjs +176 -0
  608. package/node_modules/graphql/language/printer.d.ts +6 -0
  609. package/node_modules/graphql/language/printer.js +380 -0
  610. package/node_modules/graphql/language/printer.mjs +368 -0
  611. package/node_modules/graphql/language/schemaCoordinateLexer.d.ts +43 -0
  612. package/node_modules/graphql/language/schemaCoordinateLexer.js +171 -0
  613. package/node_modules/graphql/language/schemaCoordinateLexer.mjs +122 -0
  614. package/node_modules/graphql/language/source.d.ts +25 -0
  615. package/node_modules/graphql/language/source.js +65 -0
  616. package/node_modules/graphql/language/source.mjs +50 -0
  617. package/node_modules/graphql/language/tokenKind.d.ts +36 -0
  618. package/node_modules/graphql/language/tokenKind.js +44 -0
  619. package/node_modules/graphql/language/tokenKind.mjs +38 -0
  620. package/node_modules/graphql/language/visitor.d.ts +194 -0
  621. package/node_modules/graphql/language/visitor.js +374 -0
  622. package/node_modules/graphql/language/visitor.mjs +358 -0
  623. package/node_modules/graphql/package.json +39 -0
  624. package/node_modules/graphql/subscription/index.d.ts +19 -0
  625. package/node_modules/graphql/subscription/index.js +19 -0
  626. package/node_modules/graphql/subscription/index.mjs +19 -0
  627. package/node_modules/graphql/type/assertName.d.ts +10 -0
  628. package/node_modules/graphql/type/assertName.js +59 -0
  629. package/node_modules/graphql/type/assertName.mjs +44 -0
  630. package/node_modules/graphql/type/definition.d.ts +926 -0
  631. package/node_modules/graphql/type/definition.js +1362 -0
  632. package/node_modules/graphql/type/definition.mjs +1197 -0
  633. package/node_modules/graphql/type/directives.d.ts +90 -0
  634. package/node_modules/graphql/type/directives.js +238 -0
  635. package/node_modules/graphql/type/directives.mjs +202 -0
  636. package/node_modules/graphql/type/index.d.ts +151 -0
  637. package/node_modules/graphql/type/index.js +553 -0
  638. package/node_modules/graphql/type/index.mjs +104 -0
  639. package/node_modules/graphql/type/introspection.d.ts +30 -0
  640. package/node_modules/graphql/type/introspection.js +625 -0
  641. package/node_modules/graphql/type/introspection.mjs +559 -0
  642. package/node_modules/graphql/type/scalars.d.ts +19 -0
  643. package/node_modules/graphql/type/scalars.js +369 -0
  644. package/node_modules/graphql/type/scalars.mjs +309 -0
  645. package/node_modules/graphql/type/schema.d.ts +170 -0
  646. package/node_modules/graphql/type/schema.js +402 -0
  647. package/node_modules/graphql/type/schema.mjs +381 -0
  648. package/node_modules/graphql/type/validate.d.ts +17 -0
  649. package/node_modules/graphql/type/validate.js +706 -0
  650. package/node_modules/graphql/type/validate.mjs +681 -0
  651. package/node_modules/graphql/utilities/TypeInfo.d.ts +67 -0
  652. package/node_modules/graphql/utilities/TypeInfo.js +418 -0
  653. package/node_modules/graphql/utilities/TypeInfo.mjs +395 -0
  654. package/node_modules/graphql/utilities/assertValidName.d.ts +13 -0
  655. package/node_modules/graphql/utilities/assertValidName.js +51 -0
  656. package/node_modules/graphql/utilities/assertValidName.mjs +40 -0
  657. package/node_modules/graphql/utilities/astFromValue.d.ts +28 -0
  658. package/node_modules/graphql/utilities/astFromValue.js +190 -0
  659. package/node_modules/graphql/utilities/astFromValue.mjs +177 -0
  660. package/node_modules/graphql/utilities/buildASTSchema.d.ts +35 -0
  661. package/node_modules/graphql/utilities/buildASTSchema.js +115 -0
  662. package/node_modules/graphql/utilities/buildASTSchema.mjs +97 -0
  663. package/node_modules/graphql/utilities/buildClientSchema.d.ts +19 -0
  664. package/node_modules/graphql/utilities/buildClientSchema.js +387 -0
  665. package/node_modules/graphql/utilities/buildClientSchema.mjs +364 -0
  666. package/node_modules/graphql/utilities/coerceInputValue.d.ts +16 -0
  667. package/node_modules/graphql/utilities/coerceInputValue.js +217 -0
  668. package/node_modules/graphql/utilities/coerceInputValue.mjs +192 -0
  669. package/node_modules/graphql/utilities/concatAST.d.ts +9 -0
  670. package/node_modules/graphql/utilities/concatAST.js +26 -0
  671. package/node_modules/graphql/utilities/concatAST.mjs +19 -0
  672. package/node_modules/graphql/utilities/extendSchema.d.ts +40 -0
  673. package/node_modules/graphql/utilities/extendSchema.js +808 -0
  674. package/node_modules/graphql/utilities/extendSchema.mjs +798 -0
  675. package/node_modules/graphql/utilities/findBreakingChanges.d.ts +53 -0
  676. package/node_modules/graphql/utilities/findBreakingChanges.js +547 -0
  677. package/node_modules/graphql/utilities/findBreakingChanges.mjs +519 -0
  678. package/node_modules/graphql/utilities/getIntrospectionQuery.d.ts +188 -0
  679. package/node_modules/graphql/utilities/getIntrospectionQuery.js +145 -0
  680. package/node_modules/graphql/utilities/getIntrospectionQuery.mjs +138 -0
  681. package/node_modules/graphql/utilities/getOperationAST.d.ts +11 -0
  682. package/node_modules/graphql/utilities/getOperationAST.js +43 -0
  683. package/node_modules/graphql/utilities/getOperationAST.mjs +36 -0
  684. package/node_modules/graphql/utilities/getOperationRootType.d.ts +15 -0
  685. package/node_modules/graphql/utilities/getOperationRootType.js +67 -0
  686. package/node_modules/graphql/utilities/getOperationRootType.mjs +54 -0
  687. package/node_modules/graphql/utilities/index.d.ts +66 -0
  688. package/node_modules/graphql/utilities/index.js +247 -0
  689. package/node_modules/graphql/utilities/index.mjs +60 -0
  690. package/node_modules/graphql/utilities/introspectionFromSchema.d.ts +18 -0
  691. package/node_modules/graphql/utilities/introspectionFromSchema.js +43 -0
  692. package/node_modules/graphql/utilities/introspectionFromSchema.mjs +31 -0
  693. package/node_modules/graphql/utilities/lexicographicSortSchema.d.ts +9 -0
  694. package/node_modules/graphql/utilities/lexicographicSortSchema.js +177 -0
  695. package/node_modules/graphql/utilities/lexicographicSortSchema.mjs +172 -0
  696. package/node_modules/graphql/utilities/printSchema.d.ts +5 -0
  697. package/node_modules/graphql/utilities/printSchema.js +338 -0
  698. package/node_modules/graphql/utilities/printSchema.mjs +314 -0
  699. package/node_modules/graphql/utilities/resolveSchemaCoordinate.d.ts +80 -0
  700. package/node_modules/graphql/utilities/resolveSchemaCoordinate.js +260 -0
  701. package/node_modules/graphql/utilities/resolveSchemaCoordinate.mjs +243 -0
  702. package/node_modules/graphql/utilities/separateOperations.d.ts +11 -0
  703. package/node_modules/graphql/utilities/separateOperations.js +88 -0
  704. package/node_modules/graphql/utilities/separateOperations.mjs +80 -0
  705. package/node_modules/graphql/utilities/sortValueNode.d.ts +9 -0
  706. package/node_modules/graphql/utilities/sortValueNode.js +47 -0
  707. package/node_modules/graphql/utilities/sortValueNode.mjs +39 -0
  708. package/node_modules/graphql/utilities/stripIgnoredCharacters.d.ts +62 -0
  709. package/node_modules/graphql/utilities/stripIgnoredCharacters.js +121 -0
  710. package/node_modules/graphql/utilities/stripIgnoredCharacters.mjs +104 -0
  711. package/node_modules/graphql/utilities/typeComparators.d.ts +32 -0
  712. package/node_modules/graphql/utilities/typeComparators.js +116 -0
  713. package/node_modules/graphql/utilities/typeComparators.mjs +106 -0
  714. package/node_modules/graphql/utilities/typeFromAST.d.ts +32 -0
  715. package/node_modules/graphql/utilities/typeFromAST.js +27 -0
  716. package/node_modules/graphql/utilities/typeFromAST.mjs +18 -0
  717. package/node_modules/graphql/utilities/typedQueryDocumentNode.d.ts +22 -0
  718. package/node_modules/graphql/utilities/typedQueryDocumentNode.js +5 -0
  719. package/node_modules/graphql/utilities/typedQueryDocumentNode.mjs +1 -0
  720. package/node_modules/graphql/utilities/valueFromAST.d.ts +29 -0
  721. package/node_modules/graphql/utilities/valueFromAST.js +197 -0
  722. package/node_modules/graphql/utilities/valueFromAST.mjs +184 -0
  723. package/node_modules/graphql/utilities/valueFromASTUntyped.d.ts +23 -0
  724. package/node_modules/graphql/utilities/valueFromASTUntyped.js +61 -0
  725. package/node_modules/graphql/utilities/valueFromASTUntyped.mjs +53 -0
  726. package/node_modules/graphql/validation/ValidationContext.d.ts +96 -0
  727. package/node_modules/graphql/validation/ValidationContext.js +233 -0
  728. package/node_modules/graphql/validation/ValidationContext.mjs +213 -0
  729. package/node_modules/graphql/validation/index.d.ts +41 -0
  730. package/node_modules/graphql/validation/index.js +331 -0
  731. package/node_modules/graphql/validation/index.mjs +69 -0
  732. package/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.d.ts +13 -0
  733. package/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.js +46 -0
  734. package/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.mjs +34 -0
  735. package/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.d.ts +13 -0
  736. package/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.js +145 -0
  737. package/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.mjs +127 -0
  738. package/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.d.ts +14 -0
  739. package/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.js +69 -0
  740. package/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.mjs +53 -0
  741. package/node_modules/graphql/validation/rules/KnownArgumentNamesRule.d.ts +23 -0
  742. package/node_modules/graphql/validation/rules/KnownArgumentNamesRule.js +120 -0
  743. package/node_modules/graphql/validation/rules/KnownArgumentNamesRule.mjs +102 -0
  744. package/node_modules/graphql/validation/rules/KnownDirectivesRule.d.ts +16 -0
  745. package/node_modules/graphql/validation/rules/KnownDirectivesRule.js +167 -0
  746. package/node_modules/graphql/validation/rules/KnownDirectivesRule.mjs +150 -0
  747. package/node_modules/graphql/validation/rules/KnownFragmentNamesRule.d.ts +13 -0
  748. package/node_modules/graphql/validation/rules/KnownFragmentNamesRule.js +36 -0
  749. package/node_modules/graphql/validation/rules/KnownFragmentNamesRule.mjs +26 -0
  750. package/node_modules/graphql/validation/rules/KnownTypeNamesRule.d.ts +16 -0
  751. package/node_modules/graphql/validation/rules/KnownTypeNamesRule.js +89 -0
  752. package/node_modules/graphql/validation/rules/KnownTypeNamesRule.mjs +77 -0
  753. package/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.d.ts +13 -0
  754. package/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.js +42 -0
  755. package/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.mjs +34 -0
  756. package/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.d.ts +10 -0
  757. package/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.js +67 -0
  758. package/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.mjs +57 -0
  759. package/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.d.ts +5 -0
  760. package/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.js +90 -0
  761. package/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.mjs +77 -0
  762. package/node_modules/graphql/validation/rules/NoFragmentCyclesRule.d.ts +13 -0
  763. package/node_modules/graphql/validation/rules/NoFragmentCyclesRule.js +85 -0
  764. package/node_modules/graphql/validation/rules/NoFragmentCyclesRule.mjs +78 -0
  765. package/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.d.ts +13 -0
  766. package/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.js +52 -0
  767. package/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.mjs +45 -0
  768. package/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.d.ts +13 -0
  769. package/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.js +61 -0
  770. package/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.mjs +51 -0
  771. package/node_modules/graphql/validation/rules/NoUnusedVariablesRule.d.ts +13 -0
  772. package/node_modules/graphql/validation/rules/NoUnusedVariablesRule.js +57 -0
  773. package/node_modules/graphql/validation/rules/NoUnusedVariablesRule.mjs +50 -0
  774. package/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.d.ts +14 -0
  775. package/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.js +868 -0
  776. package/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.mjs +853 -0
  777. package/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.d.ts +12 -0
  778. package/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.js +95 -0
  779. package/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.mjs +73 -0
  780. package/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.d.ts +10 -0
  781. package/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.js +171 -0
  782. package/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.mjs +148 -0
  783. package/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.d.ts +20 -0
  784. package/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.js +162 -0
  785. package/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.mjs +142 -0
  786. package/node_modules/graphql/validation/rules/ScalarLeafsRule.d.ts +9 -0
  787. package/node_modules/graphql/validation/rules/ScalarLeafsRule.js +66 -0
  788. package/node_modules/graphql/validation/rules/ScalarLeafsRule.mjs +57 -0
  789. package/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.d.ts +13 -0
  790. package/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.js +86 -0
  791. package/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.mjs +77 -0
  792. package/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.d.ts +11 -0
  793. package/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.js +92 -0
  794. package/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.mjs +81 -0
  795. package/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.d.ts +13 -0
  796. package/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.js +55 -0
  797. package/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.mjs +44 -0
  798. package/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.d.ts +10 -0
  799. package/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.js +54 -0
  800. package/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.mjs +47 -0
  801. package/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.d.ts +16 -0
  802. package/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.js +95 -0
  803. package/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.mjs +85 -0
  804. package/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.d.ts +10 -0
  805. package/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.js +75 -0
  806. package/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.mjs +64 -0
  807. package/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.d.ts +10 -0
  808. package/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.js +87 -0
  809. package/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.mjs +79 -0
  810. package/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.d.ts +12 -0
  811. package/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.js +41 -0
  812. package/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.mjs +34 -0
  813. package/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.d.ts +13 -0
  814. package/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.js +54 -0
  815. package/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.mjs +46 -0
  816. package/node_modules/graphql/validation/rules/UniqueOperationNamesRule.d.ts +12 -0
  817. package/node_modules/graphql/validation/rules/UniqueOperationNamesRule.js +46 -0
  818. package/node_modules/graphql/validation/rules/UniqueOperationNamesRule.mjs +39 -0
  819. package/node_modules/graphql/validation/rules/UniqueOperationTypesRule.d.ts +10 -0
  820. package/node_modules/graphql/validation/rules/UniqueOperationTypesRule.js +71 -0
  821. package/node_modules/graphql/validation/rules/UniqueOperationTypesRule.mjs +64 -0
  822. package/node_modules/graphql/validation/rules/UniqueTypeNamesRule.d.ts +10 -0
  823. package/node_modules/graphql/validation/rules/UniqueTypeNamesRule.js +57 -0
  824. package/node_modules/graphql/validation/rules/UniqueTypeNamesRule.mjs +47 -0
  825. package/node_modules/graphql/validation/rules/UniqueVariableNamesRule.d.ts +10 -0
  826. package/node_modules/graphql/validation/rules/UniqueVariableNamesRule.js +49 -0
  827. package/node_modules/graphql/validation/rules/UniqueVariableNamesRule.mjs +41 -0
  828. package/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.d.ts +13 -0
  829. package/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.js +246 -0
  830. package/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.mjs +223 -0
  831. package/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.d.ts +13 -0
  832. package/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.js +46 -0
  833. package/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.mjs +33 -0
  834. package/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.d.ts +12 -0
  835. package/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.js +131 -0
  836. package/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.mjs +116 -0
  837. package/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.d.ts +15 -0
  838. package/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.js +131 -0
  839. package/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.mjs +117 -0
  840. package/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.d.ts +15 -0
  841. package/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js +41 -0
  842. package/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.mjs +32 -0
  843. package/node_modules/graphql/validation/specifiedRules.d.ts +18 -0
  844. package/node_modules/graphql/validation/specifiedRules.js +176 -0
  845. package/node_modules/graphql/validation/specifiedRules.mjs +132 -0
  846. package/node_modules/graphql/validation/validate.d.ts +61 -0
  847. package/node_modules/graphql/validation/validate.js +151 -0
  848. package/node_modules/graphql/validation/validate.mjs +133 -0
  849. package/node_modules/graphql/version.d.ts +13 -0
  850. package/node_modules/graphql/version.js +25 -0
  851. package/node_modules/graphql/version.mjs +17 -0
  852. package/node_modules/has-symbols/.eslintrc +11 -0
  853. package/node_modules/has-symbols/.github/FUNDING.yml +12 -0
  854. package/node_modules/has-symbols/.nycrc +9 -0
  855. package/node_modules/has-symbols/CHANGELOG.md +91 -0
  856. package/node_modules/has-symbols/LICENSE +21 -0
  857. package/node_modules/has-symbols/README.md +46 -0
  858. package/node_modules/has-symbols/index.d.ts +3 -0
  859. package/node_modules/has-symbols/index.js +14 -0
  860. package/node_modules/has-symbols/package.json +111 -0
  861. package/node_modules/has-symbols/shams.d.ts +3 -0
  862. package/node_modules/has-symbols/shams.js +45 -0
  863. package/node_modules/has-symbols/test/index.js +22 -0
  864. package/node_modules/has-symbols/test/shams/core-js.js +29 -0
  865. package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
  866. package/node_modules/has-symbols/test/tests.js +58 -0
  867. package/node_modules/has-symbols/tsconfig.json +10 -0
  868. package/node_modules/hasown/.eslintrc +5 -0
  869. package/node_modules/hasown/.github/FUNDING.yml +12 -0
  870. package/node_modules/hasown/.nycrc +13 -0
  871. package/node_modules/hasown/CHANGELOG.md +40 -0
  872. package/node_modules/hasown/LICENSE +21 -0
  873. package/node_modules/hasown/README.md +40 -0
  874. package/node_modules/hasown/index.d.ts +3 -0
  875. package/node_modules/hasown/index.js +8 -0
  876. package/node_modules/hasown/package.json +92 -0
  877. package/node_modules/hasown/tsconfig.json +6 -0
  878. package/node_modules/http-errors/HISTORY.md +186 -0
  879. package/node_modules/http-errors/LICENSE +23 -0
  880. package/node_modules/http-errors/README.md +169 -0
  881. package/node_modules/http-errors/index.js +290 -0
  882. package/node_modules/http-errors/package.json +54 -0
  883. package/node_modules/iconv-lite/Changelog.md +236 -0
  884. package/node_modules/iconv-lite/LICENSE +21 -0
  885. package/node_modules/iconv-lite/README.md +138 -0
  886. package/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
  887. package/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
  888. package/node_modules/iconv-lite/encodings/index.js +23 -0
  889. package/node_modules/iconv-lite/encodings/internal.js +218 -0
  890. package/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
  891. package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
  892. package/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
  893. package/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
  894. package/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
  895. package/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
  896. package/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
  897. package/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
  898. package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
  899. package/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
  900. package/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
  901. package/node_modules/iconv-lite/encodings/utf16.js +187 -0
  902. package/node_modules/iconv-lite/encodings/utf32.js +307 -0
  903. package/node_modules/iconv-lite/encodings/utf7.js +283 -0
  904. package/node_modules/iconv-lite/lib/bom-handling.js +48 -0
  905. package/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
  906. package/node_modules/iconv-lite/lib/index.d.ts +41 -0
  907. package/node_modules/iconv-lite/lib/index.js +183 -0
  908. package/node_modules/iconv-lite/lib/streams.js +105 -0
  909. package/node_modules/iconv-lite/package.json +59 -0
  910. package/node_modules/ieee754/LICENSE +11 -0
  911. package/node_modules/ieee754/README.md +51 -0
  912. package/node_modules/ieee754/index.d.ts +10 -0
  913. package/node_modules/ieee754/index.js +85 -0
  914. package/node_modules/ieee754/package.json +52 -0
  915. package/node_modules/inherits/LICENSE +16 -0
  916. package/node_modules/inherits/README.md +42 -0
  917. package/node_modules/inherits/inherits.js +9 -0
  918. package/node_modules/inherits/inherits_browser.js +27 -0
  919. package/node_modules/inherits/package.json +29 -0
  920. package/node_modules/ini/LICENSE +15 -0
  921. package/node_modules/ini/README.md +102 -0
  922. package/node_modules/ini/ini.js +206 -0
  923. package/node_modules/ini/package.json +33 -0
  924. package/node_modules/ipaddr.js/LICENSE +19 -0
  925. package/node_modules/ipaddr.js/README.md +233 -0
  926. package/node_modules/ipaddr.js/ipaddr.min.js +1 -0
  927. package/node_modules/ipaddr.js/lib/ipaddr.js +673 -0
  928. package/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +68 -0
  929. package/node_modules/ipaddr.js/package.json +35 -0
  930. package/node_modules/is-promise/LICENSE +19 -0
  931. package/node_modules/is-promise/index.d.ts +2 -0
  932. package/node_modules/is-promise/index.js +6 -0
  933. package/node_modules/is-promise/index.mjs +3 -0
  934. package/node_modules/is-promise/package.json +30 -0
  935. package/node_modules/is-promise/readme.md +33 -0
  936. package/node_modules/keytar/LICENSE.md +20 -0
  937. package/node_modules/keytar/README.md +94 -0
  938. package/node_modules/keytar/binding.gyp +66 -0
  939. package/node_modules/keytar/build/Release/keytar.node +0 -0
  940. package/node_modules/keytar/keytar.d.ts +51 -0
  941. package/node_modules/keytar/lib/keytar.js +43 -0
  942. package/node_modules/keytar/package.json +66 -0
  943. package/node_modules/keytar/src/async.cc +242 -0
  944. package/node_modules/keytar/src/async.h +103 -0
  945. package/node_modules/keytar/src/credentials.h +13 -0
  946. package/node_modules/keytar/src/keytar.h +41 -0
  947. package/node_modules/keytar/src/keytar_mac.cc +296 -0
  948. package/node_modules/keytar/src/keytar_posix.cc +184 -0
  949. package/node_modules/keytar/src/keytar_win.cc +272 -0
  950. package/node_modules/keytar/src/main.cc +139 -0
  951. package/node_modules/math-intrinsics/.eslintrc +16 -0
  952. package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
  953. package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
  954. package/node_modules/math-intrinsics/LICENSE +21 -0
  955. package/node_modules/math-intrinsics/README.md +50 -0
  956. package/node_modules/math-intrinsics/abs.d.ts +1 -0
  957. package/node_modules/math-intrinsics/abs.js +4 -0
  958. package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
  959. package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
  960. package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
  961. package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
  962. package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
  963. package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
  964. package/node_modules/math-intrinsics/floor.d.ts +1 -0
  965. package/node_modules/math-intrinsics/floor.js +4 -0
  966. package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
  967. package/node_modules/math-intrinsics/isFinite.js +12 -0
  968. package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
  969. package/node_modules/math-intrinsics/isInteger.js +16 -0
  970. package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
  971. package/node_modules/math-intrinsics/isNaN.js +6 -0
  972. package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
  973. package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
  974. package/node_modules/math-intrinsics/max.d.ts +1 -0
  975. package/node_modules/math-intrinsics/max.js +4 -0
  976. package/node_modules/math-intrinsics/min.d.ts +1 -0
  977. package/node_modules/math-intrinsics/min.js +4 -0
  978. package/node_modules/math-intrinsics/mod.d.ts +3 -0
  979. package/node_modules/math-intrinsics/mod.js +9 -0
  980. package/node_modules/math-intrinsics/package.json +86 -0
  981. package/node_modules/math-intrinsics/pow.d.ts +1 -0
  982. package/node_modules/math-intrinsics/pow.js +4 -0
  983. package/node_modules/math-intrinsics/round.d.ts +1 -0
  984. package/node_modules/math-intrinsics/round.js +4 -0
  985. package/node_modules/math-intrinsics/sign.d.ts +3 -0
  986. package/node_modules/math-intrinsics/sign.js +11 -0
  987. package/node_modules/math-intrinsics/test/index.js +192 -0
  988. package/node_modules/math-intrinsics/tsconfig.json +3 -0
  989. package/node_modules/media-typer/HISTORY.md +50 -0
  990. package/node_modules/media-typer/LICENSE +22 -0
  991. package/node_modules/media-typer/README.md +93 -0
  992. package/node_modules/media-typer/index.js +143 -0
  993. package/node_modules/media-typer/package.json +33 -0
  994. package/node_modules/merge-descriptors/index.d.ts +11 -0
  995. package/node_modules/merge-descriptors/index.js +26 -0
  996. package/node_modules/merge-descriptors/license +11 -0
  997. package/node_modules/merge-descriptors/package.json +50 -0
  998. package/node_modules/merge-descriptors/readme.md +55 -0
  999. package/node_modules/mime-db/HISTORY.md +541 -0
  1000. package/node_modules/mime-db/LICENSE +23 -0
  1001. package/node_modules/mime-db/README.md +109 -0
  1002. package/node_modules/mime-db/db.json +9342 -0
  1003. package/node_modules/mime-db/index.js +12 -0
  1004. package/node_modules/mime-db/package.json +56 -0
  1005. package/node_modules/mime-types/HISTORY.md +428 -0
  1006. package/node_modules/mime-types/LICENSE +23 -0
  1007. package/node_modules/mime-types/README.md +126 -0
  1008. package/node_modules/mime-types/index.js +211 -0
  1009. package/node_modules/mime-types/mimeScore.js +57 -0
  1010. package/node_modules/mime-types/package.json +49 -0
  1011. package/node_modules/mimic-response/index.d.ts +17 -0
  1012. package/node_modules/mimic-response/index.js +77 -0
  1013. package/node_modules/mimic-response/license +9 -0
  1014. package/node_modules/mimic-response/package.json +42 -0
  1015. package/node_modules/mimic-response/readme.md +78 -0
  1016. package/node_modules/minimist/.eslintrc +29 -0
  1017. package/node_modules/minimist/.github/FUNDING.yml +12 -0
  1018. package/node_modules/minimist/.nycrc +14 -0
  1019. package/node_modules/minimist/CHANGELOG.md +298 -0
  1020. package/node_modules/minimist/LICENSE +18 -0
  1021. package/node_modules/minimist/README.md +121 -0
  1022. package/node_modules/minimist/example/parse.js +4 -0
  1023. package/node_modules/minimist/index.js +263 -0
  1024. package/node_modules/minimist/package.json +75 -0
  1025. package/node_modules/minimist/test/all_bool.js +34 -0
  1026. package/node_modules/minimist/test/bool.js +177 -0
  1027. package/node_modules/minimist/test/dash.js +43 -0
  1028. package/node_modules/minimist/test/default_bool.js +37 -0
  1029. package/node_modules/minimist/test/dotted.js +24 -0
  1030. package/node_modules/minimist/test/kv_short.js +32 -0
  1031. package/node_modules/minimist/test/long.js +33 -0
  1032. package/node_modules/minimist/test/num.js +38 -0
  1033. package/node_modules/minimist/test/parse.js +209 -0
  1034. package/node_modules/minimist/test/parse_modified.js +11 -0
  1035. package/node_modules/minimist/test/proto.js +64 -0
  1036. package/node_modules/minimist/test/short.js +69 -0
  1037. package/node_modules/minimist/test/stop_early.js +17 -0
  1038. package/node_modules/minimist/test/unknown.js +104 -0
  1039. package/node_modules/minimist/test/whitespace.js +10 -0
  1040. package/node_modules/mkdirp-classic/LICENSE +21 -0
  1041. package/node_modules/mkdirp-classic/README.md +18 -0
  1042. package/node_modules/mkdirp-classic/index.js +98 -0
  1043. package/node_modules/mkdirp-classic/package.json +18 -0
  1044. package/node_modules/ms/index.js +162 -0
  1045. package/node_modules/ms/license.md +21 -0
  1046. package/node_modules/ms/package.json +38 -0
  1047. package/node_modules/ms/readme.md +59 -0
  1048. package/node_modules/napi-build-utils/.github/workflows/run-npm-tests.yml +31 -0
  1049. package/node_modules/napi-build-utils/LICENSE +21 -0
  1050. package/node_modules/napi-build-utils/README.md +52 -0
  1051. package/node_modules/napi-build-utils/index.js +214 -0
  1052. package/node_modules/napi-build-utils/index.md +0 -0
  1053. package/node_modules/napi-build-utils/package.json +42 -0
  1054. package/node_modules/negotiator/HISTORY.md +114 -0
  1055. package/node_modules/negotiator/LICENSE +24 -0
  1056. package/node_modules/negotiator/README.md +212 -0
  1057. package/node_modules/negotiator/index.js +83 -0
  1058. package/node_modules/negotiator/lib/charset.js +169 -0
  1059. package/node_modules/negotiator/lib/encoding.js +205 -0
  1060. package/node_modules/negotiator/lib/language.js +179 -0
  1061. package/node_modules/negotiator/lib/mediaType.js +294 -0
  1062. package/node_modules/negotiator/package.json +43 -0
  1063. package/node_modules/node-abi/LICENSE +21 -0
  1064. package/node_modules/node-abi/README.md +54 -0
  1065. package/node_modules/node-abi/abi_registry.json +432 -0
  1066. package/node_modules/node-abi/index.js +179 -0
  1067. package/node_modules/node-abi/package.json +45 -0
  1068. package/node_modules/node-addon-api/LICENSE.md +13 -0
  1069. package/node_modules/node-addon-api/README.md +293 -0
  1070. package/node_modules/node-addon-api/common.gypi +21 -0
  1071. package/node_modules/node-addon-api/except.gypi +25 -0
  1072. package/node_modules/node-addon-api/index.js +11 -0
  1073. package/node_modules/node-addon-api/napi-inl.deprecated.h +192 -0
  1074. package/node_modules/node-addon-api/napi-inl.h +6209 -0
  1075. package/node_modules/node-addon-api/napi.h +2983 -0
  1076. package/node_modules/node-addon-api/node_api.gyp +9 -0
  1077. package/node_modules/node-addon-api/noexcept.gypi +26 -0
  1078. package/node_modules/node-addon-api/nothing.c +0 -0
  1079. package/node_modules/node-addon-api/package-support.json +21 -0
  1080. package/node_modules/node-addon-api/package.json +399 -0
  1081. package/node_modules/node-addon-api/tools/README.md +73 -0
  1082. package/node_modules/node-addon-api/tools/check-napi.js +100 -0
  1083. package/node_modules/node-addon-api/tools/clang-format.js +68 -0
  1084. package/node_modules/node-addon-api/tools/conversion.js +309 -0
  1085. package/node_modules/node-addon-api/tools/eslint-format.js +71 -0
  1086. package/node_modules/object-inspect/.eslintrc +53 -0
  1087. package/node_modules/object-inspect/.github/FUNDING.yml +12 -0
  1088. package/node_modules/object-inspect/.nycrc +13 -0
  1089. package/node_modules/object-inspect/CHANGELOG.md +424 -0
  1090. package/node_modules/object-inspect/LICENSE +21 -0
  1091. package/node_modules/object-inspect/example/all.js +23 -0
  1092. package/node_modules/object-inspect/example/circular.js +6 -0
  1093. package/node_modules/object-inspect/example/fn.js +5 -0
  1094. package/node_modules/object-inspect/example/inspect.js +10 -0
  1095. package/node_modules/object-inspect/index.js +544 -0
  1096. package/node_modules/object-inspect/package-support.json +20 -0
  1097. package/node_modules/object-inspect/package.json +105 -0
  1098. package/node_modules/object-inspect/readme.markdown +84 -0
  1099. package/node_modules/object-inspect/test/bigint.js +58 -0
  1100. package/node_modules/object-inspect/test/browser/dom.js +15 -0
  1101. package/node_modules/object-inspect/test/circular.js +16 -0
  1102. package/node_modules/object-inspect/test/deep.js +12 -0
  1103. package/node_modules/object-inspect/test/element.js +53 -0
  1104. package/node_modules/object-inspect/test/err.js +48 -0
  1105. package/node_modules/object-inspect/test/fakes.js +29 -0
  1106. package/node_modules/object-inspect/test/fn.js +76 -0
  1107. package/node_modules/object-inspect/test/global.js +17 -0
  1108. package/node_modules/object-inspect/test/has.js +15 -0
  1109. package/node_modules/object-inspect/test/holes.js +15 -0
  1110. package/node_modules/object-inspect/test/indent-option.js +271 -0
  1111. package/node_modules/object-inspect/test/inspect.js +139 -0
  1112. package/node_modules/object-inspect/test/lowbyte.js +12 -0
  1113. package/node_modules/object-inspect/test/number.js +58 -0
  1114. package/node_modules/object-inspect/test/quoteStyle.js +26 -0
  1115. package/node_modules/object-inspect/test/toStringTag.js +40 -0
  1116. package/node_modules/object-inspect/test/undef.js +12 -0
  1117. package/node_modules/object-inspect/test/values.js +261 -0
  1118. package/node_modules/object-inspect/test-core-js.js +26 -0
  1119. package/node_modules/object-inspect/util.inspect.js +1 -0
  1120. package/node_modules/on-finished/HISTORY.md +98 -0
  1121. package/node_modules/on-finished/LICENSE +23 -0
  1122. package/node_modules/on-finished/README.md +162 -0
  1123. package/node_modules/on-finished/index.js +234 -0
  1124. package/node_modules/on-finished/package.json +39 -0
  1125. package/node_modules/once/LICENSE +15 -0
  1126. package/node_modules/once/README.md +79 -0
  1127. package/node_modules/once/once.js +42 -0
  1128. package/node_modules/once/package.json +33 -0
  1129. package/node_modules/parseurl/HISTORY.md +58 -0
  1130. package/node_modules/parseurl/LICENSE +24 -0
  1131. package/node_modules/parseurl/README.md +133 -0
  1132. package/node_modules/parseurl/index.js +158 -0
  1133. package/node_modules/parseurl/package.json +40 -0
  1134. package/node_modules/path-to-regexp/LICENSE +21 -0
  1135. package/node_modules/path-to-regexp/Readme.md +224 -0
  1136. package/node_modules/path-to-regexp/dist/index.d.ts +144 -0
  1137. package/node_modules/path-to-regexp/dist/index.js +409 -0
  1138. package/node_modules/path-to-regexp/dist/index.js.map +1 -0
  1139. package/node_modules/path-to-regexp/package.json +64 -0
  1140. package/node_modules/prebuild-install/CHANGELOG.md +131 -0
  1141. package/node_modules/prebuild-install/CONTRIBUTING.md +6 -0
  1142. package/node_modules/prebuild-install/LICENSE +21 -0
  1143. package/node_modules/prebuild-install/README.md +163 -0
  1144. package/node_modules/prebuild-install/asset.js +44 -0
  1145. package/node_modules/prebuild-install/bin.js +78 -0
  1146. package/node_modules/prebuild-install/download.js +142 -0
  1147. package/node_modules/prebuild-install/error.js +14 -0
  1148. package/node_modules/prebuild-install/help.txt +16 -0
  1149. package/node_modules/prebuild-install/index.js +1 -0
  1150. package/node_modules/prebuild-install/log.js +33 -0
  1151. package/node_modules/prebuild-install/package.json +67 -0
  1152. package/node_modules/prebuild-install/proxy.js +35 -0
  1153. package/node_modules/prebuild-install/rc.js +64 -0
  1154. package/node_modules/prebuild-install/util.js +143 -0
  1155. package/node_modules/proxy-addr/HISTORY.md +161 -0
  1156. package/node_modules/proxy-addr/LICENSE +22 -0
  1157. package/node_modules/proxy-addr/README.md +139 -0
  1158. package/node_modules/proxy-addr/index.js +327 -0
  1159. package/node_modules/proxy-addr/package.json +47 -0
  1160. package/node_modules/pump/.github/FUNDING.yml +2 -0
  1161. package/node_modules/pump/.travis.yml +5 -0
  1162. package/node_modules/pump/LICENSE +21 -0
  1163. package/node_modules/pump/README.md +74 -0
  1164. package/node_modules/pump/SECURITY.md +5 -0
  1165. package/node_modules/pump/empty.js +1 -0
  1166. package/node_modules/pump/index.js +86 -0
  1167. package/node_modules/pump/package.json +30 -0
  1168. package/node_modules/pump/test-browser.js +66 -0
  1169. package/node_modules/pump/test-node.js +53 -0
  1170. package/node_modules/qs/.editorconfig +46 -0
  1171. package/node_modules/qs/.eslintrc +39 -0
  1172. package/node_modules/qs/.github/FUNDING.yml +12 -0
  1173. package/node_modules/qs/.nycrc +13 -0
  1174. package/node_modules/qs/CHANGELOG.md +622 -0
  1175. package/node_modules/qs/LICENSE.md +29 -0
  1176. package/node_modules/qs/README.md +733 -0
  1177. package/node_modules/qs/dist/qs.js +141 -0
  1178. package/node_modules/qs/lib/formats.js +23 -0
  1179. package/node_modules/qs/lib/index.js +11 -0
  1180. package/node_modules/qs/lib/parse.js +328 -0
  1181. package/node_modules/qs/lib/stringify.js +356 -0
  1182. package/node_modules/qs/lib/utils.js +268 -0
  1183. package/node_modules/qs/package.json +93 -0
  1184. package/node_modules/qs/test/empty-keys-cases.js +267 -0
  1185. package/node_modules/qs/test/parse.js +1276 -0
  1186. package/node_modules/qs/test/stringify.js +1306 -0
  1187. package/node_modules/qs/test/utils.js +262 -0
  1188. package/node_modules/range-parser/HISTORY.md +56 -0
  1189. package/node_modules/range-parser/LICENSE +23 -0
  1190. package/node_modules/range-parser/README.md +84 -0
  1191. package/node_modules/range-parser/index.js +162 -0
  1192. package/node_modules/range-parser/package.json +44 -0
  1193. package/node_modules/raw-body/LICENSE +22 -0
  1194. package/node_modules/raw-body/README.md +223 -0
  1195. package/node_modules/raw-body/index.d.ts +85 -0
  1196. package/node_modules/raw-body/index.js +336 -0
  1197. package/node_modules/raw-body/package.json +46 -0
  1198. package/node_modules/rc/LICENSE.APACHE2 +15 -0
  1199. package/node_modules/rc/LICENSE.BSD +26 -0
  1200. package/node_modules/rc/LICENSE.MIT +24 -0
  1201. package/node_modules/rc/README.md +227 -0
  1202. package/node_modules/rc/browser.js +7 -0
  1203. package/node_modules/rc/cli.js +4 -0
  1204. package/node_modules/rc/index.js +53 -0
  1205. package/node_modules/rc/lib/utils.js +104 -0
  1206. package/node_modules/rc/package.json +29 -0
  1207. package/node_modules/rc/test/ini.js +16 -0
  1208. package/node_modules/rc/test/nested-env-vars.js +50 -0
  1209. package/node_modules/rc/test/test.js +59 -0
  1210. package/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  1211. package/node_modules/readable-stream/GOVERNANCE.md +136 -0
  1212. package/node_modules/readable-stream/LICENSE +47 -0
  1213. package/node_modules/readable-stream/README.md +106 -0
  1214. package/node_modules/readable-stream/errors-browser.js +127 -0
  1215. package/node_modules/readable-stream/errors.js +116 -0
  1216. package/node_modules/readable-stream/experimentalWarning.js +17 -0
  1217. package/node_modules/readable-stream/lib/_stream_duplex.js +126 -0
  1218. package/node_modules/readable-stream/lib/_stream_passthrough.js +37 -0
  1219. package/node_modules/readable-stream/lib/_stream_readable.js +1027 -0
  1220. package/node_modules/readable-stream/lib/_stream_transform.js +190 -0
  1221. package/node_modules/readable-stream/lib/_stream_writable.js +641 -0
  1222. package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +180 -0
  1223. package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +183 -0
  1224. package/node_modules/readable-stream/lib/internal/streams/destroy.js +96 -0
  1225. package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +86 -0
  1226. package/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
  1227. package/node_modules/readable-stream/lib/internal/streams/from.js +52 -0
  1228. package/node_modules/readable-stream/lib/internal/streams/pipeline.js +86 -0
  1229. package/node_modules/readable-stream/lib/internal/streams/state.js +22 -0
  1230. package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
  1231. package/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
  1232. package/node_modules/readable-stream/package.json +68 -0
  1233. package/node_modules/readable-stream/readable-browser.js +9 -0
  1234. package/node_modules/readable-stream/readable.js +16 -0
  1235. package/node_modules/router/HISTORY.md +228 -0
  1236. package/node_modules/router/LICENSE +23 -0
  1237. package/node_modules/router/README.md +416 -0
  1238. package/node_modules/router/index.js +748 -0
  1239. package/node_modules/router/lib/layer.js +247 -0
  1240. package/node_modules/router/lib/route.js +242 -0
  1241. package/node_modules/router/package.json +44 -0
  1242. package/node_modules/safe-buffer/LICENSE +21 -0
  1243. package/node_modules/safe-buffer/README.md +584 -0
  1244. package/node_modules/safe-buffer/index.d.ts +187 -0
  1245. package/node_modules/safe-buffer/index.js +65 -0
  1246. package/node_modules/safe-buffer/package.json +51 -0
  1247. package/node_modules/safer-buffer/LICENSE +21 -0
  1248. package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
  1249. package/node_modules/safer-buffer/Readme.md +156 -0
  1250. package/node_modules/safer-buffer/dangerous.js +58 -0
  1251. package/node_modules/safer-buffer/package.json +34 -0
  1252. package/node_modules/safer-buffer/safer.js +77 -0
  1253. package/node_modules/safer-buffer/tests.js +406 -0
  1254. package/node_modules/semver/LICENSE +15 -0
  1255. package/node_modules/semver/README.md +665 -0
  1256. package/node_modules/semver/bin/semver.js +191 -0
  1257. package/node_modules/semver/classes/comparator.js +143 -0
  1258. package/node_modules/semver/classes/index.js +7 -0
  1259. package/node_modules/semver/classes/range.js +557 -0
  1260. package/node_modules/semver/classes/semver.js +333 -0
  1261. package/node_modules/semver/functions/clean.js +8 -0
  1262. package/node_modules/semver/functions/cmp.js +54 -0
  1263. package/node_modules/semver/functions/coerce.js +62 -0
  1264. package/node_modules/semver/functions/compare-build.js +9 -0
  1265. package/node_modules/semver/functions/compare-loose.js +5 -0
  1266. package/node_modules/semver/functions/compare.js +7 -0
  1267. package/node_modules/semver/functions/diff.js +60 -0
  1268. package/node_modules/semver/functions/eq.js +5 -0
  1269. package/node_modules/semver/functions/gt.js +5 -0
  1270. package/node_modules/semver/functions/gte.js +5 -0
  1271. package/node_modules/semver/functions/inc.js +21 -0
  1272. package/node_modules/semver/functions/lt.js +5 -0
  1273. package/node_modules/semver/functions/lte.js +5 -0
  1274. package/node_modules/semver/functions/major.js +5 -0
  1275. package/node_modules/semver/functions/minor.js +5 -0
  1276. package/node_modules/semver/functions/neq.js +5 -0
  1277. package/node_modules/semver/functions/parse.js +18 -0
  1278. package/node_modules/semver/functions/patch.js +5 -0
  1279. package/node_modules/semver/functions/prerelease.js +8 -0
  1280. package/node_modules/semver/functions/rcompare.js +5 -0
  1281. package/node_modules/semver/functions/rsort.js +5 -0
  1282. package/node_modules/semver/functions/satisfies.js +12 -0
  1283. package/node_modules/semver/functions/sort.js +5 -0
  1284. package/node_modules/semver/functions/valid.js +8 -0
  1285. package/node_modules/semver/index.js +91 -0
  1286. package/node_modules/semver/internal/constants.js +37 -0
  1287. package/node_modules/semver/internal/debug.js +11 -0
  1288. package/node_modules/semver/internal/identifiers.js +29 -0
  1289. package/node_modules/semver/internal/lrucache.js +42 -0
  1290. package/node_modules/semver/internal/parse-options.js +17 -0
  1291. package/node_modules/semver/internal/re.js +223 -0
  1292. package/node_modules/semver/package.json +78 -0
  1293. package/node_modules/semver/preload.js +4 -0
  1294. package/node_modules/semver/range.bnf +16 -0
  1295. package/node_modules/semver/ranges/gtr.js +6 -0
  1296. package/node_modules/semver/ranges/intersects.js +9 -0
  1297. package/node_modules/semver/ranges/ltr.js +6 -0
  1298. package/node_modules/semver/ranges/max-satisfying.js +27 -0
  1299. package/node_modules/semver/ranges/min-satisfying.js +26 -0
  1300. package/node_modules/semver/ranges/min-version.js +63 -0
  1301. package/node_modules/semver/ranges/outside.js +82 -0
  1302. package/node_modules/semver/ranges/simplify.js +49 -0
  1303. package/node_modules/semver/ranges/subset.js +249 -0
  1304. package/node_modules/semver/ranges/to-comparators.js +10 -0
  1305. package/node_modules/semver/ranges/valid.js +13 -0
  1306. package/node_modules/send/HISTORY.md +580 -0
  1307. package/node_modules/send/LICENSE +23 -0
  1308. package/node_modules/send/README.md +317 -0
  1309. package/node_modules/send/index.js +997 -0
  1310. package/node_modules/send/package.json +60 -0
  1311. package/node_modules/serve-static/HISTORY.md +516 -0
  1312. package/node_modules/serve-static/LICENSE +25 -0
  1313. package/node_modules/serve-static/README.md +253 -0
  1314. package/node_modules/serve-static/index.js +208 -0
  1315. package/node_modules/serve-static/package.json +41 -0
  1316. package/node_modules/setprototypeof/LICENSE +13 -0
  1317. package/node_modules/setprototypeof/README.md +31 -0
  1318. package/node_modules/setprototypeof/index.d.ts +2 -0
  1319. package/node_modules/setprototypeof/index.js +17 -0
  1320. package/node_modules/setprototypeof/package.json +38 -0
  1321. package/node_modules/setprototypeof/test/index.js +24 -0
  1322. package/node_modules/side-channel/.editorconfig +9 -0
  1323. package/node_modules/side-channel/.eslintrc +12 -0
  1324. package/node_modules/side-channel/.github/FUNDING.yml +12 -0
  1325. package/node_modules/side-channel/.nycrc +13 -0
  1326. package/node_modules/side-channel/CHANGELOG.md +110 -0
  1327. package/node_modules/side-channel/LICENSE +21 -0
  1328. package/node_modules/side-channel/README.md +61 -0
  1329. package/node_modules/side-channel/index.d.ts +14 -0
  1330. package/node_modules/side-channel/index.js +43 -0
  1331. package/node_modules/side-channel/package.json +85 -0
  1332. package/node_modules/side-channel/test/index.js +104 -0
  1333. package/node_modules/side-channel/tsconfig.json +9 -0
  1334. package/node_modules/side-channel-list/.editorconfig +9 -0
  1335. package/node_modules/side-channel-list/.eslintrc +11 -0
  1336. package/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
  1337. package/node_modules/side-channel-list/.nycrc +13 -0
  1338. package/node_modules/side-channel-list/CHANGELOG.md +15 -0
  1339. package/node_modules/side-channel-list/LICENSE +21 -0
  1340. package/node_modules/side-channel-list/README.md +62 -0
  1341. package/node_modules/side-channel-list/index.d.ts +13 -0
  1342. package/node_modules/side-channel-list/index.js +113 -0
  1343. package/node_modules/side-channel-list/list.d.ts +14 -0
  1344. package/node_modules/side-channel-list/package.json +77 -0
  1345. package/node_modules/side-channel-list/test/index.js +104 -0
  1346. package/node_modules/side-channel-list/tsconfig.json +9 -0
  1347. package/node_modules/side-channel-map/.editorconfig +9 -0
  1348. package/node_modules/side-channel-map/.eslintrc +11 -0
  1349. package/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
  1350. package/node_modules/side-channel-map/.nycrc +13 -0
  1351. package/node_modules/side-channel-map/CHANGELOG.md +22 -0
  1352. package/node_modules/side-channel-map/LICENSE +21 -0
  1353. package/node_modules/side-channel-map/README.md +62 -0
  1354. package/node_modules/side-channel-map/index.d.ts +15 -0
  1355. package/node_modules/side-channel-map/index.js +68 -0
  1356. package/node_modules/side-channel-map/package.json +80 -0
  1357. package/node_modules/side-channel-map/test/index.js +114 -0
  1358. package/node_modules/side-channel-map/tsconfig.json +9 -0
  1359. package/node_modules/side-channel-weakmap/.editorconfig +9 -0
  1360. package/node_modules/side-channel-weakmap/.eslintrc +12 -0
  1361. package/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
  1362. package/node_modules/side-channel-weakmap/.nycrc +13 -0
  1363. package/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
  1364. package/node_modules/side-channel-weakmap/LICENSE +21 -0
  1365. package/node_modules/side-channel-weakmap/README.md +62 -0
  1366. package/node_modules/side-channel-weakmap/index.d.ts +15 -0
  1367. package/node_modules/side-channel-weakmap/index.js +84 -0
  1368. package/node_modules/side-channel-weakmap/package.json +87 -0
  1369. package/node_modules/side-channel-weakmap/test/index.js +114 -0
  1370. package/node_modules/side-channel-weakmap/tsconfig.json +9 -0
  1371. package/node_modules/simple-concat/.travis.yml +3 -0
  1372. package/node_modules/simple-concat/LICENSE +20 -0
  1373. package/node_modules/simple-concat/README.md +44 -0
  1374. package/node_modules/simple-concat/index.js +15 -0
  1375. package/node_modules/simple-concat/package.json +47 -0
  1376. package/node_modules/simple-concat/test/basic.js +41 -0
  1377. package/node_modules/simple-get/.github/dependabot.yml +15 -0
  1378. package/node_modules/simple-get/.github/workflows/ci.yml +23 -0
  1379. package/node_modules/simple-get/LICENSE +20 -0
  1380. package/node_modules/simple-get/README.md +333 -0
  1381. package/node_modules/simple-get/index.js +108 -0
  1382. package/node_modules/simple-get/package.json +67 -0
  1383. package/node_modules/statuses/HISTORY.md +87 -0
  1384. package/node_modules/statuses/LICENSE +23 -0
  1385. package/node_modules/statuses/README.md +139 -0
  1386. package/node_modules/statuses/codes.json +65 -0
  1387. package/node_modules/statuses/index.js +146 -0
  1388. package/node_modules/statuses/package.json +49 -0
  1389. package/node_modules/string_decoder/LICENSE +48 -0
  1390. package/node_modules/string_decoder/README.md +47 -0
  1391. package/node_modules/string_decoder/lib/string_decoder.js +296 -0
  1392. package/node_modules/string_decoder/package.json +34 -0
  1393. package/node_modules/strip-json-comments/index.js +70 -0
  1394. package/node_modules/strip-json-comments/license +21 -0
  1395. package/node_modules/strip-json-comments/package.json +42 -0
  1396. package/node_modules/strip-json-comments/readme.md +64 -0
  1397. package/node_modules/tar-fs/.travis.yml +6 -0
  1398. package/node_modules/tar-fs/LICENSE +21 -0
  1399. package/node_modules/tar-fs/README.md +165 -0
  1400. package/node_modules/tar-fs/index.js +363 -0
  1401. package/node_modules/tar-fs/package.json +41 -0
  1402. package/node_modules/tar-fs/test/fixtures/a/hello.txt +1 -0
  1403. package/node_modules/tar-fs/test/fixtures/b/a/test.txt +1 -0
  1404. package/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
  1405. package/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
  1406. package/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
  1407. package/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
  1408. package/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
  1409. package/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
  1410. package/node_modules/tar-fs/test/fixtures/e/file +0 -0
  1411. package/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
  1412. package/node_modules/tar-fs/test/index.js +346 -0
  1413. package/node_modules/tar-stream/LICENSE +21 -0
  1414. package/node_modules/tar-stream/README.md +168 -0
  1415. package/node_modules/tar-stream/extract.js +257 -0
  1416. package/node_modules/tar-stream/headers.js +295 -0
  1417. package/node_modules/tar-stream/index.js +2 -0
  1418. package/node_modules/tar-stream/pack.js +255 -0
  1419. package/node_modules/tar-stream/package.json +58 -0
  1420. package/node_modules/tar-stream/sandbox.js +11 -0
  1421. package/node_modules/toidentifier/HISTORY.md +9 -0
  1422. package/node_modules/toidentifier/LICENSE +21 -0
  1423. package/node_modules/toidentifier/README.md +61 -0
  1424. package/node_modules/toidentifier/index.js +32 -0
  1425. package/node_modules/toidentifier/package.json +38 -0
  1426. package/node_modules/tunnel-agent/LICENSE +55 -0
  1427. package/node_modules/tunnel-agent/README.md +4 -0
  1428. package/node_modules/tunnel-agent/index.js +244 -0
  1429. package/node_modules/tunnel-agent/package.json +22 -0
  1430. package/node_modules/type-is/HISTORY.md +292 -0
  1431. package/node_modules/type-is/LICENSE +23 -0
  1432. package/node_modules/type-is/README.md +198 -0
  1433. package/node_modules/type-is/index.js +250 -0
  1434. package/node_modules/type-is/package.json +47 -0
  1435. package/node_modules/unpipe/HISTORY.md +4 -0
  1436. package/node_modules/unpipe/LICENSE +22 -0
  1437. package/node_modules/unpipe/README.md +43 -0
  1438. package/node_modules/unpipe/index.js +69 -0
  1439. package/node_modules/unpipe/package.json +27 -0
  1440. package/node_modules/util-deprecate/History.md +16 -0
  1441. package/node_modules/util-deprecate/LICENSE +24 -0
  1442. package/node_modules/util-deprecate/README.md +53 -0
  1443. package/node_modules/util-deprecate/browser.js +67 -0
  1444. package/node_modules/util-deprecate/node.js +6 -0
  1445. package/node_modules/util-deprecate/package.json +27 -0
  1446. package/node_modules/uuid/LICENSE.md +9 -0
  1447. package/node_modules/uuid/README.md +499 -0
  1448. package/node_modules/uuid/dist/index.d.ts +15 -0
  1449. package/node_modules/uuid/dist/index.js +14 -0
  1450. package/node_modules/uuid/dist/max.d.ts +2 -0
  1451. package/node_modules/uuid/dist/max.js +1 -0
  1452. package/node_modules/uuid/dist/md5.d.ts +2 -0
  1453. package/node_modules/uuid/dist/md5.js +135 -0
  1454. package/node_modules/uuid/dist/native.d.ts +4 -0
  1455. package/node_modules/uuid/dist/native.js +2 -0
  1456. package/node_modules/uuid/dist/nil.d.ts +2 -0
  1457. package/node_modules/uuid/dist/nil.js +1 -0
  1458. package/node_modules/uuid/dist/parse.d.ts +2 -0
  1459. package/node_modules/uuid/dist/parse.js +9 -0
  1460. package/node_modules/uuid/dist/regex.d.ts +2 -0
  1461. package/node_modules/uuid/dist/regex.js +1 -0
  1462. package/node_modules/uuid/dist/rng.d.ts +1 -0
  1463. package/node_modules/uuid/dist/rng.js +11 -0
  1464. package/node_modules/uuid/dist/sha1.d.ts +2 -0
  1465. package/node_modules/uuid/dist/sha1.js +70 -0
  1466. package/node_modules/uuid/dist/stringify.d.ts +3 -0
  1467. package/node_modules/uuid/dist/stringify.js +35 -0
  1468. package/node_modules/uuid/dist/types.d.ts +21 -0
  1469. package/node_modules/uuid/dist/types.js +1 -0
  1470. package/node_modules/uuid/dist/uuid-bin.d.ts +1 -0
  1471. package/node_modules/uuid/dist/uuid-bin.js +70 -0
  1472. package/node_modules/uuid/dist/v1.d.ts +11 -0
  1473. package/node_modules/uuid/dist/v1.js +83 -0
  1474. package/node_modules/uuid/dist/v1ToV6.d.ts +2 -0
  1475. package/node_modules/uuid/dist/v1ToV6.js +10 -0
  1476. package/node_modules/uuid/dist/v3.d.ts +9 -0
  1477. package/node_modules/uuid/dist/v3.js +9 -0
  1478. package/node_modules/uuid/dist/v35.d.ts +7 -0
  1479. package/node_modules/uuid/dist/v35.js +36 -0
  1480. package/node_modules/uuid/dist/v4.d.ts +4 -0
  1481. package/node_modules/uuid/dist/v4.js +30 -0
  1482. package/node_modules/uuid/dist/v5.d.ts +9 -0
  1483. package/node_modules/uuid/dist/v5.js +9 -0
  1484. package/node_modules/uuid/dist/v6.d.ts +4 -0
  1485. package/node_modules/uuid/dist/v6.js +17 -0
  1486. package/node_modules/uuid/dist/v6ToV1.d.ts +2 -0
  1487. package/node_modules/uuid/dist/v6ToV1.js +10 -0
  1488. package/node_modules/uuid/dist/v7.d.ts +9 -0
  1489. package/node_modules/uuid/dist/v7.js +65 -0
  1490. package/node_modules/uuid/dist/validate.d.ts +2 -0
  1491. package/node_modules/uuid/dist/validate.js +5 -0
  1492. package/node_modules/uuid/dist/version.d.ts +2 -0
  1493. package/node_modules/uuid/dist/version.js +8 -0
  1494. package/node_modules/uuid/dist-node/bin/uuid +2 -0
  1495. package/node_modules/uuid/dist-node/index.js +14 -0
  1496. package/node_modules/uuid/dist-node/max.js +1 -0
  1497. package/node_modules/uuid/dist-node/md5.js +11 -0
  1498. package/node_modules/uuid/dist-node/native.js +2 -0
  1499. package/node_modules/uuid/dist-node/nil.js +1 -0
  1500. package/node_modules/uuid/dist-node/parse.js +9 -0
  1501. package/node_modules/uuid/dist-node/regex.js +1 -0
  1502. package/node_modules/uuid/dist-node/rng.js +10 -0
  1503. package/node_modules/uuid/dist-node/sha1.js +11 -0
  1504. package/node_modules/uuid/dist-node/stringify.js +35 -0
  1505. package/node_modules/uuid/dist-node/types.js +1 -0
  1506. package/node_modules/uuid/dist-node/uuid-bin.js +70 -0
  1507. package/node_modules/uuid/dist-node/v1.js +83 -0
  1508. package/node_modules/uuid/dist-node/v1ToV6.js +10 -0
  1509. package/node_modules/uuid/dist-node/v3.js +9 -0
  1510. package/node_modules/uuid/dist-node/v35.js +36 -0
  1511. package/node_modules/uuid/dist-node/v4.js +30 -0
  1512. package/node_modules/uuid/dist-node/v5.js +9 -0
  1513. package/node_modules/uuid/dist-node/v6.js +17 -0
  1514. package/node_modules/uuid/dist-node/v6ToV1.js +10 -0
  1515. package/node_modules/uuid/dist-node/v7.js +65 -0
  1516. package/node_modules/uuid/dist-node/validate.js +5 -0
  1517. package/node_modules/uuid/dist-node/version.js +8 -0
  1518. package/node_modules/uuid/package.json +119 -0
  1519. package/node_modules/vary/HISTORY.md +39 -0
  1520. package/node_modules/vary/LICENSE +22 -0
  1521. package/node_modules/vary/README.md +101 -0
  1522. package/node_modules/vary/index.js +149 -0
  1523. package/node_modules/vary/package.json +43 -0
  1524. package/node_modules/wrappy/LICENSE +15 -0
  1525. package/node_modules/wrappy/README.md +36 -0
  1526. package/node_modules/wrappy/package.json +29 -0
  1527. package/node_modules/wrappy/wrappy.js +33 -0
  1528. package/node_modules/ws/LICENSE +20 -0
  1529. package/node_modules/ws/README.md +548 -0
  1530. package/node_modules/ws/browser.js +8 -0
  1531. package/node_modules/ws/index.js +13 -0
  1532. package/node_modules/ws/lib/buffer-util.js +131 -0
  1533. package/node_modules/ws/lib/constants.js +18 -0
  1534. package/node_modules/ws/lib/event-target.js +292 -0
  1535. package/node_modules/ws/lib/extension.js +203 -0
  1536. package/node_modules/ws/lib/limiter.js +55 -0
  1537. package/node_modules/ws/lib/permessage-deflate.js +528 -0
  1538. package/node_modules/ws/lib/receiver.js +706 -0
  1539. package/node_modules/ws/lib/sender.js +602 -0
  1540. package/node_modules/ws/lib/stream.js +161 -0
  1541. package/node_modules/ws/lib/subprotocol.js +62 -0
  1542. package/node_modules/ws/lib/validation.js +152 -0
  1543. package/node_modules/ws/lib/websocket-server.js +550 -0
  1544. package/node_modules/ws/lib/websocket.js +1388 -0
  1545. package/node_modules/ws/package.json +69 -0
  1546. package/node_modules/ws/wrapper.mjs +8 -0
  1547. package/package.json +11 -2
@@ -0,0 +1,1692 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', {
4
+ value: true,
5
+ });
6
+ exports.Parser = void 0;
7
+ exports.parse = parse;
8
+ exports.parseConstValue = parseConstValue;
9
+ exports.parseSchemaCoordinate = parseSchemaCoordinate;
10
+ exports.parseType = parseType;
11
+ exports.parseValue = parseValue;
12
+
13
+ var _syntaxError = require('../error/syntaxError.js');
14
+
15
+ var _ast = require('./ast.js');
16
+
17
+ var _directiveLocation = require('./directiveLocation.js');
18
+
19
+ var _kinds = require('./kinds.js');
20
+
21
+ var _lexer = require('./lexer.js');
22
+
23
+ var _schemaCoordinateLexer = require('./schemaCoordinateLexer.js');
24
+
25
+ var _source = require('./source.js');
26
+
27
+ var _tokenKind = require('./tokenKind.js');
28
+
29
+ /**
30
+ * Given a GraphQL source, parses it into a Document.
31
+ * Throws GraphQLError if a syntax error is encountered.
32
+ */
33
+ function parse(source, options) {
34
+ const parser = new Parser(source, options);
35
+ const document = parser.parseDocument();
36
+ Object.defineProperty(document, 'tokenCount', {
37
+ enumerable: false,
38
+ value: parser.tokenCount,
39
+ });
40
+ return document;
41
+ }
42
+ /**
43
+ * Given a string containing a GraphQL value (ex. `[42]`), parse the AST for
44
+ * that value.
45
+ * Throws GraphQLError if a syntax error is encountered.
46
+ *
47
+ * This is useful within tools that operate upon GraphQL Values directly and
48
+ * in isolation of complete GraphQL documents.
49
+ *
50
+ * Consider providing the results to the utility function: valueFromAST().
51
+ */
52
+
53
+ function parseValue(source, options) {
54
+ const parser = new Parser(source, options);
55
+ parser.expectToken(_tokenKind.TokenKind.SOF);
56
+ const value = parser.parseValueLiteral(false);
57
+ parser.expectToken(_tokenKind.TokenKind.EOF);
58
+ return value;
59
+ }
60
+ /**
61
+ * Similar to parseValue(), but raises a parse error if it encounters a
62
+ * variable. The return type will be a constant value.
63
+ */
64
+
65
+ function parseConstValue(source, options) {
66
+ const parser = new Parser(source, options);
67
+ parser.expectToken(_tokenKind.TokenKind.SOF);
68
+ const value = parser.parseConstValueLiteral();
69
+ parser.expectToken(_tokenKind.TokenKind.EOF);
70
+ return value;
71
+ }
72
+ /**
73
+ * Given a string containing a GraphQL Type (ex. `[Int!]`), parse the AST for
74
+ * that type.
75
+ * Throws GraphQLError if a syntax error is encountered.
76
+ *
77
+ * This is useful within tools that operate upon GraphQL Types directly and
78
+ * in isolation of complete GraphQL documents.
79
+ *
80
+ * Consider providing the results to the utility function: typeFromAST().
81
+ */
82
+
83
+ function parseType(source, options) {
84
+ const parser = new Parser(source, options);
85
+ parser.expectToken(_tokenKind.TokenKind.SOF);
86
+ const type = parser.parseTypeReference();
87
+ parser.expectToken(_tokenKind.TokenKind.EOF);
88
+ return type;
89
+ }
90
+ /**
91
+ * Given a string containing a GraphQL Schema Coordinate (ex. `Type.field`),
92
+ * parse the AST for that schema coordinate.
93
+ * Throws GraphQLError if a syntax error is encountered.
94
+ *
95
+ * Consider providing the results to the utility function:
96
+ * resolveASTSchemaCoordinate(). Or calling resolveSchemaCoordinate() directly
97
+ * with an unparsed source.
98
+ */
99
+
100
+ function parseSchemaCoordinate(source) {
101
+ const sourceObj = (0, _source.isSource)(source)
102
+ ? source
103
+ : new _source.Source(source);
104
+ const lexer = new _schemaCoordinateLexer.SchemaCoordinateLexer(sourceObj);
105
+ const parser = new Parser(source, {
106
+ lexer,
107
+ });
108
+ parser.expectToken(_tokenKind.TokenKind.SOF);
109
+ const coordinate = parser.parseSchemaCoordinate();
110
+ parser.expectToken(_tokenKind.TokenKind.EOF);
111
+ return coordinate;
112
+ }
113
+ /**
114
+ * This class is exported only to assist people in implementing their own parsers
115
+ * without duplicating too much code and should be used only as last resort for cases
116
+ * such as experimental syntax or if certain features could not be contributed upstream.
117
+ *
118
+ * It is still part of the internal API and is versioned, so any changes to it are never
119
+ * considered breaking changes. If you still need to support multiple versions of the
120
+ * library, please use the `versionInfo` variable for version detection.
121
+ *
122
+ * @internal
123
+ */
124
+
125
+ class Parser {
126
+ constructor(source, options = {}) {
127
+ const { lexer, ..._options } = options;
128
+
129
+ if (lexer) {
130
+ this._lexer = lexer;
131
+ } else {
132
+ const sourceObj = (0, _source.isSource)(source)
133
+ ? source
134
+ : new _source.Source(source);
135
+ this._lexer = new _lexer.Lexer(sourceObj);
136
+ }
137
+
138
+ this._options = _options;
139
+ this._tokenCounter = 0;
140
+ }
141
+
142
+ get tokenCount() {
143
+ return this._tokenCounter;
144
+ }
145
+ /**
146
+ * Converts a name lex token into a name parse node.
147
+ */
148
+
149
+ parseName() {
150
+ const token = this.expectToken(_tokenKind.TokenKind.NAME);
151
+ return this.node(token, {
152
+ kind: _kinds.Kind.NAME,
153
+ value: token.value,
154
+ });
155
+ } // Implements the parsing rules in the Document section.
156
+
157
+ /**
158
+ * Document : Definition+
159
+ */
160
+
161
+ parseDocument() {
162
+ return this.node(this._lexer.token, {
163
+ kind: _kinds.Kind.DOCUMENT,
164
+ definitions: this.many(
165
+ _tokenKind.TokenKind.SOF,
166
+ this.parseDefinition,
167
+ _tokenKind.TokenKind.EOF,
168
+ ),
169
+ });
170
+ }
171
+ /**
172
+ * Definition :
173
+ * - ExecutableDefinition
174
+ * - TypeSystemDefinition
175
+ * - TypeSystemExtension
176
+ *
177
+ * ExecutableDefinition :
178
+ * - OperationDefinition
179
+ * - FragmentDefinition
180
+ *
181
+ * TypeSystemDefinition :
182
+ * - SchemaDefinition
183
+ * - TypeDefinition
184
+ * - DirectiveDefinition
185
+ *
186
+ * TypeDefinition :
187
+ * - ScalarTypeDefinition
188
+ * - ObjectTypeDefinition
189
+ * - InterfaceTypeDefinition
190
+ * - UnionTypeDefinition
191
+ * - EnumTypeDefinition
192
+ * - InputObjectTypeDefinition
193
+ */
194
+
195
+ parseDefinition() {
196
+ if (this.peek(_tokenKind.TokenKind.BRACE_L)) {
197
+ return this.parseOperationDefinition();
198
+ } // Many definitions begin with a description and require a lookahead.
199
+
200
+ const hasDescription = this.peekDescription();
201
+ const keywordToken = hasDescription
202
+ ? this._lexer.lookahead()
203
+ : this._lexer.token;
204
+
205
+ if (hasDescription && keywordToken.kind === _tokenKind.TokenKind.BRACE_L) {
206
+ throw (0, _syntaxError.syntaxError)(
207
+ this._lexer.source,
208
+ this._lexer.token.start,
209
+ 'Unexpected description, descriptions are not supported on shorthand queries.',
210
+ );
211
+ }
212
+
213
+ if (keywordToken.kind === _tokenKind.TokenKind.NAME) {
214
+ switch (keywordToken.value) {
215
+ case 'schema':
216
+ return this.parseSchemaDefinition();
217
+
218
+ case 'scalar':
219
+ return this.parseScalarTypeDefinition();
220
+
221
+ case 'type':
222
+ return this.parseObjectTypeDefinition();
223
+
224
+ case 'interface':
225
+ return this.parseInterfaceTypeDefinition();
226
+
227
+ case 'union':
228
+ return this.parseUnionTypeDefinition();
229
+
230
+ case 'enum':
231
+ return this.parseEnumTypeDefinition();
232
+
233
+ case 'input':
234
+ return this.parseInputObjectTypeDefinition();
235
+
236
+ case 'directive':
237
+ return this.parseDirectiveDefinition();
238
+ }
239
+
240
+ switch (keywordToken.value) {
241
+ case 'query':
242
+ case 'mutation':
243
+ case 'subscription':
244
+ return this.parseOperationDefinition();
245
+
246
+ case 'fragment':
247
+ return this.parseFragmentDefinition();
248
+ }
249
+
250
+ if (hasDescription) {
251
+ throw (0, _syntaxError.syntaxError)(
252
+ this._lexer.source,
253
+ this._lexer.token.start,
254
+ 'Unexpected description, only GraphQL definitions support descriptions.',
255
+ );
256
+ }
257
+
258
+ switch (keywordToken.value) {
259
+ case 'extend':
260
+ return this.parseTypeSystemExtension();
261
+ }
262
+ }
263
+
264
+ throw this.unexpected(keywordToken);
265
+ } // Implements the parsing rules in the Operations section.
266
+
267
+ /**
268
+ * OperationDefinition :
269
+ * - SelectionSet
270
+ * - OperationType Name? VariableDefinitions? Directives? SelectionSet
271
+ */
272
+
273
+ parseOperationDefinition() {
274
+ const start = this._lexer.token;
275
+
276
+ if (this.peek(_tokenKind.TokenKind.BRACE_L)) {
277
+ return this.node(start, {
278
+ kind: _kinds.Kind.OPERATION_DEFINITION,
279
+ operation: _ast.OperationTypeNode.QUERY,
280
+ description: undefined,
281
+ name: undefined,
282
+ variableDefinitions: [],
283
+ directives: [],
284
+ selectionSet: this.parseSelectionSet(),
285
+ });
286
+ }
287
+
288
+ const description = this.parseDescription();
289
+ const operation = this.parseOperationType();
290
+ let name;
291
+
292
+ if (this.peek(_tokenKind.TokenKind.NAME)) {
293
+ name = this.parseName();
294
+ }
295
+
296
+ return this.node(start, {
297
+ kind: _kinds.Kind.OPERATION_DEFINITION,
298
+ operation,
299
+ description,
300
+ name,
301
+ variableDefinitions: this.parseVariableDefinitions(),
302
+ directives: this.parseDirectives(false),
303
+ selectionSet: this.parseSelectionSet(),
304
+ });
305
+ }
306
+ /**
307
+ * OperationType : one of query mutation subscription
308
+ */
309
+
310
+ parseOperationType() {
311
+ const operationToken = this.expectToken(_tokenKind.TokenKind.NAME);
312
+
313
+ switch (operationToken.value) {
314
+ case 'query':
315
+ return _ast.OperationTypeNode.QUERY;
316
+
317
+ case 'mutation':
318
+ return _ast.OperationTypeNode.MUTATION;
319
+
320
+ case 'subscription':
321
+ return _ast.OperationTypeNode.SUBSCRIPTION;
322
+ }
323
+
324
+ throw this.unexpected(operationToken);
325
+ }
326
+ /**
327
+ * VariableDefinitions : ( VariableDefinition+ )
328
+ */
329
+
330
+ parseVariableDefinitions() {
331
+ return this.optionalMany(
332
+ _tokenKind.TokenKind.PAREN_L,
333
+ this.parseVariableDefinition,
334
+ _tokenKind.TokenKind.PAREN_R,
335
+ );
336
+ }
337
+ /**
338
+ * VariableDefinition : Variable : Type DefaultValue? Directives[Const]?
339
+ */
340
+
341
+ parseVariableDefinition() {
342
+ return this.node(this._lexer.token, {
343
+ kind: _kinds.Kind.VARIABLE_DEFINITION,
344
+ description: this.parseDescription(),
345
+ variable: this.parseVariable(),
346
+ type:
347
+ (this.expectToken(_tokenKind.TokenKind.COLON),
348
+ this.parseTypeReference()),
349
+ defaultValue: this.expectOptionalToken(_tokenKind.TokenKind.EQUALS)
350
+ ? this.parseConstValueLiteral()
351
+ : undefined,
352
+ directives: this.parseConstDirectives(),
353
+ });
354
+ }
355
+ /**
356
+ * Variable : $ Name
357
+ */
358
+
359
+ parseVariable() {
360
+ const start = this._lexer.token;
361
+ this.expectToken(_tokenKind.TokenKind.DOLLAR);
362
+ return this.node(start, {
363
+ kind: _kinds.Kind.VARIABLE,
364
+ name: this.parseName(),
365
+ });
366
+ }
367
+ /**
368
+ * ```
369
+ * SelectionSet : { Selection+ }
370
+ * ```
371
+ */
372
+
373
+ parseSelectionSet() {
374
+ return this.node(this._lexer.token, {
375
+ kind: _kinds.Kind.SELECTION_SET,
376
+ selections: this.many(
377
+ _tokenKind.TokenKind.BRACE_L,
378
+ this.parseSelection,
379
+ _tokenKind.TokenKind.BRACE_R,
380
+ ),
381
+ });
382
+ }
383
+ /**
384
+ * Selection :
385
+ * - Field
386
+ * - FragmentSpread
387
+ * - InlineFragment
388
+ */
389
+
390
+ parseSelection() {
391
+ return this.peek(_tokenKind.TokenKind.SPREAD)
392
+ ? this.parseFragment()
393
+ : this.parseField();
394
+ }
395
+ /**
396
+ * Field : Alias? Name Arguments? Directives? SelectionSet?
397
+ *
398
+ * Alias : Name :
399
+ */
400
+
401
+ parseField() {
402
+ const start = this._lexer.token;
403
+ const nameOrAlias = this.parseName();
404
+ let alias;
405
+ let name;
406
+
407
+ if (this.expectOptionalToken(_tokenKind.TokenKind.COLON)) {
408
+ alias = nameOrAlias;
409
+ name = this.parseName();
410
+ } else {
411
+ name = nameOrAlias;
412
+ }
413
+
414
+ return this.node(start, {
415
+ kind: _kinds.Kind.FIELD,
416
+ alias,
417
+ name,
418
+ arguments: this.parseArguments(false),
419
+ directives: this.parseDirectives(false),
420
+ selectionSet: this.peek(_tokenKind.TokenKind.BRACE_L)
421
+ ? this.parseSelectionSet()
422
+ : undefined,
423
+ });
424
+ }
425
+ /**
426
+ * Arguments[Const] : ( Argument[?Const]+ )
427
+ */
428
+
429
+ parseArguments(isConst) {
430
+ const item = isConst ? this.parseConstArgument : this.parseArgument;
431
+ return this.optionalMany(
432
+ _tokenKind.TokenKind.PAREN_L,
433
+ item,
434
+ _tokenKind.TokenKind.PAREN_R,
435
+ );
436
+ }
437
+ /**
438
+ * Argument[Const] : Name : Value[?Const]
439
+ */
440
+
441
+ parseArgument(isConst = false) {
442
+ const start = this._lexer.token;
443
+ const name = this.parseName();
444
+ this.expectToken(_tokenKind.TokenKind.COLON);
445
+ return this.node(start, {
446
+ kind: _kinds.Kind.ARGUMENT,
447
+ name,
448
+ value: this.parseValueLiteral(isConst),
449
+ });
450
+ }
451
+
452
+ parseConstArgument() {
453
+ return this.parseArgument(true);
454
+ } // Implements the parsing rules in the Fragments section.
455
+
456
+ /**
457
+ * Corresponds to both FragmentSpread and InlineFragment in the spec.
458
+ *
459
+ * FragmentSpread : ... FragmentName Directives?
460
+ *
461
+ * InlineFragment : ... TypeCondition? Directives? SelectionSet
462
+ */
463
+
464
+ parseFragment() {
465
+ const start = this._lexer.token;
466
+ this.expectToken(_tokenKind.TokenKind.SPREAD);
467
+ const hasTypeCondition = this.expectOptionalKeyword('on');
468
+
469
+ if (!hasTypeCondition && this.peek(_tokenKind.TokenKind.NAME)) {
470
+ return this.node(start, {
471
+ kind: _kinds.Kind.FRAGMENT_SPREAD,
472
+ name: this.parseFragmentName(),
473
+ directives: this.parseDirectives(false),
474
+ });
475
+ }
476
+
477
+ return this.node(start, {
478
+ kind: _kinds.Kind.INLINE_FRAGMENT,
479
+ typeCondition: hasTypeCondition ? this.parseNamedType() : undefined,
480
+ directives: this.parseDirectives(false),
481
+ selectionSet: this.parseSelectionSet(),
482
+ });
483
+ }
484
+ /**
485
+ * FragmentDefinition :
486
+ * - fragment FragmentName on TypeCondition Directives? SelectionSet
487
+ *
488
+ * TypeCondition : NamedType
489
+ */
490
+
491
+ parseFragmentDefinition() {
492
+ const start = this._lexer.token;
493
+ const description = this.parseDescription();
494
+ this.expectKeyword('fragment'); // Legacy support for defining variables within fragments changes
495
+ // the grammar of FragmentDefinition:
496
+ // - fragment FragmentName VariableDefinitions? on TypeCondition Directives? SelectionSet
497
+
498
+ if (this._options.allowLegacyFragmentVariables === true) {
499
+ return this.node(start, {
500
+ kind: _kinds.Kind.FRAGMENT_DEFINITION,
501
+ description,
502
+ name: this.parseFragmentName(),
503
+ variableDefinitions: this.parseVariableDefinitions(),
504
+ typeCondition: (this.expectKeyword('on'), this.parseNamedType()),
505
+ directives: this.parseDirectives(false),
506
+ selectionSet: this.parseSelectionSet(),
507
+ });
508
+ }
509
+
510
+ return this.node(start, {
511
+ kind: _kinds.Kind.FRAGMENT_DEFINITION,
512
+ description,
513
+ name: this.parseFragmentName(),
514
+ typeCondition: (this.expectKeyword('on'), this.parseNamedType()),
515
+ directives: this.parseDirectives(false),
516
+ selectionSet: this.parseSelectionSet(),
517
+ });
518
+ }
519
+ /**
520
+ * FragmentName : Name but not `on`
521
+ */
522
+
523
+ parseFragmentName() {
524
+ if (this._lexer.token.value === 'on') {
525
+ throw this.unexpected();
526
+ }
527
+
528
+ return this.parseName();
529
+ } // Implements the parsing rules in the Values section.
530
+
531
+ /**
532
+ * Value[Const] :
533
+ * - [~Const] Variable
534
+ * - IntValue
535
+ * - FloatValue
536
+ * - StringValue
537
+ * - BooleanValue
538
+ * - NullValue
539
+ * - EnumValue
540
+ * - ListValue[?Const]
541
+ * - ObjectValue[?Const]
542
+ *
543
+ * BooleanValue : one of `true` `false`
544
+ *
545
+ * NullValue : `null`
546
+ *
547
+ * EnumValue : Name but not `true`, `false` or `null`
548
+ */
549
+
550
+ parseValueLiteral(isConst) {
551
+ const token = this._lexer.token;
552
+
553
+ switch (token.kind) {
554
+ case _tokenKind.TokenKind.BRACKET_L:
555
+ return this.parseList(isConst);
556
+
557
+ case _tokenKind.TokenKind.BRACE_L:
558
+ return this.parseObject(isConst);
559
+
560
+ case _tokenKind.TokenKind.INT:
561
+ this.advanceLexer();
562
+ return this.node(token, {
563
+ kind: _kinds.Kind.INT,
564
+ value: token.value,
565
+ });
566
+
567
+ case _tokenKind.TokenKind.FLOAT:
568
+ this.advanceLexer();
569
+ return this.node(token, {
570
+ kind: _kinds.Kind.FLOAT,
571
+ value: token.value,
572
+ });
573
+
574
+ case _tokenKind.TokenKind.STRING:
575
+ case _tokenKind.TokenKind.BLOCK_STRING:
576
+ return this.parseStringLiteral();
577
+
578
+ case _tokenKind.TokenKind.NAME:
579
+ this.advanceLexer();
580
+
581
+ switch (token.value) {
582
+ case 'true':
583
+ return this.node(token, {
584
+ kind: _kinds.Kind.BOOLEAN,
585
+ value: true,
586
+ });
587
+
588
+ case 'false':
589
+ return this.node(token, {
590
+ kind: _kinds.Kind.BOOLEAN,
591
+ value: false,
592
+ });
593
+
594
+ case 'null':
595
+ return this.node(token, {
596
+ kind: _kinds.Kind.NULL,
597
+ });
598
+
599
+ default:
600
+ return this.node(token, {
601
+ kind: _kinds.Kind.ENUM,
602
+ value: token.value,
603
+ });
604
+ }
605
+
606
+ case _tokenKind.TokenKind.DOLLAR:
607
+ if (isConst) {
608
+ this.expectToken(_tokenKind.TokenKind.DOLLAR);
609
+
610
+ if (this._lexer.token.kind === _tokenKind.TokenKind.NAME) {
611
+ const varName = this._lexer.token.value;
612
+ throw (0, _syntaxError.syntaxError)(
613
+ this._lexer.source,
614
+ token.start,
615
+ `Unexpected variable "$${varName}" in constant value.`,
616
+ );
617
+ } else {
618
+ throw this.unexpected(token);
619
+ }
620
+ }
621
+
622
+ return this.parseVariable();
623
+
624
+ default:
625
+ throw this.unexpected();
626
+ }
627
+ }
628
+
629
+ parseConstValueLiteral() {
630
+ return this.parseValueLiteral(true);
631
+ }
632
+
633
+ parseStringLiteral() {
634
+ const token = this._lexer.token;
635
+ this.advanceLexer();
636
+ return this.node(token, {
637
+ kind: _kinds.Kind.STRING,
638
+ value: token.value,
639
+ block: token.kind === _tokenKind.TokenKind.BLOCK_STRING,
640
+ });
641
+ }
642
+ /**
643
+ * ListValue[Const] :
644
+ * - [ ]
645
+ * - [ Value[?Const]+ ]
646
+ */
647
+
648
+ parseList(isConst) {
649
+ const item = () => this.parseValueLiteral(isConst);
650
+
651
+ return this.node(this._lexer.token, {
652
+ kind: _kinds.Kind.LIST,
653
+ values: this.any(
654
+ _tokenKind.TokenKind.BRACKET_L,
655
+ item,
656
+ _tokenKind.TokenKind.BRACKET_R,
657
+ ),
658
+ });
659
+ }
660
+ /**
661
+ * ```
662
+ * ObjectValue[Const] :
663
+ * - { }
664
+ * - { ObjectField[?Const]+ }
665
+ * ```
666
+ */
667
+
668
+ parseObject(isConst) {
669
+ const item = () => this.parseObjectField(isConst);
670
+
671
+ return this.node(this._lexer.token, {
672
+ kind: _kinds.Kind.OBJECT,
673
+ fields: this.any(
674
+ _tokenKind.TokenKind.BRACE_L,
675
+ item,
676
+ _tokenKind.TokenKind.BRACE_R,
677
+ ),
678
+ });
679
+ }
680
+ /**
681
+ * ObjectField[Const] : Name : Value[?Const]
682
+ */
683
+
684
+ parseObjectField(isConst) {
685
+ const start = this._lexer.token;
686
+ const name = this.parseName();
687
+ this.expectToken(_tokenKind.TokenKind.COLON);
688
+ return this.node(start, {
689
+ kind: _kinds.Kind.OBJECT_FIELD,
690
+ name,
691
+ value: this.parseValueLiteral(isConst),
692
+ });
693
+ } // Implements the parsing rules in the Directives section.
694
+
695
+ /**
696
+ * Directives[Const] : Directive[?Const]+
697
+ */
698
+
699
+ parseDirectives(isConst) {
700
+ const directives = [];
701
+
702
+ while (this.peek(_tokenKind.TokenKind.AT)) {
703
+ directives.push(this.parseDirective(isConst));
704
+ }
705
+
706
+ return directives;
707
+ }
708
+
709
+ parseConstDirectives() {
710
+ return this.parseDirectives(true);
711
+ }
712
+ /**
713
+ * ```
714
+ * Directive[Const] : @ Name Arguments[?Const]?
715
+ * ```
716
+ */
717
+
718
+ parseDirective(isConst) {
719
+ const start = this._lexer.token;
720
+ this.expectToken(_tokenKind.TokenKind.AT);
721
+ return this.node(start, {
722
+ kind: _kinds.Kind.DIRECTIVE,
723
+ name: this.parseName(),
724
+ arguments: this.parseArguments(isConst),
725
+ });
726
+ } // Implements the parsing rules in the Types section.
727
+
728
+ /**
729
+ * Type :
730
+ * - NamedType
731
+ * - ListType
732
+ * - NonNullType
733
+ */
734
+
735
+ parseTypeReference() {
736
+ const start = this._lexer.token;
737
+ let type;
738
+
739
+ if (this.expectOptionalToken(_tokenKind.TokenKind.BRACKET_L)) {
740
+ const innerType = this.parseTypeReference();
741
+ this.expectToken(_tokenKind.TokenKind.BRACKET_R);
742
+ type = this.node(start, {
743
+ kind: _kinds.Kind.LIST_TYPE,
744
+ type: innerType,
745
+ });
746
+ } else {
747
+ type = this.parseNamedType();
748
+ }
749
+
750
+ if (this.expectOptionalToken(_tokenKind.TokenKind.BANG)) {
751
+ return this.node(start, {
752
+ kind: _kinds.Kind.NON_NULL_TYPE,
753
+ type,
754
+ });
755
+ }
756
+
757
+ return type;
758
+ }
759
+ /**
760
+ * NamedType : Name
761
+ */
762
+
763
+ parseNamedType() {
764
+ return this.node(this._lexer.token, {
765
+ kind: _kinds.Kind.NAMED_TYPE,
766
+ name: this.parseName(),
767
+ });
768
+ } // Implements the parsing rules in the Type Definition section.
769
+
770
+ peekDescription() {
771
+ return (
772
+ this.peek(_tokenKind.TokenKind.STRING) ||
773
+ this.peek(_tokenKind.TokenKind.BLOCK_STRING)
774
+ );
775
+ }
776
+ /**
777
+ * Description : StringValue
778
+ */
779
+
780
+ parseDescription() {
781
+ if (this.peekDescription()) {
782
+ return this.parseStringLiteral();
783
+ }
784
+ }
785
+ /**
786
+ * ```
787
+ * SchemaDefinition : Description? schema Directives[Const]? { OperationTypeDefinition+ }
788
+ * ```
789
+ */
790
+
791
+ parseSchemaDefinition() {
792
+ const start = this._lexer.token;
793
+ const description = this.parseDescription();
794
+ this.expectKeyword('schema');
795
+ const directives = this.parseConstDirectives();
796
+ const operationTypes = this.many(
797
+ _tokenKind.TokenKind.BRACE_L,
798
+ this.parseOperationTypeDefinition,
799
+ _tokenKind.TokenKind.BRACE_R,
800
+ );
801
+ return this.node(start, {
802
+ kind: _kinds.Kind.SCHEMA_DEFINITION,
803
+ description,
804
+ directives,
805
+ operationTypes,
806
+ });
807
+ }
808
+ /**
809
+ * OperationTypeDefinition : OperationType : NamedType
810
+ */
811
+
812
+ parseOperationTypeDefinition() {
813
+ const start = this._lexer.token;
814
+ const operation = this.parseOperationType();
815
+ this.expectToken(_tokenKind.TokenKind.COLON);
816
+ const type = this.parseNamedType();
817
+ return this.node(start, {
818
+ kind: _kinds.Kind.OPERATION_TYPE_DEFINITION,
819
+ operation,
820
+ type,
821
+ });
822
+ }
823
+ /**
824
+ * ScalarTypeDefinition : Description? scalar Name Directives[Const]?
825
+ */
826
+
827
+ parseScalarTypeDefinition() {
828
+ const start = this._lexer.token;
829
+ const description = this.parseDescription();
830
+ this.expectKeyword('scalar');
831
+ const name = this.parseName();
832
+ const directives = this.parseConstDirectives();
833
+ return this.node(start, {
834
+ kind: _kinds.Kind.SCALAR_TYPE_DEFINITION,
835
+ description,
836
+ name,
837
+ directives,
838
+ });
839
+ }
840
+ /**
841
+ * ObjectTypeDefinition :
842
+ * Description?
843
+ * type Name ImplementsInterfaces? Directives[Const]? FieldsDefinition?
844
+ */
845
+
846
+ parseObjectTypeDefinition() {
847
+ const start = this._lexer.token;
848
+ const description = this.parseDescription();
849
+ this.expectKeyword('type');
850
+ const name = this.parseName();
851
+ const interfaces = this.parseImplementsInterfaces();
852
+ const directives = this.parseConstDirectives();
853
+ const fields = this.parseFieldsDefinition();
854
+ return this.node(start, {
855
+ kind: _kinds.Kind.OBJECT_TYPE_DEFINITION,
856
+ description,
857
+ name,
858
+ interfaces,
859
+ directives,
860
+ fields,
861
+ });
862
+ }
863
+ /**
864
+ * ImplementsInterfaces :
865
+ * - implements `&`? NamedType
866
+ * - ImplementsInterfaces & NamedType
867
+ */
868
+
869
+ parseImplementsInterfaces() {
870
+ return this.expectOptionalKeyword('implements')
871
+ ? this.delimitedMany(_tokenKind.TokenKind.AMP, this.parseNamedType)
872
+ : [];
873
+ }
874
+ /**
875
+ * ```
876
+ * FieldsDefinition : { FieldDefinition+ }
877
+ * ```
878
+ */
879
+
880
+ parseFieldsDefinition() {
881
+ return this.optionalMany(
882
+ _tokenKind.TokenKind.BRACE_L,
883
+ this.parseFieldDefinition,
884
+ _tokenKind.TokenKind.BRACE_R,
885
+ );
886
+ }
887
+ /**
888
+ * FieldDefinition :
889
+ * - Description? Name ArgumentsDefinition? : Type Directives[Const]?
890
+ */
891
+
892
+ parseFieldDefinition() {
893
+ const start = this._lexer.token;
894
+ const description = this.parseDescription();
895
+ const name = this.parseName();
896
+ const args = this.parseArgumentDefs();
897
+ this.expectToken(_tokenKind.TokenKind.COLON);
898
+ const type = this.parseTypeReference();
899
+ const directives = this.parseConstDirectives();
900
+ return this.node(start, {
901
+ kind: _kinds.Kind.FIELD_DEFINITION,
902
+ description,
903
+ name,
904
+ arguments: args,
905
+ type,
906
+ directives,
907
+ });
908
+ }
909
+ /**
910
+ * ArgumentsDefinition : ( InputValueDefinition+ )
911
+ */
912
+
913
+ parseArgumentDefs() {
914
+ return this.optionalMany(
915
+ _tokenKind.TokenKind.PAREN_L,
916
+ this.parseInputValueDef,
917
+ _tokenKind.TokenKind.PAREN_R,
918
+ );
919
+ }
920
+ /**
921
+ * InputValueDefinition :
922
+ * - Description? Name : Type DefaultValue? Directives[Const]?
923
+ */
924
+
925
+ parseInputValueDef() {
926
+ const start = this._lexer.token;
927
+ const description = this.parseDescription();
928
+ const name = this.parseName();
929
+ this.expectToken(_tokenKind.TokenKind.COLON);
930
+ const type = this.parseTypeReference();
931
+ let defaultValue;
932
+
933
+ if (this.expectOptionalToken(_tokenKind.TokenKind.EQUALS)) {
934
+ defaultValue = this.parseConstValueLiteral();
935
+ }
936
+
937
+ const directives = this.parseConstDirectives();
938
+ return this.node(start, {
939
+ kind: _kinds.Kind.INPUT_VALUE_DEFINITION,
940
+ description,
941
+ name,
942
+ type,
943
+ defaultValue,
944
+ directives,
945
+ });
946
+ }
947
+ /**
948
+ * InterfaceTypeDefinition :
949
+ * - Description? interface Name Directives[Const]? FieldsDefinition?
950
+ */
951
+
952
+ parseInterfaceTypeDefinition() {
953
+ const start = this._lexer.token;
954
+ const description = this.parseDescription();
955
+ this.expectKeyword('interface');
956
+ const name = this.parseName();
957
+ const interfaces = this.parseImplementsInterfaces();
958
+ const directives = this.parseConstDirectives();
959
+ const fields = this.parseFieldsDefinition();
960
+ return this.node(start, {
961
+ kind: _kinds.Kind.INTERFACE_TYPE_DEFINITION,
962
+ description,
963
+ name,
964
+ interfaces,
965
+ directives,
966
+ fields,
967
+ });
968
+ }
969
+ /**
970
+ * UnionTypeDefinition :
971
+ * - Description? union Name Directives[Const]? UnionMemberTypes?
972
+ */
973
+
974
+ parseUnionTypeDefinition() {
975
+ const start = this._lexer.token;
976
+ const description = this.parseDescription();
977
+ this.expectKeyword('union');
978
+ const name = this.parseName();
979
+ const directives = this.parseConstDirectives();
980
+ const types = this.parseUnionMemberTypes();
981
+ return this.node(start, {
982
+ kind: _kinds.Kind.UNION_TYPE_DEFINITION,
983
+ description,
984
+ name,
985
+ directives,
986
+ types,
987
+ });
988
+ }
989
+ /**
990
+ * UnionMemberTypes :
991
+ * - = `|`? NamedType
992
+ * - UnionMemberTypes | NamedType
993
+ */
994
+
995
+ parseUnionMemberTypes() {
996
+ return this.expectOptionalToken(_tokenKind.TokenKind.EQUALS)
997
+ ? this.delimitedMany(_tokenKind.TokenKind.PIPE, this.parseNamedType)
998
+ : [];
999
+ }
1000
+ /**
1001
+ * EnumTypeDefinition :
1002
+ * - Description? enum Name Directives[Const]? EnumValuesDefinition?
1003
+ */
1004
+
1005
+ parseEnumTypeDefinition() {
1006
+ const start = this._lexer.token;
1007
+ const description = this.parseDescription();
1008
+ this.expectKeyword('enum');
1009
+ const name = this.parseName();
1010
+ const directives = this.parseConstDirectives();
1011
+ const values = this.parseEnumValuesDefinition();
1012
+ return this.node(start, {
1013
+ kind: _kinds.Kind.ENUM_TYPE_DEFINITION,
1014
+ description,
1015
+ name,
1016
+ directives,
1017
+ values,
1018
+ });
1019
+ }
1020
+ /**
1021
+ * ```
1022
+ * EnumValuesDefinition : { EnumValueDefinition+ }
1023
+ * ```
1024
+ */
1025
+
1026
+ parseEnumValuesDefinition() {
1027
+ return this.optionalMany(
1028
+ _tokenKind.TokenKind.BRACE_L,
1029
+ this.parseEnumValueDefinition,
1030
+ _tokenKind.TokenKind.BRACE_R,
1031
+ );
1032
+ }
1033
+ /**
1034
+ * EnumValueDefinition : Description? EnumValue Directives[Const]?
1035
+ */
1036
+
1037
+ parseEnumValueDefinition() {
1038
+ const start = this._lexer.token;
1039
+ const description = this.parseDescription();
1040
+ const name = this.parseEnumValueName();
1041
+ const directives = this.parseConstDirectives();
1042
+ return this.node(start, {
1043
+ kind: _kinds.Kind.ENUM_VALUE_DEFINITION,
1044
+ description,
1045
+ name,
1046
+ directives,
1047
+ });
1048
+ }
1049
+ /**
1050
+ * EnumValue : Name but not `true`, `false` or `null`
1051
+ */
1052
+
1053
+ parseEnumValueName() {
1054
+ if (
1055
+ this._lexer.token.value === 'true' ||
1056
+ this._lexer.token.value === 'false' ||
1057
+ this._lexer.token.value === 'null'
1058
+ ) {
1059
+ throw (0, _syntaxError.syntaxError)(
1060
+ this._lexer.source,
1061
+ this._lexer.token.start,
1062
+ `${getTokenDesc(
1063
+ this._lexer.token,
1064
+ )} is reserved and cannot be used for an enum value.`,
1065
+ );
1066
+ }
1067
+
1068
+ return this.parseName();
1069
+ }
1070
+ /**
1071
+ * InputObjectTypeDefinition :
1072
+ * - Description? input Name Directives[Const]? InputFieldsDefinition?
1073
+ */
1074
+
1075
+ parseInputObjectTypeDefinition() {
1076
+ const start = this._lexer.token;
1077
+ const description = this.parseDescription();
1078
+ this.expectKeyword('input');
1079
+ const name = this.parseName();
1080
+ const directives = this.parseConstDirectives();
1081
+ const fields = this.parseInputFieldsDefinition();
1082
+ return this.node(start, {
1083
+ kind: _kinds.Kind.INPUT_OBJECT_TYPE_DEFINITION,
1084
+ description,
1085
+ name,
1086
+ directives,
1087
+ fields,
1088
+ });
1089
+ }
1090
+ /**
1091
+ * ```
1092
+ * InputFieldsDefinition : { InputValueDefinition+ }
1093
+ * ```
1094
+ */
1095
+
1096
+ parseInputFieldsDefinition() {
1097
+ return this.optionalMany(
1098
+ _tokenKind.TokenKind.BRACE_L,
1099
+ this.parseInputValueDef,
1100
+ _tokenKind.TokenKind.BRACE_R,
1101
+ );
1102
+ }
1103
+ /**
1104
+ * TypeSystemExtension :
1105
+ * - SchemaExtension
1106
+ * - TypeExtension
1107
+ *
1108
+ * TypeExtension :
1109
+ * - ScalarTypeExtension
1110
+ * - ObjectTypeExtension
1111
+ * - InterfaceTypeExtension
1112
+ * - UnionTypeExtension
1113
+ * - EnumTypeExtension
1114
+ * - InputObjectTypeDefinition
1115
+ */
1116
+
1117
+ parseTypeSystemExtension() {
1118
+ const keywordToken = this._lexer.lookahead();
1119
+
1120
+ if (keywordToken.kind === _tokenKind.TokenKind.NAME) {
1121
+ switch (keywordToken.value) {
1122
+ case 'schema':
1123
+ return this.parseSchemaExtension();
1124
+
1125
+ case 'scalar':
1126
+ return this.parseScalarTypeExtension();
1127
+
1128
+ case 'type':
1129
+ return this.parseObjectTypeExtension();
1130
+
1131
+ case 'interface':
1132
+ return this.parseInterfaceTypeExtension();
1133
+
1134
+ case 'union':
1135
+ return this.parseUnionTypeExtension();
1136
+
1137
+ case 'enum':
1138
+ return this.parseEnumTypeExtension();
1139
+
1140
+ case 'input':
1141
+ return this.parseInputObjectTypeExtension();
1142
+ }
1143
+ }
1144
+
1145
+ throw this.unexpected(keywordToken);
1146
+ }
1147
+ /**
1148
+ * ```
1149
+ * SchemaExtension :
1150
+ * - extend schema Directives[Const]? { OperationTypeDefinition+ }
1151
+ * - extend schema Directives[Const]
1152
+ * ```
1153
+ */
1154
+
1155
+ parseSchemaExtension() {
1156
+ const start = this._lexer.token;
1157
+ this.expectKeyword('extend');
1158
+ this.expectKeyword('schema');
1159
+ const directives = this.parseConstDirectives();
1160
+ const operationTypes = this.optionalMany(
1161
+ _tokenKind.TokenKind.BRACE_L,
1162
+ this.parseOperationTypeDefinition,
1163
+ _tokenKind.TokenKind.BRACE_R,
1164
+ );
1165
+
1166
+ if (directives.length === 0 && operationTypes.length === 0) {
1167
+ throw this.unexpected();
1168
+ }
1169
+
1170
+ return this.node(start, {
1171
+ kind: _kinds.Kind.SCHEMA_EXTENSION,
1172
+ directives,
1173
+ operationTypes,
1174
+ });
1175
+ }
1176
+ /**
1177
+ * ScalarTypeExtension :
1178
+ * - extend scalar Name Directives[Const]
1179
+ */
1180
+
1181
+ parseScalarTypeExtension() {
1182
+ const start = this._lexer.token;
1183
+ this.expectKeyword('extend');
1184
+ this.expectKeyword('scalar');
1185
+ const name = this.parseName();
1186
+ const directives = this.parseConstDirectives();
1187
+
1188
+ if (directives.length === 0) {
1189
+ throw this.unexpected();
1190
+ }
1191
+
1192
+ return this.node(start, {
1193
+ kind: _kinds.Kind.SCALAR_TYPE_EXTENSION,
1194
+ name,
1195
+ directives,
1196
+ });
1197
+ }
1198
+ /**
1199
+ * ObjectTypeExtension :
1200
+ * - extend type Name ImplementsInterfaces? Directives[Const]? FieldsDefinition
1201
+ * - extend type Name ImplementsInterfaces? Directives[Const]
1202
+ * - extend type Name ImplementsInterfaces
1203
+ */
1204
+
1205
+ parseObjectTypeExtension() {
1206
+ const start = this._lexer.token;
1207
+ this.expectKeyword('extend');
1208
+ this.expectKeyword('type');
1209
+ const name = this.parseName();
1210
+ const interfaces = this.parseImplementsInterfaces();
1211
+ const directives = this.parseConstDirectives();
1212
+ const fields = this.parseFieldsDefinition();
1213
+
1214
+ if (
1215
+ interfaces.length === 0 &&
1216
+ directives.length === 0 &&
1217
+ fields.length === 0
1218
+ ) {
1219
+ throw this.unexpected();
1220
+ }
1221
+
1222
+ return this.node(start, {
1223
+ kind: _kinds.Kind.OBJECT_TYPE_EXTENSION,
1224
+ name,
1225
+ interfaces,
1226
+ directives,
1227
+ fields,
1228
+ });
1229
+ }
1230
+ /**
1231
+ * InterfaceTypeExtension :
1232
+ * - extend interface Name ImplementsInterfaces? Directives[Const]? FieldsDefinition
1233
+ * - extend interface Name ImplementsInterfaces? Directives[Const]
1234
+ * - extend interface Name ImplementsInterfaces
1235
+ */
1236
+
1237
+ parseInterfaceTypeExtension() {
1238
+ const start = this._lexer.token;
1239
+ this.expectKeyword('extend');
1240
+ this.expectKeyword('interface');
1241
+ const name = this.parseName();
1242
+ const interfaces = this.parseImplementsInterfaces();
1243
+ const directives = this.parseConstDirectives();
1244
+ const fields = this.parseFieldsDefinition();
1245
+
1246
+ if (
1247
+ interfaces.length === 0 &&
1248
+ directives.length === 0 &&
1249
+ fields.length === 0
1250
+ ) {
1251
+ throw this.unexpected();
1252
+ }
1253
+
1254
+ return this.node(start, {
1255
+ kind: _kinds.Kind.INTERFACE_TYPE_EXTENSION,
1256
+ name,
1257
+ interfaces,
1258
+ directives,
1259
+ fields,
1260
+ });
1261
+ }
1262
+ /**
1263
+ * UnionTypeExtension :
1264
+ * - extend union Name Directives[Const]? UnionMemberTypes
1265
+ * - extend union Name Directives[Const]
1266
+ */
1267
+
1268
+ parseUnionTypeExtension() {
1269
+ const start = this._lexer.token;
1270
+ this.expectKeyword('extend');
1271
+ this.expectKeyword('union');
1272
+ const name = this.parseName();
1273
+ const directives = this.parseConstDirectives();
1274
+ const types = this.parseUnionMemberTypes();
1275
+
1276
+ if (directives.length === 0 && types.length === 0) {
1277
+ throw this.unexpected();
1278
+ }
1279
+
1280
+ return this.node(start, {
1281
+ kind: _kinds.Kind.UNION_TYPE_EXTENSION,
1282
+ name,
1283
+ directives,
1284
+ types,
1285
+ });
1286
+ }
1287
+ /**
1288
+ * EnumTypeExtension :
1289
+ * - extend enum Name Directives[Const]? EnumValuesDefinition
1290
+ * - extend enum Name Directives[Const]
1291
+ */
1292
+
1293
+ parseEnumTypeExtension() {
1294
+ const start = this._lexer.token;
1295
+ this.expectKeyword('extend');
1296
+ this.expectKeyword('enum');
1297
+ const name = this.parseName();
1298
+ const directives = this.parseConstDirectives();
1299
+ const values = this.parseEnumValuesDefinition();
1300
+
1301
+ if (directives.length === 0 && values.length === 0) {
1302
+ throw this.unexpected();
1303
+ }
1304
+
1305
+ return this.node(start, {
1306
+ kind: _kinds.Kind.ENUM_TYPE_EXTENSION,
1307
+ name,
1308
+ directives,
1309
+ values,
1310
+ });
1311
+ }
1312
+ /**
1313
+ * InputObjectTypeExtension :
1314
+ * - extend input Name Directives[Const]? InputFieldsDefinition
1315
+ * - extend input Name Directives[Const]
1316
+ */
1317
+
1318
+ parseInputObjectTypeExtension() {
1319
+ const start = this._lexer.token;
1320
+ this.expectKeyword('extend');
1321
+ this.expectKeyword('input');
1322
+ const name = this.parseName();
1323
+ const directives = this.parseConstDirectives();
1324
+ const fields = this.parseInputFieldsDefinition();
1325
+
1326
+ if (directives.length === 0 && fields.length === 0) {
1327
+ throw this.unexpected();
1328
+ }
1329
+
1330
+ return this.node(start, {
1331
+ kind: _kinds.Kind.INPUT_OBJECT_TYPE_EXTENSION,
1332
+ name,
1333
+ directives,
1334
+ fields,
1335
+ });
1336
+ }
1337
+ /**
1338
+ * ```
1339
+ * DirectiveDefinition :
1340
+ * - Description? directive @ Name ArgumentsDefinition? `repeatable`? on DirectiveLocations
1341
+ * ```
1342
+ */
1343
+
1344
+ parseDirectiveDefinition() {
1345
+ const start = this._lexer.token;
1346
+ const description = this.parseDescription();
1347
+ this.expectKeyword('directive');
1348
+ this.expectToken(_tokenKind.TokenKind.AT);
1349
+ const name = this.parseName();
1350
+ const args = this.parseArgumentDefs();
1351
+ const repeatable = this.expectOptionalKeyword('repeatable');
1352
+ this.expectKeyword('on');
1353
+ const locations = this.parseDirectiveLocations();
1354
+ return this.node(start, {
1355
+ kind: _kinds.Kind.DIRECTIVE_DEFINITION,
1356
+ description,
1357
+ name,
1358
+ arguments: args,
1359
+ repeatable,
1360
+ locations,
1361
+ });
1362
+ }
1363
+ /**
1364
+ * DirectiveLocations :
1365
+ * - `|`? DirectiveLocation
1366
+ * - DirectiveLocations | DirectiveLocation
1367
+ */
1368
+
1369
+ parseDirectiveLocations() {
1370
+ return this.delimitedMany(
1371
+ _tokenKind.TokenKind.PIPE,
1372
+ this.parseDirectiveLocation,
1373
+ );
1374
+ }
1375
+ /*
1376
+ * DirectiveLocation :
1377
+ * - ExecutableDirectiveLocation
1378
+ * - TypeSystemDirectiveLocation
1379
+ *
1380
+ * ExecutableDirectiveLocation : one of
1381
+ * `QUERY`
1382
+ * `MUTATION`
1383
+ * `SUBSCRIPTION`
1384
+ * `FIELD`
1385
+ * `FRAGMENT_DEFINITION`
1386
+ * `FRAGMENT_SPREAD`
1387
+ * `INLINE_FRAGMENT`
1388
+ *
1389
+ * TypeSystemDirectiveLocation : one of
1390
+ * `SCHEMA`
1391
+ * `SCALAR`
1392
+ * `OBJECT`
1393
+ * `FIELD_DEFINITION`
1394
+ * `ARGUMENT_DEFINITION`
1395
+ * `INTERFACE`
1396
+ * `UNION`
1397
+ * `ENUM`
1398
+ * `ENUM_VALUE`
1399
+ * `INPUT_OBJECT`
1400
+ * `INPUT_FIELD_DEFINITION`
1401
+ */
1402
+
1403
+ parseDirectiveLocation() {
1404
+ const start = this._lexer.token;
1405
+ const name = this.parseName();
1406
+
1407
+ if (
1408
+ Object.prototype.hasOwnProperty.call(
1409
+ _directiveLocation.DirectiveLocation,
1410
+ name.value,
1411
+ )
1412
+ ) {
1413
+ return name;
1414
+ }
1415
+
1416
+ throw this.unexpected(start);
1417
+ } // Schema Coordinates
1418
+
1419
+ /**
1420
+ * SchemaCoordinate :
1421
+ * - Name
1422
+ * - Name . Name
1423
+ * - Name . Name ( Name : )
1424
+ * - \@ Name
1425
+ * - \@ Name ( Name : )
1426
+ */
1427
+
1428
+ parseSchemaCoordinate() {
1429
+ const start = this._lexer.token;
1430
+ const ofDirective = this.expectOptionalToken(_tokenKind.TokenKind.AT);
1431
+ const name = this.parseName();
1432
+ let memberName;
1433
+
1434
+ if (!ofDirective && this.expectOptionalToken(_tokenKind.TokenKind.DOT)) {
1435
+ memberName = this.parseName();
1436
+ }
1437
+
1438
+ let argumentName;
1439
+
1440
+ if (
1441
+ (ofDirective || memberName) &&
1442
+ this.expectOptionalToken(_tokenKind.TokenKind.PAREN_L)
1443
+ ) {
1444
+ argumentName = this.parseName();
1445
+ this.expectToken(_tokenKind.TokenKind.COLON);
1446
+ this.expectToken(_tokenKind.TokenKind.PAREN_R);
1447
+ }
1448
+
1449
+ if (ofDirective) {
1450
+ if (argumentName) {
1451
+ return this.node(start, {
1452
+ kind: _kinds.Kind.DIRECTIVE_ARGUMENT_COORDINATE,
1453
+ name,
1454
+ argumentName,
1455
+ });
1456
+ }
1457
+
1458
+ return this.node(start, {
1459
+ kind: _kinds.Kind.DIRECTIVE_COORDINATE,
1460
+ name,
1461
+ });
1462
+ } else if (memberName) {
1463
+ if (argumentName) {
1464
+ return this.node(start, {
1465
+ kind: _kinds.Kind.ARGUMENT_COORDINATE,
1466
+ name,
1467
+ fieldName: memberName,
1468
+ argumentName,
1469
+ });
1470
+ }
1471
+
1472
+ return this.node(start, {
1473
+ kind: _kinds.Kind.MEMBER_COORDINATE,
1474
+ name,
1475
+ memberName,
1476
+ });
1477
+ }
1478
+
1479
+ return this.node(start, {
1480
+ kind: _kinds.Kind.TYPE_COORDINATE,
1481
+ name,
1482
+ });
1483
+ } // Core parsing utility functions
1484
+
1485
+ /**
1486
+ * Returns a node that, if configured to do so, sets a "loc" field as a
1487
+ * location object, used to identify the place in the source that created a
1488
+ * given parsed object.
1489
+ */
1490
+
1491
+ node(startToken, node) {
1492
+ if (this._options.noLocation !== true) {
1493
+ node.loc = new _ast.Location(
1494
+ startToken,
1495
+ this._lexer.lastToken,
1496
+ this._lexer.source,
1497
+ );
1498
+ }
1499
+
1500
+ return node;
1501
+ }
1502
+ /**
1503
+ * Determines if the next token is of a given kind
1504
+ */
1505
+
1506
+ peek(kind) {
1507
+ return this._lexer.token.kind === kind;
1508
+ }
1509
+ /**
1510
+ * If the next token is of the given kind, return that token after advancing the lexer.
1511
+ * Otherwise, do not change the parser state and throw an error.
1512
+ */
1513
+
1514
+ expectToken(kind) {
1515
+ const token = this._lexer.token;
1516
+
1517
+ if (token.kind === kind) {
1518
+ this.advanceLexer();
1519
+ return token;
1520
+ }
1521
+
1522
+ throw (0, _syntaxError.syntaxError)(
1523
+ this._lexer.source,
1524
+ token.start,
1525
+ `Expected ${getTokenKindDesc(kind)}, found ${getTokenDesc(token)}.`,
1526
+ );
1527
+ }
1528
+ /**
1529
+ * If the next token is of the given kind, return "true" after advancing the lexer.
1530
+ * Otherwise, do not change the parser state and return "false".
1531
+ */
1532
+
1533
+ expectOptionalToken(kind) {
1534
+ const token = this._lexer.token;
1535
+
1536
+ if (token.kind === kind) {
1537
+ this.advanceLexer();
1538
+ return true;
1539
+ }
1540
+
1541
+ return false;
1542
+ }
1543
+ /**
1544
+ * If the next token is a given keyword, advance the lexer.
1545
+ * Otherwise, do not change the parser state and throw an error.
1546
+ */
1547
+
1548
+ expectKeyword(value) {
1549
+ const token = this._lexer.token;
1550
+
1551
+ if (token.kind === _tokenKind.TokenKind.NAME && token.value === value) {
1552
+ this.advanceLexer();
1553
+ } else {
1554
+ throw (0, _syntaxError.syntaxError)(
1555
+ this._lexer.source,
1556
+ token.start,
1557
+ `Expected "${value}", found ${getTokenDesc(token)}.`,
1558
+ );
1559
+ }
1560
+ }
1561
+ /**
1562
+ * If the next token is a given keyword, return "true" after advancing the lexer.
1563
+ * Otherwise, do not change the parser state and return "false".
1564
+ */
1565
+
1566
+ expectOptionalKeyword(value) {
1567
+ const token = this._lexer.token;
1568
+
1569
+ if (token.kind === _tokenKind.TokenKind.NAME && token.value === value) {
1570
+ this.advanceLexer();
1571
+ return true;
1572
+ }
1573
+
1574
+ return false;
1575
+ }
1576
+ /**
1577
+ * Helper function for creating an error when an unexpected lexed token is encountered.
1578
+ */
1579
+
1580
+ unexpected(atToken) {
1581
+ const token =
1582
+ atToken !== null && atToken !== void 0 ? atToken : this._lexer.token;
1583
+ return (0, _syntaxError.syntaxError)(
1584
+ this._lexer.source,
1585
+ token.start,
1586
+ `Unexpected ${getTokenDesc(token)}.`,
1587
+ );
1588
+ }
1589
+ /**
1590
+ * Returns a possibly empty list of parse nodes, determined by the parseFn.
1591
+ * This list begins with a lex token of openKind and ends with a lex token of closeKind.
1592
+ * Advances the parser to the next lex token after the closing token.
1593
+ */
1594
+
1595
+ any(openKind, parseFn, closeKind) {
1596
+ this.expectToken(openKind);
1597
+ const nodes = [];
1598
+
1599
+ while (!this.expectOptionalToken(closeKind)) {
1600
+ nodes.push(parseFn.call(this));
1601
+ }
1602
+
1603
+ return nodes;
1604
+ }
1605
+ /**
1606
+ * Returns a list of parse nodes, determined by the parseFn.
1607
+ * It can be empty only if open token is missing otherwise it will always return non-empty list
1608
+ * that begins with a lex token of openKind and ends with a lex token of closeKind.
1609
+ * Advances the parser to the next lex token after the closing token.
1610
+ */
1611
+
1612
+ optionalMany(openKind, parseFn, closeKind) {
1613
+ if (this.expectOptionalToken(openKind)) {
1614
+ const nodes = [];
1615
+
1616
+ do {
1617
+ nodes.push(parseFn.call(this));
1618
+ } while (!this.expectOptionalToken(closeKind));
1619
+
1620
+ return nodes;
1621
+ }
1622
+
1623
+ return [];
1624
+ }
1625
+ /**
1626
+ * Returns a non-empty list of parse nodes, determined by the parseFn.
1627
+ * This list begins with a lex token of openKind and ends with a lex token of closeKind.
1628
+ * Advances the parser to the next lex token after the closing token.
1629
+ */
1630
+
1631
+ many(openKind, parseFn, closeKind) {
1632
+ this.expectToken(openKind);
1633
+ const nodes = [];
1634
+
1635
+ do {
1636
+ nodes.push(parseFn.call(this));
1637
+ } while (!this.expectOptionalToken(closeKind));
1638
+
1639
+ return nodes;
1640
+ }
1641
+ /**
1642
+ * Returns a non-empty list of parse nodes, determined by the parseFn.
1643
+ * This list may begin with a lex token of delimiterKind followed by items separated by lex tokens of tokenKind.
1644
+ * Advances the parser to the next lex token after last item in the list.
1645
+ */
1646
+
1647
+ delimitedMany(delimiterKind, parseFn) {
1648
+ this.expectOptionalToken(delimiterKind);
1649
+ const nodes = [];
1650
+
1651
+ do {
1652
+ nodes.push(parseFn.call(this));
1653
+ } while (this.expectOptionalToken(delimiterKind));
1654
+
1655
+ return nodes;
1656
+ }
1657
+
1658
+ advanceLexer() {
1659
+ const { maxTokens } = this._options;
1660
+
1661
+ const token = this._lexer.advance();
1662
+
1663
+ if (token.kind !== _tokenKind.TokenKind.EOF) {
1664
+ ++this._tokenCounter;
1665
+
1666
+ if (maxTokens !== undefined && this._tokenCounter > maxTokens) {
1667
+ throw (0, _syntaxError.syntaxError)(
1668
+ this._lexer.source,
1669
+ token.start,
1670
+ `Document contains more that ${maxTokens} tokens. Parsing aborted.`,
1671
+ );
1672
+ }
1673
+ }
1674
+ }
1675
+ }
1676
+ /**
1677
+ * A helper function to describe a token as a string for debugging.
1678
+ */
1679
+
1680
+ exports.Parser = Parser;
1681
+
1682
+ function getTokenDesc(token) {
1683
+ const value = token.value;
1684
+ return getTokenKindDesc(token.kind) + (value != null ? ` "${value}"` : '');
1685
+ }
1686
+ /**
1687
+ * A helper function to describe a token kind as a string for debugging.
1688
+ */
1689
+
1690
+ function getTokenKindDesc(kind) {
1691
+ return (0, _lexer.isPunctuatorTokenKind)(kind) ? `"${kind}"` : kind;
1692
+ }