prismic-ts-codegen 0.1.28 → 0.1.29

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 (811) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +23 -0
  2. package/dist/cli/configSchema.cjs +29 -36
  3. package/dist/cli/configSchema.cjs.map +1 -1
  4. package/dist/cli/configSchema.d.cts +39 -0
  5. package/dist/cli/configSchema.d.cts.map +1 -0
  6. package/dist/cli/configSchema.d.ts +39 -3
  7. package/dist/cli/configSchema.d.ts.map +1 -0
  8. package/dist/cli/configSchema.js +29 -37
  9. package/dist/cli/configSchema.js.map +1 -1
  10. package/dist/cli/constants.cjs +4 -3
  11. package/dist/cli/constants.cjs.map +1 -1
  12. package/dist/cli/constants.d.cts +5 -0
  13. package/dist/cli/constants.d.cts.map +1 -0
  14. package/dist/cli/constants.d.ts +5 -1
  15. package/dist/cli/constants.d.ts.map +1 -0
  16. package/dist/cli/constants.js +5 -4
  17. package/dist/cli/constants.js.map +1 -1
  18. package/dist/cli/loadConfig.cjs +17 -27
  19. package/dist/cli/loadConfig.cjs.map +1 -1
  20. package/dist/cli/loadConfig.js +13 -25
  21. package/dist/cli/loadConfig.js.map +1 -1
  22. package/dist/cli/loadLocaleIDs.cjs +18 -17
  23. package/dist/cli/loadLocaleIDs.cjs.map +1 -1
  24. package/dist/cli/loadLocaleIDs.js +16 -18
  25. package/dist/cli/loadLocaleIDs.js.map +1 -1
  26. package/dist/cli/loadModels.cjs +45 -70
  27. package/dist/cli/loadModels.cjs.map +1 -1
  28. package/dist/cli/loadModels.js +40 -52
  29. package/dist/cli/loadModels.js.map +1 -1
  30. package/dist/cli.cjs +78 -91
  31. package/dist/cli.cjs.map +1 -1
  32. package/dist/cli.d.cts +1 -0
  33. package/dist/cli.d.ts +1 -0
  34. package/dist/cli.js +68 -81
  35. package/dist/cli.js.map +1 -1
  36. package/dist/constants.cjs +26 -25
  37. package/dist/constants.cjs.map +1 -1
  38. package/dist/constants.js +27 -28
  39. package/dist/constants.js.map +1 -1
  40. package/dist/detectTypesProvider.cjs +22 -17
  41. package/dist/detectTypesProvider.cjs.map +1 -1
  42. package/dist/detectTypesProvider.d.cts +17 -0
  43. package/dist/detectTypesProvider.d.cts.map +1 -0
  44. package/dist/detectTypesProvider.d.ts +10 -6
  45. package/dist/detectTypesProvider.d.ts.map +1 -0
  46. package/dist/detectTypesProvider.js +21 -17
  47. package/dist/detectTypesProvider.js.map +1 -1
  48. package/dist/generateTypes.cjs +76 -85
  49. package/dist/generateTypes.cjs.map +1 -1
  50. package/dist/generateTypes.d.cts +21 -0
  51. package/dist/generateTypes.d.cts.map +1 -0
  52. package/dist/generateTypes.d.ts +20 -15
  53. package/dist/generateTypes.d.ts.map +1 -0
  54. package/dist/generateTypes.js +70 -81
  55. package/dist/generateTypes.js.map +1 -1
  56. package/dist/index.cjs +6 -8
  57. package/dist/index.d.cts +5 -0
  58. package/dist/index.d.ts +5 -6
  59. package/dist/index.js +1 -6
  60. package/dist/lib/addBlankLine.cjs +7 -9
  61. package/dist/lib/addBlankLine.cjs.map +1 -1
  62. package/dist/lib/addBlankLine.js +7 -9
  63. package/dist/lib/addBlankLine.js.map +1 -1
  64. package/dist/lib/addLine.cjs +6 -5
  65. package/dist/lib/addLine.cjs.map +1 -1
  66. package/dist/lib/addLine.js +6 -5
  67. package/dist/lib/addLine.js.map +1 -1
  68. package/dist/lib/addSection.cjs +6 -5
  69. package/dist/lib/addSection.cjs.map +1 -1
  70. package/dist/lib/addSection.js +6 -5
  71. package/dist/lib/addSection.js.map +1 -1
  72. package/dist/lib/addTrailingNewLine.cjs +6 -8
  73. package/dist/lib/addTrailingNewLine.cjs.map +1 -1
  74. package/dist/lib/addTrailingNewLine.js +7 -9
  75. package/dist/lib/addTrailingNewLine.js.map +1 -1
  76. package/dist/lib/buildCustomTypeDataType.cjs +41 -44
  77. package/dist/lib/buildCustomTypeDataType.cjs.map +1 -1
  78. package/dist/lib/buildCustomTypeDataType.js +39 -43
  79. package/dist/lib/buildCustomTypeDataType.js.map +1 -1
  80. package/dist/lib/buildCustomTypeType.cjs +50 -50
  81. package/dist/lib/buildCustomTypeType.cjs.map +1 -1
  82. package/dist/lib/buildCustomTypeType.js +44 -45
  83. package/dist/lib/buildCustomTypeType.js.map +1 -1
  84. package/dist/lib/buildFieldDocs.cjs +59 -92
  85. package/dist/lib/buildFieldDocs.cjs.map +1 -1
  86. package/dist/lib/buildFieldDocs.js +56 -89
  87. package/dist/lib/buildFieldDocs.js.map +1 -1
  88. package/dist/lib/buildFieldProperties.cjs +255 -309
  89. package/dist/lib/buildFieldProperties.cjs.map +1 -1
  90. package/dist/lib/buildFieldProperties.js +249 -304
  91. package/dist/lib/buildFieldProperties.js.map +1 -1
  92. package/dist/lib/buildSharedSliceType.cjs +106 -109
  93. package/dist/lib/buildSharedSliceType.cjs.map +1 -1
  94. package/dist/lib/buildSharedSliceType.js +98 -102
  95. package/dist/lib/buildSharedSliceType.js.map +1 -1
  96. package/dist/lib/buildTypeName.cjs +9 -11
  97. package/dist/lib/buildTypeName.cjs.map +1 -1
  98. package/dist/lib/buildTypeName.js +8 -11
  99. package/dist/lib/buildTypeName.js.map +1 -1
  100. package/dist/lib/buildUnion.cjs +5 -4
  101. package/dist/lib/buildUnion.cjs.map +1 -1
  102. package/dist/lib/buildUnion.js +6 -5
  103. package/dist/lib/buildUnion.js.map +1 -1
  104. package/dist/lib/checkHasUIDFIeld.cjs +5 -4
  105. package/dist/lib/checkHasUIDFIeld.cjs.map +1 -1
  106. package/dist/lib/checkHasUIDFIeld.js +6 -5
  107. package/dist/lib/checkHasUIDFIeld.js.map +1 -1
  108. package/dist/lib/getAPIIDPath.cjs +21 -23
  109. package/dist/lib/getAPIIDPath.cjs.map +1 -1
  110. package/dist/lib/getAPIIDPath.js +22 -24
  111. package/dist/lib/getAPIIDPath.js.map +1 -1
  112. package/dist/lib/getCacheKey.cjs +14 -22
  113. package/dist/lib/getCacheKey.cjs.map +1 -1
  114. package/dist/lib/getCacheKey.js +12 -5
  115. package/dist/lib/getCacheKey.js.map +1 -1
  116. package/dist/lib/getHumanReadableModelName.cjs +12 -17
  117. package/dist/lib/getHumanReadableModelName.cjs.map +1 -1
  118. package/dist/lib/getHumanReadableModelName.js +13 -18
  119. package/dist/lib/getHumanReadableModelName.js.map +1 -1
  120. package/dist/lib/getHumanReadablePath.cjs +13 -16
  121. package/dist/lib/getHumanReadablePath.cjs.map +1 -1
  122. package/dist/lib/getHumanReadablePath.js +13 -16
  123. package/dist/lib/getHumanReadablePath.js.map +1 -1
  124. package/dist/types.d.cts +14 -0
  125. package/dist/types.d.cts.map +1 -0
  126. package/dist/types.d.ts +13 -21
  127. package/dist/types.d.ts.map +1 -0
  128. package/package.json +35 -49
  129. package/src/cli/configSchema.ts +181 -50
  130. package/src/cli/constants.ts +1 -2
  131. package/src/cli/index.ts +14 -24
  132. package/src/cli/loadConfig.ts +5 -9
  133. package/src/cli/loadLocaleIDs.ts +1 -3
  134. package/src/cli/loadModels.ts +8 -10
  135. package/src/constants.ts +1 -2
  136. package/src/detectTypesProvider.ts +3 -8
  137. package/src/generateTypes.ts +3 -10
  138. package/src/index.ts +1 -2
  139. package/src/lib/addBlankLine.ts +1 -1
  140. package/src/lib/addLine.ts +1 -1
  141. package/src/lib/addSection.ts +1 -1
  142. package/src/lib/addTrailingNewLine.ts +1 -4
  143. package/src/lib/buildCustomTypeDataType.ts +1 -3
  144. package/src/lib/buildCustomTypeType.ts +4 -6
  145. package/src/lib/buildFieldDocs.ts +7 -23
  146. package/src/lib/buildFieldProperties.ts +25 -66
  147. package/src/lib/buildSharedSliceType.ts +8 -10
  148. package/src/lib/buildTypeName.ts +1 -1
  149. package/src/lib/buildUnion.ts +1 -1
  150. package/src/lib/getAPIIDPath.ts +2 -2
  151. package/src/lib/getCacheKey.ts +1 -3
  152. package/src/lib/getHumanReadableModelName.ts +2 -8
  153. package/src/lib/getHumanReadablePath.ts +2 -3
  154. package/src/types.ts +1 -5
  155. package/dist/_node_modules/@babel/code-frame/lib/index.cjs +0 -217
  156. package/dist/_node_modules/@babel/code-frame/lib/index.cjs.map +0 -1
  157. package/dist/_node_modules/@babel/code-frame/lib/index.js +0 -216
  158. package/dist/_node_modules/@babel/code-frame/lib/index.js.map +0 -1
  159. package/dist/_node_modules/@babel/helper-validator-identifier/lib/identifier.cjs +0 -82
  160. package/dist/_node_modules/@babel/helper-validator-identifier/lib/identifier.cjs.map +0 -1
  161. package/dist/_node_modules/@babel/helper-validator-identifier/lib/identifier.js +0 -83
  162. package/dist/_node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +0 -1
  163. package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.cjs +0 -62
  164. package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.cjs.map +0 -1
  165. package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.js +0 -61
  166. package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.js.map +0 -1
  167. package/dist/_node_modules/@babel/helper-validator-identifier/lib/keyword.cjs +0 -35
  168. package/dist/_node_modules/@babel/helper-validator-identifier/lib/keyword.cjs.map +0 -1
  169. package/dist/_node_modules/@babel/helper-validator-identifier/lib/keyword.js +0 -36
  170. package/dist/_node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +0 -1
  171. package/dist/_node_modules/@prismicio/client/dist/Client.cjs +0 -1231
  172. package/dist/_node_modules/@prismicio/client/dist/Client.cjs.map +0 -1
  173. package/dist/_node_modules/@prismicio/client/dist/Client.js +0 -1231
  174. package/dist/_node_modules/@prismicio/client/dist/Client.js.map +0 -1
  175. package/dist/_node_modules/@prismicio/client/dist/buildQueryURL.cjs +0 -66
  176. package/dist/_node_modules/@prismicio/client/dist/buildQueryURL.cjs.map +0 -1
  177. package/dist/_node_modules/@prismicio/client/dist/buildQueryURL.js +0 -66
  178. package/dist/_node_modules/@prismicio/client/dist/buildQueryURL.js.map +0 -1
  179. package/dist/_node_modules/@prismicio/client/dist/cookie.cjs +0 -5
  180. package/dist/_node_modules/@prismicio/client/dist/cookie.cjs.map +0 -1
  181. package/dist/_node_modules/@prismicio/client/dist/cookie.js +0 -5
  182. package/dist/_node_modules/@prismicio/client/dist/cookie.js.map +0 -1
  183. package/dist/_node_modules/@prismicio/client/dist/createClient.cjs +0 -6
  184. package/dist/_node_modules/@prismicio/client/dist/createClient.cjs.map +0 -1
  185. package/dist/_node_modules/@prismicio/client/dist/createClient.js +0 -6
  186. package/dist/_node_modules/@prismicio/client/dist/createClient.js.map +0 -1
  187. package/dist/_node_modules/@prismicio/client/dist/errors/ForbiddenError.cjs +0 -7
  188. package/dist/_node_modules/@prismicio/client/dist/errors/ForbiddenError.cjs.map +0 -1
  189. package/dist/_node_modules/@prismicio/client/dist/errors/ForbiddenError.js +0 -7
  190. package/dist/_node_modules/@prismicio/client/dist/errors/ForbiddenError.js.map +0 -1
  191. package/dist/_node_modules/@prismicio/client/dist/errors/NotFoundError.cjs +0 -7
  192. package/dist/_node_modules/@prismicio/client/dist/errors/NotFoundError.cjs.map +0 -1
  193. package/dist/_node_modules/@prismicio/client/dist/errors/NotFoundError.js +0 -7
  194. package/dist/_node_modules/@prismicio/client/dist/errors/NotFoundError.js.map +0 -1
  195. package/dist/_node_modules/@prismicio/client/dist/errors/ParsingError.cjs +0 -7
  196. package/dist/_node_modules/@prismicio/client/dist/errors/ParsingError.cjs.map +0 -1
  197. package/dist/_node_modules/@prismicio/client/dist/errors/ParsingError.js +0 -7
  198. package/dist/_node_modules/@prismicio/client/dist/errors/ParsingError.js.map +0 -1
  199. package/dist/_node_modules/@prismicio/client/dist/errors/PreviewTokenExpired.cjs +0 -7
  200. package/dist/_node_modules/@prismicio/client/dist/errors/PreviewTokenExpired.cjs.map +0 -1
  201. package/dist/_node_modules/@prismicio/client/dist/errors/PreviewTokenExpired.js +0 -7
  202. package/dist/_node_modules/@prismicio/client/dist/errors/PreviewTokenExpired.js.map +0 -1
  203. package/dist/_node_modules/@prismicio/client/dist/errors/PrismicError.cjs +0 -16
  204. package/dist/_node_modules/@prismicio/client/dist/errors/PrismicError.cjs.map +0 -1
  205. package/dist/_node_modules/@prismicio/client/dist/errors/PrismicError.js +0 -16
  206. package/dist/_node_modules/@prismicio/client/dist/errors/PrismicError.js.map +0 -1
  207. package/dist/_node_modules/@prismicio/client/dist/errors/RefExpiredError.cjs +0 -7
  208. package/dist/_node_modules/@prismicio/client/dist/errors/RefExpiredError.cjs.map +0 -1
  209. package/dist/_node_modules/@prismicio/client/dist/errors/RefExpiredError.js +0 -7
  210. package/dist/_node_modules/@prismicio/client/dist/errors/RefExpiredError.js.map +0 -1
  211. package/dist/_node_modules/@prismicio/client/dist/errors/RefNotFoundError.cjs +0 -7
  212. package/dist/_node_modules/@prismicio/client/dist/errors/RefNotFoundError.cjs.map +0 -1
  213. package/dist/_node_modules/@prismicio/client/dist/errors/RefNotFoundError.js +0 -7
  214. package/dist/_node_modules/@prismicio/client/dist/errors/RefNotFoundError.js.map +0 -1
  215. package/dist/_node_modules/@prismicio/client/dist/errors/RepositoryNotFoundError.cjs +0 -7
  216. package/dist/_node_modules/@prismicio/client/dist/errors/RepositoryNotFoundError.cjs.map +0 -1
  217. package/dist/_node_modules/@prismicio/client/dist/errors/RepositoryNotFoundError.js +0 -7
  218. package/dist/_node_modules/@prismicio/client/dist/errors/RepositoryNotFoundError.js.map +0 -1
  219. package/dist/_node_modules/@prismicio/client/dist/filter.cjs +0 -247
  220. package/dist/_node_modules/@prismicio/client/dist/filter.cjs.map +0 -1
  221. package/dist/_node_modules/@prismicio/client/dist/filter.js +0 -247
  222. package/dist/_node_modules/@prismicio/client/dist/filter.js.map +0 -1
  223. package/dist/_node_modules/@prismicio/client/dist/getRepositoryEndpoint.cjs +0 -13
  224. package/dist/_node_modules/@prismicio/client/dist/getRepositoryEndpoint.cjs.map +0 -1
  225. package/dist/_node_modules/@prismicio/client/dist/getRepositoryEndpoint.js +0 -13
  226. package/dist/_node_modules/@prismicio/client/dist/getRepositoryEndpoint.js.map +0 -1
  227. package/dist/_node_modules/@prismicio/client/dist/getRepositoryName.cjs +0 -17
  228. package/dist/_node_modules/@prismicio/client/dist/getRepositoryName.cjs.map +0 -1
  229. package/dist/_node_modules/@prismicio/client/dist/getRepositoryName.js +0 -17
  230. package/dist/_node_modules/@prismicio/client/dist/getRepositoryName.js.map +0 -1
  231. package/dist/_node_modules/@prismicio/client/dist/helpers/asLink.cjs +0 -47
  232. package/dist/_node_modules/@prismicio/client/dist/helpers/asLink.cjs.map +0 -1
  233. package/dist/_node_modules/@prismicio/client/dist/helpers/asLink.js +0 -47
  234. package/dist/_node_modules/@prismicio/client/dist/helpers/asLink.js.map +0 -1
  235. package/dist/_node_modules/@prismicio/client/dist/helpers/documentToLinkField.cjs +0 -27
  236. package/dist/_node_modules/@prismicio/client/dist/helpers/documentToLinkField.cjs.map +0 -1
  237. package/dist/_node_modules/@prismicio/client/dist/helpers/documentToLinkField.js +0 -27
  238. package/dist/_node_modules/@prismicio/client/dist/helpers/documentToLinkField.js.map +0 -1
  239. package/dist/_node_modules/@prismicio/client/dist/isRepositoryEndpoint.cjs +0 -12
  240. package/dist/_node_modules/@prismicio/client/dist/isRepositoryEndpoint.cjs.map +0 -1
  241. package/dist/_node_modules/@prismicio/client/dist/isRepositoryEndpoint.js +0 -12
  242. package/dist/_node_modules/@prismicio/client/dist/isRepositoryEndpoint.js.map +0 -1
  243. package/dist/_node_modules/@prismicio/client/dist/isRepositoryName.cjs +0 -7
  244. package/dist/_node_modules/@prismicio/client/dist/isRepositoryName.cjs.map +0 -1
  245. package/dist/_node_modules/@prismicio/client/dist/isRepositoryName.js +0 -7
  246. package/dist/_node_modules/@prismicio/client/dist/isRepositoryName.js.map +0 -1
  247. package/dist/_node_modules/@prismicio/client/dist/lib/appendFilters.cjs +0 -11
  248. package/dist/_node_modules/@prismicio/client/dist/lib/appendFilters.cjs.map +0 -1
  249. package/dist/_node_modules/@prismicio/client/dist/lib/appendFilters.js +0 -11
  250. package/dist/_node_modules/@prismicio/client/dist/lib/appendFilters.js.map +0 -1
  251. package/dist/_node_modules/@prismicio/client/dist/lib/castArray.cjs +0 -7
  252. package/dist/_node_modules/@prismicio/client/dist/lib/castArray.cjs.map +0 -1
  253. package/dist/_node_modules/@prismicio/client/dist/lib/castArray.js +0 -7
  254. package/dist/_node_modules/@prismicio/client/dist/lib/castArray.js.map +0 -1
  255. package/dist/_node_modules/@prismicio/client/dist/lib/castThunk.cjs +0 -7
  256. package/dist/_node_modules/@prismicio/client/dist/lib/castThunk.cjs.map +0 -1
  257. package/dist/_node_modules/@prismicio/client/dist/lib/castThunk.js +0 -7
  258. package/dist/_node_modules/@prismicio/client/dist/lib/castThunk.js.map +0 -1
  259. package/dist/_node_modules/@prismicio/client/dist/lib/devMsg.cjs +0 -8
  260. package/dist/_node_modules/@prismicio/client/dist/lib/devMsg.cjs.map +0 -1
  261. package/dist/_node_modules/@prismicio/client/dist/lib/devMsg.js +0 -8
  262. package/dist/_node_modules/@prismicio/client/dist/lib/devMsg.js.map +0 -1
  263. package/dist/_node_modules/@prismicio/client/dist/lib/everyTagFilter.cjs +0 -9
  264. package/dist/_node_modules/@prismicio/client/dist/lib/everyTagFilter.cjs.map +0 -1
  265. package/dist/_node_modules/@prismicio/client/dist/lib/everyTagFilter.js +0 -9
  266. package/dist/_node_modules/@prismicio/client/dist/lib/everyTagFilter.js.map +0 -1
  267. package/dist/_node_modules/@prismicio/client/dist/lib/findMasterRef.cjs +0 -8
  268. package/dist/_node_modules/@prismicio/client/dist/lib/findMasterRef.cjs.map +0 -1
  269. package/dist/_node_modules/@prismicio/client/dist/lib/findMasterRef.js +0 -8
  270. package/dist/_node_modules/@prismicio/client/dist/lib/findMasterRef.js.map +0 -1
  271. package/dist/_node_modules/@prismicio/client/dist/lib/findRef.cjs +0 -12
  272. package/dist/_node_modules/@prismicio/client/dist/lib/findRef.cjs.map +0 -1
  273. package/dist/_node_modules/@prismicio/client/dist/lib/findRef.js +0 -12
  274. package/dist/_node_modules/@prismicio/client/dist/lib/findRef.js.map +0 -1
  275. package/dist/_node_modules/@prismicio/client/dist/lib/findRefByID.cjs +0 -8
  276. package/dist/_node_modules/@prismicio/client/dist/lib/findRefByID.cjs.map +0 -1
  277. package/dist/_node_modules/@prismicio/client/dist/lib/findRefByID.js +0 -8
  278. package/dist/_node_modules/@prismicio/client/dist/lib/findRefByID.js.map +0 -1
  279. package/dist/_node_modules/@prismicio/client/dist/lib/findRefByLabel.cjs +0 -8
  280. package/dist/_node_modules/@prismicio/client/dist/lib/findRefByLabel.cjs.map +0 -1
  281. package/dist/_node_modules/@prismicio/client/dist/lib/findRefByLabel.js +0 -8
  282. package/dist/_node_modules/@prismicio/client/dist/lib/findRefByLabel.js.map +0 -1
  283. package/dist/_node_modules/@prismicio/client/dist/lib/getPreviewCookie.cjs +0 -21
  284. package/dist/_node_modules/@prismicio/client/dist/lib/getPreviewCookie.cjs.map +0 -1
  285. package/dist/_node_modules/@prismicio/client/dist/lib/getPreviewCookie.js +0 -21
  286. package/dist/_node_modules/@prismicio/client/dist/lib/getPreviewCookie.js.map +0 -1
  287. package/dist/_node_modules/@prismicio/client/dist/lib/minifyGraphQLQuery.cjs +0 -7
  288. package/dist/_node_modules/@prismicio/client/dist/lib/minifyGraphQLQuery.cjs.map +0 -1
  289. package/dist/_node_modules/@prismicio/client/dist/lib/minifyGraphQLQuery.js +0 -7
  290. package/dist/_node_modules/@prismicio/client/dist/lib/minifyGraphQLQuery.js.map +0 -1
  291. package/dist/_node_modules/@prismicio/client/dist/lib/pLimit.cjs +0 -49
  292. package/dist/_node_modules/@prismicio/client/dist/lib/pLimit.cjs.map +0 -1
  293. package/dist/_node_modules/@prismicio/client/dist/lib/pLimit.js +0 -49
  294. package/dist/_node_modules/@prismicio/client/dist/lib/pLimit.js.map +0 -1
  295. package/dist/_node_modules/@prismicio/client/dist/lib/request.cjs +0 -43
  296. package/dist/_node_modules/@prismicio/client/dist/lib/request.cjs.map +0 -1
  297. package/dist/_node_modules/@prismicio/client/dist/lib/request.js +0 -43
  298. package/dist/_node_modules/@prismicio/client/dist/lib/request.js.map +0 -1
  299. package/dist/_node_modules/@prismicio/client/dist/lib/someTagsFilter.cjs +0 -9
  300. package/dist/_node_modules/@prismicio/client/dist/lib/someTagsFilter.cjs.map +0 -1
  301. package/dist/_node_modules/@prismicio/client/dist/lib/someTagsFilter.js +0 -9
  302. package/dist/_node_modules/@prismicio/client/dist/lib/someTagsFilter.js.map +0 -1
  303. package/dist/_node_modules/@prismicio/client/dist/lib/throttledLog.cjs +0 -17
  304. package/dist/_node_modules/@prismicio/client/dist/lib/throttledLog.cjs.map +0 -1
  305. package/dist/_node_modules/@prismicio/client/dist/lib/throttledLog.js +0 -17
  306. package/dist/_node_modules/@prismicio/client/dist/lib/throttledLog.js.map +0 -1
  307. package/dist/_node_modules/@prismicio/client/dist/lib/typeFilter.cjs +0 -8
  308. package/dist/_node_modules/@prismicio/client/dist/lib/typeFilter.cjs.map +0 -1
  309. package/dist/_node_modules/@prismicio/client/dist/lib/typeFilter.js +0 -8
  310. package/dist/_node_modules/@prismicio/client/dist/lib/typeFilter.js.map +0 -1
  311. package/dist/_node_modules/@prismicio/client/dist/package.json.cjs +0 -5
  312. package/dist/_node_modules/@prismicio/client/dist/package.json.cjs.map +0 -1
  313. package/dist/_node_modules/@prismicio/client/dist/package.json.js +0 -5
  314. package/dist/_node_modules/@prismicio/client/dist/package.json.js.map +0 -1
  315. package/dist/_node_modules/@prismicio/client/dist/types/model/types.cjs +0 -39
  316. package/dist/_node_modules/@prismicio/client/dist/types/model/types.cjs.map +0 -1
  317. package/dist/_node_modules/@prismicio/client/dist/types/model/types.js +0 -39
  318. package/dist/_node_modules/@prismicio/client/dist/types/model/types.js.map +0 -1
  319. package/dist/_node_modules/@prismicio/client/dist/types/value/link.cjs +0 -10
  320. package/dist/_node_modules/@prismicio/client/dist/types/value/link.cjs.map +0 -1
  321. package/dist/_node_modules/@prismicio/client/dist/types/value/link.js +0 -10
  322. package/dist/_node_modules/@prismicio/client/dist/types/value/link.js.map +0 -1
  323. package/dist/_node_modules/arrify/index.cjs +0 -10
  324. package/dist/_node_modules/arrify/index.cjs.map +0 -1
  325. package/dist/_node_modules/arrify/index.js +0 -10
  326. package/dist/_node_modules/arrify/index.js.map +0 -1
  327. package/dist/_node_modules/camelcase/index.cjs +0 -83
  328. package/dist/_node_modules/camelcase/index.cjs.map +0 -1
  329. package/dist/_node_modules/camelcase/index.js +0 -84
  330. package/dist/_node_modules/camelcase/index.js.map +0 -1
  331. package/dist/_node_modules/camelcase-keys/index.cjs +0 -55
  332. package/dist/_node_modules/camelcase-keys/index.cjs.map +0 -1
  333. package/dist/_node_modules/camelcase-keys/index.js +0 -56
  334. package/dist/_node_modules/camelcase-keys/index.js.map +0 -1
  335. package/dist/_node_modules/data-uri-to-buffer/dist/index.cjs +0 -41
  336. package/dist/_node_modules/data-uri-to-buffer/dist/index.cjs.map +0 -1
  337. package/dist/_node_modules/data-uri-to-buffer/dist/index.js +0 -41
  338. package/dist/_node_modules/data-uri-to-buffer/dist/index.js.map +0 -1
  339. package/dist/_node_modules/decamelize/index.cjs +0 -38
  340. package/dist/_node_modules/decamelize/index.cjs.map +0 -1
  341. package/dist/_node_modules/decamelize/index.js +0 -39
  342. package/dist/_node_modules/decamelize/index.js.map +0 -1
  343. package/dist/_node_modules/decamelize-keys/index.cjs +0 -50
  344. package/dist/_node_modules/decamelize-keys/index.cjs.map +0 -1
  345. package/dist/_node_modules/decamelize-keys/index.js +0 -51
  346. package/dist/_node_modules/decamelize-keys/index.js.map +0 -1
  347. package/dist/_node_modules/error-ex/index.cjs +0 -109
  348. package/dist/_node_modules/error-ex/index.cjs.map +0 -1
  349. package/dist/_node_modules/error-ex/index.js +0 -109
  350. package/dist/_node_modules/error-ex/index.js.map +0 -1
  351. package/dist/_node_modules/fetch-blob/file.cjs +0 -61
  352. package/dist/_node_modules/fetch-blob/file.cjs.map +0 -1
  353. package/dist/_node_modules/fetch-blob/file.js +0 -61
  354. package/dist/_node_modules/fetch-blob/file.js.map +0 -1
  355. package/dist/_node_modules/fetch-blob/index.cjs +0 -223
  356. package/dist/_node_modules/fetch-blob/index.cjs.map +0 -1
  357. package/dist/_node_modules/fetch-blob/index.js +0 -223
  358. package/dist/_node_modules/fetch-blob/index.js.map +0 -1
  359. package/dist/_node_modules/fetch-blob/streams.cjs +0 -43
  360. package/dist/_node_modules/fetch-blob/streams.cjs.map +0 -1
  361. package/dist/_node_modules/fetch-blob/streams.js +0 -42
  362. package/dist/_node_modules/fetch-blob/streams.js.map +0 -1
  363. package/dist/_node_modules/formdata-polyfill/esm.min.cjs +0 -116
  364. package/dist/_node_modules/formdata-polyfill/esm.min.cjs.map +0 -1
  365. package/dist/_node_modules/formdata-polyfill/esm.min.js +0 -116
  366. package/dist/_node_modules/formdata-polyfill/esm.min.js.map +0 -1
  367. package/dist/_node_modules/function-bind/implementation.cjs +0 -47
  368. package/dist/_node_modules/function-bind/implementation.cjs.map +0 -1
  369. package/dist/_node_modules/function-bind/implementation.js +0 -47
  370. package/dist/_node_modules/function-bind/implementation.js.map +0 -1
  371. package/dist/_node_modules/function-bind/index.cjs +0 -7
  372. package/dist/_node_modules/function-bind/index.cjs.map +0 -1
  373. package/dist/_node_modules/function-bind/index.js +0 -7
  374. package/dist/_node_modules/function-bind/index.js.map +0 -1
  375. package/dist/_node_modules/hard-rejection/index.cjs +0 -25
  376. package/dist/_node_modules/hard-rejection/index.cjs.map +0 -1
  377. package/dist/_node_modules/hard-rejection/index.js +0 -26
  378. package/dist/_node_modules/hard-rejection/index.js.map +0 -1
  379. package/dist/_node_modules/has/src/index.cjs +0 -7
  380. package/dist/_node_modules/has/src/index.cjs.map +0 -1
  381. package/dist/_node_modules/has/src/index.js +0 -7
  382. package/dist/_node_modules/has/src/index.js.map +0 -1
  383. package/dist/_node_modules/hosted-git-info/lib/from-url.cjs +0 -93
  384. package/dist/_node_modules/hosted-git-info/lib/from-url.cjs.map +0 -1
  385. package/dist/_node_modules/hosted-git-info/lib/from-url.js +0 -93
  386. package/dist/_node_modules/hosted-git-info/lib/from-url.js.map +0 -1
  387. package/dist/_node_modules/hosted-git-info/lib/hosts.cjs +0 -164
  388. package/dist/_node_modules/hosted-git-info/lib/hosts.cjs.map +0 -1
  389. package/dist/_node_modules/hosted-git-info/lib/hosts.js +0 -164
  390. package/dist/_node_modules/hosted-git-info/lib/hosts.js.map +0 -1
  391. package/dist/_node_modules/hosted-git-info/lib/index.cjs +0 -168
  392. package/dist/_node_modules/hosted-git-info/lib/index.cjs.map +0 -1
  393. package/dist/_node_modules/hosted-git-info/lib/index.js +0 -168
  394. package/dist/_node_modules/hosted-git-info/lib/index.js.map +0 -1
  395. package/dist/_node_modules/hosted-git-info/lib/parse-url.cjs +0 -51
  396. package/dist/_node_modules/hosted-git-info/lib/parse-url.cjs.map +0 -1
  397. package/dist/_node_modules/hosted-git-info/lib/parse-url.js +0 -51
  398. package/dist/_node_modules/hosted-git-info/lib/parse-url.js.map +0 -1
  399. package/dist/_node_modules/indent-string/index.cjs +0 -34
  400. package/dist/_node_modules/indent-string/index.cjs.map +0 -1
  401. package/dist/_node_modules/indent-string/index.js +0 -35
  402. package/dist/_node_modules/indent-string/index.js.map +0 -1
  403. package/dist/_node_modules/is-arrayish/index.cjs +0 -10
  404. package/dist/_node_modules/is-arrayish/index.cjs.map +0 -1
  405. package/dist/_node_modules/is-arrayish/index.js +0 -10
  406. package/dist/_node_modules/is-arrayish/index.js.map +0 -1
  407. package/dist/_node_modules/is-core-module/core.json.cjs +0 -496
  408. package/dist/_node_modules/is-core-module/core.json.cjs.map +0 -1
  409. package/dist/_node_modules/is-core-module/core.json.js +0 -496
  410. package/dist/_node_modules/is-core-module/core.json.js.map +0 -1
  411. package/dist/_node_modules/is-core-module/index.cjs +0 -62
  412. package/dist/_node_modules/is-core-module/index.cjs.map +0 -1
  413. package/dist/_node_modules/is-core-module/index.js +0 -62
  414. package/dist/_node_modules/is-core-module/index.js.map +0 -1
  415. package/dist/_node_modules/is-plain-obj/index.cjs +0 -9
  416. package/dist/_node_modules/is-plain-obj/index.cjs.map +0 -1
  417. package/dist/_node_modules/is-plain-obj/index.js +0 -9
  418. package/dist/_node_modules/is-plain-obj/index.js.map +0 -1
  419. package/dist/_node_modules/js-tokens/index.cjs +0 -27
  420. package/dist/_node_modules/js-tokens/index.cjs.map +0 -1
  421. package/dist/_node_modules/js-tokens/index.js +0 -26
  422. package/dist/_node_modules/js-tokens/index.js.map +0 -1
  423. package/dist/_node_modules/json-parse-even-better-errors/index.cjs +0 -90
  424. package/dist/_node_modules/json-parse-even-better-errors/index.cjs.map +0 -1
  425. package/dist/_node_modules/json-parse-even-better-errors/index.js +0 -90
  426. package/dist/_node_modules/json-parse-even-better-errors/index.js.map +0 -1
  427. package/dist/_node_modules/kind-of/index.cjs +0 -129
  428. package/dist/_node_modules/kind-of/index.cjs.map +0 -1
  429. package/dist/_node_modules/kind-of/index.js +0 -129
  430. package/dist/_node_modules/kind-of/index.js.map +0 -1
  431. package/dist/_node_modules/lines-and-columns/build/index.cjs +0 -67
  432. package/dist/_node_modules/lines-and-columns/build/index.cjs.map +0 -1
  433. package/dist/_node_modules/lines-and-columns/build/index.js +0 -66
  434. package/dist/_node_modules/lines-and-columns/build/index.js.map +0 -1
  435. package/dist/_node_modules/lru-cache/index.cjs +0 -1015
  436. package/dist/_node_modules/lru-cache/index.cjs.map +0 -1
  437. package/dist/_node_modules/lru-cache/index.js +0 -1015
  438. package/dist/_node_modules/lru-cache/index.js.map +0 -1
  439. package/dist/_node_modules/map-obj/index.cjs +0 -49
  440. package/dist/_node_modules/map-obj/index.cjs.map +0 -1
  441. package/dist/_node_modules/map-obj/index.js +0 -50
  442. package/dist/_node_modules/map-obj/index.js.map +0 -1
  443. package/dist/_node_modules/meow/source/index.cjs +0 -88
  444. package/dist/_node_modules/meow/source/index.cjs.map +0 -1
  445. package/dist/_node_modules/meow/source/index.js +0 -89
  446. package/dist/_node_modules/meow/source/index.js.map +0 -1
  447. package/dist/_node_modules/meow/source/options.cjs +0 -83
  448. package/dist/_node_modules/meow/source/options.cjs.map +0 -1
  449. package/dist/_node_modules/meow/source/options.js +0 -83
  450. package/dist/_node_modules/meow/source/options.js.map +0 -1
  451. package/dist/_node_modules/meow/source/parser.cjs +0 -61
  452. package/dist/_node_modules/meow/source/parser.cjs.map +0 -1
  453. package/dist/_node_modules/meow/source/parser.js +0 -61
  454. package/dist/_node_modules/meow/source/parser.js.map +0 -1
  455. package/dist/_node_modules/meow/source/utils.cjs +0 -8
  456. package/dist/_node_modules/meow/source/utils.cjs.map +0 -1
  457. package/dist/_node_modules/meow/source/utils.js +0 -8
  458. package/dist/_node_modules/meow/source/utils.js.map +0 -1
  459. package/dist/_node_modules/meow/source/validate.cjs +0 -102
  460. package/dist/_node_modules/meow/source/validate.cjs.map +0 -1
  461. package/dist/_node_modules/meow/source/validate.js +0 -102
  462. package/dist/_node_modules/meow/source/validate.js.map +0 -1
  463. package/dist/_node_modules/min-indent/index.cjs +0 -12
  464. package/dist/_node_modules/min-indent/index.cjs.map +0 -1
  465. package/dist/_node_modules/min-indent/index.js +0 -13
  466. package/dist/_node_modules/min-indent/index.js.map +0 -1
  467. package/dist/_node_modules/minimist-options/index.cjs +0 -94
  468. package/dist/_node_modules/minimist-options/index.cjs.map +0 -1
  469. package/dist/_node_modules/minimist-options/index.js +0 -95
  470. package/dist/_node_modules/minimist-options/index.js.map +0 -1
  471. package/dist/_node_modules/node-domexception/index.cjs +0 -11
  472. package/dist/_node_modules/node-domexception/index.cjs.map +0 -1
  473. package/dist/_node_modules/node-domexception/index.js +0 -10
  474. package/dist/_node_modules/node-domexception/index.js.map +0 -1
  475. package/dist/_node_modules/node-fetch/src/body.cjs +0 -262
  476. package/dist/_node_modules/node-fetch/src/body.cjs.map +0 -1
  477. package/dist/_node_modules/node-fetch/src/body.js +0 -262
  478. package/dist/_node_modules/node-fetch/src/body.js.map +0 -1
  479. package/dist/_node_modules/node-fetch/src/errors/abort-error.cjs +0 -10
  480. package/dist/_node_modules/node-fetch/src/errors/abort-error.cjs.map +0 -1
  481. package/dist/_node_modules/node-fetch/src/errors/abort-error.js +0 -10
  482. package/dist/_node_modules/node-fetch/src/errors/abort-error.js.map +0 -1
  483. package/dist/_node_modules/node-fetch/src/errors/base.cjs +0 -17
  484. package/dist/_node_modules/node-fetch/src/errors/base.cjs.map +0 -1
  485. package/dist/_node_modules/node-fetch/src/errors/base.js +0 -17
  486. package/dist/_node_modules/node-fetch/src/errors/base.js.map +0 -1
  487. package/dist/_node_modules/node-fetch/src/errors/fetch-error.cjs +0 -19
  488. package/dist/_node_modules/node-fetch/src/errors/fetch-error.cjs.map +0 -1
  489. package/dist/_node_modules/node-fetch/src/errors/fetch-error.js +0 -19
  490. package/dist/_node_modules/node-fetch/src/errors/fetch-error.js.map +0 -1
  491. package/dist/_node_modules/node-fetch/src/headers.cjs +0 -190
  492. package/dist/_node_modules/node-fetch/src/headers.cjs.map +0 -1
  493. package/dist/_node_modules/node-fetch/src/headers.js +0 -190
  494. package/dist/_node_modules/node-fetch/src/headers.js.map +0 -1
  495. package/dist/_node_modules/node-fetch/src/index.cjs +0 -292
  496. package/dist/_node_modules/node-fetch/src/index.cjs.map +0 -1
  497. package/dist/_node_modules/node-fetch/src/index.js +0 -292
  498. package/dist/_node_modules/node-fetch/src/index.js.map +0 -1
  499. package/dist/_node_modules/node-fetch/src/request.cjs +0 -203
  500. package/dist/_node_modules/node-fetch/src/request.cjs.map +0 -1
  501. package/dist/_node_modules/node-fetch/src/request.js +0 -203
  502. package/dist/_node_modules/node-fetch/src/request.js.map +0 -1
  503. package/dist/_node_modules/node-fetch/src/response.cjs +0 -122
  504. package/dist/_node_modules/node-fetch/src/response.cjs.map +0 -1
  505. package/dist/_node_modules/node-fetch/src/response.js +0 -123
  506. package/dist/_node_modules/node-fetch/src/response.js.map +0 -1
  507. package/dist/_node_modules/node-fetch/src/utils/get-search.cjs +0 -12
  508. package/dist/_node_modules/node-fetch/src/utils/get-search.cjs.map +0 -1
  509. package/dist/_node_modules/node-fetch/src/utils/get-search.js +0 -12
  510. package/dist/_node_modules/node-fetch/src/utils/get-search.js.map +0 -1
  511. package/dist/_node_modules/node-fetch/src/utils/is-redirect.cjs +0 -8
  512. package/dist/_node_modules/node-fetch/src/utils/is-redirect.cjs.map +0 -1
  513. package/dist/_node_modules/node-fetch/src/utils/is-redirect.js +0 -8
  514. package/dist/_node_modules/node-fetch/src/utils/is-redirect.js.map +0 -1
  515. package/dist/_node_modules/node-fetch/src/utils/is.cjs +0 -28
  516. package/dist/_node_modules/node-fetch/src/utils/is.cjs.map +0 -1
  517. package/dist/_node_modules/node-fetch/src/utils/is.js +0 -28
  518. package/dist/_node_modules/node-fetch/src/utils/is.js.map +0 -1
  519. package/dist/_node_modules/node-fetch/src/utils/multipart-parser.cjs +0 -356
  520. package/dist/_node_modules/node-fetch/src/utils/multipart-parser.cjs.map +0 -1
  521. package/dist/_node_modules/node-fetch/src/utils/multipart-parser.js +0 -356
  522. package/dist/_node_modules/node-fetch/src/utils/multipart-parser.js.map +0 -1
  523. package/dist/_node_modules/node-fetch/src/utils/referrer.cjs +0 -149
  524. package/dist/_node_modules/node-fetch/src/utils/referrer.cjs.map +0 -1
  525. package/dist/_node_modules/node-fetch/src/utils/referrer.js +0 -149
  526. package/dist/_node_modules/node-fetch/src/utils/referrer.js.map +0 -1
  527. package/dist/_node_modules/normalize-package-data/lib/extract_description.cjs +0 -24
  528. package/dist/_node_modules/normalize-package-data/lib/extract_description.cjs.map +0 -1
  529. package/dist/_node_modules/normalize-package-data/lib/extract_description.js +0 -24
  530. package/dist/_node_modules/normalize-package-data/lib/extract_description.js.map +0 -1
  531. package/dist/_node_modules/normalize-package-data/lib/fixer.cjs +0 -438
  532. package/dist/_node_modules/normalize-package-data/lib/fixer.cjs.map +0 -1
  533. package/dist/_node_modules/normalize-package-data/lib/fixer.js +0 -438
  534. package/dist/_node_modules/normalize-package-data/lib/fixer.js.map +0 -1
  535. package/dist/_node_modules/normalize-package-data/lib/make_warning.cjs +0 -26
  536. package/dist/_node_modules/normalize-package-data/lib/make_warning.cjs.map +0 -1
  537. package/dist/_node_modules/normalize-package-data/lib/make_warning.js +0 -26
  538. package/dist/_node_modules/normalize-package-data/lib/make_warning.js.map +0 -1
  539. package/dist/_node_modules/normalize-package-data/lib/normalize.cjs +0 -58
  540. package/dist/_node_modules/normalize-package-data/lib/normalize.cjs.map +0 -1
  541. package/dist/_node_modules/normalize-package-data/lib/normalize.js +0 -59
  542. package/dist/_node_modules/normalize-package-data/lib/normalize.js.map +0 -1
  543. package/dist/_node_modules/normalize-package-data/lib/typos.json.cjs +0 -41
  544. package/dist/_node_modules/normalize-package-data/lib/typos.json.cjs.map +0 -1
  545. package/dist/_node_modules/normalize-package-data/lib/typos.json.js +0 -41
  546. package/dist/_node_modules/normalize-package-data/lib/typos.json.js.map +0 -1
  547. package/dist/_node_modules/normalize-package-data/lib/warning_messages.json.cjs +0 -90
  548. package/dist/_node_modules/normalize-package-data/lib/warning_messages.json.cjs.map +0 -1
  549. package/dist/_node_modules/normalize-package-data/lib/warning_messages.json.js +0 -90
  550. package/dist/_node_modules/normalize-package-data/lib/warning_messages.json.js.map +0 -1
  551. package/dist/_node_modules/parse-json/index.cjs +0 -54
  552. package/dist/_node_modules/parse-json/index.cjs.map +0 -1
  553. package/dist/_node_modules/parse-json/index.js +0 -55
  554. package/dist/_node_modules/parse-json/index.js.map +0 -1
  555. package/dist/_node_modules/picocolors/picocolors.browser.cjs +0 -12
  556. package/dist/_node_modules/picocolors/picocolors.browser.cjs.map +0 -1
  557. package/dist/_node_modules/picocolors/picocolors.browser.js +0 -12
  558. package/dist/_node_modules/picocolors/picocolors.browser.js.map +0 -1
  559. package/dist/_node_modules/quick-lru/index.cjs +0 -235
  560. package/dist/_node_modules/quick-lru/index.cjs.map +0 -1
  561. package/dist/_node_modules/quick-lru/index.js +0 -236
  562. package/dist/_node_modules/quick-lru/index.js.map +0 -1
  563. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.cjs +0 -159
  564. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.cjs.map +0 -1
  565. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.js +0 -159
  566. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.js.map +0 -1
  567. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.cjs +0 -88
  568. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.cjs.map +0 -1
  569. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.js +0 -88
  570. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.js.map +0 -1
  571. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/index.cjs +0 -180
  572. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/index.cjs.map +0 -1
  573. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/index.js +0 -180
  574. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/index.js.map +0 -1
  575. package/dist/_node_modules/read-pkg/_node_modules/lru-cache/index.cjs +0 -268
  576. package/dist/_node_modules/read-pkg/_node_modules/lru-cache/index.cjs.map +0 -1
  577. package/dist/_node_modules/read-pkg/_node_modules/lru-cache/index.js +0 -268
  578. package/dist/_node_modules/read-pkg/_node_modules/lru-cache/index.js.map +0 -1
  579. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/extract_description.cjs +0 -20
  580. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/extract_description.cjs.map +0 -1
  581. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/extract_description.js +0 -20
  582. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/extract_description.js.map +0 -1
  583. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.cjs +0 -438
  584. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.cjs.map +0 -1
  585. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.js +0 -438
  586. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.js.map +0 -1
  587. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/make_warning.cjs +0 -26
  588. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/make_warning.cjs.map +0 -1
  589. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/make_warning.js +0 -26
  590. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/make_warning.js.map +0 -1
  591. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/normalize.cjs +0 -58
  592. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/normalize.cjs.map +0 -1
  593. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/normalize.js +0 -59
  594. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/normalize.js.map +0 -1
  595. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/typos.json.cjs +0 -41
  596. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/typos.json.cjs.map +0 -1
  597. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/typos.json.js +0 -41
  598. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/typos.json.js.map +0 -1
  599. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/warning_messages.json.cjs +0 -90
  600. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/warning_messages.json.cjs.map +0 -1
  601. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/warning_messages.json.js +0 -90
  602. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/warning_messages.json.js.map +0 -1
  603. package/dist/_node_modules/read-pkg/index.cjs +0 -20
  604. package/dist/_node_modules/read-pkg/index.cjs.map +0 -1
  605. package/dist/_node_modules/read-pkg/index.js +0 -20
  606. package/dist/_node_modules/read-pkg/index.js.map +0 -1
  607. package/dist/_node_modules/read-pkg-up/_node_modules/find-up/index.cjs +0 -48
  608. package/dist/_node_modules/read-pkg-up/_node_modules/find-up/index.cjs.map +0 -1
  609. package/dist/_node_modules/read-pkg-up/_node_modules/find-up/index.js +0 -48
  610. package/dist/_node_modules/read-pkg-up/_node_modules/find-up/index.js.map +0 -1
  611. package/dist/_node_modules/read-pkg-up/_node_modules/locate-path/index.cjs +0 -43
  612. package/dist/_node_modules/read-pkg-up/_node_modules/locate-path/index.cjs.map +0 -1
  613. package/dist/_node_modules/read-pkg-up/_node_modules/locate-path/index.js +0 -43
  614. package/dist/_node_modules/read-pkg-up/_node_modules/locate-path/index.js.map +0 -1
  615. package/dist/_node_modules/read-pkg-up/index.cjs +0 -17
  616. package/dist/_node_modules/read-pkg-up/index.cjs.map +0 -1
  617. package/dist/_node_modules/read-pkg-up/index.js +0 -17
  618. package/dist/_node_modules/read-pkg-up/index.js.map +0 -1
  619. package/dist/_node_modules/redent/index.cjs +0 -8
  620. package/dist/_node_modules/redent/index.cjs.map +0 -1
  621. package/dist/_node_modules/redent/index.js +0 -9
  622. package/dist/_node_modules/redent/index.js.map +0 -1
  623. package/dist/_node_modules/semver/classes/semver.cjs +0 -245
  624. package/dist/_node_modules/semver/classes/semver.cjs.map +0 -1
  625. package/dist/_node_modules/semver/classes/semver.js +0 -245
  626. package/dist/_node_modules/semver/classes/semver.js.map +0 -1
  627. package/dist/_node_modules/semver/functions/clean.cjs +0 -11
  628. package/dist/_node_modules/semver/functions/clean.cjs.map +0 -1
  629. package/dist/_node_modules/semver/functions/clean.js +0 -11
  630. package/dist/_node_modules/semver/functions/clean.js.map +0 -1
  631. package/dist/_node_modules/semver/functions/parse.cjs +0 -20
  632. package/dist/_node_modules/semver/functions/parse.cjs.map +0 -1
  633. package/dist/_node_modules/semver/functions/parse.js +0 -20
  634. package/dist/_node_modules/semver/functions/parse.js.map +0 -1
  635. package/dist/_node_modules/semver/functions/valid.cjs +0 -11
  636. package/dist/_node_modules/semver/functions/valid.cjs.map +0 -1
  637. package/dist/_node_modules/semver/functions/valid.js +0 -11
  638. package/dist/_node_modules/semver/functions/valid.js.map +0 -1
  639. package/dist/_node_modules/semver/internal/constants.cjs +0 -29
  640. package/dist/_node_modules/semver/internal/constants.cjs.map +0 -1
  641. package/dist/_node_modules/semver/internal/constants.js +0 -29
  642. package/dist/_node_modules/semver/internal/constants.js.map +0 -1
  643. package/dist/_node_modules/semver/internal/debug.cjs +0 -7
  644. package/dist/_node_modules/semver/internal/debug.cjs.map +0 -1
  645. package/dist/_node_modules/semver/internal/debug.js +0 -7
  646. package/dist/_node_modules/semver/internal/debug.js.map +0 -1
  647. package/dist/_node_modules/semver/internal/identifiers.cjs +0 -19
  648. package/dist/_node_modules/semver/internal/identifiers.cjs.map +0 -1
  649. package/dist/_node_modules/semver/internal/identifiers.js +0 -19
  650. package/dist/_node_modules/semver/internal/identifiers.js.map +0 -1
  651. package/dist/_node_modules/semver/internal/parse-options.cjs +0 -16
  652. package/dist/_node_modules/semver/internal/parse-options.cjs.map +0 -1
  653. package/dist/_node_modules/semver/internal/parse-options.js +0 -16
  654. package/dist/_node_modules/semver/internal/parse-options.js.map +0 -1
  655. package/dist/_node_modules/semver/internal/re.cjs +0 -82
  656. package/dist/_node_modules/semver/internal/re.cjs.map +0 -1
  657. package/dist/_node_modules/semver/internal/re.js +0 -82
  658. package/dist/_node_modules/semver/internal/re.js.map +0 -1
  659. package/dist/_node_modules/spdx-correct/index.cjs +0 -334
  660. package/dist/_node_modules/spdx-correct/index.cjs.map +0 -1
  661. package/dist/_node_modules/spdx-correct/index.js +0 -334
  662. package/dist/_node_modules/spdx-correct/index.js.map +0 -1
  663. package/dist/_node_modules/spdx-exceptions/index.json.cjs +0 -43
  664. package/dist/_node_modules/spdx-exceptions/index.json.cjs.map +0 -1
  665. package/dist/_node_modules/spdx-exceptions/index.json.js +0 -44
  666. package/dist/_node_modules/spdx-exceptions/index.json.js.map +0 -1
  667. package/dist/_node_modules/spdx-expression-parse/index.cjs +0 -11
  668. package/dist/_node_modules/spdx-expression-parse/index.cjs.map +0 -1
  669. package/dist/_node_modules/spdx-expression-parse/index.js +0 -11
  670. package/dist/_node_modules/spdx-expression-parse/index.js.map +0 -1
  671. package/dist/_node_modules/spdx-expression-parse/parse.cjs +0 -111
  672. package/dist/_node_modules/spdx-expression-parse/parse.cjs.map +0 -1
  673. package/dist/_node_modules/spdx-expression-parse/parse.js +0 -111
  674. package/dist/_node_modules/spdx-expression-parse/parse.js.map +0 -1
  675. package/dist/_node_modules/spdx-expression-parse/scan.cjs +0 -104
  676. package/dist/_node_modules/spdx-expression-parse/scan.cjs.map +0 -1
  677. package/dist/_node_modules/spdx-expression-parse/scan.js +0 -104
  678. package/dist/_node_modules/spdx-expression-parse/scan.js.map +0 -1
  679. package/dist/_node_modules/spdx-license-ids/deprecated.json.cjs +0 -30
  680. package/dist/_node_modules/spdx-license-ids/deprecated.json.cjs.map +0 -1
  681. package/dist/_node_modules/spdx-license-ids/deprecated.json.js +0 -31
  682. package/dist/_node_modules/spdx-license-ids/deprecated.json.js.map +0 -1
  683. package/dist/_node_modules/spdx-license-ids/index.json.cjs +0 -510
  684. package/dist/_node_modules/spdx-license-ids/index.json.cjs.map +0 -1
  685. package/dist/_node_modules/spdx-license-ids/index.json.js +0 -511
  686. package/dist/_node_modules/spdx-license-ids/index.json.js.map +0 -1
  687. package/dist/_node_modules/strip-indent/index.cjs +0 -12
  688. package/dist/_node_modules/strip-indent/index.cjs.map +0 -1
  689. package/dist/_node_modules/strip-indent/index.js +0 -13
  690. package/dist/_node_modules/strip-indent/index.js.map +0 -1
  691. package/dist/_node_modules/trim-newlines/index.cjs +0 -15
  692. package/dist/_node_modules/trim-newlines/index.cjs.map +0 -1
  693. package/dist/_node_modules/trim-newlines/index.js +0 -15
  694. package/dist/_node_modules/trim-newlines/index.js.map +0 -1
  695. package/dist/_node_modules/validate-npm-package-license/index.cjs +0 -71
  696. package/dist/_node_modules/validate-npm-package-license/index.cjs.map +0 -1
  697. package/dist/_node_modules/validate-npm-package-license/index.js +0 -71
  698. package/dist/_node_modules/validate-npm-package-license/index.js.map +0 -1
  699. package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.cjs +0 -3822
  700. package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.cjs.map +0 -1
  701. package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.js +0 -3822
  702. package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.js.map +0 -1
  703. package/dist/_node_modules/yallist/iterator.cjs +0 -19
  704. package/dist/_node_modules/yallist/iterator.cjs.map +0 -1
  705. package/dist/_node_modules/yallist/iterator.js +0 -19
  706. package/dist/_node_modules/yallist/iterator.js.map +0 -1
  707. package/dist/_node_modules/yallist/yallist.cjs +0 -367
  708. package/dist/_node_modules/yallist/yallist.cjs.map +0 -1
  709. package/dist/_node_modules/yallist/yallist.js +0 -367
  710. package/dist/_node_modules/yallist/yallist.js.map +0 -1
  711. package/dist/_node_modules/yargs-parser/build/lib/index.cjs +0 -56
  712. package/dist/_node_modules/yargs-parser/build/lib/index.cjs.map +0 -1
  713. package/dist/_node_modules/yargs-parser/build/lib/index.js +0 -57
  714. package/dist/_node_modules/yargs-parser/build/lib/index.js.map +0 -1
  715. package/dist/_node_modules/yargs-parser/build/lib/string-utils.cjs +0 -63
  716. package/dist/_node_modules/yargs-parser/build/lib/string-utils.cjs.map +0 -1
  717. package/dist/_node_modules/yargs-parser/build/lib/string-utils.js +0 -63
  718. package/dist/_node_modules/yargs-parser/build/lib/string-utils.js.map +0 -1
  719. package/dist/_node_modules/yargs-parser/build/lib/tokenize-arg-string.cjs +0 -39
  720. package/dist/_node_modules/yargs-parser/build/lib/tokenize-arg-string.cjs.map +0 -1
  721. package/dist/_node_modules/yargs-parser/build/lib/tokenize-arg-string.js +0 -39
  722. package/dist/_node_modules/yargs-parser/build/lib/tokenize-arg-string.js.map +0 -1
  723. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser-types.cjs +0 -15
  724. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser-types.cjs.map +0 -1
  725. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser-types.js +0 -16
  726. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser-types.js.map +0 -1
  727. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser.cjs +0 -847
  728. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser.cjs.map +0 -1
  729. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser.js +0 -847
  730. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser.js.map +0 -1
  731. package/dist/_virtual/_commonjsHelpers.cjs +0 -9
  732. package/dist/_virtual/_commonjsHelpers.cjs.map +0 -1
  733. package/dist/_virtual/_commonjsHelpers.js +0 -9
  734. package/dist/_virtual/_commonjsHelpers.js.map +0 -1
  735. package/dist/_virtual/identifier.cjs +0 -5
  736. package/dist/_virtual/identifier.cjs.map +0 -1
  737. package/dist/_virtual/identifier.js +0 -5
  738. package/dist/_virtual/identifier.js.map +0 -1
  739. package/dist/_virtual/index.cjs +0 -5
  740. package/dist/_virtual/index.cjs.map +0 -1
  741. package/dist/_virtual/index.js +0 -5
  742. package/dist/_virtual/index.js.map +0 -1
  743. package/dist/_virtual/index2.cjs +0 -5
  744. package/dist/_virtual/index2.cjs.map +0 -1
  745. package/dist/_virtual/index2.js +0 -5
  746. package/dist/_virtual/index2.js.map +0 -1
  747. package/dist/_virtual/index3.cjs +0 -5
  748. package/dist/_virtual/index3.cjs.map +0 -1
  749. package/dist/_virtual/index3.js +0 -5
  750. package/dist/_virtual/index3.js.map +0 -1
  751. package/dist/_virtual/index4.cjs +0 -5
  752. package/dist/_virtual/index4.cjs.map +0 -1
  753. package/dist/_virtual/index4.js +0 -5
  754. package/dist/_virtual/index4.js.map +0 -1
  755. package/dist/_virtual/index5.cjs +0 -5
  756. package/dist/_virtual/index5.cjs.map +0 -1
  757. package/dist/_virtual/index5.js +0 -5
  758. package/dist/_virtual/index5.js.map +0 -1
  759. package/dist/_virtual/index6.cjs +0 -5
  760. package/dist/_virtual/index6.cjs.map +0 -1
  761. package/dist/_virtual/index6.js +0 -5
  762. package/dist/_virtual/index6.js.map +0 -1
  763. package/dist/_virtual/index7.cjs +0 -5
  764. package/dist/_virtual/index7.cjs.map +0 -1
  765. package/dist/_virtual/index7.js +0 -5
  766. package/dist/_virtual/index7.js.map +0 -1
  767. package/dist/_virtual/index8.cjs +0 -5
  768. package/dist/_virtual/index8.cjs.map +0 -1
  769. package/dist/_virtual/index8.js +0 -5
  770. package/dist/_virtual/index8.js.map +0 -1
  771. package/dist/_virtual/keyword.cjs +0 -5
  772. package/dist/_virtual/keyword.cjs.map +0 -1
  773. package/dist/_virtual/keyword.js +0 -5
  774. package/dist/_virtual/keyword.js.map +0 -1
  775. package/dist/_virtual/picocolors.browser.cjs +0 -5
  776. package/dist/_virtual/picocolors.browser.cjs.map +0 -1
  777. package/dist/_virtual/picocolors.browser.js +0 -5
  778. package/dist/_virtual/picocolors.browser.js.map +0 -1
  779. package/dist/_virtual/ponyfill.es2018.cjs +0 -5
  780. package/dist/_virtual/ponyfill.es2018.cjs.map +0 -1
  781. package/dist/_virtual/ponyfill.es2018.js +0 -5
  782. package/dist/_virtual/ponyfill.es2018.js.map +0 -1
  783. package/dist/_virtual/re.cjs +0 -5
  784. package/dist/_virtual/re.cjs.map +0 -1
  785. package/dist/_virtual/re.js +0 -5
  786. package/dist/_virtual/re.js.map +0 -1
  787. package/dist/cli/index.d.ts +0 -1
  788. package/dist/cli/loadConfig.d.ts +0 -6
  789. package/dist/cli/loadLocaleIDs.d.ts +0 -10
  790. package/dist/cli/loadModels.d.ts +0 -15
  791. package/dist/cli/types.d.ts +0 -175
  792. package/dist/constants.d.ts +0 -26
  793. package/dist/index.cjs.map +0 -1
  794. package/dist/index.js.map +0 -1
  795. package/dist/lib/addBlankLine.d.ts +0 -5
  796. package/dist/lib/addLine.d.ts +0 -1
  797. package/dist/lib/addSection.d.ts +0 -1
  798. package/dist/lib/addTrailingNewLine.d.ts +0 -5
  799. package/dist/lib/buildCustomTypeDataType.d.ts +0 -14
  800. package/dist/lib/buildCustomTypeType.d.ts +0 -17
  801. package/dist/lib/buildFieldDocs.d.ts +0 -10
  802. package/dist/lib/buildFieldProperties.d.ts +0 -15
  803. package/dist/lib/buildSharedSliceType.d.ts +0 -17
  804. package/dist/lib/buildTypeName.d.ts +0 -1
  805. package/dist/lib/buildUnion.d.ts +0 -1
  806. package/dist/lib/checkHasUIDFIeld.d.ts +0 -2
  807. package/dist/lib/getAPIIDPath.d.ts +0 -6
  808. package/dist/lib/getCacheKey.d.ts +0 -9
  809. package/dist/lib/getHumanReadableModelName.d.ts +0 -7
  810. package/dist/lib/getHumanReadablePath.d.ts +0 -6
  811. package/src/cli/types.ts +0 -192
