prismic-ts-codegen 0.1.28 → 0.1.29-pr.80.577ac11

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 (856) hide show
  1. package/bin/prismic-ts-codegen.js +1 -1
  2. package/dist/cli/configSchema.d.mts +39 -0
  3. package/dist/cli/configSchema.d.mts.map +1 -0
  4. package/dist/cli/configSchema.mjs +30 -0
  5. package/dist/cli/configSchema.mjs.map +1 -0
  6. package/dist/cli/constants.d.mts +5 -0
  7. package/dist/cli/constants.d.mts.map +1 -0
  8. package/dist/cli/constants.mjs +6 -0
  9. package/dist/cli/constants.mjs.map +1 -0
  10. package/dist/cli/loadConfig.mjs +20 -0
  11. package/dist/cli/loadConfig.mjs.map +1 -0
  12. package/dist/cli/loadLocaleIDs.mjs +18 -0
  13. package/dist/cli/loadLocaleIDs.mjs.map +1 -0
  14. package/dist/cli/loadModels.mjs +50 -0
  15. package/dist/cli/loadModels.mjs.map +1 -0
  16. package/dist/cli.d.mts +1 -0
  17. package/dist/cli.mjs +109 -0
  18. package/dist/cli.mjs.map +1 -0
  19. package/dist/constants.mjs +31 -0
  20. package/dist/constants.mjs.map +1 -0
  21. package/dist/detectTypesProvider.d.mts +17 -0
  22. package/dist/detectTypesProvider.d.mts.map +1 -0
  23. package/dist/detectTypesProvider.mjs +24 -0
  24. package/dist/detectTypesProvider.mjs.map +1 -0
  25. package/dist/generateTypes.d.mts +21 -0
  26. package/dist/generateTypes.d.mts.map +1 -0
  27. package/dist/generateTypes.mjs +142 -0
  28. package/dist/generateTypes.mjs.map +1 -0
  29. package/dist/index.d.mts +5 -0
  30. package/dist/index.mjs +4 -0
  31. package/dist/lib/addBlankLine.mjs +10 -0
  32. package/dist/lib/addBlankLine.mjs.map +1 -0
  33. package/dist/lib/addLine.mjs +9 -0
  34. package/dist/lib/addLine.mjs.map +1 -0
  35. package/dist/lib/addSection.mjs +9 -0
  36. package/dist/lib/addSection.mjs.map +1 -0
  37. package/dist/lib/addTrailingNewLine.mjs +9 -0
  38. package/dist/lib/addTrailingNewLine.mjs.map +1 -0
  39. package/dist/lib/buildCustomTypeDataType.mjs +50 -0
  40. package/dist/lib/buildCustomTypeDataType.mjs.map +1 -0
  41. package/dist/lib/buildCustomTypeType.mjs +62 -0
  42. package/dist/lib/buildCustomTypeType.mjs.map +1 -0
  43. package/dist/lib/buildFieldDocs.mjs +66 -0
  44. package/dist/lib/buildFieldDocs.mjs.map +1 -0
  45. package/dist/lib/buildFieldProperties.mjs +284 -0
  46. package/dist/lib/buildFieldProperties.mjs.map +1 -0
  47. package/dist/lib/buildSharedSliceType.mjs +151 -0
  48. package/dist/lib/buildSharedSliceType.mjs.map +1 -0
  49. package/dist/lib/buildTypeName.mjs +11 -0
  50. package/dist/lib/buildTypeName.mjs.map +1 -0
  51. package/dist/lib/buildUnion.mjs +8 -0
  52. package/dist/lib/buildUnion.mjs.map +1 -0
  53. package/dist/lib/checkHasUIDFIeld.mjs +8 -0
  54. package/dist/lib/checkHasUIDFIeld.mjs.map +1 -0
  55. package/dist/lib/getAPIIDPath.mjs +24 -0
  56. package/dist/lib/getAPIIDPath.mjs.map +1 -0
  57. package/dist/lib/getCacheKey.mjs +15 -0
  58. package/dist/lib/getCacheKey.mjs.map +1 -0
  59. package/dist/lib/getHumanReadableModelName.mjs +15 -0
  60. package/dist/lib/getHumanReadableModelName.mjs.map +1 -0
  61. package/dist/lib/getHumanReadablePath.mjs +16 -0
  62. package/dist/lib/getHumanReadablePath.mjs.map +1 -0
  63. package/dist/types.d.mts +14 -0
  64. package/dist/types.d.mts.map +1 -0
  65. package/package.json +31 -50
  66. package/src/cli/configSchema.ts +181 -50
  67. package/src/cli/constants.ts +1 -2
  68. package/src/cli/index.ts +14 -24
  69. package/src/cli/loadConfig.ts +5 -9
  70. package/src/cli/loadLocaleIDs.ts +1 -3
  71. package/src/cli/loadModels.ts +8 -10
  72. package/src/constants.ts +1 -2
  73. package/src/detectTypesProvider.ts +3 -8
  74. package/src/generateTypes.ts +3 -10
  75. package/src/index.ts +1 -2
  76. package/src/lib/addBlankLine.ts +1 -1
  77. package/src/lib/addLine.ts +1 -1
  78. package/src/lib/addSection.ts +1 -1
  79. package/src/lib/addTrailingNewLine.ts +1 -4
  80. package/src/lib/buildCustomTypeDataType.ts +1 -3
  81. package/src/lib/buildCustomTypeType.ts +4 -6
  82. package/src/lib/buildFieldDocs.ts +7 -23
  83. package/src/lib/buildFieldProperties.ts +25 -66
  84. package/src/lib/buildSharedSliceType.ts +8 -10
  85. package/src/lib/buildTypeName.ts +1 -1
  86. package/src/lib/buildUnion.ts +1 -1
  87. package/src/lib/getAPIIDPath.ts +2 -2
  88. package/src/lib/getCacheKey.ts +1 -3
  89. package/src/lib/getHumanReadableModelName.ts +2 -8
  90. package/src/lib/getHumanReadablePath.ts +2 -3
  91. package/src/types.ts +1 -5
  92. package/dist/_node_modules/@babel/code-frame/lib/index.cjs +0 -217
  93. package/dist/_node_modules/@babel/code-frame/lib/index.cjs.map +0 -1
  94. package/dist/_node_modules/@babel/code-frame/lib/index.js +0 -216
  95. package/dist/_node_modules/@babel/code-frame/lib/index.js.map +0 -1
  96. package/dist/_node_modules/@babel/helper-validator-identifier/lib/identifier.cjs +0 -82
  97. package/dist/_node_modules/@babel/helper-validator-identifier/lib/identifier.cjs.map +0 -1
  98. package/dist/_node_modules/@babel/helper-validator-identifier/lib/identifier.js +0 -83
  99. package/dist/_node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +0 -1
  100. package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.cjs +0 -62
  101. package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.cjs.map +0 -1
  102. package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.js +0 -61
  103. package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.js.map +0 -1
  104. package/dist/_node_modules/@babel/helper-validator-identifier/lib/keyword.cjs +0 -35
  105. package/dist/_node_modules/@babel/helper-validator-identifier/lib/keyword.cjs.map +0 -1
  106. package/dist/_node_modules/@babel/helper-validator-identifier/lib/keyword.js +0 -36
  107. package/dist/_node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +0 -1
  108. package/dist/_node_modules/@prismicio/client/dist/Client.cjs +0 -1231
  109. package/dist/_node_modules/@prismicio/client/dist/Client.cjs.map +0 -1
  110. package/dist/_node_modules/@prismicio/client/dist/Client.js +0 -1231
  111. package/dist/_node_modules/@prismicio/client/dist/Client.js.map +0 -1
  112. package/dist/_node_modules/@prismicio/client/dist/buildQueryURL.cjs +0 -66
  113. package/dist/_node_modules/@prismicio/client/dist/buildQueryURL.cjs.map +0 -1
  114. package/dist/_node_modules/@prismicio/client/dist/buildQueryURL.js +0 -66
  115. package/dist/_node_modules/@prismicio/client/dist/buildQueryURL.js.map +0 -1
  116. package/dist/_node_modules/@prismicio/client/dist/cookie.cjs +0 -5
  117. package/dist/_node_modules/@prismicio/client/dist/cookie.cjs.map +0 -1
  118. package/dist/_node_modules/@prismicio/client/dist/cookie.js +0 -5
  119. package/dist/_node_modules/@prismicio/client/dist/cookie.js.map +0 -1
  120. package/dist/_node_modules/@prismicio/client/dist/createClient.cjs +0 -6
  121. package/dist/_node_modules/@prismicio/client/dist/createClient.cjs.map +0 -1
  122. package/dist/_node_modules/@prismicio/client/dist/createClient.js +0 -6
  123. package/dist/_node_modules/@prismicio/client/dist/createClient.js.map +0 -1
  124. package/dist/_node_modules/@prismicio/client/dist/errors/ForbiddenError.cjs +0 -7
  125. package/dist/_node_modules/@prismicio/client/dist/errors/ForbiddenError.cjs.map +0 -1
  126. package/dist/_node_modules/@prismicio/client/dist/errors/ForbiddenError.js +0 -7
  127. package/dist/_node_modules/@prismicio/client/dist/errors/ForbiddenError.js.map +0 -1
  128. package/dist/_node_modules/@prismicio/client/dist/errors/NotFoundError.cjs +0 -7
  129. package/dist/_node_modules/@prismicio/client/dist/errors/NotFoundError.cjs.map +0 -1
  130. package/dist/_node_modules/@prismicio/client/dist/errors/NotFoundError.js +0 -7
  131. package/dist/_node_modules/@prismicio/client/dist/errors/NotFoundError.js.map +0 -1
  132. package/dist/_node_modules/@prismicio/client/dist/errors/ParsingError.cjs +0 -7
  133. package/dist/_node_modules/@prismicio/client/dist/errors/ParsingError.cjs.map +0 -1
  134. package/dist/_node_modules/@prismicio/client/dist/errors/ParsingError.js +0 -7
  135. package/dist/_node_modules/@prismicio/client/dist/errors/ParsingError.js.map +0 -1
  136. package/dist/_node_modules/@prismicio/client/dist/errors/PreviewTokenExpired.cjs +0 -7
  137. package/dist/_node_modules/@prismicio/client/dist/errors/PreviewTokenExpired.cjs.map +0 -1
  138. package/dist/_node_modules/@prismicio/client/dist/errors/PreviewTokenExpired.js +0 -7
  139. package/dist/_node_modules/@prismicio/client/dist/errors/PreviewTokenExpired.js.map +0 -1
  140. package/dist/_node_modules/@prismicio/client/dist/errors/PrismicError.cjs +0 -16
  141. package/dist/_node_modules/@prismicio/client/dist/errors/PrismicError.cjs.map +0 -1
  142. package/dist/_node_modules/@prismicio/client/dist/errors/PrismicError.js +0 -16
  143. package/dist/_node_modules/@prismicio/client/dist/errors/PrismicError.js.map +0 -1
  144. package/dist/_node_modules/@prismicio/client/dist/errors/RefExpiredError.cjs +0 -7
  145. package/dist/_node_modules/@prismicio/client/dist/errors/RefExpiredError.cjs.map +0 -1
  146. package/dist/_node_modules/@prismicio/client/dist/errors/RefExpiredError.js +0 -7
  147. package/dist/_node_modules/@prismicio/client/dist/errors/RefExpiredError.js.map +0 -1
  148. package/dist/_node_modules/@prismicio/client/dist/errors/RefNotFoundError.cjs +0 -7
  149. package/dist/_node_modules/@prismicio/client/dist/errors/RefNotFoundError.cjs.map +0 -1
  150. package/dist/_node_modules/@prismicio/client/dist/errors/RefNotFoundError.js +0 -7
  151. package/dist/_node_modules/@prismicio/client/dist/errors/RefNotFoundError.js.map +0 -1
  152. package/dist/_node_modules/@prismicio/client/dist/errors/RepositoryNotFoundError.cjs +0 -7
  153. package/dist/_node_modules/@prismicio/client/dist/errors/RepositoryNotFoundError.cjs.map +0 -1
  154. package/dist/_node_modules/@prismicio/client/dist/errors/RepositoryNotFoundError.js +0 -7
  155. package/dist/_node_modules/@prismicio/client/dist/errors/RepositoryNotFoundError.js.map +0 -1
  156. package/dist/_node_modules/@prismicio/client/dist/filter.cjs +0 -247
  157. package/dist/_node_modules/@prismicio/client/dist/filter.cjs.map +0 -1
  158. package/dist/_node_modules/@prismicio/client/dist/filter.js +0 -247
  159. package/dist/_node_modules/@prismicio/client/dist/filter.js.map +0 -1
  160. package/dist/_node_modules/@prismicio/client/dist/getRepositoryEndpoint.cjs +0 -13
  161. package/dist/_node_modules/@prismicio/client/dist/getRepositoryEndpoint.cjs.map +0 -1
  162. package/dist/_node_modules/@prismicio/client/dist/getRepositoryEndpoint.js +0 -13
  163. package/dist/_node_modules/@prismicio/client/dist/getRepositoryEndpoint.js.map +0 -1
  164. package/dist/_node_modules/@prismicio/client/dist/getRepositoryName.cjs +0 -17
  165. package/dist/_node_modules/@prismicio/client/dist/getRepositoryName.cjs.map +0 -1
  166. package/dist/_node_modules/@prismicio/client/dist/getRepositoryName.js +0 -17
  167. package/dist/_node_modules/@prismicio/client/dist/getRepositoryName.js.map +0 -1
  168. package/dist/_node_modules/@prismicio/client/dist/helpers/asLink.cjs +0 -47
  169. package/dist/_node_modules/@prismicio/client/dist/helpers/asLink.cjs.map +0 -1
  170. package/dist/_node_modules/@prismicio/client/dist/helpers/asLink.js +0 -47
  171. package/dist/_node_modules/@prismicio/client/dist/helpers/asLink.js.map +0 -1
  172. package/dist/_node_modules/@prismicio/client/dist/helpers/documentToLinkField.cjs +0 -27
  173. package/dist/_node_modules/@prismicio/client/dist/helpers/documentToLinkField.cjs.map +0 -1
  174. package/dist/_node_modules/@prismicio/client/dist/helpers/documentToLinkField.js +0 -27
  175. package/dist/_node_modules/@prismicio/client/dist/helpers/documentToLinkField.js.map +0 -1
  176. package/dist/_node_modules/@prismicio/client/dist/isRepositoryEndpoint.cjs +0 -12
  177. package/dist/_node_modules/@prismicio/client/dist/isRepositoryEndpoint.cjs.map +0 -1
  178. package/dist/_node_modules/@prismicio/client/dist/isRepositoryEndpoint.js +0 -12
  179. package/dist/_node_modules/@prismicio/client/dist/isRepositoryEndpoint.js.map +0 -1
  180. package/dist/_node_modules/@prismicio/client/dist/isRepositoryName.cjs +0 -7
  181. package/dist/_node_modules/@prismicio/client/dist/isRepositoryName.cjs.map +0 -1
  182. package/dist/_node_modules/@prismicio/client/dist/isRepositoryName.js +0 -7
  183. package/dist/_node_modules/@prismicio/client/dist/isRepositoryName.js.map +0 -1
  184. package/dist/_node_modules/@prismicio/client/dist/lib/appendFilters.cjs +0 -11
  185. package/dist/_node_modules/@prismicio/client/dist/lib/appendFilters.cjs.map +0 -1
  186. package/dist/_node_modules/@prismicio/client/dist/lib/appendFilters.js +0 -11
  187. package/dist/_node_modules/@prismicio/client/dist/lib/appendFilters.js.map +0 -1
  188. package/dist/_node_modules/@prismicio/client/dist/lib/castArray.cjs +0 -7
  189. package/dist/_node_modules/@prismicio/client/dist/lib/castArray.cjs.map +0 -1
  190. package/dist/_node_modules/@prismicio/client/dist/lib/castArray.js +0 -7
  191. package/dist/_node_modules/@prismicio/client/dist/lib/castArray.js.map +0 -1
  192. package/dist/_node_modules/@prismicio/client/dist/lib/castThunk.cjs +0 -7
  193. package/dist/_node_modules/@prismicio/client/dist/lib/castThunk.cjs.map +0 -1
  194. package/dist/_node_modules/@prismicio/client/dist/lib/castThunk.js +0 -7
  195. package/dist/_node_modules/@prismicio/client/dist/lib/castThunk.js.map +0 -1
  196. package/dist/_node_modules/@prismicio/client/dist/lib/devMsg.cjs +0 -8
  197. package/dist/_node_modules/@prismicio/client/dist/lib/devMsg.cjs.map +0 -1
  198. package/dist/_node_modules/@prismicio/client/dist/lib/devMsg.js +0 -8
  199. package/dist/_node_modules/@prismicio/client/dist/lib/devMsg.js.map +0 -1
  200. package/dist/_node_modules/@prismicio/client/dist/lib/everyTagFilter.cjs +0 -9
  201. package/dist/_node_modules/@prismicio/client/dist/lib/everyTagFilter.cjs.map +0 -1
  202. package/dist/_node_modules/@prismicio/client/dist/lib/everyTagFilter.js +0 -9
  203. package/dist/_node_modules/@prismicio/client/dist/lib/everyTagFilter.js.map +0 -1
  204. package/dist/_node_modules/@prismicio/client/dist/lib/findMasterRef.cjs +0 -8
  205. package/dist/_node_modules/@prismicio/client/dist/lib/findMasterRef.cjs.map +0 -1
  206. package/dist/_node_modules/@prismicio/client/dist/lib/findMasterRef.js +0 -8
  207. package/dist/_node_modules/@prismicio/client/dist/lib/findMasterRef.js.map +0 -1
  208. package/dist/_node_modules/@prismicio/client/dist/lib/findRef.cjs +0 -12
  209. package/dist/_node_modules/@prismicio/client/dist/lib/findRef.cjs.map +0 -1
  210. package/dist/_node_modules/@prismicio/client/dist/lib/findRef.js +0 -12
  211. package/dist/_node_modules/@prismicio/client/dist/lib/findRef.js.map +0 -1
  212. package/dist/_node_modules/@prismicio/client/dist/lib/findRefByID.cjs +0 -8
  213. package/dist/_node_modules/@prismicio/client/dist/lib/findRefByID.cjs.map +0 -1
  214. package/dist/_node_modules/@prismicio/client/dist/lib/findRefByID.js +0 -8
  215. package/dist/_node_modules/@prismicio/client/dist/lib/findRefByID.js.map +0 -1
  216. package/dist/_node_modules/@prismicio/client/dist/lib/findRefByLabel.cjs +0 -8
  217. package/dist/_node_modules/@prismicio/client/dist/lib/findRefByLabel.cjs.map +0 -1
  218. package/dist/_node_modules/@prismicio/client/dist/lib/findRefByLabel.js +0 -8
  219. package/dist/_node_modules/@prismicio/client/dist/lib/findRefByLabel.js.map +0 -1
  220. package/dist/_node_modules/@prismicio/client/dist/lib/getPreviewCookie.cjs +0 -21
  221. package/dist/_node_modules/@prismicio/client/dist/lib/getPreviewCookie.cjs.map +0 -1
  222. package/dist/_node_modules/@prismicio/client/dist/lib/getPreviewCookie.js +0 -21
  223. package/dist/_node_modules/@prismicio/client/dist/lib/getPreviewCookie.js.map +0 -1
  224. package/dist/_node_modules/@prismicio/client/dist/lib/minifyGraphQLQuery.cjs +0 -7
  225. package/dist/_node_modules/@prismicio/client/dist/lib/minifyGraphQLQuery.cjs.map +0 -1
  226. package/dist/_node_modules/@prismicio/client/dist/lib/minifyGraphQLQuery.js +0 -7
  227. package/dist/_node_modules/@prismicio/client/dist/lib/minifyGraphQLQuery.js.map +0 -1
  228. package/dist/_node_modules/@prismicio/client/dist/lib/pLimit.cjs +0 -49
  229. package/dist/_node_modules/@prismicio/client/dist/lib/pLimit.cjs.map +0 -1
  230. package/dist/_node_modules/@prismicio/client/dist/lib/pLimit.js +0 -49
  231. package/dist/_node_modules/@prismicio/client/dist/lib/pLimit.js.map +0 -1
  232. package/dist/_node_modules/@prismicio/client/dist/lib/request.cjs +0 -43
  233. package/dist/_node_modules/@prismicio/client/dist/lib/request.cjs.map +0 -1
  234. package/dist/_node_modules/@prismicio/client/dist/lib/request.js +0 -43
  235. package/dist/_node_modules/@prismicio/client/dist/lib/request.js.map +0 -1
  236. package/dist/_node_modules/@prismicio/client/dist/lib/someTagsFilter.cjs +0 -9
  237. package/dist/_node_modules/@prismicio/client/dist/lib/someTagsFilter.cjs.map +0 -1
  238. package/dist/_node_modules/@prismicio/client/dist/lib/someTagsFilter.js +0 -9
  239. package/dist/_node_modules/@prismicio/client/dist/lib/someTagsFilter.js.map +0 -1
  240. package/dist/_node_modules/@prismicio/client/dist/lib/throttledLog.cjs +0 -17
  241. package/dist/_node_modules/@prismicio/client/dist/lib/throttledLog.cjs.map +0 -1
  242. package/dist/_node_modules/@prismicio/client/dist/lib/throttledLog.js +0 -17
  243. package/dist/_node_modules/@prismicio/client/dist/lib/throttledLog.js.map +0 -1
  244. package/dist/_node_modules/@prismicio/client/dist/lib/typeFilter.cjs +0 -8
  245. package/dist/_node_modules/@prismicio/client/dist/lib/typeFilter.cjs.map +0 -1
  246. package/dist/_node_modules/@prismicio/client/dist/lib/typeFilter.js +0 -8
  247. package/dist/_node_modules/@prismicio/client/dist/lib/typeFilter.js.map +0 -1
  248. package/dist/_node_modules/@prismicio/client/dist/package.json.cjs +0 -5
  249. package/dist/_node_modules/@prismicio/client/dist/package.json.cjs.map +0 -1
  250. package/dist/_node_modules/@prismicio/client/dist/package.json.js +0 -5
  251. package/dist/_node_modules/@prismicio/client/dist/package.json.js.map +0 -1
  252. package/dist/_node_modules/@prismicio/client/dist/types/model/types.cjs +0 -39
  253. package/dist/_node_modules/@prismicio/client/dist/types/model/types.cjs.map +0 -1
  254. package/dist/_node_modules/@prismicio/client/dist/types/model/types.js +0 -39
  255. package/dist/_node_modules/@prismicio/client/dist/types/model/types.js.map +0 -1
  256. package/dist/_node_modules/@prismicio/client/dist/types/value/link.cjs +0 -10
  257. package/dist/_node_modules/@prismicio/client/dist/types/value/link.cjs.map +0 -1
  258. package/dist/_node_modules/@prismicio/client/dist/types/value/link.js +0 -10
  259. package/dist/_node_modules/@prismicio/client/dist/types/value/link.js.map +0 -1
  260. package/dist/_node_modules/arrify/index.cjs +0 -10
  261. package/dist/_node_modules/arrify/index.cjs.map +0 -1
  262. package/dist/_node_modules/arrify/index.js +0 -10
  263. package/dist/_node_modules/arrify/index.js.map +0 -1
  264. package/dist/_node_modules/camelcase/index.cjs +0 -83
  265. package/dist/_node_modules/camelcase/index.cjs.map +0 -1
  266. package/dist/_node_modules/camelcase/index.js +0 -84
  267. package/dist/_node_modules/camelcase/index.js.map +0 -1
  268. package/dist/_node_modules/camelcase-keys/index.cjs +0 -55
  269. package/dist/_node_modules/camelcase-keys/index.cjs.map +0 -1
  270. package/dist/_node_modules/camelcase-keys/index.js +0 -56
  271. package/dist/_node_modules/camelcase-keys/index.js.map +0 -1
  272. package/dist/_node_modules/data-uri-to-buffer/dist/index.cjs +0 -41
  273. package/dist/_node_modules/data-uri-to-buffer/dist/index.cjs.map +0 -1
  274. package/dist/_node_modules/data-uri-to-buffer/dist/index.js +0 -41
  275. package/dist/_node_modules/data-uri-to-buffer/dist/index.js.map +0 -1
  276. package/dist/_node_modules/decamelize/index.cjs +0 -38
  277. package/dist/_node_modules/decamelize/index.cjs.map +0 -1
  278. package/dist/_node_modules/decamelize/index.js +0 -39
  279. package/dist/_node_modules/decamelize/index.js.map +0 -1
  280. package/dist/_node_modules/decamelize-keys/index.cjs +0 -50
  281. package/dist/_node_modules/decamelize-keys/index.cjs.map +0 -1
  282. package/dist/_node_modules/decamelize-keys/index.js +0 -51
  283. package/dist/_node_modules/decamelize-keys/index.js.map +0 -1
  284. package/dist/_node_modules/error-ex/index.cjs +0 -109
  285. package/dist/_node_modules/error-ex/index.cjs.map +0 -1
  286. package/dist/_node_modules/error-ex/index.js +0 -109
  287. package/dist/_node_modules/error-ex/index.js.map +0 -1
  288. package/dist/_node_modules/fetch-blob/file.cjs +0 -61
  289. package/dist/_node_modules/fetch-blob/file.cjs.map +0 -1
  290. package/dist/_node_modules/fetch-blob/file.js +0 -61
  291. package/dist/_node_modules/fetch-blob/file.js.map +0 -1
  292. package/dist/_node_modules/fetch-blob/index.cjs +0 -223
  293. package/dist/_node_modules/fetch-blob/index.cjs.map +0 -1
  294. package/dist/_node_modules/fetch-blob/index.js +0 -223
  295. package/dist/_node_modules/fetch-blob/index.js.map +0 -1
  296. package/dist/_node_modules/fetch-blob/streams.cjs +0 -43
  297. package/dist/_node_modules/fetch-blob/streams.cjs.map +0 -1
  298. package/dist/_node_modules/fetch-blob/streams.js +0 -42
  299. package/dist/_node_modules/fetch-blob/streams.js.map +0 -1
  300. package/dist/_node_modules/formdata-polyfill/esm.min.cjs +0 -116
  301. package/dist/_node_modules/formdata-polyfill/esm.min.cjs.map +0 -1
  302. package/dist/_node_modules/formdata-polyfill/esm.min.js +0 -116
  303. package/dist/_node_modules/formdata-polyfill/esm.min.js.map +0 -1
  304. package/dist/_node_modules/function-bind/implementation.cjs +0 -47
  305. package/dist/_node_modules/function-bind/implementation.cjs.map +0 -1
  306. package/dist/_node_modules/function-bind/implementation.js +0 -47
  307. package/dist/_node_modules/function-bind/implementation.js.map +0 -1
  308. package/dist/_node_modules/function-bind/index.cjs +0 -7
  309. package/dist/_node_modules/function-bind/index.cjs.map +0 -1
  310. package/dist/_node_modules/function-bind/index.js +0 -7
  311. package/dist/_node_modules/function-bind/index.js.map +0 -1
  312. package/dist/_node_modules/hard-rejection/index.cjs +0 -25
  313. package/dist/_node_modules/hard-rejection/index.cjs.map +0 -1
  314. package/dist/_node_modules/hard-rejection/index.js +0 -26
  315. package/dist/_node_modules/hard-rejection/index.js.map +0 -1
  316. package/dist/_node_modules/has/src/index.cjs +0 -7
  317. package/dist/_node_modules/has/src/index.cjs.map +0 -1
  318. package/dist/_node_modules/has/src/index.js +0 -7
  319. package/dist/_node_modules/has/src/index.js.map +0 -1
  320. package/dist/_node_modules/hosted-git-info/lib/from-url.cjs +0 -93
  321. package/dist/_node_modules/hosted-git-info/lib/from-url.cjs.map +0 -1
  322. package/dist/_node_modules/hosted-git-info/lib/from-url.js +0 -93
  323. package/dist/_node_modules/hosted-git-info/lib/from-url.js.map +0 -1
  324. package/dist/_node_modules/hosted-git-info/lib/hosts.cjs +0 -164
  325. package/dist/_node_modules/hosted-git-info/lib/hosts.cjs.map +0 -1
  326. package/dist/_node_modules/hosted-git-info/lib/hosts.js +0 -164
  327. package/dist/_node_modules/hosted-git-info/lib/hosts.js.map +0 -1
  328. package/dist/_node_modules/hosted-git-info/lib/index.cjs +0 -168
  329. package/dist/_node_modules/hosted-git-info/lib/index.cjs.map +0 -1
  330. package/dist/_node_modules/hosted-git-info/lib/index.js +0 -168
  331. package/dist/_node_modules/hosted-git-info/lib/index.js.map +0 -1
  332. package/dist/_node_modules/hosted-git-info/lib/parse-url.cjs +0 -51
  333. package/dist/_node_modules/hosted-git-info/lib/parse-url.cjs.map +0 -1
  334. package/dist/_node_modules/hosted-git-info/lib/parse-url.js +0 -51
  335. package/dist/_node_modules/hosted-git-info/lib/parse-url.js.map +0 -1
  336. package/dist/_node_modules/indent-string/index.cjs +0 -34
  337. package/dist/_node_modules/indent-string/index.cjs.map +0 -1
  338. package/dist/_node_modules/indent-string/index.js +0 -35
  339. package/dist/_node_modules/indent-string/index.js.map +0 -1
  340. package/dist/_node_modules/is-arrayish/index.cjs +0 -10
  341. package/dist/_node_modules/is-arrayish/index.cjs.map +0 -1
  342. package/dist/_node_modules/is-arrayish/index.js +0 -10
  343. package/dist/_node_modules/is-arrayish/index.js.map +0 -1
  344. package/dist/_node_modules/is-core-module/core.json.cjs +0 -496
  345. package/dist/_node_modules/is-core-module/core.json.cjs.map +0 -1
  346. package/dist/_node_modules/is-core-module/core.json.js +0 -496
  347. package/dist/_node_modules/is-core-module/core.json.js.map +0 -1
  348. package/dist/_node_modules/is-core-module/index.cjs +0 -62
  349. package/dist/_node_modules/is-core-module/index.cjs.map +0 -1
  350. package/dist/_node_modules/is-core-module/index.js +0 -62
  351. package/dist/_node_modules/is-core-module/index.js.map +0 -1
  352. package/dist/_node_modules/is-plain-obj/index.cjs +0 -9
  353. package/dist/_node_modules/is-plain-obj/index.cjs.map +0 -1
  354. package/dist/_node_modules/is-plain-obj/index.js +0 -9
  355. package/dist/_node_modules/is-plain-obj/index.js.map +0 -1
  356. package/dist/_node_modules/js-tokens/index.cjs +0 -27
  357. package/dist/_node_modules/js-tokens/index.cjs.map +0 -1
  358. package/dist/_node_modules/js-tokens/index.js +0 -26
  359. package/dist/_node_modules/js-tokens/index.js.map +0 -1
  360. package/dist/_node_modules/json-parse-even-better-errors/index.cjs +0 -90
  361. package/dist/_node_modules/json-parse-even-better-errors/index.cjs.map +0 -1
  362. package/dist/_node_modules/json-parse-even-better-errors/index.js +0 -90
  363. package/dist/_node_modules/json-parse-even-better-errors/index.js.map +0 -1
  364. package/dist/_node_modules/kind-of/index.cjs +0 -129
  365. package/dist/_node_modules/kind-of/index.cjs.map +0 -1
  366. package/dist/_node_modules/kind-of/index.js +0 -129
  367. package/dist/_node_modules/kind-of/index.js.map +0 -1
  368. package/dist/_node_modules/lines-and-columns/build/index.cjs +0 -67
  369. package/dist/_node_modules/lines-and-columns/build/index.cjs.map +0 -1
  370. package/dist/_node_modules/lines-and-columns/build/index.js +0 -66
  371. package/dist/_node_modules/lines-and-columns/build/index.js.map +0 -1
  372. package/dist/_node_modules/lru-cache/index.cjs +0 -1015
  373. package/dist/_node_modules/lru-cache/index.cjs.map +0 -1
  374. package/dist/_node_modules/lru-cache/index.js +0 -1015
  375. package/dist/_node_modules/lru-cache/index.js.map +0 -1
  376. package/dist/_node_modules/map-obj/index.cjs +0 -49
  377. package/dist/_node_modules/map-obj/index.cjs.map +0 -1
  378. package/dist/_node_modules/map-obj/index.js +0 -50
  379. package/dist/_node_modules/map-obj/index.js.map +0 -1
  380. package/dist/_node_modules/meow/source/index.cjs +0 -88
  381. package/dist/_node_modules/meow/source/index.cjs.map +0 -1
  382. package/dist/_node_modules/meow/source/index.js +0 -89
  383. package/dist/_node_modules/meow/source/index.js.map +0 -1
  384. package/dist/_node_modules/meow/source/options.cjs +0 -83
  385. package/dist/_node_modules/meow/source/options.cjs.map +0 -1
  386. package/dist/_node_modules/meow/source/options.js +0 -83
  387. package/dist/_node_modules/meow/source/options.js.map +0 -1
  388. package/dist/_node_modules/meow/source/parser.cjs +0 -61
  389. package/dist/_node_modules/meow/source/parser.cjs.map +0 -1
  390. package/dist/_node_modules/meow/source/parser.js +0 -61
  391. package/dist/_node_modules/meow/source/parser.js.map +0 -1
  392. package/dist/_node_modules/meow/source/utils.cjs +0 -8
  393. package/dist/_node_modules/meow/source/utils.cjs.map +0 -1
  394. package/dist/_node_modules/meow/source/utils.js +0 -8
  395. package/dist/_node_modules/meow/source/utils.js.map +0 -1
  396. package/dist/_node_modules/meow/source/validate.cjs +0 -102
  397. package/dist/_node_modules/meow/source/validate.cjs.map +0 -1
  398. package/dist/_node_modules/meow/source/validate.js +0 -102
  399. package/dist/_node_modules/meow/source/validate.js.map +0 -1
  400. package/dist/_node_modules/min-indent/index.cjs +0 -12
  401. package/dist/_node_modules/min-indent/index.cjs.map +0 -1
  402. package/dist/_node_modules/min-indent/index.js +0 -13
  403. package/dist/_node_modules/min-indent/index.js.map +0 -1
  404. package/dist/_node_modules/minimist-options/index.cjs +0 -94
  405. package/dist/_node_modules/minimist-options/index.cjs.map +0 -1
  406. package/dist/_node_modules/minimist-options/index.js +0 -95
  407. package/dist/_node_modules/minimist-options/index.js.map +0 -1
  408. package/dist/_node_modules/node-domexception/index.cjs +0 -11
  409. package/dist/_node_modules/node-domexception/index.cjs.map +0 -1
  410. package/dist/_node_modules/node-domexception/index.js +0 -10
  411. package/dist/_node_modules/node-domexception/index.js.map +0 -1
  412. package/dist/_node_modules/node-fetch/src/body.cjs +0 -262
  413. package/dist/_node_modules/node-fetch/src/body.cjs.map +0 -1
  414. package/dist/_node_modules/node-fetch/src/body.js +0 -262
  415. package/dist/_node_modules/node-fetch/src/body.js.map +0 -1
  416. package/dist/_node_modules/node-fetch/src/errors/abort-error.cjs +0 -10
  417. package/dist/_node_modules/node-fetch/src/errors/abort-error.cjs.map +0 -1
  418. package/dist/_node_modules/node-fetch/src/errors/abort-error.js +0 -10
  419. package/dist/_node_modules/node-fetch/src/errors/abort-error.js.map +0 -1
  420. package/dist/_node_modules/node-fetch/src/errors/base.cjs +0 -17
  421. package/dist/_node_modules/node-fetch/src/errors/base.cjs.map +0 -1
  422. package/dist/_node_modules/node-fetch/src/errors/base.js +0 -17
  423. package/dist/_node_modules/node-fetch/src/errors/base.js.map +0 -1
  424. package/dist/_node_modules/node-fetch/src/errors/fetch-error.cjs +0 -19
  425. package/dist/_node_modules/node-fetch/src/errors/fetch-error.cjs.map +0 -1
  426. package/dist/_node_modules/node-fetch/src/errors/fetch-error.js +0 -19
  427. package/dist/_node_modules/node-fetch/src/errors/fetch-error.js.map +0 -1
  428. package/dist/_node_modules/node-fetch/src/headers.cjs +0 -190
  429. package/dist/_node_modules/node-fetch/src/headers.cjs.map +0 -1
  430. package/dist/_node_modules/node-fetch/src/headers.js +0 -190
  431. package/dist/_node_modules/node-fetch/src/headers.js.map +0 -1
  432. package/dist/_node_modules/node-fetch/src/index.cjs +0 -292
  433. package/dist/_node_modules/node-fetch/src/index.cjs.map +0 -1
  434. package/dist/_node_modules/node-fetch/src/index.js +0 -292
  435. package/dist/_node_modules/node-fetch/src/index.js.map +0 -1
  436. package/dist/_node_modules/node-fetch/src/request.cjs +0 -203
  437. package/dist/_node_modules/node-fetch/src/request.cjs.map +0 -1
  438. package/dist/_node_modules/node-fetch/src/request.js +0 -203
  439. package/dist/_node_modules/node-fetch/src/request.js.map +0 -1
  440. package/dist/_node_modules/node-fetch/src/response.cjs +0 -122
  441. package/dist/_node_modules/node-fetch/src/response.cjs.map +0 -1
  442. package/dist/_node_modules/node-fetch/src/response.js +0 -123
  443. package/dist/_node_modules/node-fetch/src/response.js.map +0 -1
  444. package/dist/_node_modules/node-fetch/src/utils/get-search.cjs +0 -12
  445. package/dist/_node_modules/node-fetch/src/utils/get-search.cjs.map +0 -1
  446. package/dist/_node_modules/node-fetch/src/utils/get-search.js +0 -12
  447. package/dist/_node_modules/node-fetch/src/utils/get-search.js.map +0 -1
  448. package/dist/_node_modules/node-fetch/src/utils/is-redirect.cjs +0 -8
  449. package/dist/_node_modules/node-fetch/src/utils/is-redirect.cjs.map +0 -1
  450. package/dist/_node_modules/node-fetch/src/utils/is-redirect.js +0 -8
  451. package/dist/_node_modules/node-fetch/src/utils/is-redirect.js.map +0 -1
  452. package/dist/_node_modules/node-fetch/src/utils/is.cjs +0 -28
  453. package/dist/_node_modules/node-fetch/src/utils/is.cjs.map +0 -1
  454. package/dist/_node_modules/node-fetch/src/utils/is.js +0 -28
  455. package/dist/_node_modules/node-fetch/src/utils/is.js.map +0 -1
  456. package/dist/_node_modules/node-fetch/src/utils/multipart-parser.cjs +0 -356
  457. package/dist/_node_modules/node-fetch/src/utils/multipart-parser.cjs.map +0 -1
  458. package/dist/_node_modules/node-fetch/src/utils/multipart-parser.js +0 -356
  459. package/dist/_node_modules/node-fetch/src/utils/multipart-parser.js.map +0 -1
  460. package/dist/_node_modules/node-fetch/src/utils/referrer.cjs +0 -149
  461. package/dist/_node_modules/node-fetch/src/utils/referrer.cjs.map +0 -1
  462. package/dist/_node_modules/node-fetch/src/utils/referrer.js +0 -149
  463. package/dist/_node_modules/node-fetch/src/utils/referrer.js.map +0 -1
  464. package/dist/_node_modules/normalize-package-data/lib/extract_description.cjs +0 -24
  465. package/dist/_node_modules/normalize-package-data/lib/extract_description.cjs.map +0 -1
  466. package/dist/_node_modules/normalize-package-data/lib/extract_description.js +0 -24
  467. package/dist/_node_modules/normalize-package-data/lib/extract_description.js.map +0 -1
  468. package/dist/_node_modules/normalize-package-data/lib/fixer.cjs +0 -438
  469. package/dist/_node_modules/normalize-package-data/lib/fixer.cjs.map +0 -1
  470. package/dist/_node_modules/normalize-package-data/lib/fixer.js +0 -438
  471. package/dist/_node_modules/normalize-package-data/lib/fixer.js.map +0 -1
  472. package/dist/_node_modules/normalize-package-data/lib/make_warning.cjs +0 -26
  473. package/dist/_node_modules/normalize-package-data/lib/make_warning.cjs.map +0 -1
  474. package/dist/_node_modules/normalize-package-data/lib/make_warning.js +0 -26
  475. package/dist/_node_modules/normalize-package-data/lib/make_warning.js.map +0 -1
  476. package/dist/_node_modules/normalize-package-data/lib/normalize.cjs +0 -58
  477. package/dist/_node_modules/normalize-package-data/lib/normalize.cjs.map +0 -1
  478. package/dist/_node_modules/normalize-package-data/lib/normalize.js +0 -59
  479. package/dist/_node_modules/normalize-package-data/lib/normalize.js.map +0 -1
  480. package/dist/_node_modules/normalize-package-data/lib/typos.json.cjs +0 -41
  481. package/dist/_node_modules/normalize-package-data/lib/typos.json.cjs.map +0 -1
  482. package/dist/_node_modules/normalize-package-data/lib/typos.json.js +0 -41
  483. package/dist/_node_modules/normalize-package-data/lib/typos.json.js.map +0 -1
  484. package/dist/_node_modules/normalize-package-data/lib/warning_messages.json.cjs +0 -90
  485. package/dist/_node_modules/normalize-package-data/lib/warning_messages.json.cjs.map +0 -1
  486. package/dist/_node_modules/normalize-package-data/lib/warning_messages.json.js +0 -90
  487. package/dist/_node_modules/normalize-package-data/lib/warning_messages.json.js.map +0 -1
  488. package/dist/_node_modules/parse-json/index.cjs +0 -54
  489. package/dist/_node_modules/parse-json/index.cjs.map +0 -1
  490. package/dist/_node_modules/parse-json/index.js +0 -55
  491. package/dist/_node_modules/parse-json/index.js.map +0 -1
  492. package/dist/_node_modules/picocolors/picocolors.browser.cjs +0 -12
  493. package/dist/_node_modules/picocolors/picocolors.browser.cjs.map +0 -1
  494. package/dist/_node_modules/picocolors/picocolors.browser.js +0 -12
  495. package/dist/_node_modules/picocolors/picocolors.browser.js.map +0 -1
  496. package/dist/_node_modules/quick-lru/index.cjs +0 -235
  497. package/dist/_node_modules/quick-lru/index.cjs.map +0 -1
  498. package/dist/_node_modules/quick-lru/index.js +0 -236
  499. package/dist/_node_modules/quick-lru/index.js.map +0 -1
  500. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.cjs +0 -159
  501. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.cjs.map +0 -1
  502. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.js +0 -159
  503. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.js.map +0 -1
  504. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.cjs +0 -88
  505. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.cjs.map +0 -1
  506. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.js +0 -88
  507. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.js.map +0 -1
  508. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/index.cjs +0 -180
  509. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/index.cjs.map +0 -1
  510. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/index.js +0 -180
  511. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/index.js.map +0 -1
  512. package/dist/_node_modules/read-pkg/_node_modules/lru-cache/index.cjs +0 -268
  513. package/dist/_node_modules/read-pkg/_node_modules/lru-cache/index.cjs.map +0 -1
  514. package/dist/_node_modules/read-pkg/_node_modules/lru-cache/index.js +0 -268
  515. package/dist/_node_modules/read-pkg/_node_modules/lru-cache/index.js.map +0 -1
  516. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/extract_description.cjs +0 -20
  517. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/extract_description.cjs.map +0 -1
  518. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/extract_description.js +0 -20
  519. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/extract_description.js.map +0 -1
  520. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.cjs +0 -438
  521. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.cjs.map +0 -1
  522. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.js +0 -438
  523. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.js.map +0 -1
  524. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/make_warning.cjs +0 -26
  525. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/make_warning.cjs.map +0 -1
  526. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/make_warning.js +0 -26
  527. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/make_warning.js.map +0 -1
  528. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/normalize.cjs +0 -58
  529. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/normalize.cjs.map +0 -1
  530. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/normalize.js +0 -59
  531. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/normalize.js.map +0 -1
  532. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/typos.json.cjs +0 -41
  533. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/typos.json.cjs.map +0 -1
  534. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/typos.json.js +0 -41
  535. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/typos.json.js.map +0 -1
  536. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/warning_messages.json.cjs +0 -90
  537. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/warning_messages.json.cjs.map +0 -1
  538. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/warning_messages.json.js +0 -90
  539. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/warning_messages.json.js.map +0 -1
  540. package/dist/_node_modules/read-pkg/index.cjs +0 -20
  541. package/dist/_node_modules/read-pkg/index.cjs.map +0 -1
  542. package/dist/_node_modules/read-pkg/index.js +0 -20
  543. package/dist/_node_modules/read-pkg/index.js.map +0 -1
  544. package/dist/_node_modules/read-pkg-up/_node_modules/find-up/index.cjs +0 -48
  545. package/dist/_node_modules/read-pkg-up/_node_modules/find-up/index.cjs.map +0 -1
  546. package/dist/_node_modules/read-pkg-up/_node_modules/find-up/index.js +0 -48
  547. package/dist/_node_modules/read-pkg-up/_node_modules/find-up/index.js.map +0 -1
  548. package/dist/_node_modules/read-pkg-up/_node_modules/locate-path/index.cjs +0 -43
  549. package/dist/_node_modules/read-pkg-up/_node_modules/locate-path/index.cjs.map +0 -1
  550. package/dist/_node_modules/read-pkg-up/_node_modules/locate-path/index.js +0 -43
  551. package/dist/_node_modules/read-pkg-up/_node_modules/locate-path/index.js.map +0 -1
  552. package/dist/_node_modules/read-pkg-up/index.cjs +0 -17
  553. package/dist/_node_modules/read-pkg-up/index.cjs.map +0 -1
  554. package/dist/_node_modules/read-pkg-up/index.js +0 -17
  555. package/dist/_node_modules/read-pkg-up/index.js.map +0 -1
  556. package/dist/_node_modules/redent/index.cjs +0 -8
  557. package/dist/_node_modules/redent/index.cjs.map +0 -1
  558. package/dist/_node_modules/redent/index.js +0 -9
  559. package/dist/_node_modules/redent/index.js.map +0 -1
  560. package/dist/_node_modules/semver/classes/semver.cjs +0 -245
  561. package/dist/_node_modules/semver/classes/semver.cjs.map +0 -1
  562. package/dist/_node_modules/semver/classes/semver.js +0 -245
  563. package/dist/_node_modules/semver/classes/semver.js.map +0 -1
  564. package/dist/_node_modules/semver/functions/clean.cjs +0 -11
  565. package/dist/_node_modules/semver/functions/clean.cjs.map +0 -1
  566. package/dist/_node_modules/semver/functions/clean.js +0 -11
  567. package/dist/_node_modules/semver/functions/clean.js.map +0 -1
  568. package/dist/_node_modules/semver/functions/parse.cjs +0 -20
  569. package/dist/_node_modules/semver/functions/parse.cjs.map +0 -1
  570. package/dist/_node_modules/semver/functions/parse.js +0 -20
  571. package/dist/_node_modules/semver/functions/parse.js.map +0 -1
  572. package/dist/_node_modules/semver/functions/valid.cjs +0 -11
  573. package/dist/_node_modules/semver/functions/valid.cjs.map +0 -1
  574. package/dist/_node_modules/semver/functions/valid.js +0 -11
  575. package/dist/_node_modules/semver/functions/valid.js.map +0 -1
  576. package/dist/_node_modules/semver/internal/constants.cjs +0 -29
  577. package/dist/_node_modules/semver/internal/constants.cjs.map +0 -1
  578. package/dist/_node_modules/semver/internal/constants.js +0 -29
  579. package/dist/_node_modules/semver/internal/constants.js.map +0 -1
  580. package/dist/_node_modules/semver/internal/debug.cjs +0 -7
  581. package/dist/_node_modules/semver/internal/debug.cjs.map +0 -1
  582. package/dist/_node_modules/semver/internal/debug.js +0 -7
  583. package/dist/_node_modules/semver/internal/debug.js.map +0 -1
  584. package/dist/_node_modules/semver/internal/identifiers.cjs +0 -19
  585. package/dist/_node_modules/semver/internal/identifiers.cjs.map +0 -1
  586. package/dist/_node_modules/semver/internal/identifiers.js +0 -19
  587. package/dist/_node_modules/semver/internal/identifiers.js.map +0 -1
  588. package/dist/_node_modules/semver/internal/parse-options.cjs +0 -16
  589. package/dist/_node_modules/semver/internal/parse-options.cjs.map +0 -1
  590. package/dist/_node_modules/semver/internal/parse-options.js +0 -16
  591. package/dist/_node_modules/semver/internal/parse-options.js.map +0 -1
  592. package/dist/_node_modules/semver/internal/re.cjs +0 -82
  593. package/dist/_node_modules/semver/internal/re.cjs.map +0 -1
  594. package/dist/_node_modules/semver/internal/re.js +0 -82
  595. package/dist/_node_modules/semver/internal/re.js.map +0 -1
  596. package/dist/_node_modules/spdx-correct/index.cjs +0 -334
  597. package/dist/_node_modules/spdx-correct/index.cjs.map +0 -1
  598. package/dist/_node_modules/spdx-correct/index.js +0 -334
  599. package/dist/_node_modules/spdx-correct/index.js.map +0 -1
  600. package/dist/_node_modules/spdx-exceptions/index.json.cjs +0 -43
  601. package/dist/_node_modules/spdx-exceptions/index.json.cjs.map +0 -1
  602. package/dist/_node_modules/spdx-exceptions/index.json.js +0 -44
  603. package/dist/_node_modules/spdx-exceptions/index.json.js.map +0 -1
  604. package/dist/_node_modules/spdx-expression-parse/index.cjs +0 -11
  605. package/dist/_node_modules/spdx-expression-parse/index.cjs.map +0 -1
  606. package/dist/_node_modules/spdx-expression-parse/index.js +0 -11
  607. package/dist/_node_modules/spdx-expression-parse/index.js.map +0 -1
  608. package/dist/_node_modules/spdx-expression-parse/parse.cjs +0 -111
  609. package/dist/_node_modules/spdx-expression-parse/parse.cjs.map +0 -1
  610. package/dist/_node_modules/spdx-expression-parse/parse.js +0 -111
  611. package/dist/_node_modules/spdx-expression-parse/parse.js.map +0 -1
  612. package/dist/_node_modules/spdx-expression-parse/scan.cjs +0 -104
  613. package/dist/_node_modules/spdx-expression-parse/scan.cjs.map +0 -1
  614. package/dist/_node_modules/spdx-expression-parse/scan.js +0 -104
  615. package/dist/_node_modules/spdx-expression-parse/scan.js.map +0 -1
  616. package/dist/_node_modules/spdx-license-ids/deprecated.json.cjs +0 -30
  617. package/dist/_node_modules/spdx-license-ids/deprecated.json.cjs.map +0 -1
  618. package/dist/_node_modules/spdx-license-ids/deprecated.json.js +0 -31
  619. package/dist/_node_modules/spdx-license-ids/deprecated.json.js.map +0 -1
  620. package/dist/_node_modules/spdx-license-ids/index.json.cjs +0 -510
  621. package/dist/_node_modules/spdx-license-ids/index.json.cjs.map +0 -1
  622. package/dist/_node_modules/spdx-license-ids/index.json.js +0 -511
  623. package/dist/_node_modules/spdx-license-ids/index.json.js.map +0 -1
  624. package/dist/_node_modules/strip-indent/index.cjs +0 -12
  625. package/dist/_node_modules/strip-indent/index.cjs.map +0 -1
  626. package/dist/_node_modules/strip-indent/index.js +0 -13
  627. package/dist/_node_modules/strip-indent/index.js.map +0 -1
  628. package/dist/_node_modules/trim-newlines/index.cjs +0 -15
  629. package/dist/_node_modules/trim-newlines/index.cjs.map +0 -1
  630. package/dist/_node_modules/trim-newlines/index.js +0 -15
  631. package/dist/_node_modules/trim-newlines/index.js.map +0 -1
  632. package/dist/_node_modules/validate-npm-package-license/index.cjs +0 -71
  633. package/dist/_node_modules/validate-npm-package-license/index.cjs.map +0 -1
  634. package/dist/_node_modules/validate-npm-package-license/index.js +0 -71
  635. package/dist/_node_modules/validate-npm-package-license/index.js.map +0 -1
  636. package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.cjs +0 -3822
  637. package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.cjs.map +0 -1
  638. package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.js +0 -3822
  639. package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.js.map +0 -1
  640. package/dist/_node_modules/yallist/iterator.cjs +0 -19
  641. package/dist/_node_modules/yallist/iterator.cjs.map +0 -1
  642. package/dist/_node_modules/yallist/iterator.js +0 -19
  643. package/dist/_node_modules/yallist/iterator.js.map +0 -1
  644. package/dist/_node_modules/yallist/yallist.cjs +0 -367
  645. package/dist/_node_modules/yallist/yallist.cjs.map +0 -1
  646. package/dist/_node_modules/yallist/yallist.js +0 -367
  647. package/dist/_node_modules/yallist/yallist.js.map +0 -1
  648. package/dist/_node_modules/yargs-parser/build/lib/index.cjs +0 -56
  649. package/dist/_node_modules/yargs-parser/build/lib/index.cjs.map +0 -1
  650. package/dist/_node_modules/yargs-parser/build/lib/index.js +0 -57
  651. package/dist/_node_modules/yargs-parser/build/lib/index.js.map +0 -1
  652. package/dist/_node_modules/yargs-parser/build/lib/string-utils.cjs +0 -63
  653. package/dist/_node_modules/yargs-parser/build/lib/string-utils.cjs.map +0 -1
  654. package/dist/_node_modules/yargs-parser/build/lib/string-utils.js +0 -63
  655. package/dist/_node_modules/yargs-parser/build/lib/string-utils.js.map +0 -1
  656. package/dist/_node_modules/yargs-parser/build/lib/tokenize-arg-string.cjs +0 -39
  657. package/dist/_node_modules/yargs-parser/build/lib/tokenize-arg-string.cjs.map +0 -1
  658. package/dist/_node_modules/yargs-parser/build/lib/tokenize-arg-string.js +0 -39
  659. package/dist/_node_modules/yargs-parser/build/lib/tokenize-arg-string.js.map +0 -1
  660. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser-types.cjs +0 -15
  661. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser-types.cjs.map +0 -1
  662. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser-types.js +0 -16
  663. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser-types.js.map +0 -1
  664. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser.cjs +0 -847
  665. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser.cjs.map +0 -1
  666. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser.js +0 -847
  667. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser.js.map +0 -1
  668. package/dist/_virtual/_commonjsHelpers.cjs +0 -9
  669. package/dist/_virtual/_commonjsHelpers.cjs.map +0 -1
  670. package/dist/_virtual/_commonjsHelpers.js +0 -9
  671. package/dist/_virtual/_commonjsHelpers.js.map +0 -1
  672. package/dist/_virtual/identifier.cjs +0 -5
  673. package/dist/_virtual/identifier.cjs.map +0 -1
  674. package/dist/_virtual/identifier.js +0 -5
  675. package/dist/_virtual/identifier.js.map +0 -1
  676. package/dist/_virtual/index.cjs +0 -5
  677. package/dist/_virtual/index.cjs.map +0 -1
  678. package/dist/_virtual/index.js +0 -5
  679. package/dist/_virtual/index.js.map +0 -1
  680. package/dist/_virtual/index2.cjs +0 -5
  681. package/dist/_virtual/index2.cjs.map +0 -1
  682. package/dist/_virtual/index2.js +0 -5
  683. package/dist/_virtual/index2.js.map +0 -1
  684. package/dist/_virtual/index3.cjs +0 -5
  685. package/dist/_virtual/index3.cjs.map +0 -1
  686. package/dist/_virtual/index3.js +0 -5
  687. package/dist/_virtual/index3.js.map +0 -1
  688. package/dist/_virtual/index4.cjs +0 -5
  689. package/dist/_virtual/index4.cjs.map +0 -1
  690. package/dist/_virtual/index4.js +0 -5
  691. package/dist/_virtual/index4.js.map +0 -1
  692. package/dist/_virtual/index5.cjs +0 -5
  693. package/dist/_virtual/index5.cjs.map +0 -1
  694. package/dist/_virtual/index5.js +0 -5
  695. package/dist/_virtual/index5.js.map +0 -1
  696. package/dist/_virtual/index6.cjs +0 -5
  697. package/dist/_virtual/index6.cjs.map +0 -1
  698. package/dist/_virtual/index6.js +0 -5
  699. package/dist/_virtual/index6.js.map +0 -1
  700. package/dist/_virtual/index7.cjs +0 -5
  701. package/dist/_virtual/index7.cjs.map +0 -1
  702. package/dist/_virtual/index7.js +0 -5
  703. package/dist/_virtual/index7.js.map +0 -1
  704. package/dist/_virtual/index8.cjs +0 -5
  705. package/dist/_virtual/index8.cjs.map +0 -1
  706. package/dist/_virtual/index8.js +0 -5
  707. package/dist/_virtual/index8.js.map +0 -1
  708. package/dist/_virtual/keyword.cjs +0 -5
  709. package/dist/_virtual/keyword.cjs.map +0 -1
  710. package/dist/_virtual/keyword.js +0 -5
  711. package/dist/_virtual/keyword.js.map +0 -1
  712. package/dist/_virtual/picocolors.browser.cjs +0 -5
  713. package/dist/_virtual/picocolors.browser.cjs.map +0 -1
  714. package/dist/_virtual/picocolors.browser.js +0 -5
  715. package/dist/_virtual/picocolors.browser.js.map +0 -1
  716. package/dist/_virtual/ponyfill.es2018.cjs +0 -5
  717. package/dist/_virtual/ponyfill.es2018.cjs.map +0 -1
  718. package/dist/_virtual/ponyfill.es2018.js +0 -5
  719. package/dist/_virtual/ponyfill.es2018.js.map +0 -1
  720. package/dist/_virtual/re.cjs +0 -5
  721. package/dist/_virtual/re.cjs.map +0 -1
  722. package/dist/_virtual/re.js +0 -5
  723. package/dist/_virtual/re.js.map +0 -1
  724. package/dist/cli/configSchema.cjs +0 -38
  725. package/dist/cli/configSchema.cjs.map +0 -1
  726. package/dist/cli/configSchema.d.ts +0 -3
  727. package/dist/cli/configSchema.js +0 -38
  728. package/dist/cli/configSchema.js.map +0 -1
  729. package/dist/cli/constants.cjs +0 -5
  730. package/dist/cli/constants.cjs.map +0 -1
  731. package/dist/cli/constants.d.ts +0 -1
  732. package/dist/cli/constants.js +0 -5
  733. package/dist/cli/constants.js.map +0 -1
  734. package/dist/cli/index.d.ts +0 -1
  735. package/dist/cli/loadConfig.cjs +0 -32
  736. package/dist/cli/loadConfig.cjs.map +0 -1
  737. package/dist/cli/loadConfig.d.ts +0 -6
  738. package/dist/cli/loadConfig.js +0 -32
  739. package/dist/cli/loadConfig.js.map +0 -1
  740. package/dist/cli/loadLocaleIDs.cjs +0 -20
  741. package/dist/cli/loadLocaleIDs.cjs.map +0 -1
  742. package/dist/cli/loadLocaleIDs.d.ts +0 -10
  743. package/dist/cli/loadLocaleIDs.js +0 -20
  744. package/dist/cli/loadLocaleIDs.js.map +0 -1
  745. package/dist/cli/loadModels.cjs +0 -79
  746. package/dist/cli/loadModels.cjs.map +0 -1
  747. package/dist/cli/loadModels.d.ts +0 -15
  748. package/dist/cli/loadModels.js +0 -62
  749. package/dist/cli/loadModels.js.map +0 -1
  750. package/dist/cli/types.d.ts +0 -175
  751. package/dist/cli.cjs +0 -123
  752. package/dist/cli.cjs.map +0 -1
  753. package/dist/cli.js +0 -121
  754. package/dist/cli.js.map +0 -1
  755. package/dist/constants.cjs +0 -32
  756. package/dist/constants.cjs.map +0 -1
  757. package/dist/constants.d.ts +0 -26
  758. package/dist/constants.js +0 -32
  759. package/dist/constants.js.map +0 -1
  760. package/dist/detectTypesProvider.cjs +0 -20
  761. package/dist/detectTypesProvider.cjs.map +0 -1
  762. package/dist/detectTypesProvider.d.ts +0 -13
  763. package/dist/detectTypesProvider.js +0 -20
  764. package/dist/detectTypesProvider.js.map +0 -1
  765. package/dist/generateTypes.cjs +0 -153
  766. package/dist/generateTypes.cjs.map +0 -1
  767. package/dist/generateTypes.d.ts +0 -16
  768. package/dist/generateTypes.js +0 -153
  769. package/dist/generateTypes.js.map +0 -1
  770. package/dist/index.cjs +0 -9
  771. package/dist/index.cjs.map +0 -1
  772. package/dist/index.d.ts +0 -6
  773. package/dist/index.js +0 -9
  774. package/dist/index.js.map +0 -1
  775. package/dist/lib/addBlankLine.cjs +0 -12
  776. package/dist/lib/addBlankLine.cjs.map +0 -1
  777. package/dist/lib/addBlankLine.d.ts +0 -5
  778. package/dist/lib/addBlankLine.js +0 -12
  779. package/dist/lib/addBlankLine.js.map +0 -1
  780. package/dist/lib/addLine.cjs +0 -8
  781. package/dist/lib/addLine.cjs.map +0 -1
  782. package/dist/lib/addLine.d.ts +0 -1
  783. package/dist/lib/addLine.js +0 -8
  784. package/dist/lib/addLine.js.map +0 -1
  785. package/dist/lib/addSection.cjs +0 -8
  786. package/dist/lib/addSection.cjs.map +0 -1
  787. package/dist/lib/addSection.d.ts +0 -1
  788. package/dist/lib/addSection.js +0 -8
  789. package/dist/lib/addSection.js.map +0 -1
  790. package/dist/lib/addTrailingNewLine.cjs +0 -11
  791. package/dist/lib/addTrailingNewLine.cjs.map +0 -1
  792. package/dist/lib/addTrailingNewLine.d.ts +0 -5
  793. package/dist/lib/addTrailingNewLine.js +0 -11
  794. package/dist/lib/addTrailingNewLine.js.map +0 -1
  795. package/dist/lib/buildCustomTypeDataType.cjs +0 -54
  796. package/dist/lib/buildCustomTypeDataType.cjs.map +0 -1
  797. package/dist/lib/buildCustomTypeDataType.d.ts +0 -14
  798. package/dist/lib/buildCustomTypeDataType.js +0 -54
  799. package/dist/lib/buildCustomTypeDataType.js.map +0 -1
  800. package/dist/lib/buildCustomTypeType.cjs +0 -63
  801. package/dist/lib/buildCustomTypeType.cjs.map +0 -1
  802. package/dist/lib/buildCustomTypeType.d.ts +0 -17
  803. package/dist/lib/buildCustomTypeType.js +0 -63
  804. package/dist/lib/buildCustomTypeType.js.map +0 -1
  805. package/dist/lib/buildFieldDocs.cjs +0 -99
  806. package/dist/lib/buildFieldDocs.cjs.map +0 -1
  807. package/dist/lib/buildFieldDocs.d.ts +0 -10
  808. package/dist/lib/buildFieldDocs.js +0 -99
  809. package/dist/lib/buildFieldDocs.js.map +0 -1
  810. package/dist/lib/buildFieldProperties.cjs +0 -339
  811. package/dist/lib/buildFieldProperties.cjs.map +0 -1
  812. package/dist/lib/buildFieldProperties.d.ts +0 -15
  813. package/dist/lib/buildFieldProperties.js +0 -339
  814. package/dist/lib/buildFieldProperties.js.map +0 -1
  815. package/dist/lib/buildSharedSliceType.cjs +0 -155
  816. package/dist/lib/buildSharedSliceType.cjs.map +0 -1
  817. package/dist/lib/buildSharedSliceType.d.ts +0 -17
  818. package/dist/lib/buildSharedSliceType.js +0 -155
  819. package/dist/lib/buildSharedSliceType.js.map +0 -1
  820. package/dist/lib/buildTypeName.cjs +0 -14
  821. package/dist/lib/buildTypeName.cjs.map +0 -1
  822. package/dist/lib/buildTypeName.d.ts +0 -1
  823. package/dist/lib/buildTypeName.js +0 -14
  824. package/dist/lib/buildTypeName.js.map +0 -1
  825. package/dist/lib/buildUnion.cjs +0 -7
  826. package/dist/lib/buildUnion.cjs.map +0 -1
  827. package/dist/lib/buildUnion.d.ts +0 -1
  828. package/dist/lib/buildUnion.js +0 -7
  829. package/dist/lib/buildUnion.js.map +0 -1
  830. package/dist/lib/checkHasUIDFIeld.cjs +0 -7
  831. package/dist/lib/checkHasUIDFIeld.cjs.map +0 -1
  832. package/dist/lib/checkHasUIDFIeld.d.ts +0 -2
  833. package/dist/lib/checkHasUIDFIeld.js +0 -7
  834. package/dist/lib/checkHasUIDFIeld.js.map +0 -1
  835. package/dist/lib/getAPIIDPath.cjs +0 -26
  836. package/dist/lib/getAPIIDPath.cjs.map +0 -1
  837. package/dist/lib/getAPIIDPath.d.ts +0 -6
  838. package/dist/lib/getAPIIDPath.js +0 -26
  839. package/dist/lib/getAPIIDPath.js.map +0 -1
  840. package/dist/lib/getCacheKey.cjs +0 -25
  841. package/dist/lib/getCacheKey.cjs.map +0 -1
  842. package/dist/lib/getCacheKey.d.ts +0 -9
  843. package/dist/lib/getCacheKey.js +0 -8
  844. package/dist/lib/getCacheKey.js.map +0 -1
  845. package/dist/lib/getHumanReadableModelName.cjs +0 -20
  846. package/dist/lib/getHumanReadableModelName.cjs.map +0 -1
  847. package/dist/lib/getHumanReadableModelName.d.ts +0 -7
  848. package/dist/lib/getHumanReadableModelName.js +0 -20
  849. package/dist/lib/getHumanReadableModelName.js.map +0 -1
  850. package/dist/lib/getHumanReadablePath.cjs +0 -19
  851. package/dist/lib/getHumanReadablePath.cjs.map +0 -1
  852. package/dist/lib/getHumanReadablePath.d.ts +0 -6
  853. package/dist/lib/getHumanReadablePath.js +0 -19
  854. package/dist/lib/getHumanReadablePath.js.map +0 -1
  855. package/dist/types.d.ts +0 -22
  856. package/src/cli/types.ts +0 -192
