@macula-io/martha 0.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1022) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +46 -8
  3. package/bin/martha-install.mjs +54 -0
  4. package/check_the_node_version/check_the_node_version.mjs +19 -0
  5. package/install_a_release/install_a_release.mjs +166 -0
  6. package/keep_the_names_in_one_place/names.mjs +49 -0
  7. package/node_modules/@gar/promise-retry/LICENSE +20 -0
  8. package/node_modules/@gar/promise-retry/README.md +86 -0
  9. package/node_modules/@gar/promise-retry/lib/index.d.ts +114 -0
  10. package/node_modules/@gar/promise-retry/lib/index.js +62 -0
  11. package/node_modules/@gar/promise-retry/lib/retry.js +109 -0
  12. package/node_modules/@gar/promise-retry/package.json +45 -0
  13. package/node_modules/@isaacs/nonrecursive-glob-match/LICENSE.md +55 -0
  14. package/node_modules/@isaacs/nonrecursive-glob-match/README.md +364 -0
  15. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.d.ts +123 -0
  16. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.d.ts.map +1 -0
  17. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.js +778 -0
  18. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.js.map +1 -0
  19. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.min.js +3 -0
  20. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.min.js.map +7 -0
  21. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/numeric-range.d.ts +15 -0
  22. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/numeric-range.d.ts.map +1 -0
  23. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/numeric-range.js +76 -0
  24. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/numeric-range.js.map +1 -0
  25. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/package.json +3 -0
  26. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.d.ts +4 -0
  27. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.d.ts.map +1 -0
  28. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.js +142 -0
  29. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.js.map +1 -0
  30. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.d.ts +123 -0
  31. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.d.ts.map +1 -0
  32. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.js +774 -0
  33. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.js.map +1 -0
  34. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.min.js +3 -0
  35. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.min.js.map +7 -0
  36. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/numeric-range.d.ts +15 -0
  37. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/numeric-range.d.ts.map +1 -0
  38. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/numeric-range.js +72 -0
  39. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/numeric-range.js.map +1 -0
  40. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/package.json +3 -0
  41. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.d.ts +4 -0
  42. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.d.ts.map +1 -0
  43. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.js +138 -0
  44. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.js.map +1 -0
  45. package/node_modules/@isaacs/nonrecursive-glob-match/package.json +56 -0
  46. package/node_modules/@isaacs/nonrecursive-glob-match/src/index.ts +932 -0
  47. package/node_modules/@isaacs/nonrecursive-glob-match/src/numeric-range.ts +79 -0
  48. package/node_modules/@isaacs/nonrecursive-glob-match/src/parse-class.ts +158 -0
  49. package/node_modules/@npmcli/agent/README.md +40 -0
  50. package/node_modules/@npmcli/agent/lib/agents.js +268 -0
  51. package/node_modules/@npmcli/agent/lib/dns.js +53 -0
  52. package/node_modules/@npmcli/agent/lib/errors.js +61 -0
  53. package/node_modules/@npmcli/agent/lib/index.js +56 -0
  54. package/node_modules/@npmcli/agent/lib/options.js +90 -0
  55. package/node_modules/@npmcli/agent/lib/proxy.js +88 -0
  56. package/node_modules/@npmcli/agent/package.json +61 -0
  57. package/node_modules/@npmcli/fs/LICENSE.md +20 -0
  58. package/node_modules/@npmcli/fs/README.md +97 -0
  59. package/node_modules/@npmcli/fs/lib/common/get-options.js +20 -0
  60. package/node_modules/@npmcli/fs/lib/common/node.js +9 -0
  61. package/node_modules/@npmcli/fs/lib/cp/LICENSE +15 -0
  62. package/node_modules/@npmcli/fs/lib/cp/errors.js +129 -0
  63. package/node_modules/@npmcli/fs/lib/cp/index.js +22 -0
  64. package/node_modules/@npmcli/fs/lib/cp/polyfill.js +428 -0
  65. package/node_modules/@npmcli/fs/lib/index.js +13 -0
  66. package/node_modules/@npmcli/fs/lib/move-file.js +78 -0
  67. package/node_modules/@npmcli/fs/lib/readdir-scoped.js +20 -0
  68. package/node_modules/@npmcli/fs/lib/with-temp-dir.js +39 -0
  69. package/node_modules/@npmcli/fs/package.json +54 -0
  70. package/node_modules/@npmcli/redact/LICENSE +21 -0
  71. package/node_modules/@npmcli/redact/README.md +42 -0
  72. package/node_modules/@npmcli/redact/lib/deep-map.js +71 -0
  73. package/node_modules/@npmcli/redact/lib/error.js +28 -0
  74. package/node_modules/@npmcli/redact/lib/index.js +44 -0
  75. package/node_modules/@npmcli/redact/lib/matchers.js +88 -0
  76. package/node_modules/@npmcli/redact/lib/server.js +59 -0
  77. package/node_modules/@npmcli/redact/lib/utils.js +202 -0
  78. package/node_modules/@npmcli/redact/package.json +52 -0
  79. package/node_modules/@sigstore/bundle/LICENSE +202 -0
  80. package/node_modules/@sigstore/bundle/README.md +19 -0
  81. package/node_modules/@sigstore/bundle/dist/build.d.ts +18 -0
  82. package/node_modules/@sigstore/bundle/dist/build.js +100 -0
  83. package/node_modules/@sigstore/bundle/dist/bundle.d.ts +74 -0
  84. package/node_modules/@sigstore/bundle/dist/bundle.js +24 -0
  85. package/node_modules/@sigstore/bundle/dist/error.d.ts +4 -0
  86. package/node_modules/@sigstore/bundle/dist/error.js +26 -0
  87. package/node_modules/@sigstore/bundle/dist/index.d.ts +8 -0
  88. package/node_modules/@sigstore/bundle/dist/index.js +43 -0
  89. package/node_modules/@sigstore/bundle/dist/serialized.d.ts +74 -0
  90. package/node_modules/@sigstore/bundle/dist/serialized.js +49 -0
  91. package/node_modules/@sigstore/bundle/dist/utility.d.ts +14 -0
  92. package/node_modules/@sigstore/bundle/dist/utility.js +2 -0
  93. package/node_modules/@sigstore/bundle/dist/validate.d.ts +7 -0
  94. package/node_modules/@sigstore/bundle/dist/validate.js +199 -0
  95. package/node_modules/@sigstore/bundle/package.json +35 -0
  96. package/node_modules/@sigstore/core/LICENSE +202 -0
  97. package/node_modules/@sigstore/core/README.md +10 -0
  98. package/node_modules/@sigstore/core/dist/asn1/error.d.ts +4 -0
  99. package/node_modules/@sigstore/core/dist/asn1/error.js +24 -0
  100. package/node_modules/@sigstore/core/dist/asn1/index.d.ts +1 -0
  101. package/node_modules/@sigstore/core/dist/asn1/index.js +20 -0
  102. package/node_modules/@sigstore/core/dist/asn1/length.d.ts +3 -0
  103. package/node_modules/@sigstore/core/dist/asn1/length.js +73 -0
  104. package/node_modules/@sigstore/core/dist/asn1/obj.d.ts +14 -0
  105. package/node_modules/@sigstore/core/dist/asn1/obj.js +173 -0
  106. package/node_modules/@sigstore/core/dist/asn1/parse.d.ts +6 -0
  107. package/node_modules/@sigstore/core/dist/asn1/parse.js +143 -0
  108. package/node_modules/@sigstore/core/dist/asn1/tag.d.ts +16 -0
  109. package/node_modules/@sigstore/core/dist/asn1/tag.js +89 -0
  110. package/node_modules/@sigstore/core/dist/crypto.d.ts +6 -0
  111. package/node_modules/@sigstore/core/dist/crypto.js +69 -0
  112. package/node_modules/@sigstore/core/dist/dsse.d.ts +1 -0
  113. package/node_modules/@sigstore/core/dist/dsse.js +29 -0
  114. package/node_modules/@sigstore/core/dist/encoding.d.ts +2 -0
  115. package/node_modules/@sigstore/core/dist/encoding.js +27 -0
  116. package/node_modules/@sigstore/core/dist/index.d.ts +9 -0
  117. package/node_modules/@sigstore/core/dist/index.js +66 -0
  118. package/node_modules/@sigstore/core/dist/json.d.ts +1 -0
  119. package/node_modules/@sigstore/core/dist/json.js +60 -0
  120. package/node_modules/@sigstore/core/dist/oid.d.ts +3 -0
  121. package/node_modules/@sigstore/core/dist/oid.js +20 -0
  122. package/node_modules/@sigstore/core/dist/pem.d.ts +2 -0
  123. package/node_modules/@sigstore/core/dist/pem.js +43 -0
  124. package/node_modules/@sigstore/core/dist/rfc3161/error.d.ts +2 -0
  125. package/node_modules/@sigstore/core/dist/rfc3161/error.js +21 -0
  126. package/node_modules/@sigstore/core/dist/rfc3161/index.d.ts +1 -0
  127. package/node_modules/@sigstore/core/dist/rfc3161/index.js +20 -0
  128. package/node_modules/@sigstore/core/dist/rfc3161/timestamp.d.ts +36 -0
  129. package/node_modules/@sigstore/core/dist/rfc3161/timestamp.js +212 -0
  130. package/node_modules/@sigstore/core/dist/rfc3161/tstinfo.d.ts +12 -0
  131. package/node_modules/@sigstore/core/dist/rfc3161/tstinfo.js +72 -0
  132. package/node_modules/@sigstore/core/dist/stream.d.ts +21 -0
  133. package/node_modules/@sigstore/core/dist/stream.js +117 -0
  134. package/node_modules/@sigstore/core/dist/x509/cert.d.ts +43 -0
  135. package/node_modules/@sigstore/core/dist/x509/cert.js +245 -0
  136. package/node_modules/@sigstore/core/dist/x509/ext.d.ts +41 -0
  137. package/node_modules/@sigstore/core/dist/x509/ext.js +146 -0
  138. package/node_modules/@sigstore/core/dist/x509/index.d.ts +2 -0
  139. package/node_modules/@sigstore/core/dist/x509/index.js +23 -0
  140. package/node_modules/@sigstore/core/dist/x509/sct.d.ts +25 -0
  141. package/node_modules/@sigstore/core/dist/x509/sct.js +158 -0
  142. package/node_modules/@sigstore/core/package.json +31 -0
  143. package/node_modules/@sigstore/protobuf-specs/LICENSE +202 -0
  144. package/node_modules/@sigstore/protobuf-specs/README.md +5 -0
  145. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/envelope.d.ts +44 -0
  146. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/envelope.js +59 -0
  147. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/events.d.ts +64 -0
  148. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/events.js +174 -0
  149. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/api/field_behavior.d.ts +74 -0
  150. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/api/field_behavior.js +141 -0
  151. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/any.d.ts +74 -0
  152. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/any.js +35 -0
  153. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/descriptor.d.ts +1309 -0
  154. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/descriptor.js +2191 -0
  155. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/timestamp.d.ts +113 -0
  156. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/timestamp.js +29 -0
  157. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/rekor/v2/dsse.d.ts +23 -0
  158. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/rekor/v2/dsse.js +55 -0
  159. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/rekor/v2/entry.d.ts +43 -0
  160. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/rekor/v2/entry.js +81 -0
  161. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/rekor/v2/hashedrekord.d.ts +22 -0
  162. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/rekor/v2/hashedrekord.js +56 -0
  163. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/rekor/v2/verifier.d.ts +35 -0
  164. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/rekor/v2/verifier.js +74 -0
  165. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_bundle.d.ts +146 -0
  166. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_bundle.js +103 -0
  167. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_common.d.ts +304 -0
  168. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_common.js +612 -0
  169. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_monitor.d.ts +33 -0
  170. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_monitor.js +55 -0
  171. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_rekor.d.ts +144 -0
  172. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_rekor.js +137 -0
  173. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_trustroot.d.ts +386 -0
  174. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_trustroot.js +284 -0
  175. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_verification.d.ts +191 -0
  176. package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_verification.js +281 -0
  177. package/node_modules/@sigstore/protobuf-specs/dist/index.d.ts +6 -0
  178. package/node_modules/@sigstore/protobuf-specs/dist/index.js +37 -0
  179. package/node_modules/@sigstore/protobuf-specs/dist/rekor/v2/index.d.ts +4 -0
  180. package/node_modules/@sigstore/protobuf-specs/dist/rekor/v2/index.js +35 -0
  181. package/node_modules/@sigstore/protobuf-specs/package.json +35 -0
  182. package/node_modules/@sigstore/sign/LICENSE +202 -0
  183. package/node_modules/@sigstore/sign/README.md +185 -0
  184. package/node_modules/@sigstore/sign/dist/bundler/base.d.ts +22 -0
  185. package/node_modules/@sigstore/sign/dist/bundler/base.js +52 -0
  186. package/node_modules/@sigstore/sign/dist/bundler/bundle.d.ts +5 -0
  187. package/node_modules/@sigstore/sign/dist/bundler/bundle.js +81 -0
  188. package/node_modules/@sigstore/sign/dist/bundler/dsse.d.ts +13 -0
  189. package/node_modules/@sigstore/sign/dist/bundler/dsse.js +47 -0
  190. package/node_modules/@sigstore/sign/dist/bundler/index.d.ts +3 -0
  191. package/node_modules/@sigstore/sign/dist/bundler/index.js +7 -0
  192. package/node_modules/@sigstore/sign/dist/bundler/message.d.ts +7 -0
  193. package/node_modules/@sigstore/sign/dist/bundler/message.js +30 -0
  194. package/node_modules/@sigstore/sign/dist/config.d.ts +18 -0
  195. package/node_modules/@sigstore/sign/dist/config.js +143 -0
  196. package/node_modules/@sigstore/sign/dist/error.d.ts +12 -0
  197. package/node_modules/@sigstore/sign/dist/error.js +41 -0
  198. package/node_modules/@sigstore/sign/dist/external/error.d.ts +9 -0
  199. package/node_modules/@sigstore/sign/dist/external/error.js +28 -0
  200. package/node_modules/@sigstore/sign/dist/external/fetch.d.ts +4 -0
  201. package/node_modules/@sigstore/sign/dist/external/fetch.js +98 -0
  202. package/node_modules/@sigstore/sign/dist/external/fulcio.d.ts +37 -0
  203. package/node_modules/@sigstore/sign/dist/external/fulcio.js +42 -0
  204. package/node_modules/@sigstore/sign/dist/external/rekor-v2.d.ts +14 -0
  205. package/node_modules/@sigstore/sign/dist/external/rekor-v2.js +45 -0
  206. package/node_modules/@sigstore/sign/dist/external/rekor.d.ts +28 -0
  207. package/node_modules/@sigstore/sign/dist/external/rekor.js +81 -0
  208. package/node_modules/@sigstore/sign/dist/external/tsa.d.ts +16 -0
  209. package/node_modules/@sigstore/sign/dist/external/tsa.js +44 -0
  210. package/node_modules/@sigstore/sign/dist/identity/ci.d.ts +11 -0
  211. package/node_modules/@sigstore/sign/dist/identity/ci.js +88 -0
  212. package/node_modules/@sigstore/sign/dist/identity/index.d.ts +2 -0
  213. package/node_modules/@sigstore/sign/dist/identity/index.js +20 -0
  214. package/node_modules/@sigstore/sign/dist/identity/provider.d.ts +3 -0
  215. package/node_modules/@sigstore/sign/dist/identity/provider.js +2 -0
  216. package/node_modules/@sigstore/sign/dist/index.d.ts +11 -0
  217. package/node_modules/@sigstore/sign/dist/index.js +19 -0
  218. package/node_modules/@sigstore/sign/dist/signer/fulcio/ca.d.ts +12 -0
  219. package/node_modules/@sigstore/sign/dist/signer/fulcio/ca.js +60 -0
  220. package/node_modules/@sigstore/sign/dist/signer/fulcio/ephemeral.d.ts +6 -0
  221. package/node_modules/@sigstore/sign/dist/signer/fulcio/ephemeral.js +43 -0
  222. package/node_modules/@sigstore/sign/dist/signer/fulcio/index.d.ts +16 -0
  223. package/node_modules/@sigstore/sign/dist/signer/fulcio/index.js +90 -0
  224. package/node_modules/@sigstore/sign/dist/signer/index.d.ts +2 -0
  225. package/node_modules/@sigstore/sign/dist/signer/index.js +22 -0
  226. package/node_modules/@sigstore/sign/dist/signer/signer.d.ts +15 -0
  227. package/node_modules/@sigstore/sign/dist/signer/signer.js +17 -0
  228. package/node_modules/@sigstore/sign/dist/types/fetch.d.ts +6 -0
  229. package/node_modules/@sigstore/sign/dist/types/fetch.js +2 -0
  230. package/node_modules/@sigstore/sign/dist/util/index.d.ts +3 -0
  231. package/node_modules/@sigstore/sign/dist/util/index.js +59 -0
  232. package/node_modules/@sigstore/sign/dist/util/oidc.d.ts +1 -0
  233. package/node_modules/@sigstore/sign/dist/util/oidc.js +35 -0
  234. package/node_modules/@sigstore/sign/dist/util/ua.d.ts +1 -0
  235. package/node_modules/@sigstore/sign/dist/util/ua.js +32 -0
  236. package/node_modules/@sigstore/sign/dist/witness/index.d.ts +3 -0
  237. package/node_modules/@sigstore/sign/dist/witness/index.js +24 -0
  238. package/node_modules/@sigstore/sign/dist/witness/tlog/client.d.ts +29 -0
  239. package/node_modules/@sigstore/sign/dist/witness/tlog/client.js +92 -0
  240. package/node_modules/@sigstore/sign/dist/witness/tlog/entry.d.ts +5 -0
  241. package/node_modules/@sigstore/sign/dist/witness/tlog/entry.js +197 -0
  242. package/node_modules/@sigstore/sign/dist/witness/tlog/index.d.ts +20 -0
  243. package/node_modules/@sigstore/sign/dist/witness/tlog/index.js +97 -0
  244. package/node_modules/@sigstore/sign/dist/witness/tsa/client.d.ts +12 -0
  245. package/node_modules/@sigstore/sign/dist/witness/tsa/client.js +47 -0
  246. package/node_modules/@sigstore/sign/dist/witness/tsa/index.d.ts +13 -0
  247. package/node_modules/@sigstore/sign/dist/witness/tsa/index.js +45 -0
  248. package/node_modules/@sigstore/sign/dist/witness/witness.d.ts +9 -0
  249. package/node_modules/@sigstore/sign/dist/witness/witness.js +2 -0
  250. package/node_modules/@sigstore/sign/package.json +45 -0
  251. package/node_modules/@sigstore/tuf/LICENSE +202 -0
  252. package/node_modules/@sigstore/tuf/README.md +69 -0
  253. package/node_modules/@sigstore/tuf/dist/appdata.d.ts +1 -0
  254. package/node_modules/@sigstore/tuf/dist/appdata.js +43 -0
  255. package/node_modules/@sigstore/tuf/dist/client.d.ts +23 -0
  256. package/node_modules/@sigstore/tuf/dist/client.js +116 -0
  257. package/node_modules/@sigstore/tuf/dist/error.d.ts +11 -0
  258. package/node_modules/@sigstore/tuf/dist/error.js +14 -0
  259. package/node_modules/@sigstore/tuf/dist/index.d.ts +10 -0
  260. package/node_modules/@sigstore/tuf/dist/index.js +56 -0
  261. package/node_modules/@sigstore/tuf/dist/target.d.ts +2 -0
  262. package/node_modules/@sigstore/tuf/dist/target.js +79 -0
  263. package/node_modules/@sigstore/tuf/package.json +41 -0
  264. package/node_modules/@sigstore/tuf/seeds.json +1 -0
  265. package/node_modules/@sigstore/verify/README.md +13 -0
  266. package/node_modules/@sigstore/verify/dist/bundle/dsse.d.ts +13 -0
  267. package/node_modules/@sigstore/verify/dist/bundle/dsse.js +50 -0
  268. package/node_modules/@sigstore/verify/dist/bundle/index.d.ts +4 -0
  269. package/node_modules/@sigstore/verify/dist/bundle/index.js +59 -0
  270. package/node_modules/@sigstore/verify/dist/bundle/message.d.ts +14 -0
  271. package/node_modules/@sigstore/verify/dist/bundle/message.js +59 -0
  272. package/node_modules/@sigstore/verify/dist/error.d.ts +16 -0
  273. package/node_modules/@sigstore/verify/dist/error.js +34 -0
  274. package/node_modules/@sigstore/verify/dist/index.d.ts +6 -0
  275. package/node_modules/@sigstore/verify/dist/index.js +28 -0
  276. package/node_modules/@sigstore/verify/dist/key/certificate.d.ts +21 -0
  277. package/node_modules/@sigstore/verify/dist/key/certificate.js +216 -0
  278. package/node_modules/@sigstore/verify/dist/key/index.d.ts +10 -0
  279. package/node_modules/@sigstore/verify/dist/key/index.js +75 -0
  280. package/node_modules/@sigstore/verify/dist/key/sct.d.ts +4 -0
  281. package/node_modules/@sigstore/verify/dist/key/sct.js +78 -0
  282. package/node_modules/@sigstore/verify/dist/policy.d.ts +5 -0
  283. package/node_modules/@sigstore/verify/dist/policy.js +48 -0
  284. package/node_modules/@sigstore/verify/dist/shared.types.d.ts +55 -0
  285. package/node_modules/@sigstore/verify/dist/shared.types.js +2 -0
  286. package/node_modules/@sigstore/verify/dist/timestamp/index.d.ts +11 -0
  287. package/node_modules/@sigstore/verify/dist/timestamp/index.js +24 -0
  288. package/node_modules/@sigstore/verify/dist/timestamp/tsa.d.ts +3 -0
  289. package/node_modules/@sigstore/verify/dist/timestamp/tsa.js +63 -0
  290. package/node_modules/@sigstore/verify/dist/tlog/checkpoint.d.ts +11 -0
  291. package/node_modules/@sigstore/verify/dist/tlog/checkpoint.js +168 -0
  292. package/node_modules/@sigstore/verify/dist/tlog/dsse.d.ts +6 -0
  293. package/node_modules/@sigstore/verify/dist/tlog/dsse.js +106 -0
  294. package/node_modules/@sigstore/verify/dist/tlog/hashedrekord.d.ts +6 -0
  295. package/node_modules/@sigstore/verify/dist/tlog/hashedrekord.js +94 -0
  296. package/node_modules/@sigstore/verify/dist/tlog/index.d.ts +5 -0
  297. package/node_modules/@sigstore/verify/dist/tlog/index.js +106 -0
  298. package/node_modules/@sigstore/verify/dist/tlog/intoto.d.ts +3 -0
  299. package/node_modules/@sigstore/verify/dist/tlog/intoto.js +62 -0
  300. package/node_modules/@sigstore/verify/dist/tlog/merkle.d.ts +3 -0
  301. package/node_modules/@sigstore/verify/dist/tlog/merkle.js +115 -0
  302. package/node_modules/@sigstore/verify/dist/tlog/set.d.ts +3 -0
  303. package/node_modules/@sigstore/verify/dist/tlog/set.js +60 -0
  304. package/node_modules/@sigstore/verify/dist/trust/filter.d.ts +8 -0
  305. package/node_modules/@sigstore/verify/dist/trust/filter.js +23 -0
  306. package/node_modules/@sigstore/verify/dist/trust/index.d.ts +5 -0
  307. package/node_modules/@sigstore/verify/dist/trust/index.js +90 -0
  308. package/node_modules/@sigstore/verify/dist/trust/trust.types.d.ts +29 -0
  309. package/node_modules/@sigstore/verify/dist/trust/trust.types.js +2 -0
  310. package/node_modules/@sigstore/verify/dist/verifier.d.ts +34 -0
  311. package/node_modules/@sigstore/verify/dist/verifier.js +172 -0
  312. package/node_modules/@sigstore/verify/package.json +36 -0
  313. package/node_modules/@tufjs/canonical-json/LICENSE +21 -0
  314. package/node_modules/@tufjs/canonical-json/README.md +53 -0
  315. package/node_modules/@tufjs/canonical-json/lib/index.d.ts +2 -0
  316. package/node_modules/@tufjs/canonical-json/lib/index.js +64 -0
  317. package/node_modules/@tufjs/canonical-json/package.json +35 -0
  318. package/node_modules/@tufjs/models/LICENSE +21 -0
  319. package/node_modules/@tufjs/models/README.md +3 -0
  320. package/node_modules/@tufjs/models/dist/base.d.ts +37 -0
  321. package/node_modules/@tufjs/models/dist/base.js +99 -0
  322. package/node_modules/@tufjs/models/dist/delegations.d.ts +32 -0
  323. package/node_modules/@tufjs/models/dist/delegations.js +122 -0
  324. package/node_modules/@tufjs/models/dist/error.d.ts +12 -0
  325. package/node_modules/@tufjs/models/dist/error.js +27 -0
  326. package/node_modules/@tufjs/models/dist/file.d.ts +38 -0
  327. package/node_modules/@tufjs/models/dist/file.js +191 -0
  328. package/node_modules/@tufjs/models/dist/index.d.ts +10 -0
  329. package/node_modules/@tufjs/models/dist/index.js +24 -0
  330. package/node_modules/@tufjs/models/dist/key.d.ts +21 -0
  331. package/node_modules/@tufjs/models/dist/key.js +90 -0
  332. package/node_modules/@tufjs/models/dist/metadata.d.ts +47 -0
  333. package/node_modules/@tufjs/models/dist/metadata.js +165 -0
  334. package/node_modules/@tufjs/models/dist/role.d.ts +103 -0
  335. package/node_modules/@tufjs/models/dist/role.js +310 -0
  336. package/node_modules/@tufjs/models/dist/root.d.ts +29 -0
  337. package/node_modules/@tufjs/models/dist/root.js +119 -0
  338. package/node_modules/@tufjs/models/dist/signature.d.ts +20 -0
  339. package/node_modules/@tufjs/models/dist/signature.js +40 -0
  340. package/node_modules/@tufjs/models/dist/snapshot.d.ts +23 -0
  341. package/node_modules/@tufjs/models/dist/snapshot.js +72 -0
  342. package/node_modules/@tufjs/models/dist/targets.d.ts +20 -0
  343. package/node_modules/@tufjs/models/dist/targets.js +94 -0
  344. package/node_modules/@tufjs/models/dist/timestamp.d.ts +21 -0
  345. package/node_modules/@tufjs/models/dist/timestamp.js +59 -0
  346. package/node_modules/@tufjs/models/dist/utils/guard.d.ts +7 -0
  347. package/node_modules/@tufjs/models/dist/utils/guard.js +32 -0
  348. package/node_modules/@tufjs/models/dist/utils/index.d.ts +3 -0
  349. package/node_modules/@tufjs/models/dist/utils/index.js +38 -0
  350. package/node_modules/@tufjs/models/dist/utils/key.d.ts +11 -0
  351. package/node_modules/@tufjs/models/dist/utils/key.js +170 -0
  352. package/node_modules/@tufjs/models/dist/utils/oid.d.ts +1 -0
  353. package/node_modules/@tufjs/models/dist/utils/oid.js +26 -0
  354. package/node_modules/@tufjs/models/dist/utils/types.d.ts +4 -0
  355. package/node_modules/@tufjs/models/dist/utils/types.js +2 -0
  356. package/node_modules/@tufjs/models/dist/utils/verify.d.ts +3 -0
  357. package/node_modules/@tufjs/models/dist/utils/verify.js +13 -0
  358. package/node_modules/@tufjs/models/package.json +37 -0
  359. package/node_modules/agent-base/LICENSE +22 -0
  360. package/node_modules/agent-base/README.md +69 -0
  361. package/node_modules/agent-base/dist/helpers.d.ts +10 -0
  362. package/node_modules/agent-base/dist/helpers.d.ts.map +1 -0
  363. package/node_modules/agent-base/dist/helpers.js +37 -0
  364. package/node_modules/agent-base/dist/helpers.js.map +1 -0
  365. package/node_modules/agent-base/dist/index.d.ts +37 -0
  366. package/node_modules/agent-base/dist/index.d.ts.map +1 -0
  367. package/node_modules/agent-base/dist/index.js +146 -0
  368. package/node_modules/agent-base/dist/index.js.map +1 -0
  369. package/node_modules/agent-base/package.json +46 -0
  370. package/node_modules/balanced-match/LICENSE.md +23 -0
  371. package/node_modules/balanced-match/README.md +57 -0
  372. package/node_modules/balanced-match/dist/commonjs/index.d.ts +9 -0
  373. package/node_modules/balanced-match/dist/commonjs/index.d.ts.map +1 -0
  374. package/node_modules/balanced-match/dist/commonjs/index.js +59 -0
  375. package/node_modules/balanced-match/dist/commonjs/index.js.map +1 -0
  376. package/node_modules/balanced-match/dist/commonjs/package.json +3 -0
  377. package/node_modules/balanced-match/dist/esm/index.d.ts +9 -0
  378. package/node_modules/balanced-match/dist/esm/index.d.ts.map +1 -0
  379. package/node_modules/balanced-match/dist/esm/index.js +54 -0
  380. package/node_modules/balanced-match/dist/esm/index.js.map +1 -0
  381. package/node_modules/balanced-match/dist/esm/package.json +3 -0
  382. package/node_modules/balanced-match/package.json +68 -0
  383. package/node_modules/brace-expansion/LICENSE +23 -0
  384. package/node_modules/brace-expansion/README.md +105 -0
  385. package/node_modules/brace-expansion/dist/commonjs/index.d.ts +12 -0
  386. package/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +1 -0
  387. package/node_modules/brace-expansion/dist/commonjs/index.js +333 -0
  388. package/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -0
  389. package/node_modules/brace-expansion/dist/commonjs/package.json +3 -0
  390. package/node_modules/brace-expansion/dist/esm/index.d.ts +12 -0
  391. package/node_modules/brace-expansion/dist/esm/index.d.ts.map +1 -0
  392. package/node_modules/brace-expansion/dist/esm/index.js +329 -0
  393. package/node_modules/brace-expansion/dist/esm/index.js.map +1 -0
  394. package/node_modules/brace-expansion/dist/esm/package.json +3 -0
  395. package/node_modules/brace-expansion/package.json +65 -0
  396. package/node_modules/cacache/LICENSE.md +16 -0
  397. package/node_modules/cacache/README.md +715 -0
  398. package/node_modules/cacache/lib/content/path.js +29 -0
  399. package/node_modules/cacache/lib/content/read.js +165 -0
  400. package/node_modules/cacache/lib/content/rm.js +18 -0
  401. package/node_modules/cacache/lib/content/write.js +208 -0
  402. package/node_modules/cacache/lib/entry-index.js +339 -0
  403. package/node_modules/cacache/lib/get.js +170 -0
  404. package/node_modules/cacache/lib/index.js +42 -0
  405. package/node_modules/cacache/lib/memoization.js +72 -0
  406. package/node_modules/cacache/lib/put.js +80 -0
  407. package/node_modules/cacache/lib/rm.js +32 -0
  408. package/node_modules/cacache/lib/util/cache-dir.js +29 -0
  409. package/node_modules/cacache/lib/util/glob.js +7 -0
  410. package/node_modules/cacache/lib/util/hash-to-segments.js +7 -0
  411. package/node_modules/cacache/lib/util/tmp.js +36 -0
  412. package/node_modules/cacache/lib/verify.js +258 -0
  413. package/node_modules/cacache/package.json +81 -0
  414. package/node_modules/content-type/LICENSE +22 -0
  415. package/node_modules/content-type/README.md +71 -0
  416. package/node_modules/content-type/dist/index.d.ts +46 -0
  417. package/node_modules/content-type/dist/index.js +176 -0
  418. package/node_modules/content-type/dist/index.js.map +1 -0
  419. package/node_modules/content-type/package.json +52 -0
  420. package/node_modules/debug/LICENSE +20 -0
  421. package/node_modules/debug/README.md +481 -0
  422. package/node_modules/debug/package.json +64 -0
  423. package/node_modules/debug/src/browser.js +272 -0
  424. package/node_modules/debug/src/common.js +292 -0
  425. package/node_modules/debug/src/index.js +10 -0
  426. package/node_modules/debug/src/node.js +263 -0
  427. package/node_modules/fs-minipass/LICENSE +15 -0
  428. package/node_modules/fs-minipass/README.md +70 -0
  429. package/node_modules/fs-minipass/lib/index.js +443 -0
  430. package/node_modules/fs-minipass/package.json +54 -0
  431. package/node_modules/glob/LICENSE.md +63 -0
  432. package/node_modules/glob/README.md +1377 -0
  433. package/node_modules/glob/dist/commonjs/glob.d.ts +405 -0
  434. package/node_modules/glob/dist/commonjs/glob.d.ts.map +1 -0
  435. package/node_modules/glob/dist/commonjs/glob.js +241 -0
  436. package/node_modules/glob/dist/commonjs/glob.js.map +1 -0
  437. package/node_modules/glob/dist/commonjs/has-magic.d.ts +14 -0
  438. package/node_modules/glob/dist/commonjs/has-magic.d.ts.map +1 -0
  439. package/node_modules/glob/dist/commonjs/has-magic.js +24 -0
  440. package/node_modules/glob/dist/commonjs/has-magic.js.map +1 -0
  441. package/node_modules/glob/dist/commonjs/ignore.d.ts +36 -0
  442. package/node_modules/glob/dist/commonjs/ignore.d.ts.map +1 -0
  443. package/node_modules/glob/dist/commonjs/ignore.js +139 -0
  444. package/node_modules/glob/dist/commonjs/ignore.js.map +1 -0
  445. package/node_modules/glob/dist/commonjs/index.d.ts +98 -0
  446. package/node_modules/glob/dist/commonjs/index.d.ts.map +1 -0
  447. package/node_modules/glob/dist/commonjs/index.js +68 -0
  448. package/node_modules/glob/dist/commonjs/index.js.map +1 -0
  449. package/node_modules/glob/dist/commonjs/index.min.js +3 -0
  450. package/node_modules/glob/dist/commonjs/index.min.js.map +7 -0
  451. package/node_modules/glob/dist/commonjs/package.json +3 -0
  452. package/node_modules/glob/dist/commonjs/pattern.d.ts +86 -0
  453. package/node_modules/glob/dist/commonjs/pattern.d.ts.map +1 -0
  454. package/node_modules/glob/dist/commonjs/pattern.js +235 -0
  455. package/node_modules/glob/dist/commonjs/pattern.js.map +1 -0
  456. package/node_modules/glob/dist/commonjs/processor.d.ts +72 -0
  457. package/node_modules/glob/dist/commonjs/processor.d.ts.map +1 -0
  458. package/node_modules/glob/dist/commonjs/processor.js +314 -0
  459. package/node_modules/glob/dist/commonjs/processor.js.map +1 -0
  460. package/node_modules/glob/dist/commonjs/walker.d.ts +99 -0
  461. package/node_modules/glob/dist/commonjs/walker.d.ts.map +1 -0
  462. package/node_modules/glob/dist/commonjs/walker.js +402 -0
  463. package/node_modules/glob/dist/commonjs/walker.js.map +1 -0
  464. package/node_modules/glob/dist/esm/glob.d.ts +405 -0
  465. package/node_modules/glob/dist/esm/glob.d.ts.map +1 -0
  466. package/node_modules/glob/dist/esm/glob.js +237 -0
  467. package/node_modules/glob/dist/esm/glob.js.map +1 -0
  468. package/node_modules/glob/dist/esm/has-magic.d.ts +14 -0
  469. package/node_modules/glob/dist/esm/has-magic.d.ts.map +1 -0
  470. package/node_modules/glob/dist/esm/has-magic.js +20 -0
  471. package/node_modules/glob/dist/esm/has-magic.js.map +1 -0
  472. package/node_modules/glob/dist/esm/ignore.d.ts +36 -0
  473. package/node_modules/glob/dist/esm/ignore.d.ts.map +1 -0
  474. package/node_modules/glob/dist/esm/ignore.js +135 -0
  475. package/node_modules/glob/dist/esm/ignore.js.map +1 -0
  476. package/node_modules/glob/dist/esm/index.d.ts +98 -0
  477. package/node_modules/glob/dist/esm/index.d.ts.map +1 -0
  478. package/node_modules/glob/dist/esm/index.js +55 -0
  479. package/node_modules/glob/dist/esm/index.js.map +1 -0
  480. package/node_modules/glob/dist/esm/index.min.js +3 -0
  481. package/node_modules/glob/dist/esm/index.min.js.map +7 -0
  482. package/node_modules/glob/dist/esm/package.json +3 -0
  483. package/node_modules/glob/dist/esm/pattern.d.ts +86 -0
  484. package/node_modules/glob/dist/esm/pattern.d.ts.map +1 -0
  485. package/node_modules/glob/dist/esm/pattern.js +231 -0
  486. package/node_modules/glob/dist/esm/pattern.js.map +1 -0
  487. package/node_modules/glob/dist/esm/processor.d.ts +72 -0
  488. package/node_modules/glob/dist/esm/processor.d.ts.map +1 -0
  489. package/node_modules/glob/dist/esm/processor.js +307 -0
  490. package/node_modules/glob/dist/esm/processor.js.map +1 -0
  491. package/node_modules/glob/dist/esm/walker.d.ts +99 -0
  492. package/node_modules/glob/dist/esm/walker.d.ts.map +1 -0
  493. package/node_modules/glob/dist/esm/walker.js +396 -0
  494. package/node_modules/glob/dist/esm/walker.js.map +1 -0
  495. package/node_modules/glob/package.json +114 -0
  496. package/node_modules/glob/src/glob.ts +655 -0
  497. package/node_modules/glob/src/has-magic.ts +23 -0
  498. package/node_modules/glob/src/ignore.ts +162 -0
  499. package/node_modules/glob/src/index.ts +225 -0
  500. package/node_modules/glob/src/pattern.ts +286 -0
  501. package/node_modules/glob/src/processor.ts +333 -0
  502. package/node_modules/glob/src/walker.ts +523 -0
  503. package/node_modules/http-cache-semantics/LICENSE +9 -0
  504. package/node_modules/http-cache-semantics/README.md +268 -0
  505. package/node_modules/http-cache-semantics/index.js +951 -0
  506. package/node_modules/http-cache-semantics/package.json +22 -0
  507. package/node_modules/http-proxy-agent/LICENSE +22 -0
  508. package/node_modules/http-proxy-agent/README.md +44 -0
  509. package/node_modules/http-proxy-agent/dist/index.d.ts +47 -0
  510. package/node_modules/http-proxy-agent/dist/index.d.ts.map +1 -0
  511. package/node_modules/http-proxy-agent/dist/index.js +132 -0
  512. package/node_modules/http-proxy-agent/dist/index.js.map +1 -0
  513. package/node_modules/http-proxy-agent/package.json +48 -0
  514. package/node_modules/https-proxy-agent/LICENSE +22 -0
  515. package/node_modules/https-proxy-agent/README.md +70 -0
  516. package/node_modules/https-proxy-agent/dist/index.d.ts +51 -0
  517. package/node_modules/https-proxy-agent/dist/index.d.ts.map +1 -0
  518. package/node_modules/https-proxy-agent/dist/index.js +234 -0
  519. package/node_modules/https-proxy-agent/dist/index.js.map +1 -0
  520. package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +12 -0
  521. package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +1 -0
  522. package/node_modules/https-proxy-agent/dist/parse-proxy-response.js +94 -0
  523. package/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
  524. package/node_modules/https-proxy-agent/package.json +51 -0
  525. package/node_modules/iconv-lite/LICENSE +21 -0
  526. package/node_modules/iconv-lite/README.md +138 -0
  527. package/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
  528. package/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
  529. package/node_modules/iconv-lite/encodings/index.js +23 -0
  530. package/node_modules/iconv-lite/encodings/internal.js +218 -0
  531. package/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
  532. package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
  533. package/node_modules/iconv-lite/encodings/sbcs-data.js +180 -0
  534. package/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
  535. package/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
  536. package/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
  537. package/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
  538. package/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
  539. package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
  540. package/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
  541. package/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
  542. package/node_modules/iconv-lite/encodings/utf16.js +187 -0
  543. package/node_modules/iconv-lite/encodings/utf32.js +314 -0
  544. package/node_modules/iconv-lite/encodings/utf7.js +283 -0
  545. package/node_modules/iconv-lite/lib/bom-handling.js +48 -0
  546. package/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
  547. package/node_modules/iconv-lite/lib/index.d.ts +129 -0
  548. package/node_modules/iconv-lite/lib/index.js +182 -0
  549. package/node_modules/iconv-lite/lib/streams.js +105 -0
  550. package/node_modules/iconv-lite/package.json +70 -0
  551. package/node_modules/iconv-lite/types/encodings.d.ts +425 -0
  552. package/node_modules/ip-address/LICENSE +19 -0
  553. package/node_modules/ip-address/README.md +308 -0
  554. package/node_modules/ip-address/dist/address-error.d.ts +15 -0
  555. package/node_modules/ip-address/dist/address-error.js +12 -0
  556. package/node_modules/ip-address/dist/address-error.js.map +1 -0
  557. package/node_modules/ip-address/dist/common.d.ts +74 -0
  558. package/node_modules/ip-address/dist/common.js +154 -0
  559. package/node_modules/ip-address/dist/common.js.map +1 -0
  560. package/node_modules/ip-address/dist/ip-address.d.ts +7 -0
  561. package/node_modules/ip-address/dist/ip-address.js +35 -0
  562. package/node_modules/ip-address/dist/ip-address.js.map +1 -0
  563. package/node_modules/ip-address/dist/ipv4.d.ts +347 -0
  564. package/node_modules/ip-address/dist/ipv4.js +602 -0
  565. package/node_modules/ip-address/dist/ipv4.js.map +1 -0
  566. package/node_modules/ip-address/dist/ipv6.d.ts +634 -0
  567. package/node_modules/ip-address/dist/ipv6.js +1461 -0
  568. package/node_modules/ip-address/dist/ipv6.js.map +1 -0
  569. package/node_modules/ip-address/dist/v4/constants.d.ts +16 -0
  570. package/node_modules/ip-address/dist/v4/constants.js +51 -0
  571. package/node_modules/ip-address/dist/v4/constants.js.map +1 -0
  572. package/node_modules/ip-address/dist/v6/constants.d.ts +61 -0
  573. package/node_modules/ip-address/dist/v6/constants.js +131 -0
  574. package/node_modules/ip-address/dist/v6/constants.js.map +1 -0
  575. package/node_modules/ip-address/dist/v6/helpers.d.ts +18 -0
  576. package/node_modules/ip-address/dist/v6/helpers.js +54 -0
  577. package/node_modules/ip-address/dist/v6/helpers.js.map +1 -0
  578. package/node_modules/ip-address/dist/v6/regular-expressions.d.ts +5 -0
  579. package/node_modules/ip-address/dist/v6/regular-expressions.js +95 -0
  580. package/node_modules/ip-address/dist/v6/regular-expressions.js.map +1 -0
  581. package/node_modules/ip-address/package.json +91 -0
  582. package/node_modules/lru-cache/LICENSE.md +55 -0
  583. package/node_modules/lru-cache/README.md +469 -0
  584. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.d.ts.map +1 -0
  585. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.js.map +1 -0
  586. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.d.ts +5 -0
  587. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
  588. package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts +1400 -0
  589. package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -0
  590. package/node_modules/lru-cache/dist/commonjs/browser/index.js +1733 -0
  591. package/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -0
  592. package/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
  593. package/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +7 -0
  594. package/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts +12 -0
  595. package/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts.map +1 -0
  596. package/node_modules/lru-cache/dist/commonjs/browser/perf.js +10 -0
  597. package/node_modules/lru-cache/dist/commonjs/browser/perf.js.map +1 -0
  598. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.cjs.map +1 -0
  599. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
  600. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts +5 -0
  601. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +7 -0
  602. package/node_modules/lru-cache/dist/commonjs/index.d.ts +1400 -0
  603. package/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -0
  604. package/node_modules/lru-cache/dist/commonjs/index.js +1733 -0
  605. package/node_modules/lru-cache/dist/commonjs/index.js.map +1 -0
  606. package/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
  607. package/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
  608. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.d.ts.map +1 -0
  609. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.js.map +1 -0
  610. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.d.ts +5 -0
  611. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
  612. package/node_modules/lru-cache/dist/commonjs/node/index.d.ts +1400 -0
  613. package/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -0
  614. package/node_modules/lru-cache/dist/commonjs/node/index.js +1733 -0
  615. package/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -0
  616. package/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
  617. package/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +7 -0
  618. package/node_modules/lru-cache/dist/commonjs/node/perf.d.ts +12 -0
  619. package/node_modules/lru-cache/dist/commonjs/node/perf.d.ts.map +1 -0
  620. package/node_modules/lru-cache/dist/commonjs/node/perf.js +10 -0
  621. package/node_modules/lru-cache/dist/commonjs/node/perf.js.map +1 -0
  622. package/node_modules/lru-cache/dist/commonjs/package.json +3 -0
  623. package/node_modules/lru-cache/dist/commonjs/perf.d.ts +12 -0
  624. package/node_modules/lru-cache/dist/commonjs/perf.d.ts.map +1 -0
  625. package/node_modules/lru-cache/dist/commonjs/perf.js +10 -0
  626. package/node_modules/lru-cache/dist/commonjs/perf.js.map +1 -0
  627. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel-react-native.d.ts.map +1 -0
  628. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel-react-native.js.map +1 -0
  629. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel.d.ts +5 -0
  630. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel.js +7 -0
  631. package/node_modules/lru-cache/dist/commonjs/react-native/index.d.ts +1400 -0
  632. package/node_modules/lru-cache/dist/commonjs/react-native/index.d.ts.map +1 -0
  633. package/node_modules/lru-cache/dist/commonjs/react-native/index.js +1733 -0
  634. package/node_modules/lru-cache/dist/commonjs/react-native/index.js.map +1 -0
  635. package/node_modules/lru-cache/dist/commonjs/react-native/perf.d.ts +12 -0
  636. package/node_modules/lru-cache/dist/commonjs/react-native/perf.d.ts.map +1 -0
  637. package/node_modules/lru-cache/dist/commonjs/react-native/perf.js +10 -0
  638. package/node_modules/lru-cache/dist/commonjs/react-native/perf.js.map +1 -0
  639. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.ts.map +1 -0
  640. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.js.map +1 -0
  641. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.d.ts +5 -0
  642. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
  643. package/node_modules/lru-cache/dist/esm/browser/index.d.ts +1400 -0
  644. package/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -0
  645. package/node_modules/lru-cache/dist/esm/browser/index.js +1729 -0
  646. package/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -0
  647. package/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
  648. package/node_modules/lru-cache/dist/esm/browser/index.min.js.map +7 -0
  649. package/node_modules/lru-cache/dist/esm/browser/perf.d.ts +12 -0
  650. package/node_modules/lru-cache/dist/esm/browser/perf.d.ts.map +1 -0
  651. package/node_modules/lru-cache/dist/esm/browser/perf.js +7 -0
  652. package/node_modules/lru-cache/dist/esm/browser/perf.js.map +1 -0
  653. package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -0
  654. package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.mjs.map +1 -0
  655. package/node_modules/lru-cache/dist/esm/diagnostics-channel.d.ts +5 -0
  656. package/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
  657. package/node_modules/lru-cache/dist/esm/index.d.ts +1400 -0
  658. package/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -0
  659. package/node_modules/lru-cache/dist/esm/index.js +1729 -0
  660. package/node_modules/lru-cache/dist/esm/index.js.map +1 -0
  661. package/node_modules/lru-cache/dist/esm/index.min.js +2 -0
  662. package/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
  663. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.ts.map +1 -0
  664. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.js.map +1 -0
  665. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.d.ts +5 -0
  666. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +6 -0
  667. package/node_modules/lru-cache/dist/esm/node/index.d.ts +1400 -0
  668. package/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -0
  669. package/node_modules/lru-cache/dist/esm/node/index.js +1729 -0
  670. package/node_modules/lru-cache/dist/esm/node/index.js.map +1 -0
  671. package/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
  672. package/node_modules/lru-cache/dist/esm/node/index.min.js.map +7 -0
  673. package/node_modules/lru-cache/dist/esm/node/perf.d.ts +12 -0
  674. package/node_modules/lru-cache/dist/esm/node/perf.d.ts.map +1 -0
  675. package/node_modules/lru-cache/dist/esm/node/perf.js +7 -0
  676. package/node_modules/lru-cache/dist/esm/node/perf.js.map +1 -0
  677. package/node_modules/lru-cache/dist/esm/package.json +3 -0
  678. package/node_modules/lru-cache/dist/esm/perf.d.ts +12 -0
  679. package/node_modules/lru-cache/dist/esm/perf.d.ts.map +1 -0
  680. package/node_modules/lru-cache/dist/esm/perf.js +7 -0
  681. package/node_modules/lru-cache/dist/esm/perf.js.map +1 -0
  682. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel-react-native.d.ts.map +1 -0
  683. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel-react-native.js.map +1 -0
  684. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel.d.ts +5 -0
  685. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel.js +4 -0
  686. package/node_modules/lru-cache/dist/esm/react-native/index.d.ts +1400 -0
  687. package/node_modules/lru-cache/dist/esm/react-native/index.d.ts.map +1 -0
  688. package/node_modules/lru-cache/dist/esm/react-native/index.js +1729 -0
  689. package/node_modules/lru-cache/dist/esm/react-native/index.js.map +1 -0
  690. package/node_modules/lru-cache/dist/esm/react-native/perf.d.ts +12 -0
  691. package/node_modules/lru-cache/dist/esm/react-native/perf.d.ts.map +1 -0
  692. package/node_modules/lru-cache/dist/esm/react-native/perf.js +7 -0
  693. package/node_modules/lru-cache/dist/esm/react-native/perf.js.map +1 -0
  694. package/node_modules/lru-cache/package.json +180 -0
  695. package/node_modules/make-fetch-happen/LICENSE +16 -0
  696. package/node_modules/make-fetch-happen/README.md +364 -0
  697. package/node_modules/make-fetch-happen/lib/cache/entry.js +471 -0
  698. package/node_modules/make-fetch-happen/lib/cache/errors.js +11 -0
  699. package/node_modules/make-fetch-happen/lib/cache/index.js +49 -0
  700. package/node_modules/make-fetch-happen/lib/cache/key.js +17 -0
  701. package/node_modules/make-fetch-happen/lib/cache/policy.js +161 -0
  702. package/node_modules/make-fetch-happen/lib/fetch.js +118 -0
  703. package/node_modules/make-fetch-happen/lib/index.js +41 -0
  704. package/node_modules/make-fetch-happen/lib/options.js +59 -0
  705. package/node_modules/make-fetch-happen/lib/pipeline.js +41 -0
  706. package/node_modules/make-fetch-happen/lib/remote.js +134 -0
  707. package/node_modules/make-fetch-happen/package.json +75 -0
  708. package/node_modules/minimatch/LICENSE.md +55 -0
  709. package/node_modules/minimatch/README.md +556 -0
  710. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +2 -0
  711. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +1 -0
  712. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
  713. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
  714. package/node_modules/minimatch/dist/commonjs/escape.d.ts +15 -0
  715. package/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -0
  716. package/node_modules/minimatch/dist/commonjs/escape.js +30 -0
  717. package/node_modules/minimatch/dist/commonjs/escape.js.map +1 -0
  718. package/node_modules/minimatch/dist/commonjs/index.d.ts +188 -0
  719. package/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -0
  720. package/node_modules/minimatch/dist/commonjs/index.js +1600 -0
  721. package/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
  722. package/node_modules/minimatch/dist/commonjs/package.json +3 -0
  723. package/node_modules/minimatch/dist/commonjs/unescape.d.ts +22 -0
  724. package/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -0
  725. package/node_modules/minimatch/dist/commonjs/unescape.js +38 -0
  726. package/node_modules/minimatch/dist/commonjs/unescape.js.map +1 -0
  727. package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +2 -0
  728. package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +1 -0
  729. package/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
  730. package/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -0
  731. package/node_modules/minimatch/dist/esm/escape.d.ts +15 -0
  732. package/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -0
  733. package/node_modules/minimatch/dist/esm/escape.js +26 -0
  734. package/node_modules/minimatch/dist/esm/escape.js.map +1 -0
  735. package/node_modules/minimatch/dist/esm/index.d.ts +188 -0
  736. package/node_modules/minimatch/dist/esm/index.d.ts.map +1 -0
  737. package/node_modules/minimatch/dist/esm/index.js +1589 -0
  738. package/node_modules/minimatch/dist/esm/index.js.map +1 -0
  739. package/node_modules/minimatch/dist/esm/package.json +3 -0
  740. package/node_modules/minimatch/dist/esm/unescape.d.ts +22 -0
  741. package/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -0
  742. package/node_modules/minimatch/dist/esm/unescape.js +34 -0
  743. package/node_modules/minimatch/dist/esm/unescape.js.map +1 -0
  744. package/node_modules/minimatch/package.json +74 -0
  745. package/node_modules/minipass/LICENSE.md +55 -0
  746. package/node_modules/minipass/README.md +825 -0
  747. package/node_modules/minipass/dist/commonjs/index.d.ts +545 -0
  748. package/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
  749. package/node_modules/minipass/dist/commonjs/index.js +1038 -0
  750. package/node_modules/minipass/dist/commonjs/index.js.map +1 -0
  751. package/node_modules/minipass/dist/commonjs/package.json +3 -0
  752. package/node_modules/minipass/dist/esm/index.d.ts +545 -0
  753. package/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
  754. package/node_modules/minipass/dist/esm/index.js +1020 -0
  755. package/node_modules/minipass/dist/esm/index.js.map +1 -0
  756. package/node_modules/minipass/dist/esm/package.json +3 -0
  757. package/node_modules/minipass/package.json +77 -0
  758. package/node_modules/minipass-collect/LICENSE +15 -0
  759. package/node_modules/minipass-collect/README.md +48 -0
  760. package/node_modules/minipass-collect/index.js +71 -0
  761. package/node_modules/minipass-collect/package.json +30 -0
  762. package/node_modules/minipass-fetch/LICENSE +28 -0
  763. package/node_modules/minipass-fetch/README.md +29 -0
  764. package/node_modules/minipass-fetch/lib/abort-error.js +17 -0
  765. package/node_modules/minipass-fetch/lib/blob.js +97 -0
  766. package/node_modules/minipass-fetch/lib/body.js +360 -0
  767. package/node_modules/minipass-fetch/lib/fetch-error.js +32 -0
  768. package/node_modules/minipass-fetch/lib/headers.js +267 -0
  769. package/node_modules/minipass-fetch/lib/index.js +376 -0
  770. package/node_modules/minipass-fetch/lib/request.js +282 -0
  771. package/node_modules/minipass-fetch/lib/response.js +90 -0
  772. package/node_modules/minipass-fetch/package.json +70 -0
  773. package/node_modules/minipass-flush/LICENSE.md +55 -0
  774. package/node_modules/minipass-flush/README.md +47 -0
  775. package/node_modules/minipass-flush/index.js +39 -0
  776. package/node_modules/minipass-flush/node_modules/minipass/LICENSE +15 -0
  777. package/node_modules/minipass-flush/node_modules/minipass/README.md +728 -0
  778. package/node_modules/minipass-flush/node_modules/minipass/index.d.ts +155 -0
  779. package/node_modules/minipass-flush/node_modules/minipass/index.js +649 -0
  780. package/node_modules/minipass-flush/node_modules/minipass/package.json +56 -0
  781. package/node_modules/minipass-flush/package.json +42 -0
  782. package/node_modules/minipass-pipeline/LICENSE +15 -0
  783. package/node_modules/minipass-pipeline/README.md +69 -0
  784. package/node_modules/minipass-pipeline/index.js +128 -0
  785. package/node_modules/minipass-pipeline/node_modules/minipass/LICENSE +15 -0
  786. package/node_modules/minipass-pipeline/node_modules/minipass/README.md +728 -0
  787. package/node_modules/minipass-pipeline/node_modules/minipass/index.d.ts +155 -0
  788. package/node_modules/minipass-pipeline/node_modules/minipass/index.js +649 -0
  789. package/node_modules/minipass-pipeline/node_modules/minipass/package.json +56 -0
  790. package/node_modules/minipass-pipeline/package.json +29 -0
  791. package/node_modules/minipass-sized/LICENSE +15 -0
  792. package/node_modules/minipass-sized/README.md +30 -0
  793. package/node_modules/minipass-sized/dist/commonjs/index.d.ts +21 -0
  794. package/node_modules/minipass-sized/dist/commonjs/index.d.ts.map +1 -0
  795. package/node_modules/minipass-sized/dist/commonjs/index.js +69 -0
  796. package/node_modules/minipass-sized/dist/commonjs/index.js.map +1 -0
  797. package/node_modules/minipass-sized/dist/commonjs/package.json +3 -0
  798. package/node_modules/minipass-sized/dist/esm/index.d.ts +21 -0
  799. package/node_modules/minipass-sized/dist/esm/index.d.ts.map +1 -0
  800. package/node_modules/minipass-sized/dist/esm/index.js +64 -0
  801. package/node_modules/minipass-sized/dist/esm/index.js.map +1 -0
  802. package/node_modules/minipass-sized/dist/esm/package.json +3 -0
  803. package/node_modules/minipass-sized/package.json +69 -0
  804. package/node_modules/minizlib/LICENSE +26 -0
  805. package/node_modules/minizlib/README.md +64 -0
  806. package/node_modules/minizlib/dist/commonjs/constants.d.ts +2 -0
  807. package/node_modules/minizlib/dist/commonjs/constants.d.ts.map +1 -0
  808. package/node_modules/minizlib/dist/commonjs/constants.js +123 -0
  809. package/node_modules/minizlib/dist/commonjs/constants.js.map +1 -0
  810. package/node_modules/minizlib/dist/commonjs/index.d.ts +99 -0
  811. package/node_modules/minizlib/dist/commonjs/index.d.ts.map +1 -0
  812. package/node_modules/minizlib/dist/commonjs/index.js +416 -0
  813. package/node_modules/minizlib/dist/commonjs/index.js.map +1 -0
  814. package/node_modules/minizlib/dist/commonjs/package.json +3 -0
  815. package/node_modules/minizlib/dist/esm/constants.d.ts +2 -0
  816. package/node_modules/minizlib/dist/esm/constants.d.ts.map +1 -0
  817. package/node_modules/minizlib/dist/esm/constants.js +117 -0
  818. package/node_modules/minizlib/dist/esm/constants.js.map +1 -0
  819. package/node_modules/minizlib/dist/esm/index.d.ts +99 -0
  820. package/node_modules/minizlib/dist/esm/index.d.ts.map +1 -0
  821. package/node_modules/minizlib/dist/esm/index.js +363 -0
  822. package/node_modules/minizlib/dist/esm/index.js.map +1 -0
  823. package/node_modules/minizlib/dist/esm/package.json +3 -0
  824. package/node_modules/minizlib/package.json +80 -0
  825. package/node_modules/ms/index.js +162 -0
  826. package/node_modules/ms/license.md +21 -0
  827. package/node_modules/ms/package.json +38 -0
  828. package/node_modules/ms/readme.md +59 -0
  829. package/node_modules/negotiator/LICENSE +24 -0
  830. package/node_modules/negotiator/README.md +212 -0
  831. package/node_modules/negotiator/index.js +83 -0
  832. package/node_modules/negotiator/lib/accept.js +54 -0
  833. package/node_modules/negotiator/lib/charset.js +145 -0
  834. package/node_modules/negotiator/lib/encoding.js +184 -0
  835. package/node_modules/negotiator/lib/language.js +158 -0
  836. package/node_modules/negotiator/lib/mediaType.js +176 -0
  837. package/node_modules/negotiator/package.json +49 -0
  838. package/node_modules/p-map/index.d.ts +392 -0
  839. package/node_modules/p-map/index.js +663 -0
  840. package/node_modules/p-map/license +9 -0
  841. package/node_modules/p-map/package.json +57 -0
  842. package/node_modules/p-map/readme.md +404 -0
  843. package/node_modules/path-scurry/LICENSE.md +55 -0
  844. package/node_modules/path-scurry/README.md +635 -0
  845. package/node_modules/path-scurry/dist/commonjs/index.d.ts +1122 -0
  846. package/node_modules/path-scurry/dist/commonjs/index.d.ts.map +1 -0
  847. package/node_modules/path-scurry/dist/commonjs/index.js +2056 -0
  848. package/node_modules/path-scurry/dist/commonjs/index.js.map +1 -0
  849. package/node_modules/path-scurry/dist/commonjs/package.json +3 -0
  850. package/node_modules/path-scurry/dist/esm/index.d.ts +1122 -0
  851. package/node_modules/path-scurry/dist/esm/index.d.ts.map +1 -0
  852. package/node_modules/path-scurry/dist/esm/index.js +2011 -0
  853. package/node_modules/path-scurry/dist/esm/index.js.map +1 -0
  854. package/node_modules/path-scurry/dist/esm/package.json +3 -0
  855. package/node_modules/path-scurry/package.json +72 -0
  856. package/node_modules/proc-log/LICENSE +15 -0
  857. package/node_modules/proc-log/README.md +226 -0
  858. package/node_modules/proc-log/lib/index.js +158 -0
  859. package/node_modules/proc-log/package.json +46 -0
  860. package/node_modules/proxy-agent-negotiate/dist/index.d.ts +14 -0
  861. package/node_modules/proxy-agent-negotiate/dist/index.d.ts.map +1 -0
  862. package/node_modules/proxy-agent-negotiate/dist/index.js +35 -0
  863. package/node_modules/proxy-agent-negotiate/dist/index.js.map +1 -0
  864. package/node_modules/proxy-agent-negotiate/package.json +47 -0
  865. package/node_modules/safer-buffer/LICENSE +21 -0
  866. package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
  867. package/node_modules/safer-buffer/Readme.md +156 -0
  868. package/node_modules/safer-buffer/dangerous.js +58 -0
  869. package/node_modules/safer-buffer/package.json +34 -0
  870. package/node_modules/safer-buffer/safer.js +77 -0
  871. package/node_modules/safer-buffer/tests.js +406 -0
  872. package/node_modules/semver/LICENSE +15 -0
  873. package/node_modules/semver/README.md +680 -0
  874. package/node_modules/semver/bin/semver.js +195 -0
  875. package/node_modules/semver/classes/comparator.js +143 -0
  876. package/node_modules/semver/classes/index.js +7 -0
  877. package/node_modules/semver/classes/range.js +577 -0
  878. package/node_modules/semver/classes/semver.js +350 -0
  879. package/node_modules/semver/functions/clean.js +8 -0
  880. package/node_modules/semver/functions/cmp.js +54 -0
  881. package/node_modules/semver/functions/coerce.js +62 -0
  882. package/node_modules/semver/functions/compare-build.js +9 -0
  883. package/node_modules/semver/functions/compare-loose.js +5 -0
  884. package/node_modules/semver/functions/compare.js +7 -0
  885. package/node_modules/semver/functions/diff.js +60 -0
  886. package/node_modules/semver/functions/eq.js +5 -0
  887. package/node_modules/semver/functions/gt.js +5 -0
  888. package/node_modules/semver/functions/gte.js +5 -0
  889. package/node_modules/semver/functions/inc.js +21 -0
  890. package/node_modules/semver/functions/lt.js +5 -0
  891. package/node_modules/semver/functions/lte.js +5 -0
  892. package/node_modules/semver/functions/major.js +5 -0
  893. package/node_modules/semver/functions/minor.js +5 -0
  894. package/node_modules/semver/functions/neq.js +5 -0
  895. package/node_modules/semver/functions/parse.js +18 -0
  896. package/node_modules/semver/functions/patch.js +5 -0
  897. package/node_modules/semver/functions/prerelease.js +8 -0
  898. package/node_modules/semver/functions/rcompare.js +5 -0
  899. package/node_modules/semver/functions/rsort.js +5 -0
  900. package/node_modules/semver/functions/satisfies.js +12 -0
  901. package/node_modules/semver/functions/sort.js +5 -0
  902. package/node_modules/semver/functions/truncate.js +48 -0
  903. package/node_modules/semver/functions/valid.js +8 -0
  904. package/node_modules/semver/index.js +93 -0
  905. package/node_modules/semver/internal/constants.js +67 -0
  906. package/node_modules/semver/internal/debug.js +11 -0
  907. package/node_modules/semver/internal/identifiers.js +29 -0
  908. package/node_modules/semver/internal/lrucache.js +42 -0
  909. package/node_modules/semver/internal/parse-options.js +17 -0
  910. package/node_modules/semver/internal/re.js +223 -0
  911. package/node_modules/semver/internal/trim-comparator-whitespace.js +438 -0
  912. package/node_modules/semver/package.json +78 -0
  913. package/node_modules/semver/preload.js +4 -0
  914. package/node_modules/semver/range.bnf +17 -0
  915. package/node_modules/semver/ranges/gtr.js +6 -0
  916. package/node_modules/semver/ranges/intersects.js +9 -0
  917. package/node_modules/semver/ranges/ltr.js +6 -0
  918. package/node_modules/semver/ranges/max-satisfying.js +27 -0
  919. package/node_modules/semver/ranges/min-satisfying.js +26 -0
  920. package/node_modules/semver/ranges/min-version.js +63 -0
  921. package/node_modules/semver/ranges/outside.js +82 -0
  922. package/node_modules/semver/ranges/simplify.js +49 -0
  923. package/node_modules/semver/ranges/subset.js +249 -0
  924. package/node_modules/semver/ranges/to-comparators.js +10 -0
  925. package/node_modules/semver/ranges/valid.js +13 -0
  926. package/node_modules/sigstore/LICENSE +202 -0
  927. package/node_modules/sigstore/README.md +219 -0
  928. package/node_modules/sigstore/dist/config.d.ts +38 -0
  929. package/node_modules/sigstore/dist/config.js +126 -0
  930. package/node_modules/sigstore/dist/index.d.ts +9 -0
  931. package/node_modules/sigstore/dist/index.js +34 -0
  932. package/node_modules/sigstore/dist/sigstore.d.ts +11 -0
  933. package/node_modules/sigstore/dist/sigstore.js +112 -0
  934. package/node_modules/sigstore/package.json +47 -0
  935. package/node_modules/smart-buffer/.prettierrc.yaml +5 -0
  936. package/node_modules/smart-buffer/.travis.yml +13 -0
  937. package/node_modules/smart-buffer/LICENSE +20 -0
  938. package/node_modules/smart-buffer/README.md +633 -0
  939. package/node_modules/smart-buffer/build/smartbuffer.js +1233 -0
  940. package/node_modules/smart-buffer/build/smartbuffer.js.map +1 -0
  941. package/node_modules/smart-buffer/build/utils.js +108 -0
  942. package/node_modules/smart-buffer/build/utils.js.map +1 -0
  943. package/node_modules/smart-buffer/docs/CHANGELOG.md +70 -0
  944. package/node_modules/smart-buffer/docs/README_v3.md +367 -0
  945. package/node_modules/smart-buffer/docs/ROADMAP.md +0 -0
  946. package/node_modules/smart-buffer/package.json +79 -0
  947. package/node_modules/smart-buffer/typings/smartbuffer.d.ts +755 -0
  948. package/node_modules/smart-buffer/typings/utils.d.ts +66 -0
  949. package/node_modules/socks/.prettierrc.yaml +7 -0
  950. package/node_modules/socks/LICENSE +20 -0
  951. package/node_modules/socks/README.md +686 -0
  952. package/node_modules/socks/build/client/socksclient.js +793 -0
  953. package/node_modules/socks/build/client/socksclient.js.map +1 -0
  954. package/node_modules/socks/build/common/constants.js +108 -0
  955. package/node_modules/socks/build/common/constants.js.map +1 -0
  956. package/node_modules/socks/build/common/helpers.js +166 -0
  957. package/node_modules/socks/build/common/helpers.js.map +1 -0
  958. package/node_modules/socks/build/common/receivebuffer.js +43 -0
  959. package/node_modules/socks/build/common/receivebuffer.js.map +1 -0
  960. package/node_modules/socks/build/common/util.js +25 -0
  961. package/node_modules/socks/build/common/util.js.map +1 -0
  962. package/node_modules/socks/build/index.js +18 -0
  963. package/node_modules/socks/build/index.js.map +1 -0
  964. package/node_modules/socks/docs/examples/index.md +17 -0
  965. package/node_modules/socks/docs/examples/javascript/associateExample.md +90 -0
  966. package/node_modules/socks/docs/examples/javascript/bindExample.md +83 -0
  967. package/node_modules/socks/docs/examples/javascript/connectExample.md +258 -0
  968. package/node_modules/socks/docs/examples/typescript/associateExample.md +93 -0
  969. package/node_modules/socks/docs/examples/typescript/bindExample.md +86 -0
  970. package/node_modules/socks/docs/examples/typescript/connectExample.md +265 -0
  971. package/node_modules/socks/docs/index.md +5 -0
  972. package/node_modules/socks/docs/migratingFromV1.md +86 -0
  973. package/node_modules/socks/package.json +58 -0
  974. package/node_modules/socks/typings/client/socksclient.d.ts +162 -0
  975. package/node_modules/socks/typings/common/constants.d.ts +151 -0
  976. package/node_modules/socks/typings/common/helpers.d.ts +17 -0
  977. package/node_modules/socks/typings/common/receiveBuffer.d.ts +12 -0
  978. package/node_modules/socks/typings/common/util.d.ts +14 -0
  979. package/node_modules/socks/typings/index.d.ts +1 -0
  980. package/node_modules/socks-proxy-agent/LICENSE +22 -0
  981. package/node_modules/socks-proxy-agent/README.md +50 -0
  982. package/node_modules/socks-proxy-agent/dist/index.d.ts +25 -0
  983. package/node_modules/socks-proxy-agent/dist/index.d.ts.map +1 -0
  984. package/node_modules/socks-proxy-agent/dist/index.js +169 -0
  985. package/node_modules/socks-proxy-agent/dist/index.js.map +1 -0
  986. package/node_modules/socks-proxy-agent/package.json +142 -0
  987. package/node_modules/ssri/LICENSE.md +16 -0
  988. package/node_modules/ssri/README.md +528 -0
  989. package/node_modules/ssri/lib/index.js +550 -0
  990. package/node_modules/ssri/package.json +66 -0
  991. package/node_modules/tuf-js/LICENSE +21 -0
  992. package/node_modules/tuf-js/README.md +3 -0
  993. package/node_modules/tuf-js/dist/config.d.ts +15 -0
  994. package/node_modules/tuf-js/dist/config.js +16 -0
  995. package/node_modules/tuf-js/dist/error.d.ts +22 -0
  996. package/node_modules/tuf-js/dist/error.js +49 -0
  997. package/node_modules/tuf-js/dist/fetcher.d.ts +25 -0
  998. package/node_modules/tuf-js/dist/fetcher.js +131 -0
  999. package/node_modules/tuf-js/dist/index.d.ts +6 -0
  1000. package/node_modules/tuf-js/dist/index.js +9 -0
  1001. package/node_modules/tuf-js/dist/store.d.ts +18 -0
  1002. package/node_modules/tuf-js/dist/store.js +219 -0
  1003. package/node_modules/tuf-js/dist/updater.d.ts +35 -0
  1004. package/node_modules/tuf-js/dist/updater.js +379 -0
  1005. package/node_modules/tuf-js/dist/utils/tmpfile.d.ts +3 -0
  1006. package/node_modules/tuf-js/dist/utils/tmpfile.js +25 -0
  1007. package/node_modules/tuf-js/dist/utils/url.d.ts +1 -0
  1008. package/node_modules/tuf-js/dist/utils/url.js +13 -0
  1009. package/node_modules/tuf-js/package.json +43 -0
  1010. package/node_modules/yallist/LICENSE +15 -0
  1011. package/node_modules/yallist/README.md +204 -0
  1012. package/node_modules/yallist/iterator.js +8 -0
  1013. package/node_modules/yallist/package.json +29 -0
  1014. package/node_modules/yallist/yallist.js +426 -0
  1015. package/npm-shrinkwrap.json +771 -0
  1016. package/package.json +56 -2
  1017. package/place_the_release/place_the_release.mjs +132 -0
  1018. package/read_the_release_registry/read_the_release_registry.mjs +255 -0
  1019. package/refuse_in_words/refuse_in_words.mjs +31 -0
  1020. package/signers.txt +11 -0
  1021. package/unpack_the_release_layer/unpack_the_release_layer.mjs +286 -0
  1022. package/verify_the_release_signature/verify_the_release_signature.mjs +174 -0