@@ -1,180 +0,0 @@
1
- import { __module as hostedGitInfo } from "../../../../_virtual/index8.js";
2
- import require$$0 from "url";
3
- import { g as gitHostInfo } from "./git-host-info.js";
4
- import { g as gitHost } from "./git-host.js";
5
- import { l as lruCache } from "../lru-cache/index.js";
6
- const url = require$$0;
7
- const gitHosts = gitHostInfo;
8
- const GitHost = hostedGitInfo.exports = gitHost;
9
- const LRU = lruCache;
10
- const cache = new LRU({ max: 1e3 });
11
- const protocolToRepresentationMap = {
12
- "git+ssh:": "sshurl",
13
- "git+https:": "https",
14
- "ssh:": "sshurl",
15
- "git:": "git"
16
- };
17
- function protocolToRepresentation(protocol) {
18
- return protocolToRepresentationMap[protocol] || protocol.slice(0, -1);
19
- }
20
- const authProtocols = {
21
- "git:": true,
22
- "https:": true,
23
- "git+https:": true,
24
- "http:": true,
25
- "git+http:": true
26
- };
27
- const knownProtocols = Object.keys(gitHosts.byShortcut).concat(["http:", "https:", "git:", "git+ssh:", "git+https:", "ssh:"]);
28
- hostedGitInfo.exports.fromUrl = function(giturl, opts) {
29
- if (typeof giturl !== "string") {
30
- return;
31
- }
32
- const key = giturl + JSON.stringify(opts || {});
33
- if (!cache.has(key)) {
34
- cache.set(key, fromUrl(giturl, opts));
35
- }
36
- return cache.get(key);
37
- };
38
- function fromUrl(giturl, opts) {
39
- if (!giturl) {
40
- return;
41
- }
42
- const url2 = isGitHubShorthand(giturl) ? "github:" + giturl : correctProtocol(giturl);
43
- const parsed = parseGitUrl(url2);
44
- if (!parsed) {
45
- return parsed;
46
- }
47
- const gitHostShortcut = gitHosts.byShortcut[parsed.protocol];
48
- const gitHostDomain = gitHosts.byDomain[parsed.hostname.startsWith("www.") ? parsed.hostname.slice(4) : parsed.hostname];
49
- const gitHostName = gitHostShortcut || gitHostDomain;
50
- if (!gitHostName) {
51
- return;
52
- }
53
- const gitHostInfo2 = gitHosts[gitHostShortcut || gitHostDomain];
54
- let auth = null;
55
- if (authProtocols[parsed.protocol] && (parsed.username || parsed.password)) {
56
- auth = `${parsed.username}${parsed.password ? ":" + parsed.password : ""}`;
57
- }
58
- let committish = null;
59
- let user = null;
60
- let project = null;
61
- let defaultRepresentation = null;
62
- try {
63
- if (gitHostShortcut) {
64
- let pathname = parsed.pathname.startsWith("/") ? parsed.pathname.slice(1) : parsed.pathname;
65
- const firstAt = pathname.indexOf("@");
66
- if (firstAt > -1) {
67
- pathname = pathname.slice(firstAt + 1);
68
- }
69
- const lastSlash = pathname.lastIndexOf("/");
70
- if (lastSlash > -1) {
71
- user = decodeURIComponent(pathname.slice(0, lastSlash));
72
- if (!user) {
73
- user = null;
74
- }
75
- project = decodeURIComponent(pathname.slice(lastSlash + 1));
76
- } else {
77
- project = decodeURIComponent(pathname);
78
- }
79
- if (project.endsWith(".git")) {
80
- project = project.slice(0, -4);
81
- }
82
- if (parsed.hash) {
83
- committish = decodeURIComponent(parsed.hash.slice(1));
84
- }
85
- defaultRepresentation = "shortcut";
86
- } else {
87
- if (!gitHostInfo2.protocols.includes(parsed.protocol)) {
88
- return;
89
- }
90
- const segments = gitHostInfo2.extract(parsed);
91
- if (!segments) {
92
- return;
93
- }
94
- user = segments.user && decodeURIComponent(segments.user);
95
- project = decodeURIComponent(segments.project);
96
- committish = decodeURIComponent(segments.committish);
97
- defaultRepresentation = protocolToRepresentation(parsed.protocol);
98
- }
99
- } catch (err) {
100
- if (err instanceof URIError) {
101
- return;
102
- } else {
103
- throw err;
104
- }
105
- }
106
- return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts);
107
- }
108
- const correctProtocol = (arg) => {
109
- const firstColon = arg.indexOf(":");
110
- const proto = arg.slice(0, firstColon + 1);
111
- if (knownProtocols.includes(proto)) {
112
- return arg;
113
- }
114
- const firstAt = arg.indexOf("@");
115
- if (firstAt > -1) {
116
- if (firstAt > firstColon) {
117
- return `git+ssh://${arg}`;
118
- } else {
119
- return arg;
120
- }
121
- }
122
- const doubleSlash = arg.indexOf("//");
123
- if (doubleSlash === firstColon + 1) {
124
- return arg;
125
- }
126
- return arg.slice(0, firstColon + 1) + "//" + arg.slice(firstColon + 1);
127
- };
128
- const isGitHubShorthand = (arg) => {
129
- const firstHash = arg.indexOf("#");
130
- const firstSlash = arg.indexOf("/");
131
- const secondSlash = arg.indexOf("/", firstSlash + 1);
132
- const firstColon = arg.indexOf(":");
133
- const firstSpace = /\s/.exec(arg);
134
- const firstAt = arg.indexOf("@");
135
- const spaceOnlyAfterHash = !firstSpace || firstHash > -1 && firstSpace.index > firstHash;
136
- const atOnlyAfterHash = firstAt === -1 || firstHash > -1 && firstAt > firstHash;
137
- const colonOnlyAfterHash = firstColon === -1 || firstHash > -1 && firstColon > firstHash;
138
- const secondSlashOnlyAfterHash = secondSlash === -1 || firstHash > -1 && secondSlash > firstHash;
139
- const hasSlash = firstSlash > 0;
140
- const doesNotEndWithSlash = firstHash > -1 ? arg[firstHash - 1] !== "/" : !arg.endsWith("/");
141
- const doesNotStartWithDot = !arg.startsWith(".");
142
- return spaceOnlyAfterHash && hasSlash && doesNotEndWithSlash && doesNotStartWithDot && atOnlyAfterHash && colonOnlyAfterHash && secondSlashOnlyAfterHash;
143
- };
144
- const correctUrl = (giturl) => {
145
- const firstAt = giturl.indexOf("@");
146
- const lastHash = giturl.lastIndexOf("#");
147
- let firstColon = giturl.indexOf(":");
148
- let lastColon = giturl.lastIndexOf(":", lastHash > -1 ? lastHash : Infinity);
149
- let corrected;
150
- if (lastColon > firstAt) {
151
- corrected = giturl.slice(0, lastColon) + "/" + giturl.slice(lastColon + 1);
152
- firstColon = corrected.indexOf(":");
153
- lastColon = corrected.lastIndexOf(":");
154
- }
155
- if (firstColon === -1 && giturl.indexOf("//") === -1) {
156
- corrected = `git+ssh://${corrected}`;
157
- }
158
- return corrected;
159
- };
160
- const parseGitUrl = (giturl) => {
161
- let result;
162
- try {
163
- result = new url.URL(giturl);
164
- } catch (err) {
165
- }
166
- if (result) {
167
- return result;
168
- }
169
- const correctedUrl = correctUrl(giturl);
170
- try {
171
- result = new url.URL(correctedUrl);
172
- } catch (err) {
173
- }
174
- return result;
175
- };
176
- var hostedGitInfoExports = hostedGitInfo.exports;
177
- export {
178
- hostedGitInfoExports as h
179
- };
180
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../node_modules/read-pkg/node_modules/hosted-git-info/index.js"],"sourcesContent":["'use strict'\nconst url = require('url')\nconst gitHosts = require('./git-host-info.js')\nconst GitHost = module.exports = require('./git-host.js')\nconst LRU = require('lru-cache')\nconst cache = new LRU({ max: 1000 })\n\nconst protocolToRepresentationMap = {\n 'git+ssh:': 'sshurl',\n 'git+https:': 'https',\n 'ssh:': 'sshurl',\n 'git:': 'git'\n}\n\nfunction protocolToRepresentation (protocol) {\n return protocolToRepresentationMap[protocol] || protocol.slice(0, -1)\n}\n\nconst authProtocols = {\n 'git:': true,\n 'https:': true,\n 'git+https:': true,\n 'http:': true,\n 'git+http:': true\n}\n\nconst knownProtocols = Object.keys(gitHosts.byShortcut).concat(['http:', 'https:', 'git:', 'git+ssh:', 'git+https:', 'ssh:'])\n\nmodule.exports.fromUrl = function (giturl, opts) {\n if (typeof giturl !== 'string') {\n return\n }\n\n const key = giturl + JSON.stringify(opts || {})\n\n if (!cache.has(key)) {\n cache.set(key, fromUrl(giturl, opts))\n }\n\n return cache.get(key)\n}\n\nfunction fromUrl (giturl, opts) {\n if (!giturl) {\n return\n }\n\n const url = isGitHubShorthand(giturl) ? 'github:' + giturl : correctProtocol(giturl)\n const parsed = parseGitUrl(url)\n if (!parsed) {\n return parsed\n }\n\n const gitHostShortcut = gitHosts.byShortcut[parsed.protocol]\n const gitHostDomain = gitHosts.byDomain[parsed.hostname.startsWith('www.') ? parsed.hostname.slice(4) : parsed.hostname]\n const gitHostName = gitHostShortcut || gitHostDomain\n if (!gitHostName) {\n return\n }\n\n const gitHostInfo = gitHosts[gitHostShortcut || gitHostDomain]\n let auth = null\n if (authProtocols[parsed.protocol] && (parsed.username || parsed.password)) {\n auth = `${parsed.username}${parsed.password ? ':' + parsed.password : ''}`\n }\n\n let committish = null\n let user = null\n let project = null\n let defaultRepresentation = null\n\n try {\n if (gitHostShortcut) {\n let pathname = parsed.pathname.startsWith('/') ? parsed.pathname.slice(1) : parsed.pathname\n const firstAt = pathname.indexOf('@')\n // we ignore auth for shortcuts, so just trim it out\n if (firstAt > -1) {\n pathname = pathname.slice(firstAt + 1)\n }\n\n const lastSlash = pathname.lastIndexOf('/')\n if (lastSlash > -1) {\n user = decodeURIComponent(pathname.slice(0, lastSlash))\n // we want nulls only, never empty strings\n if (!user) {\n user = null\n }\n project = decodeURIComponent(pathname.slice(lastSlash + 1))\n } else {\n project = decodeURIComponent(pathname)\n }\n\n if (project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (parsed.hash) {\n committish = decodeURIComponent(parsed.hash.slice(1))\n }\n\n defaultRepresentation = 'shortcut'\n } else {\n if (!gitHostInfo.protocols.includes(parsed.protocol)) {\n return\n }\n\n const segments = gitHostInfo.extract(parsed)\n if (!segments) {\n return\n }\n\n user = segments.user && decodeURIComponent(segments.user)\n project = decodeURIComponent(segments.project)\n committish = decodeURIComponent(segments.committish)\n defaultRepresentation = protocolToRepresentation(parsed.protocol)\n }\n } catch (err) {\n /* istanbul ignore else */\n if (err instanceof URIError) {\n return\n } else {\n throw err\n }\n }\n\n return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts)\n}\n\n// accepts input like git:github.com:user/repo and inserts the // after the first :\nconst correctProtocol = (arg) => {\n const firstColon = arg.indexOf(':')\n const proto = arg.slice(0, firstColon + 1)\n if (knownProtocols.includes(proto)) {\n return arg\n }\n\n const firstAt = arg.indexOf('@')\n if (firstAt > -1) {\n if (firstAt > firstColon) {\n return `git+ssh://${arg}`\n } else {\n return arg\n }\n }\n\n const doubleSlash = arg.indexOf('//')\n if (doubleSlash === firstColon + 1) {\n return arg\n }\n\n return arg.slice(0, firstColon + 1) + '//' + arg.slice(firstColon + 1)\n}\n\n// look for github shorthand inputs, such as npm/cli\nconst isGitHubShorthand = (arg) => {\n // it cannot contain whitespace before the first #\n // it cannot start with a / because that's probably an absolute file path\n // but it must include a slash since repos are username/repository\n // it cannot start with a . because that's probably a relative file path\n // it cannot start with an @ because that's a scoped package if it passes the other tests\n // it cannot contain a : before a # because that tells us that there's a protocol\n // a second / may not exist before a #\n const firstHash = arg.indexOf('#')\n const firstSlash = arg.indexOf('/')\n const secondSlash = arg.indexOf('/', firstSlash + 1)\n const firstColon = arg.indexOf(':')\n const firstSpace = /\\s/.exec(arg)\n const firstAt = arg.indexOf('@')\n\n const spaceOnlyAfterHash = !firstSpace || (firstHash > -1 && firstSpace.index > firstHash)\n const atOnlyAfterHash = firstAt === -1 || (firstHash > -1 && firstAt > firstHash)\n const colonOnlyAfterHash = firstColon === -1 || (firstHash > -1 && firstColon > firstHash)\n const secondSlashOnlyAfterHash = secondSlash === -1 || (firstHash > -1 && secondSlash > firstHash)\n const hasSlash = firstSlash > 0\n // if a # is found, what we really want to know is that the character immediately before # is not a /\n const doesNotEndWithSlash = firstHash > -1 ? arg[firstHash - 1] !== '/' : !arg.endsWith('/')\n const doesNotStartWithDot = !arg.startsWith('.')\n\n return spaceOnlyAfterHash && hasSlash && doesNotEndWithSlash && doesNotStartWithDot && atOnlyAfterHash && colonOnlyAfterHash && secondSlashOnlyAfterHash\n}\n\n// attempt to correct an scp style url so that it will parse with `new URL()`\nconst correctUrl = (giturl) => {\n const firstAt = giturl.indexOf('@')\n const lastHash = giturl.lastIndexOf('#')\n let firstColon = giturl.indexOf(':')\n let lastColon = giturl.lastIndexOf(':', lastHash > -1 ? lastHash : Infinity)\n\n let corrected\n if (lastColon > firstAt) {\n // the last : comes after the first @ (or there is no @)\n // like it would in:\n // proto://hostname.com:user/repo\n // username@hostname.com:user/repo\n // :password@hostname.com:user/repo\n // username:password@hostname.com:user/repo\n // proto://username@hostname.com:user/repo\n // proto://:password@hostname.com:user/repo\n // proto://username:password@hostname.com:user/repo\n // then we replace the last : with a / to create a valid path\n corrected = giturl.slice(0, lastColon) + '/' + giturl.slice(lastColon + 1)\n // // and we find our new : positions\n firstColon = corrected.indexOf(':')\n lastColon = corrected.lastIndexOf(':')\n }\n\n if (firstColon === -1 && giturl.indexOf('//') === -1) {\n // we have no : at all\n // as it would be in:\n // username@hostname.com/user/repo\n // then we prepend a protocol\n corrected = `git+ssh://${corrected}`\n }\n\n return corrected\n}\n\n// try to parse the url as its given to us, if that throws\n// then we try to clean the url and parse that result instead\n// THIS FUNCTION SHOULD NEVER THROW\nconst parseGitUrl = (giturl) => {\n let result\n try {\n result = new url.URL(giturl)\n } catch (err) {}\n\n if (result) {\n return result\n }\n\n const correctedUrl = correctUrl(giturl)\n try {\n result = new url.URL(correctedUrl)\n } catch (err) {}\n\n return result\n}\n"],"names":["require$$1","hostedGitInfoModule","require$$2","require$$3","url","gitHostInfo"],"mappings":";;;;;AACA,MAAM,MAAM;AACZ,MAAM,WAAWA;AACjB,MAAM,UAAUC,cAAc,UAAGC;AACjC,MAAM,MAAMC;AACZ,MAAM,QAAQ,IAAI,IAAI,EAAE,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,MAAM,MAAM,CAAC,IAAI,SAAS,GAAG;AAC3F,QAAM,sBAAsB,CAAC,IAAI,WAAW,GAAG;AAE/C,SAAO,sBAAsB,YAAY,uBAAuB,uBAAuB,mBAAmB,sBAAsB;AAClI;AAGA,MAAM,aAAa,CAAC,WAAW;AAC7B,QAAM,UAAU,OAAO,QAAQ,GAAG;AAClC,QAAM,WAAW,OAAO,YAAY,GAAG;AACvC,MAAI,aAAa,OAAO,QAAQ,GAAG;AACnC,MAAI,YAAY,OAAO,YAAY,KAAK,WAAW,KAAK,WAAW,QAAQ;AAE3E,MAAI;AACJ,MAAI,YAAY,SAAS;AAWvB,gBAAY,OAAO,MAAM,GAAG,SAAS,IAAI,MAAM,OAAO,MAAM,YAAY,CAAC;AAEzE,iBAAa,UAAU,QAAQ,GAAG;AAClC,gBAAY,UAAU,YAAY,GAAG;AAAA,EACtC;AAED,MAAI,eAAe,MAAM,OAAO,QAAQ,IAAI,MAAM,IAAI;AAKpD,gBAAY,aAAa,SAAS;AAAA,EACnC;AAED,SAAO;AACT;AAKA,MAAM,cAAc,CAAC,WAAW;AAC9B,MAAI;AACJ,MAAI;AACF,aAAS,IAAI,IAAI,IAAI,MAAM;AAAA,EAC/B,SAAW,KAAP;AAAA,EAAc;AAEhB,MAAI,QAAQ;AACV,WAAO;AAAA,EACR;AAED,QAAM,eAAe,WAAW,MAAM;AACtC,MAAI;AACF,aAAS,IAAI,IAAI,IAAI,YAAY;AAAA,EACrC,SAAW,KAAP;AAAA,EAAc;AAEhB,SAAO;AACT;;","x_google_ignoreList":[0]}
@@ -1,268 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const yallist = require("../../../yallist/yallist.cjs");
4
- const Yallist = yallist.yallist;
5
- const MAX = Symbol("max");
6
- const LENGTH = Symbol("length");
7
- const LENGTH_CALCULATOR = Symbol("lengthCalculator");
8
- const ALLOW_STALE = Symbol("allowStale");
9
- const MAX_AGE = Symbol("maxAge");
10
- const DISPOSE = Symbol("dispose");
11
- const NO_DISPOSE_ON_SET = Symbol("noDisposeOnSet");
12
- const LRU_LIST = Symbol("lruList");
13
- const CACHE = Symbol("cache");
14
- const UPDATE_AGE_ON_GET = Symbol("updateAgeOnGet");
15
- const naiveLength = () => 1;
16
- class LRUCache {
17
- constructor(options) {
18
- if (typeof options === "number")
19
- options = { max: options };
20
- if (!options)
21
- options = {};
22
- if (options.max && (typeof options.max !== "number" || options.max < 0))
23
- throw new TypeError("max must be a non-negative number");
24
- this[MAX] = options.max || Infinity;
25
- const lc = options.length || naiveLength;
26
- this[LENGTH_CALCULATOR] = typeof lc !== "function" ? naiveLength : lc;
27
- this[ALLOW_STALE] = options.stale || false;
28
- if (options.maxAge && typeof options.maxAge !== "number")
29
- throw new TypeError("maxAge must be a number");
30
- this[MAX_AGE] = options.maxAge || 0;
31
- this[DISPOSE] = options.dispose;
32
- this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false;
33
- this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false;
34
- this.reset();
35
- }
36
- // resize the cache when the max changes.
37
- set max(mL) {
38
- if (typeof mL !== "number" || mL < 0)
39
- throw new TypeError("max must be a non-negative number");
40
- this[MAX] = mL || Infinity;
41
- trim(this);
42
- }
43
- get max() {
44
- return this[MAX];
45
- }
46
- set allowStale(allowStale) {
47
- this[ALLOW_STALE] = !!allowStale;
48
- }
49
- get allowStale() {
50
- return this[ALLOW_STALE];
51
- }
52
- set maxAge(mA) {
53
- if (typeof mA !== "number")
54
- throw new TypeError("maxAge must be a non-negative number");
55
- this[MAX_AGE] = mA;
56
- trim(this);
57
- }
58
- get maxAge() {
59
- return this[MAX_AGE];
60
- }
61
- // resize the cache when the lengthCalculator changes.
62
- set lengthCalculator(lC) {
63
- if (typeof lC !== "function")
64
- lC = naiveLength;
65
- if (lC !== this[LENGTH_CALCULATOR]) {
66
- this[LENGTH_CALCULATOR] = lC;
67
- this[LENGTH] = 0;
68
- this[LRU_LIST].forEach((hit) => {
69
- hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key);
70
- this[LENGTH] += hit.length;
71
- });
72
- }
73
- trim(this);
74
- }
75
- get lengthCalculator() {
76
- return this[LENGTH_CALCULATOR];
77
- }
78
- get length() {
79
- return this[LENGTH];
80
- }
81
- get itemCount() {
82
- return this[LRU_LIST].length;
83
- }
84
- rforEach(fn, thisp) {
85
- thisp = thisp || this;
86
- for (let walker = this[LRU_LIST].tail; walker !== null; ) {
87
- const prev = walker.prev;
88
- forEachStep(this, fn, walker, thisp);
89
- walker = prev;
90
- }
91
- }
92
- forEach(fn, thisp) {
93
- thisp = thisp || this;
94
- for (let walker = this[LRU_LIST].head; walker !== null; ) {
95
- const next = walker.next;
96
- forEachStep(this, fn, walker, thisp);
97
- walker = next;
98
- }
99
- }
100
- keys() {
101
- return this[LRU_LIST].toArray().map((k) => k.key);
102
- }
103
- values() {
104
- return this[LRU_LIST].toArray().map((k) => k.value);
105
- }
106
- reset() {
107
- if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) {
108
- this[LRU_LIST].forEach((hit) => this[DISPOSE](hit.key, hit.value));
109
- }
110
- this[CACHE] = /* @__PURE__ */ new Map();
111
- this[LRU_LIST] = new Yallist();
112
- this[LENGTH] = 0;
113
- }
114
- dump() {
115
- return this[LRU_LIST].map((hit) => isStale(this, hit) ? false : {
116
- k: hit.key,
117
- v: hit.value,
118
- e: hit.now + (hit.maxAge || 0)
119
- }).toArray().filter((h) => h);
120
- }
121
- dumpLru() {
122
- return this[LRU_LIST];
123
- }
124
- set(key, value, maxAge) {
125
- maxAge = maxAge || this[MAX_AGE];
126
- if (maxAge && typeof maxAge !== "number")
127
- throw new TypeError("maxAge must be a number");
128
- const now = maxAge ? Date.now() : 0;
129
- const len = this[LENGTH_CALCULATOR](value, key);
130
- if (this[CACHE].has(key)) {
131
- if (len > this[MAX]) {
132
- del(this, this[CACHE].get(key));
133
- return false;
134
- }
135
- const node = this[CACHE].get(key);
136
- const item = node.value;
137
- if (this[DISPOSE]) {
138
- if (!this[NO_DISPOSE_ON_SET])
139
- this[DISPOSE](key, item.value);
140
- }
141
- item.now = now;
142
- item.maxAge = maxAge;
143
- item.value = value;
144
- this[LENGTH] += len - item.length;
145
- item.length = len;
146
- this.get(key);
147
- trim(this);
148
- return true;
149
- }
150
- const hit = new Entry(key, value, len, now, maxAge);
151
- if (hit.length > this[MAX]) {
152
- if (this[DISPOSE])
153
- this[DISPOSE](key, value);
154
- return false;
155
- }
156
- this[LENGTH] += hit.length;
157
- this[LRU_LIST].unshift(hit);
158
- this[CACHE].set(key, this[LRU_LIST].head);
159
- trim(this);
160
- return true;
161
- }
162
- has(key) {
163
- if (!this[CACHE].has(key))
164
- return false;
165
- const hit = this[CACHE].get(key).value;
166
- return !isStale(this, hit);
167
- }
168
- get(key) {
169
- return get(this, key, true);
170
- }
171
- peek(key) {
172
- return get(this, key, false);
173
- }
174
- pop() {
175
- const node = this[LRU_LIST].tail;
176
- if (!node)
177
- return null;
178
- del(this, node);
179
- return node.value;
180
- }
181
- del(key) {
182
- del(this, this[CACHE].get(key));
183
- }
184
- load(arr) {
185
- this.reset();
186
- const now = Date.now();
187
- for (let l = arr.length - 1; l >= 0; l--) {
188
- const hit = arr[l];
189
- const expiresAt = hit.e || 0;
190
- if (expiresAt === 0)
191
- this.set(hit.k, hit.v);
192
- else {
193
- const maxAge = expiresAt - now;
194
- if (maxAge > 0) {
195
- this.set(hit.k, hit.v, maxAge);
196
- }
197
- }
198
- }
199
- }
200
- prune() {
201
- this[CACHE].forEach((value, key) => get(this, key, false));
202
- }
203
- }
204
- const get = (self, key, doUse) => {
205
- const node = self[CACHE].get(key);
206
- if (node) {
207
- const hit = node.value;
208
- if (isStale(self, hit)) {
209
- del(self, node);
210
- if (!self[ALLOW_STALE])
211
- return void 0;
212
- } else {
213
- if (doUse) {
214
- if (self[UPDATE_AGE_ON_GET])
215
- node.value.now = Date.now();
216
- self[LRU_LIST].unshiftNode(node);
217
- }
218
- }
219
- return hit.value;
220
- }
221
- };
222
- const isStale = (self, hit) => {
223
- if (!hit || !hit.maxAge && !self[MAX_AGE])
224
- return false;
225
- const diff = Date.now() - hit.now;
226
- return hit.maxAge ? diff > hit.maxAge : self[MAX_AGE] && diff > self[MAX_AGE];
227
- };
228
- const trim = (self) => {
229
- if (self[LENGTH] > self[MAX]) {
230
- for (let walker = self[LRU_LIST].tail; self[LENGTH] > self[MAX] && walker !== null; ) {
231
- const prev = walker.prev;
232
- del(self, walker);
233
- walker = prev;
234
- }
235
- }
236
- };
237
- const del = (self, node) => {
238
- if (node) {
239
- const hit = node.value;
240
- if (self[DISPOSE])
241
- self[DISPOSE](hit.key, hit.value);
242
- self[LENGTH] -= hit.length;
243
- self[CACHE].delete(hit.key);
244
- self[LRU_LIST].removeNode(node);
245
- }
246
- };
247
- class Entry {
248
- constructor(key, value, length, now, maxAge) {
249
- this.key = key;
250
- this.value = value;
251
- this.length = length;
252
- this.now = now;
253
- this.maxAge = maxAge || 0;
254
- }
255
- }
256
- const forEachStep = (self, fn, node, thisp) => {
257
- let hit = node.value;
258
- if (isStale(self, hit)) {
259
- del(self, node);
260
- if (!self[ALLOW_STALE])
261
- hit = void 0;
262
- }
263
- if (hit)
264
- fn.call(thisp, hit.value, hit.key, self);
265
- };
266
- var lruCache = LRUCache;
267
- exports.lruCache = lruCache;
268
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../../node_modules/read-pkg/node_modules/lru-cache/index.js"],"sourcesContent":["'use strict'\n\n// A linked list to keep track of recently-used-ness\nconst Yallist = require('yallist')\n\nconst MAX = Symbol('max')\nconst LENGTH = Symbol('length')\nconst LENGTH_CALCULATOR = Symbol('lengthCalculator')\nconst ALLOW_STALE = Symbol('allowStale')\nconst MAX_AGE = Symbol('maxAge')\nconst DISPOSE = Symbol('dispose')\nconst NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet')\nconst LRU_LIST = Symbol('lruList')\nconst CACHE = Symbol('cache')\nconst UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet')\n\nconst naiveLength = () => 1\n\n// lruList is a yallist where the head is the youngest\n// item, and the tail is the oldest. the list contains the Hit\n// objects as the entries.\n// Each Hit object has a reference to its Yallist.Node. This\n// never changes.\n//\n// cache is a Map (or PseudoMap) that matches the keys to\n// the Yallist.Node object.\nclass LRUCache {\n constructor (options) {\n if (typeof options === 'number')\n options = { max: options }\n\n if (!options)\n options = {}\n\n if (options.max && (typeof options.max !== 'number' || options.max < 0))\n throw new TypeError('max must be a non-negative number')\n // Kind of weird to have a default max of Infinity, but oh well.\n const max = this[MAX] = options.max || Infinity\n\n const lc = options.length || naiveLength\n this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc\n this[ALLOW_STALE] = options.stale || false\n if (options.maxAge && typeof options.maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n this[MAX_AGE] = options.maxAge || 0\n this[DISPOSE] = options.dispose\n this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false\n this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false\n this.reset()\n }\n\n // resize the cache when the max changes.\n set max (mL) {\n if (typeof mL !== 'number' || mL < 0)\n throw new TypeError('max must be a non-negative number')\n\n this[MAX] = mL || Infinity\n trim(this)\n }\n get max () {\n return this[MAX]\n }\n\n set allowStale (allowStale) {\n this[ALLOW_STALE] = !!allowStale\n }\n get allowStale () {\n return this[ALLOW_STALE]\n }\n\n set maxAge (mA) {\n if (typeof mA !== 'number')\n throw new TypeError('maxAge must be a non-negative number')\n\n this[MAX_AGE] = mA\n trim(this)\n }\n get maxAge () {\n return this[MAX_AGE]\n }\n\n // resize the cache when the lengthCalculator changes.\n set lengthCalculator (lC) {\n if (typeof lC !== 'function')\n lC = naiveLength\n\n if (lC !== this[LENGTH_CALCULATOR]) {\n this[LENGTH_CALCULATOR] = lC\n this[LENGTH] = 0\n this[LRU_LIST].forEach(hit => {\n hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key)\n this[LENGTH] += hit.length\n })\n }\n trim(this)\n }\n get lengthCalculator () { return this[LENGTH_CALCULATOR] }\n\n get length () { return this[LENGTH] }\n get itemCount () { return this[LRU_LIST].length }\n\n rforEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].tail; walker !== null;) {\n const prev = walker.prev\n forEachStep(this, fn, walker, thisp)\n walker = prev\n }\n }\n\n forEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].head; walker !== null;) {\n const next = walker.next\n forEachStep(this, fn, walker, thisp)\n walker = next\n }\n }\n\n keys () {\n return this[LRU_LIST].toArray().map(k => k.key)\n }\n\n values () {\n return this[LRU_LIST].toArray().map(k => k.value)\n }\n\n reset () {\n if (this[DISPOSE] &&\n this[LRU_LIST] &&\n this[LRU_LIST].length) {\n this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value))\n }\n\n this[CACHE] = new Map() // hash of items by key\n this[LRU_LIST] = new Yallist() // list of items in order of use recency\n this[LENGTH] = 0 // length of items in the list\n }\n\n dump () {\n return this[LRU_LIST].map(hit =>\n isStale(this, hit) ? false : {\n k: hit.key,\n v: hit.value,\n e: hit.now + (hit.maxAge || 0)\n }).toArray().filter(h => h)\n }\n\n dumpLru () {\n return this[LRU_LIST]\n }\n\n set (key, value, maxAge) {\n maxAge = maxAge || this[MAX_AGE]\n\n if (maxAge && typeof maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n\n const now = maxAge ? Date.now() : 0\n const len = this[LENGTH_CALCULATOR](value, key)\n\n if (this[CACHE].has(key)) {\n if (len > this[MAX]) {\n del(this, this[CACHE].get(key))\n return false\n }\n\n const node = this[CACHE].get(key)\n const item = node.value\n\n // dispose of the old one before overwriting\n // split out into 2 ifs for better coverage tracking\n if (this[DISPOSE]) {\n if (!this[NO_DISPOSE_ON_SET])\n this[DISPOSE](key, item.value)\n }\n\n item.now = now\n item.maxAge = maxAge\n item.value = value\n this[LENGTH] += len - item.length\n item.length = len\n this.get(key)\n trim(this)\n return true\n }\n\n const hit = new Entry(key, value, len, now, maxAge)\n\n // oversized objects fall out of cache automatically.\n if (hit.length > this[MAX]) {\n if (this[DISPOSE])\n this[DISPOSE](key, value)\n\n return false\n }\n\n this[LENGTH] += hit.length\n this[LRU_LIST].unshift(hit)\n this[CACHE].set(key, this[LRU_LIST].head)\n trim(this)\n return true\n }\n\n has (key) {\n if (!this[CACHE].has(key)) return false\n const hit = this[CACHE].get(key).value\n return !isStale(this, hit)\n }\n\n get (key) {\n return get(this, key, true)\n }\n\n peek (key) {\n return get(this, key, false)\n }\n\n pop () {\n const node = this[LRU_LIST].tail\n if (!node)\n return null\n\n del(this, node)\n return node.value\n }\n\n del (key) {\n del(this, this[CACHE].get(key))\n }\n\n load (arr) {\n // reset the cache\n this.reset()\n\n const now = Date.now()\n // A previous serialized cache has the most recent items first\n for (let l = arr.length - 1; l >= 0; l--) {\n const hit = arr[l]\n const expiresAt = hit.e || 0\n if (expiresAt === 0)\n // the item was created without expiration in a non aged cache\n this.set(hit.k, hit.v)\n else {\n const maxAge = expiresAt - now\n // dont add already expired items\n if (maxAge > 0) {\n this.set(hit.k, hit.v, maxAge)\n }\n }\n }\n }\n\n prune () {\n this[CACHE].forEach((value, key) => get(this, key, false))\n }\n}\n\nconst get = (self, key, doUse) => {\n const node = self[CACHE].get(key)\n if (node) {\n const hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n return undefined\n } else {\n if (doUse) {\n if (self[UPDATE_AGE_ON_GET])\n node.value.now = Date.now()\n self[LRU_LIST].unshiftNode(node)\n }\n }\n return hit.value\n }\n}\n\nconst isStale = (self, hit) => {\n if (!hit || (!hit.maxAge && !self[MAX_AGE]))\n return false\n\n const diff = Date.now() - hit.now\n return hit.maxAge ? diff > hit.maxAge\n : self[MAX_AGE] && (diff > self[MAX_AGE])\n}\n\nconst trim = self => {\n if (self[LENGTH] > self[MAX]) {\n for (let walker = self[LRU_LIST].tail;\n self[LENGTH] > self[MAX] && walker !== null;) {\n // We know that we're about to delete this one, and also\n // what the next least recently used key will be, so just\n // go ahead and set it now.\n const prev = walker.prev\n del(self, walker)\n walker = prev\n }\n }\n}\n\nconst del = (self, node) => {\n if (node) {\n const hit = node.value\n if (self[DISPOSE])\n self[DISPOSE](hit.key, hit.value)\n\n self[LENGTH] -= hit.length\n self[CACHE].delete(hit.key)\n self[LRU_LIST].removeNode(node)\n }\n}\n\nclass Entry {\n constructor (key, value, length, now, maxAge) {\n this.key = key\n this.value = value\n this.length = length\n this.now = now\n this.maxAge = maxAge || 0\n }\n}\n\nconst forEachStep = (self, fn, node, thisp) => {\n let hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n hit = undefined\n }\n if (hit)\n fn.call(thisp, hit.value, hit.key, self)\n}\n\nmodule.exports = LRUCache\n"],"names":["require$$0"],"mappings":";;;AAGA,MAAM,UAAUA,QAAkB;AAElC,MAAM,MAAM,OAAO,KAAK;AACxB,MAAM,SAAS,OAAO,QAAQ;AAC9B,MAAM,oBAAoB,OAAO,kBAAkB;AACnD,MAAM,cAAc,OAAO,YAAY;AACvC,MAAM,UAAU,OAAO,QAAQ;AAC/B,MAAM,UAAU,OAAO,SAAS;AAChC,MAAM,oBAAoB,OAAO,gBAAgB;AACjD,MAAM,WAAW,OAAO,SAAS;AACjC,MAAM,QAAQ,OAAO,OAAO;AAC5B,MAAM,oBAAoB,OAAO,gBAAgB;AAEjD,MAAM,cAAc,MAAM;AAU1B,MAAM,SAAS;AAAA,EACb,YAAa,SAAS;AACpB,QAAI,OAAO,YAAY;AACrB,gBAAU,EAAE,KAAK,QAAS;AAE5B,QAAI,CAAC;AACH,gBAAU,CAAE;AAEd,QAAI,QAAQ,QAAQ,OAAO,QAAQ,QAAQ,YAAY,QAAQ,MAAM;AACnE,YAAM,IAAI,UAAU,mCAAmC;AAE7C,SAAK,GAAG,IAAI,QAA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