@@ -1,247 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const formatValue = (value) => {
4
- if (Array.isArray(value)) {
5
- return `[${value.map(formatValue).join(", ")}]`;
6
- }
7
- if (typeof value === "string") {
8
- return `"${value}"`;
9
- }
10
- if (value instanceof Date) {
11
- return `${value.getTime()}`;
12
- }
13
- return `${value}`;
14
- };
15
- const pathWithArgsFilter = (name) => {
16
- const fn = (path, ...args) => {
17
- const formattedArgs = args.map(formatValue).join(", ");
18
- const joiner = path && args.length ? ", " : "";
19
- return `[${name}(${path}${joiner}${formattedArgs})]`;
20
- };
21
- return fn;
22
- };
23
- const pathFilter = (name) => {
24
- const filterFn = pathWithArgsFilter(name);
25
- const fn = (path) => {
26
- return filterFn(path);
27
- };
28
- return fn;
29
- };
30
- const argsFilter = (name) => {
31
- const filterFn = pathWithArgsFilter(name);
32
- const fn = (...args) => {
33
- return filterFn("", ...args);
34
- };
35
- return fn;
36
- };
37
- const filter = {
38
- /**
39
- * The `at` filter checks that the path matches the described value exactly.
40
- * It takes a single value for a field or an array (only for tags).
41
- *
42
- * {@link https://prismic.io/docs/rest-api-technical-reference#at}
43
- */
44
- at: pathWithArgsFilter("at"),
45
- /**
46
- * The `not` filter checks that the path doesn't match the provided value
47
- * exactly. It takes a single value for a field or an array (only for tags).
48
- *
49
- * {@link https://prismic.io/docs/rest-api-technical-reference#not}
50
- */
51
- not: pathWithArgsFilter("not"),
52
- /**
53
- * The `any` filter takes an array of values. It works exactly the same way as
54
- * the `at` operator, but checks whether the fragment matches any of the
55
- * values in the array.
56
- *
57
- * {@link https://prismic.io/docs/rest-api-technical-reference#any}
58
- */
59
- any: pathWithArgsFilter("any"),
60
- /**
61
- * The `in` filter is used specifically to retrieve an array of documents by
62
- * their IDs or UIDs. This filter is much more efficient at this than the any
63
- * filter.
64
- *
65
- * {@link https://prismic.io/docs/rest-api-technical-reference#in}
66
- */
67
- in: pathWithArgsFilter("in"),
68
- /**
69
- * The `fulltext` filter provides two capabilities:
70
- *
71
- * 1. Checking if a certain string is anywhere inside a document (this is what
72
- * you should use to make your project's search engine feature)
73
- * 2. Checking if the string is contained inside a specific custom type’s Rich
74
- * Text or Key Text fragment.
75
- *
76
- * {@link https://prismic.io/docs/rest-api-technical-reference#fulltext}
77
- */
78
- fulltext: pathWithArgsFilter("fulltext"),
79
- /**
80
- * The `has` filter checks whether a fragment has a value. It will return all
81
- * the documents of the specified type that contain a value for the specified
82
- * field.
83
- *
84
- * {@link https://prismic.io/docs/rest-api-technical-reference#has}
85
- */
86
- has: pathFilter("has"),
87
- /**
88
- * The `missing` filter checks if a fragment doesn't have a value. It will
89
- * return all the documents of the specified type that do not contain a value
90
- * for the specified field.
91
- *
92
- * {@link https://prismic.io/docs/rest-api-technical-reference#missing}
93
- */
94
- missing: pathFilter("missing"),
95
- /**
96
- * The `similar` filter takes the ID of a document, and returns a list of
97
- * documents with similar content. This allows you to build an automated
98
- * content discovery feature (for example, a "Related posts" section).
99
- *
100
- * {@link https://prismic.io/docs/rest-api-technical-reference#similar}
101
- */
102
- similar: argsFilter("similar"),
103
- /**
104
- * The `geopoint.near` filter checks that the value in the path is within the
105
- * radius of the given coordinates.
106
- *
107
- * This filter will only work for a geopoint field.
108
- *
109
- * {@link https://prismic.io/docs/rest-api-technical-reference#geopointnear}
110
- */
111
- geopointNear: pathWithArgsFilter("geopoint.near"),
112
- /**
113
- * The `number.lt` filter checks that the value in the number field is less
114
- * than the value passed into the filter.
115
- *
116
- * {@link https://prismic.io/docs/rest-api-technical-reference#numberlessthan}
117
- */
118
- numberLessThan: pathWithArgsFilter("number.lt"),
119
- /**
120
- * The `number.gt` filter checks that the value in the number field is greater
121
- * than the value passed into the filter.
122
- *
123
- * {@link https://prismic.io/docs/rest-api-technical-reference#numbergreaterthan}
124
- */
125
- numberGreaterThan: pathWithArgsFilter("number.gt"),
126
- /**
127
- * The `number.inRange` filter checks that the value in the path is within the
128
- * two values passed into the filter.
129
- *
130
- * {@link https://prismic.io/docs/rest-api-technical-reference#numberinrange}
131
- */
132
- numberInRange: pathWithArgsFilter("number.inRange"),
133
- /**
134
- * The `date.after` filter checks that the value in the path is after the date
135
- * value passed into the filter.
136
- *
137
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
138
- */
139
- dateAfter: pathWithArgsFilter("date.after"),
140
- /**
141
- * The `date.before` filter checks that the value in the path is before the
142
- * date value passed into the filter.
143
- *
144
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
145
- */
146
- dateBefore: pathWithArgsFilter("date.before"),
147
- /**
148
- * The `date.between` filter checks that the value in the path is within the
149
- * date values passed into the filter.
150
- *
151
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
152
- */
153
- dateBetween: pathWithArgsFilter("date.between"),
154
- /**
155
- * The `date.day-of-month` filter checks that the value in the path is equal
156
- * to the day of the month passed into the filter.
157
- *
158
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
159
- */
160
- dateDayOfMonth: pathWithArgsFilter("date.day-of-month"),
161
- /**
162
- * The `date.day-of-month-after` filter checks that the value in the path is
163
- * after the day of the month passed into the filter.
164
- *
165
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
166
- */
167
- dateDayOfMonthAfter: pathWithArgsFilter("date.day-of-month-after"),
168
- /**
169
- * The `date.day-of-month-before` filter checks that the value in the path is
170
- * before the day of the month passed into the filter.
171
- *
172
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
173
- */
174
- dateDayOfMonthBefore: pathWithArgsFilter("date.day-of-month-before"),
175
- /**
176
- * The `date.day-of-week` filter checks that the value in the path is equal to
177
- * the day of the week passed into the filter.
178
- *
179
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
180
- */
181
- dateDayOfWeek: pathWithArgsFilter("date.day-of-week"),
182
- /**
183
- * The `date.day-of-week-after` filter checks that the value in the path is
184
- * after the day of the week passed into the filter.
185
- *
186
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
187
- */
188
- dateDayOfWeekAfter: pathWithArgsFilter("date.day-of-week-after"),
189
- /**
190
- * The date.day-of-week-before filter checks that the value in the path is
191
- * before the day of the week passed into the filter.
192
- *
193
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
194
- */
195
- dateDayOfWeekBefore: pathWithArgsFilter("date.day-of-week-before"),
196
- /**
197
- * The `date.month` filter checks that the value in the path occurs in the
198
- * month value passed into the filter.
199
- *
200
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
201
- */
202
- dateMonth: pathWithArgsFilter("date.month"),
203
- /**
204
- * The `date.month-after` filter checks that the value in the path occurs in
205
- * any month after the value passed into the filter.
206
- *
207
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
208
- */
209
- dateMonthAfter: pathWithArgsFilter("date.month-after"),
210
- /**
211
- * The `date.month-before` filter checks that the value in the path occurs in
212
- * any month before the value passed into the filter.
213
- *
214
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
215
- */
216
- dateMonthBefore: pathWithArgsFilter("date.month-before"),
217
- /**
218
- * The `date.year` filter checks that the value in the path occurs in the year
219
- * value passed into the filter.
220
- *
221
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
222
- */
223
- dateYear: pathWithArgsFilter("date.year"),
224
- /**
225
- * The `date.hour` filter checks that the value in the path occurs within the
226
- * hour value passed into the filter.
227
- *
228
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
229
- */
230
- dateHour: pathWithArgsFilter("date.hour"),
231
- /**
232
- * The `date.hour-after` filter checks that the value in the path occurs after
233
- * the hour value passed into the filter.
234
- *
235
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
236
- */
237
- dateHourAfter: pathWithArgsFilter("date.hour-after"),
238
- /**
239
- * The `date.hour-before` filter checks that the value in the path occurs
240
- * before the hour value passed into the filter.
241
- *
242
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
243
- */
244
- dateHourBefore: pathWithArgsFilter("date.hour-before")
245
- };
246
- exports.filter = filter;
247
- //# sourceMappingURL=filter.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filter.cjs","sources":["../../../../../node_modules/@prismicio/client/dist/filter.js"],"sourcesContent":["const formatValue = (value) => {\n if (Array.isArray(value)) {\n return `[${value.map(formatValue).join(\", \")}]`;\n }\n if (typeof value === \"string\") {\n return `\"${value}\"`;\n }\n if (value instanceof Date) {\n return `${value.getTime()}`;\n }\n return `${value}`;\n};\nconst pathWithArgsFilter = (name) => {\n const fn = (path, ...args) => {\n const formattedArgs = args.map(formatValue).join(\", \");\n const joiner = path && args.length ? \", \" : \"\";\n return `[${name}(${path}${joiner}${formattedArgs})]`;\n };\n return fn;\n};\nconst pathFilter = (name) => {\n const filterFn = pathWithArgsFilter(name);\n const fn = (path) => {\n return filterFn(path);\n };\n return fn;\n};\nconst argsFilter = (name) => {\n const filterFn = pathWithArgsFilter(name);\n const fn = (...args) => {\n return filterFn(\"\", ...args);\n };\n return fn;\n};\nconst filter = {\n /**\n * The `at` filter checks that the path matches the described value exactly.\n * It takes a single value for a field or an array (only for tags).\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#at}\n */\n at: pathWithArgsFilter(\"at\"),\n /**\n * The `not` filter checks that the path doesn't match the provided value\n * exactly. It takes a single value for a field or an array (only for tags).\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#not}\n */\n not: pathWithArgsFilter(\"not\"),\n /**\n * The `any` filter takes an array of values. It works exactly the same way as\n * the `at` operator, but checks whether the fragment matches any of the\n * values in the array.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#any}\n */\n any: pathWithArgsFilter(\"any\"),\n /**\n * The `in` filter is used specifically to retrieve an array of documents by\n * their IDs or UIDs. This filter is much more efficient at this than the any\n * filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#in}\n */\n in: pathWithArgsFilter(\"in\"),\n /**\n * The `fulltext` filter provides two capabilities:\n *\n * 1. Checking if a certain string is anywhere inside a document (this is what\n * you should use to make your project's search engine feature)\n * 2. Checking if the string is contained inside a specific custom type’s Rich\n * Text or Key Text fragment.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#fulltext}\n */\n fulltext: pathWithArgsFilter(\"fulltext\"),\n /**\n * The `has` filter checks whether a fragment has a value. It will return all\n * the documents of the specified type that contain a value for the specified\n * field.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#has}\n */\n has: pathFilter(\"has\"),\n /**\n * The `missing` filter checks if a fragment doesn't have a value. It will\n * return all the documents of the specified type that do not contain a value\n * for the specified field.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#missing}\n */\n missing: pathFilter(\"missing\"),\n /**\n * The `similar` filter takes the ID of a document, and returns a list of\n * documents with similar content. This allows you to build an automated\n * content discovery feature (for example, a \"Related posts\" section).\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#similar}\n */\n similar: argsFilter(\"similar\"),\n /**\n * The `geopoint.near` filter checks that the value in the path is within the\n * radius of the given coordinates.\n *\n * This filter will only work for a geopoint field.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#geopointnear}\n */\n geopointNear: pathWithArgsFilter(\"geopoint.near\"),\n /**\n * The `number.lt` filter checks that the value in the number field is less\n * than the value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#numberlessthan}\n */\n numberLessThan: pathWithArgsFilter(\"number.lt\"),\n /**\n * The `number.gt` filter checks that the value in the number field is greater\n * than the value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#numbergreaterthan}\n */\n numberGreaterThan: pathWithArgsFilter(\"number.gt\"),\n /**\n * The `number.inRange` filter checks that the value in the path is within the\n * two values passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#numberinrange}\n */\n numberInRange: pathWithArgsFilter(\"number.inRange\"),\n /**\n * The `date.after` filter checks that the value in the path is after the date\n * value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateAfter: pathWithArgsFilter(\"date.after\"),\n /**\n * The `date.before` filter checks that the value in the path is before the\n * date value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateBefore: pathWithArgsFilter(\"date.before\"),\n /**\n * The `date.between` filter checks that the value in the path is within the\n * date values passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateBetween: pathWithArgsFilter(\"date.between\"),\n /**\n * The `date.day-of-month` filter checks that the value in the path is equal\n * to the day of the month passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateDayOfMonth: pathWithArgsFilter(\"date.day-of-month\"),\n /**\n * The `date.day-of-month-after` filter checks that the value in the path is\n * after the day of the month passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateDayOfMonthAfter: pathWithArgsFilter(\"date.day-of-month-after\"),\n /**\n * The `date.day-of-month-before` filter checks that the value in the path is\n * before the day of the month passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateDayOfMonthBefore: pathWithArgsFilter(\"date.day-of-month-before\"),\n /**\n * The `date.day-of-week` filter checks that the value in the path is equal to\n * the day of the week passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateDayOfWeek: pathWithArgsFilter(\"date.day-of-week\"),\n /**\n * The `date.day-of-week-after` filter checks that the value in the path is\n * after the day of the week passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateDayOfWeekAfter: pathWithArgsFilter(\"date.day-of-week-after\"),\n /**\n * The date.day-of-week-before filter checks that the value in the path is\n * before the day of the week passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateDayOfWeekBefore: pathWithArgsFilter(\"date.day-of-week-before\"),\n /**\n * The `date.month` filter checks that the value in the path occurs in the\n * month value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateMonth: pathWithArgsFilter(\"date.month\"),\n /**\n * The `date.month-after` filter checks that the value in the path occurs in\n * any month after the value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateMonthAfter: pathWithArgsFilter(\"date.month-after\"),\n /**\n * The `date.month-before` filter checks that the value in the path occurs in\n * any month before the value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateMonthBefore: pathWithArgsFilter(\"date.month-before\"),\n /**\n * The `date.year` filter checks that the value in the path occurs in the year\n * value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateYear: pathWithArgsFilter(\"date.year\"),\n /**\n * The `date.hour` filter checks that the value in the path occurs within the\n * hour value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateHour: pathWithArgsFilter(\"date.hour\"),\n /**\n * The `date.hour-after` filter checks that the value in the path occurs after\n * the hour value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateHourAfter: pathWithArgsFilter(\"date.hour-after\"),\n /**\n * The `date.hour-before` filter checks that the value in the path occurs\n * before the hour value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateHourBefore: pathWithArgsFilter(\"date.hour-before\")\n};\nexport {\n filter\n};\n//# sourceMappingURL=filter.js.map\n"],"names":[],"mappings":"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","x_google_ignoreList":[0]}
@@ -1,247 +0,0 @@
1
- const formatValue = (value) => {
2
- if (Array.isArray(value)) {
3
- return `[${value.map(formatValue).join(", ")}]`;
4
- }
5
- if (typeof value === "string") {
6
- return `"${value}"`;
7
- }
8
- if (value instanceof Date) {
9
- return `${value.getTime()}`;
10
- }
11
- return `${value}`;
12
- };
13
- const pathWithArgsFilter = (name) => {
14
- const fn = (path, ...args) => {
15
- const formattedArgs = args.map(formatValue).join(", ");
16
- const joiner = path && args.length ? ", " : "";
17
- return `[${name}(${path}${joiner}${formattedArgs})]`;
18
- };
19
- return fn;
20
- };
21
- const pathFilter = (name) => {
22
- const filterFn = pathWithArgsFilter(name);
23
- const fn = (path) => {
24
- return filterFn(path);
25
- };
26
- return fn;
27
- };
28
- const argsFilter = (name) => {
29
- const filterFn = pathWithArgsFilter(name);
30
- const fn = (...args) => {
31
- return filterFn("", ...args);
32
- };
33
- return fn;
34
- };
35
- const filter = {
36
- /**
37
- * The `at` filter checks that the path matches the described value exactly.
38
- * It takes a single value for a field or an array (only for tags).
39
- *
40
- * {@link https://prismic.io/docs/rest-api-technical-reference#at}
41
- */
42
- at: pathWithArgsFilter("at"),
43
- /**
44
- * The `not` filter checks that the path doesn't match the provided value
45
- * exactly. It takes a single value for a field or an array (only for tags).
46
- *
47
- * {@link https://prismic.io/docs/rest-api-technical-reference#not}
48
- */
49
- not: pathWithArgsFilter("not"),
50
- /**
51
- * The `any` filter takes an array of values. It works exactly the same way as
52
- * the `at` operator, but checks whether the fragment matches any of the
53
- * values in the array.
54
- *
55
- * {@link https://prismic.io/docs/rest-api-technical-reference#any}
56
- */
57
- any: pathWithArgsFilter("any"),
58
- /**
59
- * The `in` filter is used specifically to retrieve an array of documents by
60
- * their IDs or UIDs. This filter is much more efficient at this than the any
61
- * filter.
62
- *
63
- * {@link https://prismic.io/docs/rest-api-technical-reference#in}
64
- */
65
- in: pathWithArgsFilter("in"),
66
- /**
67
- * The `fulltext` filter provides two capabilities:
68
- *
69
- * 1. Checking if a certain string is anywhere inside a document (this is what
70
- * you should use to make your project's search engine feature)
71
- * 2. Checking if the string is contained inside a specific custom type’s Rich
72
- * Text or Key Text fragment.
73
- *
74
- * {@link https://prismic.io/docs/rest-api-technical-reference#fulltext}
75
- */
76
- fulltext: pathWithArgsFilter("fulltext"),
77
- /**
78
- * The `has` filter checks whether a fragment has a value. It will return all
79
- * the documents of the specified type that contain a value for the specified
80
- * field.
81
- *
82
- * {@link https://prismic.io/docs/rest-api-technical-reference#has}
83
- */
84
- has: pathFilter("has"),
85
- /**
86
- * The `missing` filter checks if a fragment doesn't have a value. It will
87
- * return all the documents of the specified type that do not contain a value
88
- * for the specified field.
89
- *
90
- * {@link https://prismic.io/docs/rest-api-technical-reference#missing}
91
- */
92
- missing: pathFilter("missing"),
93
- /**
94
- * The `similar` filter takes the ID of a document, and returns a list of
95
- * documents with similar content. This allows you to build an automated
96
- * content discovery feature (for example, a "Related posts" section).
97
- *
98
- * {@link https://prismic.io/docs/rest-api-technical-reference#similar}
99
- */
100
- similar: argsFilter("similar"),
101
- /**
102
- * The `geopoint.near` filter checks that the value in the path is within the
103
- * radius of the given coordinates.
104
- *
105
- * This filter will only work for a geopoint field.
106
- *
107
- * {@link https://prismic.io/docs/rest-api-technical-reference#geopointnear}
108
- */
109
- geopointNear: pathWithArgsFilter("geopoint.near"),
110
- /**
111
- * The `number.lt` filter checks that the value in the number field is less
112
- * than the value passed into the filter.
113
- *
114
- * {@link https://prismic.io/docs/rest-api-technical-reference#numberlessthan}
115
- */
116
- numberLessThan: pathWithArgsFilter("number.lt"),
117
- /**
118
- * The `number.gt` filter checks that the value in the number field is greater
119
- * than the value passed into the filter.
120
- *
121
- * {@link https://prismic.io/docs/rest-api-technical-reference#numbergreaterthan}
122
- */
123
- numberGreaterThan: pathWithArgsFilter("number.gt"),
124
- /**
125
- * The `number.inRange` filter checks that the value in the path is within the
126
- * two values passed into the filter.
127
- *
128
- * {@link https://prismic.io/docs/rest-api-technical-reference#numberinrange}
129
- */
130
- numberInRange: pathWithArgsFilter("number.inRange"),
131
- /**
132
- * The `date.after` filter checks that the value in the path is after the date
133
- * value passed into the filter.
134
- *
135
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
136
- */
137
- dateAfter: pathWithArgsFilter("date.after"),
138
- /**
139
- * The `date.before` filter checks that the value in the path is before the
140
- * date value passed into the filter.
141
- *
142
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
143
- */
144
- dateBefore: pathWithArgsFilter("date.before"),
145
- /**
146
- * The `date.between` filter checks that the value in the path is within the
147
- * date values passed into the filter.
148
- *
149
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
150
- */
151
- dateBetween: pathWithArgsFilter("date.between"),
152
- /**
153
- * The `date.day-of-month` filter checks that the value in the path is equal
154
- * to the day of the month passed into the filter.
155
- *
156
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
157
- */
158
- dateDayOfMonth: pathWithArgsFilter("date.day-of-month"),
159
- /**
160
- * The `date.day-of-month-after` filter checks that the value in the path is
161
- * after the day of the month passed into the filter.
162
- *
163
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
164
- */
165
- dateDayOfMonthAfter: pathWithArgsFilter("date.day-of-month-after"),
166
- /**
167
- * The `date.day-of-month-before` filter checks that the value in the path is
168
- * before the day of the month passed into the filter.
169
- *
170
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
171
- */
172
- dateDayOfMonthBefore: pathWithArgsFilter("date.day-of-month-before"),
173
- /**
174
- * The `date.day-of-week` filter checks that the value in the path is equal to
175
- * the day of the week passed into the filter.
176
- *
177
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
178
- */
179
- dateDayOfWeek: pathWithArgsFilter("date.day-of-week"),
180
- /**
181
- * The `date.day-of-week-after` filter checks that the value in the path is
182
- * after the day of the week passed into the filter.
183
- *
184
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
185
- */
186
- dateDayOfWeekAfter: pathWithArgsFilter("date.day-of-week-after"),
187
- /**
188
- * The date.day-of-week-before filter checks that the value in the path is
189
- * before the day of the week passed into the filter.
190
- *
191
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
192
- */
193
- dateDayOfWeekBefore: pathWithArgsFilter("date.day-of-week-before"),
194
- /**
195
- * The `date.month` filter checks that the value in the path occurs in the
196
- * month value passed into the filter.
197
- *
198
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
199
- */
200
- dateMonth: pathWithArgsFilter("date.month"),
201
- /**
202
- * The `date.month-after` filter checks that the value in the path occurs in
203
- * any month after the value passed into the filter.
204
- *
205
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
206
- */
207
- dateMonthAfter: pathWithArgsFilter("date.month-after"),
208
- /**
209
- * The `date.month-before` filter checks that the value in the path occurs in
210
- * any month before the value passed into the filter.
211
- *
212
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
213
- */
214
- dateMonthBefore: pathWithArgsFilter("date.month-before"),
215
- /**
216
- * The `date.year` filter checks that the value in the path occurs in the year
217
- * value passed into the filter.
218
- *
219
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
220
- */
221
- dateYear: pathWithArgsFilter("date.year"),
222
- /**
223
- * The `date.hour` filter checks that the value in the path occurs within the
224
- * hour value passed into the filter.
225
- *
226
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
227
- */
228
- dateHour: pathWithArgsFilter("date.hour"),
229
- /**
230
- * The `date.hour-after` filter checks that the value in the path occurs after
231
- * the hour value passed into the filter.
232
- *
233
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
234
- */
235
- dateHourAfter: pathWithArgsFilter("date.hour-after"),
236
- /**
237
- * The `date.hour-before` filter checks that the value in the path occurs
238
- * before the hour value passed into the filter.
239
- *
240
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
241
- */
242
- dateHourBefore: pathWithArgsFilter("date.hour-before")
243
- };
244
- export {
245
- filter
246
- };
247
- //# sourceMappingURL=filter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filter.js","sources":["../../../../../node_modules/@prismicio/client/dist/filter.js"],"sourcesContent":["const formatValue = (value) => {\n if (Array.isArray(value)) {\n return `[${value.map(formatValue).join(\", \")}]`;\n }\n if (typeof value === \"string\") {\n return `\"${value}\"`;\n }\n if (value instanceof Date) {\n return `${value.getTime()}`;\n }\n return `${value}`;\n};\nconst pathWithArgsFilter = (name) => {\n const fn = (path, ...args) => {\n const formattedArgs = args.map(formatValue).join(\", \");\n const joiner = path && args.length ? \", \" : \"\";\n return `[${name}(${path}${joiner}${formattedArgs})]`;\n };\n return fn;\n};\nconst pathFilter = (name) => {\n const filterFn = pathWithArgsFilter(name);\n const fn = (path) => {\n return filterFn(path);\n };\n return fn;\n};\nconst argsFilter = (name) => {\n const filterFn = pathWithArgsFilter(name);\n const fn = (...args) => {\n return filterFn(\"\", ...args);\n };\n return fn;\n};\nconst filter = {\n /**\n * The `at` filter checks that the path matches the described value exactly.\n * It takes a single value for a field or an array (only for tags).\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#at}\n */\n at: pathWithArgsFilter(\"at\"),\n /**\n * The `not` filter checks that the path doesn't match the provided value\n * exactly. It takes a single value for a field or an array (only for tags).\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#not}\n */\n not: pathWithArgsFilter(\"not\"),\n /**\n * The `any` filter takes an array of values. It works exactly the same way as\n * the `at` operator, but checks whether the fragment matches any of the\n * values in the array.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#any}\n */\n any: pathWithArgsFilter(\"any\"),\n /**\n * The `in` filter is used specifically to retrieve an array of documents by\n * their IDs or UIDs. This filter is much more efficient at this than the any\n * filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#in}\n */\n in: pathWithArgsFilter(\"in\"),\n /**\n * The `fulltext` filter provides two capabilities:\n *\n * 1. Checking if a certain string is anywhere inside a document (this is what\n * you should use to make your project's search engine feature)\n * 2. Checking if the string is contained inside a specific custom type’s Rich\n * Text or Key Text fragment.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#fulltext}\n */\n fulltext: pathWithArgsFilter(\"fulltext\"),\n /**\n * The `has` filter checks whether a fragment has a value. It will return all\n * the documents of the specified type that contain a value for the specified\n * field.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#has}\n */\n has: pathFilter(\"has\"),\n /**\n * The `missing` filter checks if a fragment doesn't have a value. It will\n * return all the documents of the specified type that do not contain a value\n * for the specified field.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#missing}\n */\n missing: pathFilter(\"missing\"),\n /**\n * The `similar` filter takes the ID of a document, and returns a list of\n * documents with similar content. This allows you to build an automated\n * content discovery feature (for example, a \"Related posts\" section).\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#similar}\n */\n similar: argsFilter(\"similar\"),\n /**\n * The `geopoint.near` filter checks that the value in the path is within the\n * radius of the given coordinates.\n *\n * This filter will only work for a geopoint field.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#geopointnear}\n */\n geopointNear: pathWithArgsFilter(\"geopoint.near\"),\n /**\n * The `number.lt` filter checks that the value in the number field is less\n * than the value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#numberlessthan}\n */\n numberLessThan: pathWithArgsFilter(\"number.lt\"),\n /**\n * The `number.gt` filter checks that the value in the number field is greater\n * than the value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#numbergreaterthan}\n */\n numberGreaterThan: pathWithArgsFilter(\"number.gt\"),\n /**\n * The `number.inRange` filter checks that the value in the path is within the\n * two values passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#numberinrange}\n */\n numberInRange: pathWithArgsFilter(\"number.inRange\"),\n /**\n * The `date.after` filter checks that the value in the path is after the date\n * value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateAfter: pathWithArgsFilter(\"date.after\"),\n /**\n * The `date.before` filter checks that the value in the path is before the\n * date value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateBefore: pathWithArgsFilter(\"date.before\"),\n /**\n * The `date.between` filter checks that the value in the path is within the\n * date values passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateBetween: pathWithArgsFilter(\"date.between\"),\n /**\n * The `date.day-of-month` filter checks that the value in the path is equal\n * to the day of the month passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateDayOfMonth: pathWithArgsFilter(\"date.day-of-month\"),\n /**\n * The `date.day-of-month-after` filter checks that the value in the path is\n * after the day of the month passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateDayOfMonthAfter: pathWithArgsFilter(\"date.day-of-month-after\"),\n /**\n * The `date.day-of-month-before` filter checks that the value in the path is\n * before the day of the month passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateDayOfMonthBefore: pathWithArgsFilter(\"date.day-of-month-before\"),\n /**\n * The `date.day-of-week` filter checks that the value in the path is equal to\n * the day of the week passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateDayOfWeek: pathWithArgsFilter(\"date.day-of-week\"),\n /**\n * The `date.day-of-week-after` filter checks that the value in the path is\n * after the day of the week passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateDayOfWeekAfter: pathWithArgsFilter(\"date.day-of-week-after\"),\n /**\n * The date.day-of-week-before filter checks that the value in the path is\n * before the day of the week passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateDayOfWeekBefore: pathWithArgsFilter(\"date.day-of-week-before\"),\n /**\n * The `date.month` filter checks that the value in the path occurs in the\n * month value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateMonth: pathWithArgsFilter(\"date.month\"),\n /**\n * The `date.month-after` filter checks that the value in the path occurs in\n * any month after the value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateMonthAfter: pathWithArgsFilter(\"date.month-after\"),\n /**\n * The `date.month-before` filter checks that the value in the path occurs in\n * any month before the value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateMonthBefore: pathWithArgsFilter(\"date.month-before\"),\n /**\n * The `date.year` filter checks that the value in the path occurs in the year\n * value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateYear: pathWithArgsFilter(\"date.year\"),\n /**\n * The `date.hour` filter checks that the value in the path occurs within the\n * hour value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateHour: pathWithArgsFilter(\"date.hour\"),\n /**\n * The `date.hour-after` filter checks that the value in the path occurs after\n * the hour value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateHourAfter: pathWithArgsFilter(\"date.hour-after\"),\n /**\n * The `date.hour-before` filter checks that the value in the path occurs\n * before the hour value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateHourBefore: pathWithArgsFilter(\"date.hour-before\")\n};\nexport {\n filter\n};\n//# sourceMappingURL=filter.js.map\n"],"names":[],"mappings":"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","x_google_ignoreList":[0]}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const PrismicError = require("./errors/PrismicError.cjs");
4
- const isRepositoryName = require("./isRepositoryName.cjs");
5
- const getRepositoryEndpoint = (repositoryName) => {
6
- if (isRepositoryName.isRepositoryName(repositoryName)) {
7
- return `https://${repositoryName}.cdn.prismic.io/api/v2`;
8
- } else {
9
- throw new PrismicError.PrismicError(`An invalid Prismic repository name was given: ${repositoryName}`, void 0, void 0);
10
- }
11
- };
12
- exports.getRepositoryEndpoint = getRepositoryEndpoint;
13
- //# sourceMappingURL=getRepositoryEndpoint.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getRepositoryEndpoint.cjs","sources":["../../../../../node_modules/@prismicio/client/dist/getRepositoryEndpoint.js"],"sourcesContent":["import { PrismicError } from \"./errors/PrismicError.js\";\nimport { isRepositoryName } from \"./isRepositoryName.js\";\nconst getRepositoryEndpoint = (repositoryName) => {\n if (isRepositoryName(repositoryName)) {\n return `https://${repositoryName}.cdn.prismic.io/api/v2`;\n } else {\n throw new PrismicError(`An invalid Prismic repository name was given: ${repositoryName}`, void 0, void 0);\n }\n};\nexport {\n getRepositoryEndpoint\n};\n//# sourceMappingURL=getRepositoryEndpoint.js.map\n"],"names":["isRepositoryName","PrismicError"],"mappings":";;;;AAEK,MAAC,wBAAwB,CAAC,mBAAmB;AAChD,MAAIA,iBAAAA,iBAAiB,cAAc,GAAG;AACpC,WAAO,WAAW,cAAc;AAAA,EACpC,OAAS;AACL,UAAM,IAAIC,aAAAA,aAAa,iDAAiD,cAAc,IAAI,QAAQ,MAAM;AAAA,EACzG;AACH;;","x_google_ignoreList":[0]}
@@ -1,13 +0,0 @@
1
- import { PrismicError } from "./errors/PrismicError.js";
2
- import { isRepositoryName } from "./isRepositoryName.js";
3
- const getRepositoryEndpoint = (repositoryName) => {
4
- if (isRepositoryName(repositoryName)) {
5
- return `https://${repositoryName}.cdn.prismic.io/api/v2`;
6
- } else {
7
- throw new PrismicError(`An invalid Prismic repository name was given: ${repositoryName}`, void 0, void 0);
8
- }
9
- };
10
- export {
11
- getRepositoryEndpoint
12
- };
13
- //# sourceMappingURL=getRepositoryEndpoint.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getRepositoryEndpoint.js","sources":["../../../../../node_modules/@prismicio/client/dist/getRepositoryEndpoint.js"],"sourcesContent":["import { PrismicError } from \"./errors/PrismicError.js\";\nimport { isRepositoryName } from \"./isRepositoryName.js\";\nconst getRepositoryEndpoint = (repositoryName) => {\n if (isRepositoryName(repositoryName)) {\n return `https://${repositoryName}.cdn.prismic.io/api/v2`;\n } else {\n throw new PrismicError(`An invalid Prismic repository name was given: ${repositoryName}`, void 0, void 0);\n }\n};\nexport {\n getRepositoryEndpoint\n};\n//# sourceMappingURL=getRepositoryEndpoint.js.map\n"],"names":[],"mappings":";;AAEK,MAAC,wBAAwB,CAAC,mBAAmB;AAChD,MAAI,iBAAiB,cAAc,GAAG;AACpC,WAAO,WAAW,cAAc;AAAA,EACpC,OAAS;AACL,UAAM,IAAI,aAAa,iDAAiD,cAAc,IAAI,QAAQ,MAAM;AAAA,EACzG;AACH;","x_google_ignoreList":[0]}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const PrismicError = require("./errors/PrismicError.cjs");
4
- const getRepositoryName = (repositoryEndpoint) => {
5
- try {
6
- const hostname = new URL(repositoryEndpoint).hostname;
7
- if (hostname.endsWith("prismic.io") || // Production
8
- hostname.endsWith("wroom.io") || // Staging
9
- hostname.endsWith("wroom.test")) {
10
- return hostname.split(".")[0];
11
- }
12
- } catch {
13
- }
14
- throw new PrismicError.PrismicError(`An invalid Prismic Document API endpoint was provided: ${repositoryEndpoint}`, void 0, void 0);
15
- };
16
- exports.getRepositoryName = getRepositoryName;
17
- //# sourceMappingURL=getRepositoryName.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getRepositoryName.cjs","sources":["../../../../../node_modules/@prismicio/client/dist/getRepositoryName.js"],"sourcesContent":["import { PrismicError } from \"./errors/PrismicError.js\";\nconst getRepositoryName = (repositoryEndpoint) => {\n try {\n const hostname = new URL(repositoryEndpoint).hostname;\n if (hostname.endsWith(\"prismic.io\") || // Production\n hostname.endsWith(\"wroom.io\") || // Staging\n hostname.endsWith(\"wroom.test\")) {\n return hostname.split(\".\")[0];\n }\n } catch {\n }\n throw new PrismicError(`An invalid Prismic Document API endpoint was provided: ${repositoryEndpoint}`, void 0, void 0);\n};\nexport {\n getRepositoryName\n};\n//# sourceMappingURL=getRepositoryName.js.map\n"],"names":["PrismicError"],"mappings":";;;AACK,MAAC,oBAAoB,CAAC,uBAAuB;AAChD,MAAI;AACF,UAAM,WAAW,IAAI,IAAI,kBAAkB,EAAE;AAC7C,QAAI,SAAS,SAAS,YAAY;AAAA,IAClC,SAAS,SAAS,UAAU;AAAA,IAC5B,SAAS,SAAS,YAAY,GAAG;AAC/B,aAAO,SAAS,MAAM,GAAG,EAAE,CAAC;AAAA,IAC7B;AAAA,EACL,QAAI;AAAA,EACD;AACD,QAAM,IAAIA,aAAAA,aAAa,0DAA0D,kBAAkB,IAAI,QAAQ,MAAM;AACvH;;","x_google_ignoreList":[0]}
@@ -1,17 +0,0 @@
1
- import { PrismicError } from "./errors/PrismicError.js";
2
- const getRepositoryName = (repositoryEndpoint) => {
3
- try {
4
- const hostname = new URL(repositoryEndpoint).hostname;
5
- if (hostname.endsWith("prismic.io") || // Production
6
- hostname.endsWith("wroom.io") || // Staging
7
- hostname.endsWith("wroom.test")) {
8
- return hostname.split(".")[0];
9
- }
10
- } catch {
11
- }
12
- throw new PrismicError(`An invalid Prismic Document API endpoint was provided: ${repositoryEndpoint}`, void 0, void 0);
13
- };
14
- export {
15
- getRepositoryName
16
- };
17
- //# sourceMappingURL=getRepositoryName.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getRepositoryName.js","sources":["../../../../../node_modules/@prismicio/client/dist/getRepositoryName.js"],"sourcesContent":["import { PrismicError } from \"./errors/PrismicError.js\";\nconst getRepositoryName = (repositoryEndpoint) => {\n try {\n const hostname = new URL(repositoryEndpoint).hostname;\n if (hostname.endsWith(\"prismic.io\") || // Production\n hostname.endsWith(\"wroom.io\") || // Staging\n hostname.endsWith(\"wroom.test\")) {\n return hostname.split(\".\")[0];\n }\n } catch {\n }\n throw new PrismicError(`An invalid Prismic Document API endpoint was provided: ${repositoryEndpoint}`, void 0, void 0);\n};\nexport {\n getRepositoryName\n};\n//# sourceMappingURL=getRepositoryName.js.map\n"],"names":[],"mappings":";AACK,MAAC,oBAAoB,CAAC,uBAAuB;AAChD,MAAI;AACF,UAAM,WAAW,IAAI,IAAI,kBAAkB,EAAE;AAC7C,QAAI,SAAS,SAAS,YAAY;AAAA,IAClC,SAAS,SAAS,UAAU;AAAA,IAC5B,SAAS,SAAS,YAAY,GAAG;AAC/B,aAAO,SAAS,MAAM,GAAG,EAAE,CAAC;AAAA,IAC7B;AAAA,EACL,QAAI;AAAA,EACD;AACD,QAAM,IAAI,aAAa,0DAA0D,kBAAkB,IAAI,QAAQ,MAAM;AACvH;","x_google_ignoreList":[0]}