@@ -0,0 +1,314 @@
1
+ "use strict";
2
+ // synchronous utility for filtering entries and calculating subwalks
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Processor = exports.SubWalks = exports.MatchRecord = exports.HasWalkedCache = void 0;
5
+ const minimatch_1 = require("minimatch");
6
+ /**
7
+ * A cache of which patterns have been processed for a given Path, in
8
+ * this walk step and the steps that led to it.
9
+ *
10
+ * A step only adds to it before it makes the caches for the next
11
+ * steps, so a copy can look up the chain of caches before it, in
12
+ * place of copying their entries. A pattern for a path that a cache
13
+ * up the chain has already seen is added to that cache's set, so that
14
+ * the other steps that share it see it too. Paths are keyed by their
15
+ * full path, because path-scurry can make a new Path object for the
16
+ * same path once its cache of children is full.
17
+ */
18
+ class HasWalkedCache {
19
+ parent;
20
+ store;
21
+ constructor(parent) {
22
+ this.parent = parent;
23
+ }
24
+ copy() {
25
+ return new HasWalkedCache(this);
26
+ }
27
+ // the set for the path in this cache, or the closest one before it
28
+ #find(fullpath) {
29
+ const set = this.store?.get(fullpath);
30
+ return set || !this.parent ? set : this.parent.#find(fullpath);
31
+ }
32
+ hasWalked(target, pattern) {
33
+ return !!this.#find(target.fullpath())?.has(pattern.globString());
34
+ }
35
+ storeWalked(target, pattern) {
36
+ const fullpath = target.fullpath();
37
+ const cached = this.#find(fullpath);
38
+ if (cached)
39
+ cached.add(pattern.globString());
40
+ else
41
+ (this.store ??= new Map()).set(fullpath, new Set([pattern.globString()]));
42
+ }
43
+ }
44
+ exports.HasWalkedCache = HasWalkedCache;
45
+ /**
46
+ * A record of which paths have been matched in a given walk step,
47
+ * and whether they only are considered a match if they are a directory,
48
+ * and whether their absolute or relative path should be returned.
49
+ * The store maps each path to {@link MatchRecord.ABSOLUTE} and
50
+ * {@link MatchRecord.IF_DIR} flags.
51
+ */
52
+ class MatchRecord {
53
+ static ABSOLUTE = 2;
54
+ static IF_DIR = 1;
55
+ store = new Map();
56
+ add(target, absolute, ifDir) {
57
+ const n = (absolute ? MatchRecord.ABSOLUTE : 0) |
58
+ (ifDir ? MatchRecord.IF_DIR : 0);
59
+ const current = this.store.get(target);
60
+ this.store.set(target, current === undefined ? n : n & current);
61
+ }
62
+ }
63
+ exports.MatchRecord = MatchRecord;
64
+ /**
65
+ * A collection of patterns that must be processed in a subsequent step
66
+ * for a given path.
67
+ */
68
+ class SubWalks {
69
+ store = new Map();
70
+ add(target, pattern) {
71
+ if (!target.canReaddir()) {
72
+ return;
73
+ }
74
+ const subs = this.store.get(target);
75
+ if (subs) {
76
+ if (!subs.find(p => p.globString() === pattern.globString())) {
77
+ subs.push(pattern);
78
+ }
79
+ }
80
+ else
81
+ this.store.set(target, [pattern]);
82
+ }
83
+ get(target) {
84
+ const subs = this.store.get(target);
85
+ /* c8 ignore start */
86
+ if (!subs) {
87
+ throw new Error('attempting to walk unknown path');
88
+ }
89
+ /* c8 ignore stop */
90
+ return subs;
91
+ }
92
+ entries() {
93
+ return this.keys().map(k => [k, this.store.get(k)]);
94
+ }
95
+ keys() {
96
+ return [...this.store.keys()].filter(t => t.canReaddir());
97
+ }
98
+ }
99
+ exports.SubWalks = SubWalks;
100
+ /**
101
+ * The class that processes patterns for a given path.
102
+ *
103
+ * Handles child entry filtering, and determining whether a path's
104
+ * directory contents must be read.
105
+ */
106
+ class Processor {
107
+ hasWalkedCache;
108
+ matches = new MatchRecord();
109
+ subwalks = new SubWalks();
110
+ patterns;
111
+ follow;
112
+ dot;
113
+ opts;
114
+ constructor(opts, hasWalkedCache) {
115
+ this.opts = opts;
116
+ this.follow = !!opts.follow;
117
+ this.dot = !!opts.dot;
118
+ this.hasWalkedCache =
119
+ hasWalkedCache ? hasWalkedCache.copy() : new HasWalkedCache();
120
+ }
121
+ processPatterns(target, patterns) {
122
+ this.patterns = patterns;
123
+ const processingSet = patterns.map(p => [target, p]);
124
+ // map of paths to the magic-starting subwalks they need to walk
125
+ // first item in patterns is the filter
126
+ for (let [t, pattern] of processingSet) {
127
+ this.hasWalkedCache.storeWalked(t, pattern);
128
+ const root = pattern.root();
129
+ const absolute = pattern.isAbsolute() && this.opts.absolute !== false;
130
+ // start absolute patterns at root
131
+ if (root) {
132
+ t = t.resolve(root === '/' && this.opts.root !== undefined ?
133
+ this.opts.root
134
+ : root);
135
+ const rest = pattern.rest();
136
+ if (!rest) {
137
+ this.matches.add(t, true, false);
138
+ continue;
139
+ }
140
+ else {
141
+ pattern = rest;
142
+ }
143
+ }
144
+ if (t.isENOENT())
145
+ continue;
146
+ let p;
147
+ let rest;
148
+ let changed = false;
149
+ while (typeof (p = pattern.pattern()) === 'string' &&
150
+ (rest = pattern.rest())) {
151
+ const c = t.resolve(p);
152
+ t = c;
153
+ pattern = rest;
154
+ changed = true;
155
+ }
156
+ p = pattern.pattern();
157
+ rest = pattern.rest();
158
+ if (changed) {
159
+ if (this.hasWalkedCache.hasWalked(t, pattern))
160
+ continue;
161
+ this.hasWalkedCache.storeWalked(t, pattern);
162
+ }
163
+ // now we have either a final string for a known entry,
164
+ // more strings for an unknown entry,
165
+ // or a pattern starting with magic, mounted on t.
166
+ if (typeof p === 'string') {
167
+ // must not be final entry, otherwise we would have
168
+ // concatenated it earlier.
169
+ const ifDir = p === '..' || p === '' || p === '.';
170
+ this.matches.add(t.resolve(p), absolute, ifDir);
171
+ continue;
172
+ }
173
+ else if (p === minimatch_1.GLOBSTAR) {
174
+ // if no rest, match and subwalk pattern
175
+ // if rest, process rest and subwalk pattern
176
+ // if it's a symlink, but we didn't get here by way of a
177
+ // globstar match (meaning it's the first time THIS globstar
178
+ // has traversed a symlink), then we follow it. Otherwise, stop.
179
+ if (!t.isSymbolicLink() ||
180
+ this.follow ||
181
+ pattern.checkFollowGlobstar()) {
182
+ this.subwalks.add(t, pattern);
183
+ }
184
+ const rp = rest?.pattern();
185
+ const rrest = rest?.rest();
186
+ if (!rest || ((rp === '' || rp === '.') && !rrest)) {
187
+ // only HAS to be a dir if it ends in **/ or **/.
188
+ // but ending in ** will match files as well.
189
+ this.matches.add(t, absolute, rp === '' || rp === '.');
190
+ }
191
+ else {
192
+ if (rp === '..') {
193
+ // this would mean you're matching **/.. at the fs root,
194
+ // and no thanks, I'm not gonna test that specific case.
195
+ /* c8 ignore start */
196
+ const tp = t.parent || t;
197
+ /* c8 ignore stop */
198
+ if (!rrest)
199
+ this.matches.add(tp, absolute, true);
200
+ else if (!this.hasWalkedCache.hasWalked(tp, rrest)) {
201
+ this.subwalks.add(tp, rrest);
202
+ }
203
+ }
204
+ }
205
+ }
206
+ else if (typeof p === 'object') {
207
+ this.subwalks.add(t, pattern);
208
+ }
209
+ }
210
+ return this;
211
+ }
212
+ subwalkTargets() {
213
+ return this.subwalks.keys();
214
+ }
215
+ child() {
216
+ return new Processor(this.opts, this.hasWalkedCache);
217
+ }
218
+ // return a new Processor containing the subwalks for each
219
+ // child entry, and a set of matches, and
220
+ // a hasWalkedCache that's a copy of this one
221
+ // then we're going to call
222
+ filterEntries(parent, entries) {
223
+ const patterns = this.subwalks.get(parent);
224
+ // put matches and entry walks into the results processor
225
+ const results = this.child();
226
+ for (const e of entries) {
227
+ for (const pattern of patterns) {
228
+ const absolute = pattern.isAbsolute();
229
+ const p = pattern.pattern();
230
+ const rest = pattern.rest();
231
+ if (p === minimatch_1.GLOBSTAR) {
232
+ results.testGlobstar(e, pattern, rest, absolute);
233
+ }
234
+ else if (typeof p === 'object') {
235
+ results.testMatcher(e, p, rest, absolute);
236
+ }
237
+ else {
238
+ results.testString(e, p, rest, absolute);
239
+ }
240
+ }
241
+ }
242
+ return results;
243
+ }
244
+ testGlobstar(e, pattern, rest, absolute) {
245
+ if (this.dot || !e.name.startsWith('.')) {
246
+ if (!pattern.hasMore()) {
247
+ this.matches.add(e, absolute, false);
248
+ }
249
+ if (e.canReaddir()) {
250
+ // if we're in follow mode or it's not a symlink, just keep
251
+ // testing the same pattern. If there's more after the globstar,
252
+ // then this symlink consumes the globstar. If not, then we can
253
+ // follow at most ONE symlink along the way, so we mark it, which
254
+ // also checks to ensure that it wasn't already marked.
255
+ if (this.follow || !e.isSymbolicLink()) {
256
+ this.subwalks.add(e, pattern);
257
+ }
258
+ else if (e.isSymbolicLink()) {
259
+ if (rest && pattern.checkFollowGlobstar()) {
260
+ this.subwalks.add(e, rest);
261
+ }
262
+ else if (pattern.markFollowGlobstar()) {
263
+ this.subwalks.add(e, pattern);
264
+ }
265
+ }
266
+ }
267
+ }
268
+ // if the NEXT thing matches this entry, then also add
269
+ // the rest.
270
+ if (rest) {
271
+ const rp = rest.pattern();
272
+ if (typeof rp === 'string' &&
273
+ // dots and empty were handled already
274
+ rp !== '..' &&
275
+ rp !== '' &&
276
+ rp !== '.') {
277
+ this.testString(e, rp, rest.rest(), absolute);
278
+ }
279
+ else if (rp === '..') {
280
+ /* c8 ignore start */
281
+ const ep = e.parent || e;
282
+ /* c8 ignore stop */
283
+ this.subwalks.add(ep, rest);
284
+ }
285
+ else if (typeof rp === 'object') {
286
+ this.testMatcher(e, rp, rest.rest(), absolute);
287
+ }
288
+ }
289
+ }
290
+ testMatcher(e, p, rest, absolute) {
291
+ // an entry name is one path portion, with no `/`
292
+ if (!p.testUnchecked(e.name))
293
+ return;
294
+ if (!rest) {
295
+ this.matches.add(e, absolute, false);
296
+ }
297
+ else {
298
+ this.subwalks.add(e, rest);
299
+ }
300
+ }
301
+ testString(e, p, rest, absolute) {
302
+ // should never happen?
303
+ if (!e.isNamed(p))
304
+ return;
305
+ if (!rest) {
306
+ this.matches.add(e, absolute, false);
307
+ }
308
+ else {
309
+ this.subwalks.add(e, rest);
310
+ }
311
+ }
312
+ }
313
+ exports.Processor = Processor;
314
+ //# sourceMappingURL=processor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"processor.js","sourceRoot":"","sources":["../../src/processor.ts"],"names":[],"mappings":";AAAA,qEAAqE;;;AAErE,yCAAoC;AAKpC;;;;;;;;;;;GAWG;AACH,MAAa,cAAc;IACzB,MAAM,CAAiB;IACvB,KAAK,CAA2B;IAChC,YAAY,MAAuB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IACD,IAAI;QACF,OAAO,IAAI,cAAc,CAAC,IAAI,CAAC,CAAA;IACjC,CAAC;IACD,mEAAmE;IACnE,KAAK,CAAC,QAAgB;QACpB,MAAM,GAAG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IAAoB,EACpB,QAAiB;QAEjB,iDAAiD;QACjD,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC;YAAE,OAAM;QACpC,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAA;QACtC,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CAAA;QAC5B,CAAC;IACH,CAAC;IAED,UAAU,CAAC,CAAO,EAAE,CAAS,EAAE,IAAoB,EAAE,QAAiB;QACpE,uBAAuB;QACvB,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAAE,OAAM;QACzB,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAA;QACtC,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CAAA;QAC5B,CAAC;IACH,CAAC;CACF;AA/ND,8BA+NC","sourcesContent":["// synchronous utility for filtering entries and calculating subwalks\n\nimport { GLOBSTAR } from 'minimatch'\nimport type { Path } from 'path-scurry'\nimport type { MMMatcher, MMPattern, Pattern } from './pattern.js'\nimport type { GlobWalkerOpts } from './walker.js'\n\n/**\n * A cache of which patterns have been processed for a given Path, in\n * this walk step and the steps that led to it.\n *\n * A step only adds to it before it makes the caches for the next\n * steps, so a copy can look up the chain of caches before it, in\n * place of copying their entries. A pattern for a path that a cache\n * up the chain has already seen is added to that cache's set, so that\n * the other steps that share it see it too. Paths are keyed by their\n * full path, because path-scurry can make a new Path object for the\n * same path once its cache of children is full.\n */\nexport class HasWalkedCache {\n parent?: HasWalkedCache\n store?: Map<string, Set<string>>\n constructor(parent?: HasWalkedCache) {\n this.parent = parent\n }\n copy() {\n return new HasWalkedCache(this)\n }\n // the set for the path in this cache, or the closest one before it\n #find(fullpath: string): Set<string> | undefined {\n const set = this.store?.get(fullpath)\n return set || !this.parent ? set : this.parent.#find(fullpath)\n }\n\n hasWalked(target: Path, pattern: Pattern) {\n return !!this.#find(target.fullpath())?.has(pattern.globString())\n }\n storeWalked(target: Path, pattern: Pattern) {\n const fullpath = target.fullpath()\n const cached = this.#find(fullpath)\n if (cached) cached.add(pattern.globString())\n else\n (this.store ??= new Map()).set(\n fullpath,\n new Set([pattern.globString()]),\n )\n }\n}\n\n/**\n * A record of which paths have been matched in a given walk step,\n * and whether they only are considered a match if they are a directory,\n * and whether their absolute or relative path should be returned.\n * The store maps each path to {@link MatchRecord.ABSOLUTE} and\n * {@link MatchRecord.IF_DIR} flags.\n */\nexport class MatchRecord {\n static readonly ABSOLUTE = 2\n static readonly IF_DIR = 1\n store: Map<Path, number> = new Map()\n add(target: Path, absolute: boolean, ifDir: boolean) {\n const n =\n (absolute ? MatchRecord.ABSOLUTE : 0) |\n (ifDir ? MatchRecord.IF_DIR : 0)\n const current = this.store.get(target)\n this.store.set(target, current === undefined ? n : n & current)\n }\n}\n\n/**\n * A collection of patterns that must be processed in a subsequent step\n * for a given path.\n */\nexport class SubWalks {\n store: Map<Path, Pattern[]> = new Map()\n add(target: Path, pattern: Pattern) {\n if (!target.canReaddir()) {\n return\n }\n const subs = this.store.get(target)\n if (subs) {\n if (!subs.find(p => p.globString() === pattern.globString())) {\n subs.push(pattern)\n }\n } else this.store.set(target, [pattern])\n }\n get(target: Path): Pattern[] {\n const subs = this.store.get(target)\n /* c8 ignore start */\n if (!subs) {\n throw new Error('attempting to walk unknown path')\n }\n /* c8 ignore stop */\n return subs\n }\n entries(): [Path, Pattern[]][] {\n return this.keys().map(k => [k, this.store.get(k) as Pattern[]])\n }\n keys(): Path[] {\n return [...this.store.keys()].filter(t => t.canReaddir())\n }\n}\n\n/**\n * The class that processes patterns for a given path.\n *\n * Handles child entry filtering, and determining whether a path's\n * directory contents must be read.\n */\nexport class Processor {\n hasWalkedCache: HasWalkedCache\n matches = new MatchRecord()\n subwalks = new SubWalks()\n patterns?: Pattern[]\n follow: boolean\n dot: boolean\n opts: GlobWalkerOpts\n\n constructor(opts: GlobWalkerOpts, hasWalkedCache?: HasWalkedCache) {\n this.opts = opts\n this.follow = !!opts.follow\n this.dot = !!opts.dot\n this.hasWalkedCache =\n hasWalkedCache ? hasWalkedCache.copy() : new HasWalkedCache()\n }\n\n processPatterns(target: Path, patterns: Pattern[]) {\n this.patterns = patterns\n const processingSet: [Path, Pattern][] = patterns.map(p => [target, p])\n\n // map of paths to the magic-starting subwalks they need to walk\n // first item in patterns is the filter\n\n for (let [t, pattern] of processingSet) {\n this.hasWalkedCache.storeWalked(t, pattern)\n\n const root = pattern.root()\n const absolute = pattern.isAbsolute() && this.opts.absolute !== false\n\n // start absolute patterns at root\n if (root) {\n t = t.resolve(\n root === '/' && this.opts.root !== undefined ?\n this.opts.root\n : root,\n )\n const rest = pattern.rest()\n if (!rest) {\n this.matches.add(t, true, false)\n continue\n } else {\n pattern = rest\n }\n }\n\n if (t.isENOENT()) continue\n\n let p: MMPattern\n let rest: Pattern | null\n let changed = false\n while (\n typeof (p = pattern.pattern()) === 'string' &&\n (rest = pattern.rest())\n ) {\n const c = t.resolve(p)\n t = c\n pattern = rest\n changed = true\n }\n p = pattern.pattern()\n rest = pattern.rest()\n if (changed) {\n if (this.hasWalkedCache.hasWalked(t, pattern)) continue\n this.hasWalkedCache.storeWalked(t, pattern)\n }\n\n // now we have either a final string for a known entry,\n // more strings for an unknown entry,\n // or a pattern starting with magic, mounted on t.\n if (typeof p === 'string') {\n // must not be final entry, otherwise we would have\n // concatenated it earlier.\n const ifDir = p === '..' || p === '' || p === '.'\n this.matches.add(t.resolve(p), absolute, ifDir)\n continue\n } else if (p === GLOBSTAR) {\n // if no rest, match and subwalk pattern\n // if rest, process rest and subwalk pattern\n // if it's a symlink, but we didn't get here by way of a\n // globstar match (meaning it's the first time THIS globstar\n // has traversed a symlink), then we follow it. Otherwise, stop.\n if (\n !t.isSymbolicLink() ||\n this.follow ||\n pattern.checkFollowGlobstar()\n ) {\n this.subwalks.add(t, pattern)\n }\n const rp = rest?.pattern()\n const rrest = rest?.rest()\n if (!rest || ((rp === '' || rp === '.') && !rrest)) {\n // only HAS to be a dir if it ends in **/ or **/.\n // but ending in ** will match files as well.\n this.matches.add(t, absolute, rp === '' || rp === '.')\n } else {\n if (rp === '..') {\n // this would mean you're matching **/.. at the fs root,\n // and no thanks, I'm not gonna test that specific case.\n /* c8 ignore start */\n const tp = t.parent || t\n /* c8 ignore stop */\n if (!rrest) this.matches.add(tp, absolute, true)\n else if (!this.hasWalkedCache.hasWalked(tp, rrest)) {\n this.subwalks.add(tp, rrest)\n }\n }\n }\n } else if (typeof p === 'object') {\n this.subwalks.add(t, pattern)\n }\n }\n\n return this\n }\n\n subwalkTargets(): Path[] {\n return this.subwalks.keys()\n }\n\n child() {\n return new Processor(this.opts, this.hasWalkedCache)\n }\n\n // return a new Processor containing the subwalks for each\n // child entry, and a set of matches, and\n // a hasWalkedCache that's a copy of this one\n // then we're going to call\n filterEntries(parent: Path, entries: Path[]): Processor {\n const patterns = this.subwalks.get(parent)\n // put matches and entry walks into the results processor\n const results = this.child()\n for (const e of entries) {\n for (const pattern of patterns) {\n const absolute = pattern.isAbsolute()\n const p = pattern.pattern()\n const rest = pattern.rest()\n if (p === GLOBSTAR) {\n results.testGlobstar(e, pattern, rest, absolute)\n } else if (typeof p === 'object') {\n results.testMatcher(e, p, rest, absolute)\n } else {\n results.testString(e, p, rest, absolute)\n }\n }\n }\n return results\n }\n\n testGlobstar(\n e: Path,\n pattern: Pattern,\n rest: Pattern | null,\n absolute: boolean,\n ) {\n if (this.dot || !e.name.startsWith('.')) {\n if (!pattern.hasMore()) {\n this.matches.add(e, absolute, false)\n }\n if (e.canReaddir()) {\n // if we're in follow mode or it's not a symlink, just keep\n // testing the same pattern. If there's more after the globstar,\n // then this symlink consumes the globstar. If not, then we can\n // follow at most ONE symlink along the way, so we mark it, which\n // also checks to ensure that it wasn't already marked.\n if (this.follow || !e.isSymbolicLink()) {\n this.subwalks.add(e, pattern)\n } else if (e.isSymbolicLink()) {\n if (rest && pattern.checkFollowGlobstar()) {\n this.subwalks.add(e, rest)\n } else if (pattern.markFollowGlobstar()) {\n this.subwalks.add(e, pattern)\n }\n }\n }\n }\n // if the NEXT thing matches this entry, then also add\n // the rest.\n if (rest) {\n const rp = rest.pattern()\n if (\n typeof rp === 'string' &&\n // dots and empty were handled already\n rp !== '..' &&\n rp !== '' &&\n rp !== '.'\n ) {\n this.testString(e, rp, rest.rest(), absolute)\n } else if (rp === '..') {\n /* c8 ignore start */\n const ep = e.parent || e\n /* c8 ignore stop */\n this.subwalks.add(ep, rest)\n } else if (typeof rp === 'object') {\n this.testMatcher(e, rp, rest.rest(), absolute)\n }\n }\n }\n\n testMatcher(\n e: Path,\n p: MMMatcher,\n rest: Pattern | null,\n absolute: boolean,\n ) {\n // an entry name is one path portion, with no `/`\n if (!p.testUnchecked(e.name)) return\n if (!rest) {\n this.matches.add(e, absolute, false)\n } else {\n this.subwalks.add(e, rest)\n }\n }\n\n testString(e: Path, p: string, rest: Pattern | null, absolute: boolean) {\n // should never happen?\n if (!e.isNamed(p)) return\n if (!rest) {\n this.matches.add(e, absolute, false)\n } else {\n this.subwalks.add(e, rest)\n }\n }\n}\n"]}
@@ -0,0 +1,99 @@
1
+ /**
2
+ * Single-use utility classes to provide functionality to the {@link Glob}
3
+ * methods.
4
+ *
5
+ * @module
6
+ */
7
+ import { Minipass } from 'minipass';
8
+ import type { Form } from 'minimatch';
9
+ import type { Path } from 'path-scurry';
10
+ import type { IgnoreLike } from './ignore.js';
11
+ import type { Pattern } from './pattern.js';
12
+ import { Processor } from './processor.js';
13
+ export interface GlobWalkerOpts {
14
+ absolute?: boolean;
15
+ allowWindowsEscape?: boolean;
16
+ cwd?: string | URL;
17
+ dot?: boolean;
18
+ dotRelative?: boolean;
19
+ follow?: boolean;
20
+ ignore?: string | string[] | IgnoreLike | ReadonlyArray<string>;
21
+ mark?: boolean;
22
+ matchBase?: boolean;
23
+ maxDepth?: number;
24
+ nobrace?: boolean;
25
+ nocase?: boolean;
26
+ nodir?: boolean;
27
+ noext?: boolean;
28
+ noglobstar?: boolean;
29
+ normalize?: boolean | Form;
30
+ platform?: NodeJS.Platform;
31
+ posix?: boolean;
32
+ realpath?: boolean;
33
+ root?: string;
34
+ stat?: boolean;
35
+ signal?: AbortSignal;
36
+ windowsPathsNoEscape?: boolean;
37
+ withFileTypes?: boolean;
38
+ includeChildMatches?: boolean;
39
+ }
40
+ export type GWOFileTypesTrue = GlobWalkerOpts & {
41
+ withFileTypes: true;
42
+ };
43
+ export type GWOFileTypesFalse = GlobWalkerOpts & {
44
+ withFileTypes: false;
45
+ };
46
+ export type GWOFileTypesUnset = GlobWalkerOpts & {
47
+ withFileTypes?: undefined;
48
+ };
49
+ export type Result<O extends GlobWalkerOpts> = O extends GWOFileTypesTrue ? Path : O extends GWOFileTypesFalse ? string : O extends GWOFileTypesUnset ? string : Path | string;
50
+ export type Matches<O extends GlobWalkerOpts> = O extends GWOFileTypesTrue ? Path[] : O extends GWOFileTypesFalse ? string[] : O extends GWOFileTypesUnset ? string[] : (Path | string)[];
51
+ export type MatchStream<O extends GlobWalkerOpts> = Minipass<Result<O>, Result<O>>;
52
+ /**
53
+ * basic walking utilities that all the glob walker types use
54
+ */
55
+ export declare abstract class GlobUtil<O extends GlobWalkerOpts = GlobWalkerOpts> {
56
+ #private;
57
+ path: Path;
58
+ patterns: Pattern[];
59
+ opts: O;
60
+ seen: Set<Path>;
61
+ paused: boolean;
62
+ aborted: boolean;
63
+ signal?: AbortSignal;
64
+ maxDepth: number;
65
+ includeChildMatches: boolean;
66
+ constructor(patterns: Pattern[], path: Path, opts: O);
67
+ pause(): void;
68
+ resume(): void;
69
+ onResume(fn: () => unknown): void;
70
+ matchCheck(inPath: Path, ifDir: boolean): Promise<Path | undefined>;
71
+ matchCheckTest(e: Path | undefined, ifDir: boolean): Path | undefined;
72
+ matchCheckSync(inPath: Path, ifDir: boolean): Path | undefined;
73
+ abstract matchEmit(p: Result<O>): void;
74
+ abstract matchEmit(p: string | Path): void;
75
+ matchFinish(e: Path, absolute: boolean): void;
76
+ match(e: Path, absolute: boolean, ifDir: boolean): Promise<void>;
77
+ matchSync(e: Path, absolute: boolean, ifDir: boolean): void;
78
+ walkCB(target: Path, patterns: Pattern[], cb: () => unknown): unknown;
79
+ walkCB2(target: Path, patterns: Pattern[], processor: Processor, cb: () => unknown): unknown;
80
+ walkCB3(target: Path, entries: Path[], processorx: Processor, cb: () => unknown): void;
81
+ walkCBSync(target: Path, patterns: Pattern[], cb: () => unknown): unknown;
82
+ walkCB2Sync(target: Path, patterns: Pattern[], processor: Processor, cb: () => unknown): unknown;
83
+ walkCB3Sync(target: Path, entries: Path[], processor: Processor, cb: () => unknown): void;
84
+ }
85
+ export declare class GlobWalker<O extends GlobWalkerOpts = GlobWalkerOpts> extends GlobUtil<O> {
86
+ matches: Result<O>[];
87
+ constructor(patterns: Pattern[], path: Path, opts: O);
88
+ matchEmit(e: Result<O>): void;
89
+ walk(): Promise<Result<O>[]>;
90
+ walkSync(): Result<O>[];
91
+ }
92
+ export declare class GlobStream<O extends GlobWalkerOpts = GlobWalkerOpts> extends GlobUtil<O> {
93
+ results: Minipass<Result<O>, Result<O>>;
94
+ constructor(patterns: Pattern[], path: Path, opts: O);
95
+ matchEmit(e: Result<O>): void;
96
+ stream(): MatchStream<O>;
97
+ streamSync(): MatchStream<O>;
98
+ }
99
+ //# sourceMappingURL=walker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walker.d.ts","sourceRoot":"","sources":["../../src/walker.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACnC,OAAO,KAAK,EAAE,IAAI,EAAE,MA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