@macula-io/martha 0.0.0-stage → 1.0.0
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.
- package/LICENSE +201 -0
- package/README.md +59 -2
- package/bin/martha-install.mjs +54 -0
- package/check_the_node_version/check_the_node_version.mjs +19 -0
- package/install_a_release/install_a_release.mjs +166 -0
- package/keep_the_names_in_one_place/names.mjs +49 -0
- package/node_modules/@gar/promise-retry/LICENSE +20 -0
- package/node_modules/@gar/promise-retry/README.md +86 -0
- package/node_modules/@gar/promise-retry/lib/index.d.ts +114 -0
- package/node_modules/@gar/promise-retry/lib/index.js +62 -0
- package/node_modules/@gar/promise-retry/lib/retry.js +109 -0
- package/node_modules/@gar/promise-retry/package.json +45 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/LICENSE.md +55 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/README.md +364 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.d.ts +123 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.js +778 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.js.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.min.js +3 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/numeric-range.d.ts +15 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/numeric-range.d.ts.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/numeric-range.js +76 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/numeric-range.js.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/package.json +3 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.d.ts +4 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.d.ts.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.js +142 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.js.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.d.ts +123 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.js +774 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.js.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.min.js +3 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.min.js.map +7 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/numeric-range.d.ts +15 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/numeric-range.d.ts.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/numeric-range.js +72 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/numeric-range.js.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/package.json +3 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.d.ts +4 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.d.ts.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.js +138 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.js.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/package.json +56 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/src/index.ts +932 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/src/numeric-range.ts +79 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/src/parse-class.ts +158 -0
- package/node_modules/@npmcli/agent/README.md +40 -0
- package/node_modules/@npmcli/agent/lib/agents.js +268 -0
- package/node_modules/@npmcli/agent/lib/dns.js +53 -0
- package/node_modules/@npmcli/agent/lib/errors.js +61 -0
- package/node_modules/@npmcli/agent/lib/index.js +56 -0
- package/node_modules/@npmcli/agent/lib/options.js +90 -0
- package/node_modules/@npmcli/agent/lib/proxy.js +88 -0
- package/node_modules/@npmcli/agent/package.json +61 -0
- package/node_modules/@npmcli/fs/LICENSE.md +20 -0
- package/node_modules/@npmcli/fs/README.md +97 -0
- package/node_modules/@npmcli/fs/lib/common/get-options.js +20 -0
- package/node_modules/@npmcli/fs/lib/common/node.js +9 -0
- package/node_modules/@npmcli/fs/lib/cp/LICENSE +15 -0
- package/node_modules/@npmcli/fs/lib/cp/errors.js +129 -0
- package/node_modules/@npmcli/fs/lib/cp/index.js +22 -0
- package/node_modules/@npmcli/fs/lib/cp/polyfill.js +428 -0
- package/node_modules/@npmcli/fs/lib/index.js +13 -0
- package/node_modules/@npmcli/fs/lib/move-file.js +78 -0
- package/node_modules/@npmcli/fs/lib/readdir-scoped.js +20 -0
- package/node_modules/@npmcli/fs/lib/with-temp-dir.js +39 -0
- package/node_modules/@npmcli/fs/package.json +54 -0
- package/node_modules/@npmcli/redact/LICENSE +21 -0
- package/node_modules/@npmcli/redact/README.md +42 -0
- package/node_modules/@npmcli/redact/lib/deep-map.js +71 -0
- package/node_modules/@npmcli/redact/lib/error.js +28 -0
- package/node_modules/@npmcli/redact/lib/index.js +44 -0
- package/node_modules/@npmcli/redact/lib/matchers.js +88 -0
- package/node_modules/@npmcli/redact/lib/server.js +59 -0
- package/node_modules/@npmcli/redact/lib/utils.js +202 -0
- package/node_modules/@npmcli/redact/package.json +52 -0
- package/node_modules/@sigstore/bundle/LICENSE +202 -0
- package/node_modules/@sigstore/bundle/README.md +19 -0
- package/node_modules/@sigstore/bundle/dist/build.d.ts +18 -0
- package/node_modules/@sigstore/bundle/dist/build.js +100 -0
- package/node_modules/@sigstore/bundle/dist/bundle.d.ts +74 -0
- package/node_modules/@sigstore/bundle/dist/bundle.js +24 -0
- package/node_modules/@sigstore/bundle/dist/error.d.ts +4 -0
- package/node_modules/@sigstore/bundle/dist/error.js +26 -0
- package/node_modules/@sigstore/bundle/dist/index.d.ts +8 -0
- package/node_modules/@sigstore/bundle/dist/index.js +43 -0
- package/node_modules/@sigstore/bundle/dist/serialized.d.ts +74 -0
- package/node_modules/@sigstore/bundle/dist/serialized.js +49 -0
- package/node_modules/@sigstore/bundle/dist/utility.d.ts +14 -0
- package/node_modules/@sigstore/bundle/dist/utility.js +2 -0
- package/node_modules/@sigstore/bundle/dist/validate.d.ts +7 -0
- package/node_modules/@sigstore/bundle/dist/validate.js +199 -0
- package/node_modules/@sigstore/bundle/package.json +35 -0
- package/node_modules/@sigstore/core/LICENSE +202 -0
- package/node_modules/@sigstore/core/README.md +10 -0
- package/node_modules/@sigstore/core/dist/asn1/error.d.ts +4 -0
- package/node_modules/@sigstore/core/dist/asn1/error.js +24 -0
- package/node_modules/@sigstore/core/dist/asn1/index.d.ts +1 -0
- package/node_modules/@sigstore/core/dist/asn1/index.js +20 -0
- package/node_modules/@sigstore/core/dist/asn1/length.d.ts +3 -0
- package/node_modules/@sigstore/core/dist/asn1/length.js +73 -0
- package/node_modules/@sigstore/core/dist/asn1/obj.d.ts +14 -0
- package/node_modules/@sigstore/core/dist/asn1/obj.js +173 -0
- package/node_modules/@sigstore/core/dist/asn1/parse.d.ts +6 -0
- package/node_modules/@sigstore/core/dist/asn1/parse.js +143 -0
- package/node_modules/@sigstore/core/dist/asn1/tag.d.ts +16 -0
- package/node_modules/@sigstore/core/dist/asn1/tag.js +89 -0
- package/node_modules/@sigstore/core/dist/crypto.d.ts +6 -0
- package/node_modules/@sigstore/core/dist/crypto.js +69 -0
- package/node_modules/@sigstore/core/dist/dsse.d.ts +1 -0
- package/node_modules/@sigstore/core/dist/dsse.js +29 -0
- package/node_modules/@sigstore/core/dist/encoding.d.ts +2 -0
- package/node_modules/@sigstore/core/dist/encoding.js +27 -0
- package/node_modules/@sigstore/core/dist/index.d.ts +9 -0
- package/node_modules/@sigstore/core/dist/index.js +66 -0
- package/node_modules/@sigstore/core/dist/json.d.ts +1 -0
- package/node_modules/@sigstore/core/dist/json.js +60 -0
- package/node_modules/@sigstore/core/dist/oid.d.ts +3 -0
- package/node_modules/@sigstore/core/dist/oid.js +20 -0
- package/node_modules/@sigstore/core/dist/pem.d.ts +2 -0
- package/node_modules/@sigstore/core/dist/pem.js +43 -0
- package/node_modules/@sigstore/core/dist/rfc3161/error.d.ts +2 -0
- package/node_modules/@sigstore/core/dist/rfc3161/error.js +21 -0
- package/node_modules/@sigstore/core/dist/rfc3161/index.d.ts +1 -0
- package/node_modules/@sigstore/core/dist/rfc3161/index.js +20 -0
- package/node_modules/@sigstore/core/dist/rfc3161/timestamp.d.ts +36 -0
- package/node_modules/@sigstore/core/dist/rfc3161/timestamp.js +212 -0
- package/node_modules/@sigstore/core/dist/rfc3161/tstinfo.d.ts +12 -0
- package/node_modules/@sigstore/core/dist/rfc3161/tstinfo.js +72 -0
- package/node_modules/@sigstore/core/dist/stream.d.ts +21 -0
- package/node_modules/@sigstore/core/dist/stream.js +117 -0
- package/node_modules/@sigstore/core/dist/x509/cert.d.ts +43 -0
- package/node_modules/@sigstore/core/dist/x509/cert.js +245 -0
- package/node_modules/@sigstore/core/dist/x509/ext.d.ts +41 -0
- package/node_modules/@sigstore/core/dist/x509/ext.js +146 -0
- package/node_modules/@sigstore/core/dist/x509/index.d.ts +2 -0
- package/node_modules/@sigstore/core/dist/x509/index.js +23 -0
- package/node_modules/@sigstore/core/dist/x509/sct.d.ts +25 -0
- package/node_modules/@sigstore/core/dist/x509/sct.js +158 -0
- package/node_modules/@sigstore/core/package.json +31 -0
- package/node_modules/@sigstore/protobuf-specs/LICENSE +202 -0
- package/node_modules/@sigstore/protobuf-specs/README.md +5 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/envelope.d.ts +44 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/envelope.js +59 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/events.d.ts +64 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/events.js +174 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/api/field_behavior.d.ts +74 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/api/field_behavior.js +141 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/any.d.ts +74 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/any.js +35 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/descriptor.d.ts +1309 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/descriptor.js +2191 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/timestamp.d.ts +113 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/timestamp.js +29 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/rekor/v2/dsse.d.ts +23 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/rekor/v2/dsse.js +55 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/rekor/v2/entry.d.ts +43 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/rekor/v2/entry.js +81 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/rekor/v2/hashedrekord.d.ts +22 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/rekor/v2/hashedrekord.js +56 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/rekor/v2/verifier.d.ts +35 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/rekor/v2/verifier.js +74 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_bundle.d.ts +146 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_bundle.js +103 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_common.d.ts +304 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_common.js +612 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_monitor.d.ts +33 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_monitor.js +55 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_rekor.d.ts +144 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_rekor.js +137 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_trustroot.d.ts +386 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_trustroot.js +284 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_verification.d.ts +191 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_verification.js +281 -0
- package/node_modules/@sigstore/protobuf-specs/dist/index.d.ts +6 -0
- package/node_modules/@sigstore/protobuf-specs/dist/index.js +37 -0
- package/node_modules/@sigstore/protobuf-specs/dist/rekor/v2/index.d.ts +4 -0
- package/node_modules/@sigstore/protobuf-specs/dist/rekor/v2/index.js +35 -0
- package/node_modules/@sigstore/protobuf-specs/package.json +35 -0
- package/node_modules/@sigstore/sign/LICENSE +202 -0
- package/node_modules/@sigstore/sign/README.md +185 -0
- package/node_modules/@sigstore/sign/dist/bundler/base.d.ts +22 -0
- package/node_modules/@sigstore/sign/dist/bundler/base.js +52 -0
- package/node_modules/@sigstore/sign/dist/bundler/bundle.d.ts +5 -0
- package/node_modules/@sigstore/sign/dist/bundler/bundle.js +81 -0
- package/node_modules/@sigstore/sign/dist/bundler/dsse.d.ts +13 -0
- package/node_modules/@sigstore/sign/dist/bundler/dsse.js +47 -0
- package/node_modules/@sigstore/sign/dist/bundler/index.d.ts +3 -0
- package/node_modules/@sigstore/sign/dist/bundler/index.js +7 -0
- package/node_modules/@sigstore/sign/dist/bundler/message.d.ts +7 -0
- package/node_modules/@sigstore/sign/dist/bundler/message.js +30 -0
- package/node_modules/@sigstore/sign/dist/config.d.ts +18 -0
- package/node_modules/@sigstore/sign/dist/config.js +143 -0
- package/node_modules/@sigstore/sign/dist/error.d.ts +12 -0
- package/node_modules/@sigstore/sign/dist/error.js +41 -0
- package/node_modules/@sigstore/sign/dist/external/error.d.ts +9 -0
- package/node_modules/@sigstore/sign/dist/external/error.js +28 -0
- package/node_modules/@sigstore/sign/dist/external/fetch.d.ts +4 -0
- package/node_modules/@sigstore/sign/dist/external/fetch.js +98 -0
- package/node_modules/@sigstore/sign/dist/external/fulcio.d.ts +37 -0
- package/node_modules/@sigstore/sign/dist/external/fulcio.js +42 -0
- package/node_modules/@sigstore/sign/dist/external/rekor-v2.d.ts +14 -0
- package/node_modules/@sigstore/sign/dist/external/rekor-v2.js +45 -0
- package/node_modules/@sigstore/sign/dist/external/rekor.d.ts +28 -0
- package/node_modules/@sigstore/sign/dist/external/rekor.js +81 -0
- package/node_modules/@sigstore/sign/dist/external/tsa.d.ts +16 -0
- package/node_modules/@sigstore/sign/dist/external/tsa.js +44 -0
- package/node_modules/@sigstore/sign/dist/identity/ci.d.ts +11 -0
- package/node_modules/@sigstore/sign/dist/identity/ci.js +88 -0
- package/node_modules/@sigstore/sign/dist/identity/index.d.ts +2 -0
- package/node_modules/@sigstore/sign/dist/identity/index.js +20 -0
- package/node_modules/@sigstore/sign/dist/identity/provider.d.ts +3 -0
- package/node_modules/@sigstore/sign/dist/identity/provider.js +2 -0
- package/node_modules/@sigstore/sign/dist/index.d.ts +11 -0
- package/node_modules/@sigstore/sign/dist/index.js +19 -0
- package/node_modules/@sigstore/sign/dist/signer/fulcio/ca.d.ts +12 -0
- package/node_modules/@sigstore/sign/dist/signer/fulcio/ca.js +60 -0
- package/node_modules/@sigstore/sign/dist/signer/fulcio/ephemeral.d.ts +6 -0
- package/node_modules/@sigstore/sign/dist/signer/fulcio/ephemeral.js +43 -0
- package/node_modules/@sigstore/sign/dist/signer/fulcio/index.d.ts +16 -0
- package/node_modules/@sigstore/sign/dist/signer/fulcio/index.js +90 -0
- package/node_modules/@sigstore/sign/dist/signer/index.d.ts +2 -0
- package/node_modules/@sigstore/sign/dist/signer/index.js +22 -0
- package/node_modules/@sigstore/sign/dist/signer/signer.d.ts +15 -0
- package/node_modules/@sigstore/sign/dist/signer/signer.js +17 -0
- package/node_modules/@sigstore/sign/dist/types/fetch.d.ts +6 -0
- package/node_modules/@sigstore/sign/dist/types/fetch.js +2 -0
- package/node_modules/@sigstore/sign/dist/util/index.d.ts +3 -0
- package/node_modules/@sigstore/sign/dist/util/index.js +59 -0
- package/node_modules/@sigstore/sign/dist/util/oidc.d.ts +1 -0
- package/node_modules/@sigstore/sign/dist/util/oidc.js +35 -0
- package/node_modules/@sigstore/sign/dist/util/ua.d.ts +1 -0
- package/node_modules/@sigstore/sign/dist/util/ua.js +32 -0
- package/node_modules/@sigstore/sign/dist/witness/index.d.ts +3 -0
- package/node_modules/@sigstore/sign/dist/witness/index.js +24 -0
- package/node_modules/@sigstore/sign/dist/witness/tlog/client.d.ts +29 -0
- package/node_modules/@sigstore/sign/dist/witness/tlog/client.js +92 -0
- package/node_modules/@sigstore/sign/dist/witness/tlog/entry.d.ts +5 -0
- package/node_modules/@sigstore/sign/dist/witness/tlog/entry.js +197 -0
- package/node_modules/@sigstore/sign/dist/witness/tlog/index.d.ts +20 -0
- package/node_modules/@sigstore/sign/dist/witness/tlog/index.js +97 -0
- package/node_modules/@sigstore/sign/dist/witness/tsa/client.d.ts +12 -0
- package/node_modules/@sigstore/sign/dist/witness/tsa/client.js +47 -0
- package/node_modules/@sigstore/sign/dist/witness/tsa/index.d.ts +13 -0
- package/node_modules/@sigstore/sign/dist/witness/tsa/index.js +45 -0
- package/node_modules/@sigstore/sign/dist/witness/witness.d.ts +9 -0
- package/node_modules/@sigstore/sign/dist/witness/witness.js +2 -0
- package/node_modules/@sigstore/sign/package.json +45 -0
- package/node_modules/@sigstore/tuf/LICENSE +202 -0
- package/node_modules/@sigstore/tuf/README.md +69 -0
- package/node_modules/@sigstore/tuf/dist/appdata.d.ts +1 -0
- package/node_modules/@sigstore/tuf/dist/appdata.js +43 -0
- package/node_modules/@sigstore/tuf/dist/client.d.ts +23 -0
- package/node_modules/@sigstore/tuf/dist/client.js +116 -0
- package/node_modules/@sigstore/tuf/dist/error.d.ts +11 -0
- package/node_modules/@sigstore/tuf/dist/error.js +14 -0
- package/node_modules/@sigstore/tuf/dist/index.d.ts +10 -0
- package/node_modules/@sigstore/tuf/dist/index.js +56 -0
- package/node_modules/@sigstore/tuf/dist/target.d.ts +2 -0
- package/node_modules/@sigstore/tuf/dist/target.js +79 -0
- package/node_modules/@sigstore/tuf/package.json +41 -0
- package/node_modules/@sigstore/tuf/seeds.json +1 -0
- package/node_modules/@sigstore/verify/README.md +13 -0
- package/node_modules/@sigstore/verify/dist/bundle/dsse.d.ts +13 -0
- package/node_modules/@sigstore/verify/dist/bundle/dsse.js +50 -0
- package/node_modules/@sigstore/verify/dist/bundle/index.d.ts +4 -0
- package/node_modules/@sigstore/verify/dist/bundle/index.js +59 -0
- package/node_modules/@sigstore/verify/dist/bundle/message.d.ts +14 -0
- package/node_modules/@sigstore/verify/dist/bundle/message.js +59 -0
- package/node_modules/@sigstore/verify/dist/error.d.ts +16 -0
- package/node_modules/@sigstore/verify/dist/error.js +34 -0
- package/node_modules/@sigstore/verify/dist/index.d.ts +6 -0
- package/node_modules/@sigstore/verify/dist/index.js +28 -0
- package/node_modules/@sigstore/verify/dist/key/certificate.d.ts +21 -0
- package/node_modules/@sigstore/verify/dist/key/certificate.js +216 -0
- package/node_modules/@sigstore/verify/dist/key/index.d.ts +10 -0
- package/node_modules/@sigstore/verify/dist/key/index.js +75 -0
- package/node_modules/@sigstore/verify/dist/key/sct.d.ts +4 -0
- package/node_modules/@sigstore/verify/dist/key/sct.js +78 -0
- package/node_modules/@sigstore/verify/dist/policy.d.ts +5 -0
- package/node_modules/@sigstore/verify/dist/policy.js +48 -0
- package/node_modules/@sigstore/verify/dist/shared.types.d.ts +55 -0
- package/node_modules/@sigstore/verify/dist/shared.types.js +2 -0
- package/node_modules/@sigstore/verify/dist/timestamp/index.d.ts +11 -0
- package/node_modules/@sigstore/verify/dist/timestamp/index.js +24 -0
- package/node_modules/@sigstore/verify/dist/timestamp/tsa.d.ts +3 -0
- package/node_modules/@sigstore/verify/dist/timestamp/tsa.js +63 -0
- package/node_modules/@sigstore/verify/dist/tlog/checkpoint.d.ts +11 -0
- package/node_modules/@sigstore/verify/dist/tlog/checkpoint.js +168 -0
- package/node_modules/@sigstore/verify/dist/tlog/dsse.d.ts +6 -0
- package/node_modules/@sigstore/verify/dist/tlog/dsse.js +106 -0
- package/node_modules/@sigstore/verify/dist/tlog/hashedrekord.d.ts +6 -0
- package/node_modules/@sigstore/verify/dist/tlog/hashedrekord.js +94 -0
- package/node_modules/@sigstore/verify/dist/tlog/index.d.ts +5 -0
- package/node_modules/@sigstore/verify/dist/tlog/index.js +106 -0
- package/node_modules/@sigstore/verify/dist/tlog/intoto.d.ts +3 -0
- package/node_modules/@sigstore/verify/dist/tlog/intoto.js +62 -0
- package/node_modules/@sigstore/verify/dist/tlog/merkle.d.ts +3 -0
- package/node_modules/@sigstore/verify/dist/tlog/merkle.js +115 -0
- package/node_modules/@sigstore/verify/dist/tlog/set.d.ts +3 -0
- package/node_modules/@sigstore/verify/dist/tlog/set.js +60 -0
- package/node_modules/@sigstore/verify/dist/trust/filter.d.ts +8 -0
- package/node_modules/@sigstore/verify/dist/trust/filter.js +23 -0
- package/node_modules/@sigstore/verify/dist/trust/index.d.ts +5 -0
- package/node_modules/@sigstore/verify/dist/trust/index.js +90 -0
- package/node_modules/@sigstore/verify/dist/trust/trust.types.d.ts +29 -0
- package/node_modules/@sigstore/verify/dist/trust/trust.types.js +2 -0
- package/node_modules/@sigstore/verify/dist/verifier.d.ts +34 -0
- package/node_modules/@sigstore/verify/dist/verifier.js +172 -0
- package/node_modules/@sigstore/verify/package.json +36 -0
- package/node_modules/@tufjs/canonical-json/LICENSE +21 -0
- package/node_modules/@tufjs/canonical-json/README.md +53 -0
- package/node_modules/@tufjs/canonical-json/lib/index.d.ts +2 -0
- package/node_modules/@tufjs/canonical-json/lib/index.js +64 -0
- package/node_modules/@tufjs/canonical-json/package.json +35 -0
- package/node_modules/@tufjs/models/LICENSE +21 -0
- package/node_modules/@tufjs/models/README.md +3 -0
- package/node_modules/@tufjs/models/dist/base.d.ts +37 -0
- package/node_modules/@tufjs/models/dist/base.js +99 -0
- package/node_modules/@tufjs/models/dist/delegations.d.ts +32 -0
- package/node_modules/@tufjs/models/dist/delegations.js +122 -0
- package/node_modules/@tufjs/models/dist/error.d.ts +12 -0
- package/node_modules/@tufjs/models/dist/error.js +27 -0
- package/node_modules/@tufjs/models/dist/file.d.ts +38 -0
- package/node_modules/@tufjs/models/dist/file.js +191 -0
- package/node_modules/@tufjs/models/dist/index.d.ts +10 -0
- package/node_modules/@tufjs/models/dist/index.js +24 -0
- package/node_modules/@tufjs/models/dist/key.d.ts +21 -0
- package/node_modules/@tufjs/models/dist/key.js +90 -0
- package/node_modules/@tufjs/models/dist/metadata.d.ts +47 -0
- package/node_modules/@tufjs/models/dist/metadata.js +165 -0
- package/node_modules/@tufjs/models/dist/role.d.ts +103 -0
- package/node_modules/@tufjs/models/dist/role.js +310 -0
- package/node_modules/@tufjs/models/dist/root.d.ts +29 -0
- package/node_modules/@tufjs/models/dist/root.js +119 -0
- package/node_modules/@tufjs/models/dist/signature.d.ts +20 -0
- package/node_modules/@tufjs/models/dist/signature.js +40 -0
- package/node_modules/@tufjs/models/dist/snapshot.d.ts +23 -0
- package/node_modules/@tufjs/models/dist/snapshot.js +72 -0
- package/node_modules/@tufjs/models/dist/targets.d.ts +20 -0
- package/node_modules/@tufjs/models/dist/targets.js +94 -0
- package/node_modules/@tufjs/models/dist/timestamp.d.ts +21 -0
- package/node_modules/@tufjs/models/dist/timestamp.js +59 -0
- package/node_modules/@tufjs/models/dist/utils/guard.d.ts +7 -0
- package/node_modules/@tufjs/models/dist/utils/guard.js +32 -0
- package/node_modules/@tufjs/models/dist/utils/index.d.ts +3 -0
- package/node_modules/@tufjs/models/dist/utils/index.js +38 -0
- package/node_modules/@tufjs/models/dist/utils/key.d.ts +11 -0
- package/node_modules/@tufjs/models/dist/utils/key.js +170 -0
- package/node_modules/@tufjs/models/dist/utils/oid.d.ts +1 -0
- package/node_modules/@tufjs/models/dist/utils/oid.js +26 -0
- package/node_modules/@tufjs/models/dist/utils/types.d.ts +4 -0
- package/node_modules/@tufjs/models/dist/utils/types.js +2 -0
- package/node_modules/@tufjs/models/dist/utils/verify.d.ts +3 -0
- package/node_modules/@tufjs/models/dist/utils/verify.js +13 -0
- package/node_modules/@tufjs/models/package.json +37 -0
- package/node_modules/agent-base/LICENSE +22 -0
- package/node_modules/agent-base/README.md +69 -0
- package/node_modules/agent-base/dist/helpers.d.ts +10 -0
- package/node_modules/agent-base/dist/helpers.d.ts.map +1 -0
- package/node_modules/agent-base/dist/helpers.js +37 -0
- package/node_modules/agent-base/dist/helpers.js.map +1 -0
- package/node_modules/agent-base/dist/index.d.ts +37 -0
- package/node_modules/agent-base/dist/index.d.ts.map +1 -0
- package/node_modules/agent-base/dist/index.js +146 -0
- package/node_modules/agent-base/dist/index.js.map +1 -0
- package/node_modules/agent-base/package.json +46 -0
- package/node_modules/balanced-match/LICENSE.md +23 -0
- package/node_modules/balanced-match/README.md +57 -0
- package/node_modules/balanced-match/dist/commonjs/index.d.ts +9 -0
- package/node_modules/balanced-match/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/balanced-match/dist/commonjs/index.js +59 -0
- package/node_modules/balanced-match/dist/commonjs/index.js.map +1 -0
- package/node_modules/balanced-match/dist/commonjs/package.json +3 -0
- package/node_modules/balanced-match/dist/esm/index.d.ts +9 -0
- package/node_modules/balanced-match/dist/esm/index.d.ts.map +1 -0
- package/node_modules/balanced-match/dist/esm/index.js +54 -0
- package/node_modules/balanced-match/dist/esm/index.js.map +1 -0
- package/node_modules/balanced-match/dist/esm/package.json +3 -0
- package/node_modules/balanced-match/package.json +68 -0
- package/node_modules/brace-expansion/LICENSE +23 -0
- package/node_modules/brace-expansion/README.md +105 -0
- package/node_modules/brace-expansion/dist/commonjs/index.d.ts +12 -0
- package/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/brace-expansion/dist/commonjs/index.js +333 -0
- package/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -0
- package/node_modules/brace-expansion/dist/commonjs/package.json +3 -0
- package/node_modules/brace-expansion/dist/esm/index.d.ts +12 -0
- package/node_modules/brace-expansion/dist/esm/index.d.ts.map +1 -0
- package/node_modules/brace-expansion/dist/esm/index.js +329 -0
- package/node_modules/brace-expansion/dist/esm/index.js.map +1 -0
- package/node_modules/brace-expansion/dist/esm/package.json +3 -0
- package/node_modules/brace-expansion/package.json +65 -0
- package/node_modules/cacache/LICENSE.md +16 -0
- package/node_modules/cacache/README.md +715 -0
- package/node_modules/cacache/lib/content/path.js +29 -0
- package/node_modules/cacache/lib/content/read.js +165 -0
- package/node_modules/cacache/lib/content/rm.js +18 -0
- package/node_modules/cacache/lib/content/write.js +208 -0
- package/node_modules/cacache/lib/entry-index.js +339 -0
- package/node_modules/cacache/lib/get.js +170 -0
- package/node_modules/cacache/lib/index.js +42 -0
- package/node_modules/cacache/lib/memoization.js +72 -0
- package/node_modules/cacache/lib/put.js +80 -0
- package/node_modules/cacache/lib/rm.js +32 -0
- package/node_modules/cacache/lib/util/cache-dir.js +29 -0
- package/node_modules/cacache/lib/util/glob.js +7 -0
- package/node_modules/cacache/lib/util/hash-to-segments.js +7 -0
- package/node_modules/cacache/lib/util/tmp.js +36 -0
- package/node_modules/cacache/lib/verify.js +258 -0
- package/node_modules/cacache/package.json +81 -0
- package/node_modules/content-type/LICENSE +22 -0
- package/node_modules/content-type/README.md +71 -0
- package/node_modules/content-type/dist/index.d.ts +46 -0
- package/node_modules/content-type/dist/index.js +176 -0
- package/node_modules/content-type/dist/index.js.map +1 -0
- package/node_modules/content-type/package.json +52 -0
- package/node_modules/debug/LICENSE +20 -0
- package/node_modules/debug/README.md +481 -0
- package/node_modules/debug/package.json +64 -0
- package/node_modules/debug/src/browser.js +272 -0
- package/node_modules/debug/src/common.js +292 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -0
- package/node_modules/fs-minipass/LICENSE +15 -0
- package/node_modules/fs-minipass/README.md +70 -0
- package/node_modules/fs-minipass/lib/index.js +443 -0
- package/node_modules/fs-minipass/package.json +54 -0
- package/node_modules/glob/LICENSE.md +63 -0
- package/node_modules/glob/README.md +1377 -0
- package/node_modules/glob/dist/commonjs/glob.d.ts +405 -0
- package/node_modules/glob/dist/commonjs/glob.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/glob.js +241 -0
- package/node_modules/glob/dist/commonjs/glob.js.map +1 -0
- package/node_modules/glob/dist/commonjs/has-magic.d.ts +14 -0
- package/node_modules/glob/dist/commonjs/has-magic.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/has-magic.js +24 -0
- package/node_modules/glob/dist/commonjs/has-magic.js.map +1 -0
- package/node_modules/glob/dist/commonjs/ignore.d.ts +36 -0
- package/node_modules/glob/dist/commonjs/ignore.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/ignore.js +139 -0
- package/node_modules/glob/dist/commonjs/ignore.js.map +1 -0
- package/node_modules/glob/dist/commonjs/index.d.ts +98 -0
- package/node_modules/glob/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/index.js +68 -0
- package/node_modules/glob/dist/commonjs/index.js.map +1 -0
- package/node_modules/glob/dist/commonjs/index.min.js +3 -0
- package/node_modules/glob/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/glob/dist/commonjs/package.json +3 -0
- package/node_modules/glob/dist/commonjs/pattern.d.ts +86 -0
- package/node_modules/glob/dist/commonjs/pattern.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/pattern.js +235 -0
- package/node_modules/glob/dist/commonjs/pattern.js.map +1 -0
- package/node_modules/glob/dist/commonjs/processor.d.ts +72 -0
- package/node_modules/glob/dist/commonjs/processor.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/processor.js +314 -0
- package/node_modules/glob/dist/commonjs/processor.js.map +1 -0
- package/node_modules/glob/dist/commonjs/walker.d.ts +99 -0
- package/node_modules/glob/dist/commonjs/walker.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/walker.js +402 -0
- package/node_modules/glob/dist/commonjs/walker.js.map +1 -0
- package/node_modules/glob/dist/esm/glob.d.ts +405 -0
- package/node_modules/glob/dist/esm/glob.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/glob.js +237 -0
- package/node_modules/glob/dist/esm/glob.js.map +1 -0
- package/node_modules/glob/dist/esm/has-magic.d.ts +14 -0
- package/node_modules/glob/dist/esm/has-magic.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/has-magic.js +20 -0
- package/node_modules/glob/dist/esm/has-magic.js.map +1 -0
- package/node_modules/glob/dist/esm/ignore.d.ts +36 -0
- package/node_modules/glob/dist/esm/ignore.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/ignore.js +135 -0
- package/node_modules/glob/dist/esm/ignore.js.map +1 -0
- package/node_modules/glob/dist/esm/index.d.ts +98 -0
- package/node_modules/glob/dist/esm/index.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/index.js +55 -0
- package/node_modules/glob/dist/esm/index.js.map +1 -0
- package/node_modules/glob/dist/esm/index.min.js +3 -0
- package/node_modules/glob/dist/esm/index.min.js.map +7 -0
- package/node_modules/glob/dist/esm/package.json +3 -0
- package/node_modules/glob/dist/esm/pattern.d.ts +86 -0
- package/node_modules/glob/dist/esm/pattern.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/pattern.js +231 -0
- package/node_modules/glob/dist/esm/pattern.js.map +1 -0
- package/node_modules/glob/dist/esm/processor.d.ts +72 -0
- package/node_modules/glob/dist/esm/processor.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/processor.js +307 -0
- package/node_modules/glob/dist/esm/processor.js.map +1 -0
- package/node_modules/glob/dist/esm/walker.d.ts +99 -0
- package/node_modules/glob/dist/esm/walker.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/walker.js +396 -0
- package/node_modules/glob/dist/esm/walker.js.map +1 -0
- package/node_modules/glob/package.json +114 -0
- package/node_modules/glob/src/glob.ts +655 -0
- package/node_modules/glob/src/has-magic.ts +23 -0
- package/node_modules/glob/src/ignore.ts +162 -0
- package/node_modules/glob/src/index.ts +225 -0
- package/node_modules/glob/src/pattern.ts +286 -0
- package/node_modules/glob/src/processor.ts +333 -0
- package/node_modules/glob/src/walker.ts +523 -0
- package/node_modules/http-cache-semantics/LICENSE +9 -0
- package/node_modules/http-cache-semantics/README.md +268 -0
- package/node_modules/http-cache-semantics/index.js +951 -0
- package/node_modules/http-cache-semantics/package.json +22 -0
- package/node_modules/http-proxy-agent/LICENSE +22 -0
- package/node_modules/http-proxy-agent/README.md +44 -0
- package/node_modules/http-proxy-agent/dist/index.d.ts +47 -0
- package/node_modules/http-proxy-agent/dist/index.d.ts.map +1 -0
- package/node_modules/http-proxy-agent/dist/index.js +132 -0
- package/node_modules/http-proxy-agent/dist/index.js.map +1 -0
- package/node_modules/http-proxy-agent/package.json +48 -0
- package/node_modules/https-proxy-agent/LICENSE +22 -0
- package/node_modules/https-proxy-agent/README.md +70 -0
- package/node_modules/https-proxy-agent/dist/index.d.ts +51 -0
- package/node_modules/https-proxy-agent/dist/index.d.ts.map +1 -0
- package/node_modules/https-proxy-agent/dist/index.js +234 -0
- package/node_modules/https-proxy-agent/dist/index.js.map +1 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +12 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +1 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.js +94 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
- package/node_modules/https-proxy-agent/package.json +51 -0
- package/node_modules/iconv-lite/LICENSE +21 -0
- package/node_modules/iconv-lite/README.md +138 -0
- package/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
- package/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
- package/node_modules/iconv-lite/encodings/index.js +23 -0
- package/node_modules/iconv-lite/encodings/internal.js +218 -0
- package/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
- package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/node_modules/iconv-lite/encodings/sbcs-data.js +180 -0
- package/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/node_modules/iconv-lite/encodings/utf16.js +187 -0
- package/node_modules/iconv-lite/encodings/utf32.js +314 -0
- package/node_modules/iconv-lite/encodings/utf7.js +283 -0
- package/node_modules/iconv-lite/lib/bom-handling.js +48 -0
- package/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
- package/node_modules/iconv-lite/lib/index.d.ts +129 -0
- package/node_modules/iconv-lite/lib/index.js +182 -0
- package/node_modules/iconv-lite/lib/streams.js +105 -0
- package/node_modules/iconv-lite/package.json +70 -0
- package/node_modules/iconv-lite/types/encodings.d.ts +425 -0
- package/node_modules/ip-address/LICENSE +19 -0
- package/node_modules/ip-address/README.md +308 -0
- package/node_modules/ip-address/dist/address-error.d.ts +15 -0
- package/node_modules/ip-address/dist/address-error.js +12 -0
- package/node_modules/ip-address/dist/address-error.js.map +1 -0
- package/node_modules/ip-address/dist/common.d.ts +74 -0
- package/node_modules/ip-address/dist/common.js +154 -0
- package/node_modules/ip-address/dist/common.js.map +1 -0
- package/node_modules/ip-address/dist/ip-address.d.ts +7 -0
- package/node_modules/ip-address/dist/ip-address.js +35 -0
- package/node_modules/ip-address/dist/ip-address.js.map +1 -0
- package/node_modules/ip-address/dist/ipv4.d.ts +347 -0
- package/node_modules/ip-address/dist/ipv4.js +602 -0
- package/node_modules/ip-address/dist/ipv4.js.map +1 -0
- package/node_modules/ip-address/dist/ipv6.d.ts +634 -0
- package/node_modules/ip-address/dist/ipv6.js +1461 -0
- package/node_modules/ip-address/dist/ipv6.js.map +1 -0
- package/node_modules/ip-address/dist/v4/constants.d.ts +16 -0
- package/node_modules/ip-address/dist/v4/constants.js +51 -0
- package/node_modules/ip-address/dist/v4/constants.js.map +1 -0
- package/node_modules/ip-address/dist/v6/constants.d.ts +61 -0
- package/node_modules/ip-address/dist/v6/constants.js +131 -0
- package/node_modules/ip-address/dist/v6/constants.js.map +1 -0
- package/node_modules/ip-address/dist/v6/helpers.d.ts +18 -0
- package/node_modules/ip-address/dist/v6/helpers.js +54 -0
- package/node_modules/ip-address/dist/v6/helpers.js.map +1 -0
- package/node_modules/ip-address/dist/v6/regular-expressions.d.ts +5 -0
- package/node_modules/ip-address/dist/v6/regular-expressions.js +95 -0
- package/node_modules/ip-address/dist/v6/regular-expressions.js.map +1 -0
- package/node_modules/ip-address/package.json +91 -0
- package/node_modules/lru-cache/LICENSE.md +55 -0
- package/node_modules/lru-cache/README.md +469 -0
- package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.js +1733 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/browser/perf.js +10 -0
- package/node_modules/lru-cache/dist/commonjs/browser/perf.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.cjs.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +7 -0
- package/node_modules/lru-cache/dist/commonjs/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/index.js +1733 -0
- package/node_modules/lru-cache/dist/commonjs/index.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
- package/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.js +1733 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/commonjs/node/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/commonjs/node/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/node/perf.js +10 -0
- package/node_modules/lru-cache/dist/commonjs/node/perf.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/node_modules/lru-cache/dist/commonjs/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/commonjs/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/perf.js +10 -0
- package/node_modules/lru-cache/dist/commonjs/perf.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel-react-native.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel-react-native.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel.js +7 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/index.js +1733 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/index.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/perf.js +10 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/perf.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
- package/node_modules/lru-cache/dist/esm/browser/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/browser/index.js +1729 -0
- package/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
- package/node_modules/lru-cache/dist/esm/browser/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/esm/browser/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/esm/browser/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/browser/perf.js +7 -0
- package/node_modules/lru-cache/dist/esm/browser/perf.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -0
- package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.mjs.map +1 -0
- package/node_modules/lru-cache/dist/esm/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
- package/node_modules/lru-cache/dist/esm/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/index.js +1729 -0
- package/node_modules/lru-cache/dist/esm/index.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +6 -0
- package/node_modules/lru-cache/dist/esm/node/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/node/index.js +1729 -0
- package/node_modules/lru-cache/dist/esm/node/index.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
- package/node_modules/lru-cache/dist/esm/node/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/esm/node/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/esm/node/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/node/perf.js +7 -0
- package/node_modules/lru-cache/dist/esm/node/perf.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/package.json +3 -0
- package/node_modules/lru-cache/dist/esm/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/esm/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/perf.js +7 -0
- package/node_modules/lru-cache/dist/esm/perf.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel-react-native.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel-react-native.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel.js +4 -0
- package/node_modules/lru-cache/dist/esm/react-native/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/esm/react-native/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/index.js +1729 -0
- package/node_modules/lru-cache/dist/esm/react-native/index.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/esm/react-native/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/perf.js +7 -0
- package/node_modules/lru-cache/dist/esm/react-native/perf.js.map +1 -0
- package/node_modules/lru-cache/package.json +180 -0
- package/node_modules/make-fetch-happen/LICENSE +16 -0
- package/node_modules/make-fetch-happen/README.md +364 -0
- package/node_modules/make-fetch-happen/lib/cache/entry.js +471 -0
- package/node_modules/make-fetch-happen/lib/cache/errors.js +11 -0
- package/node_modules/make-fetch-happen/lib/cache/index.js +49 -0
- package/node_modules/make-fetch-happen/lib/cache/key.js +17 -0
- package/node_modules/make-fetch-happen/lib/cache/policy.js +161 -0
- package/node_modules/make-fetch-happen/lib/fetch.js +118 -0
- package/node_modules/make-fetch-happen/lib/index.js +41 -0
- package/node_modules/make-fetch-happen/lib/options.js +59 -0
- package/node_modules/make-fetch-happen/lib/pipeline.js +41 -0
- package/node_modules/make-fetch-happen/lib/remote.js +134 -0
- package/node_modules/make-fetch-happen/package.json +75 -0
- package/node_modules/minimatch/LICENSE.md +55 -0
- package/node_modules/minimatch/README.md +556 -0
- package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +2 -0
- package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +1 -0
- package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
- package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
- package/node_modules/minimatch/dist/commonjs/escape.d.ts +15 -0
- package/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -0
- package/node_modules/minimatch/dist/commonjs/escape.js +30 -0
- package/node_modules/minimatch/dist/commonjs/escape.js.map +1 -0
- package/node_modules/minimatch/dist/commonjs/index.d.ts +188 -0
- package/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/minimatch/dist/commonjs/index.js +1600 -0
- package/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
- package/node_modules/minimatch/dist/commonjs/package.json +3 -0
- package/node_modules/minimatch/dist/commonjs/unescape.d.ts +22 -0
- package/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -0
- package/node_modules/minimatch/dist/commonjs/unescape.js +38 -0
- package/node_modules/minimatch/dist/commonjs/unescape.js.map +1 -0
- package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +2 -0
- package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +1 -0
- package/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
- package/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -0
- package/node_modules/minimatch/dist/esm/escape.d.ts +15 -0
- package/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -0
- package/node_modules/minimatch/dist/esm/escape.js +26 -0
- package/node_modules/minimatch/dist/esm/escape.js.map +1 -0
- package/node_modules/minimatch/dist/esm/index.d.ts +188 -0
- package/node_modules/minimatch/dist/esm/index.d.ts.map +1 -0
- package/node_modules/minimatch/dist/esm/index.js +1589 -0
- package/node_modules/minimatch/dist/esm/index.js.map +1 -0
- package/node_modules/minimatch/dist/esm/package.json +3 -0
- package/node_modules/minimatch/dist/esm/unescape.d.ts +22 -0
- package/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -0
- package/node_modules/minimatch/dist/esm/unescape.js +34 -0
- package/node_modules/minimatch/dist/esm/unescape.js.map +1 -0
- package/node_modules/minimatch/package.json +74 -0
- package/node_modules/minipass/LICENSE.md +55 -0
- package/node_modules/minipass/README.md +825 -0
- package/node_modules/minipass/dist/commonjs/index.d.ts +545 -0
- package/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/minipass/dist/commonjs/index.js +1038 -0
- package/node_modules/minipass/dist/commonjs/index.js.map +1 -0
- package/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/node_modules/minipass/dist/esm/index.d.ts +545 -0
- package/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
- package/node_modules/minipass/dist/esm/index.js +1020 -0
- package/node_modules/minipass/dist/esm/index.js.map +1 -0
- package/node_modules/minipass/dist/esm/package.json +3 -0
- package/node_modules/minipass/package.json +77 -0
- package/node_modules/minipass-collect/LICENSE +15 -0
- package/node_modules/minipass-collect/README.md +48 -0
- package/node_modules/minipass-collect/index.js +71 -0
- package/node_modules/minipass-collect/package.json +30 -0
- package/node_modules/minipass-fetch/LICENSE +28 -0
- package/node_modules/minipass-fetch/README.md +29 -0
- package/node_modules/minipass-fetch/lib/abort-error.js +17 -0
- package/node_modules/minipass-fetch/lib/blob.js +97 -0
- package/node_modules/minipass-fetch/lib/body.js +360 -0
- package/node_modules/minipass-fetch/lib/fetch-error.js +32 -0
- package/node_modules/minipass-fetch/lib/headers.js +267 -0
- package/node_modules/minipass-fetch/lib/index.js +376 -0
- package/node_modules/minipass-fetch/lib/request.js +282 -0
- package/node_modules/minipass-fetch/lib/response.js +90 -0
- package/node_modules/minipass-fetch/package.json +70 -0
- package/node_modules/minipass-flush/LICENSE.md +55 -0
- package/node_modules/minipass-flush/README.md +47 -0
- package/node_modules/minipass-flush/index.js +39 -0
- package/node_modules/minipass-flush/node_modules/minipass/LICENSE +15 -0
- package/node_modules/minipass-flush/node_modules/minipass/README.md +728 -0
- package/node_modules/minipass-flush/node_modules/minipass/index.d.ts +155 -0
- package/node_modules/minipass-flush/node_modules/minipass/index.js +649 -0
- package/node_modules/minipass-flush/node_modules/minipass/package.json +56 -0
- package/node_modules/minipass-flush/package.json +42 -0
- package/node_modules/minipass-pipeline/LICENSE +15 -0
- package/node_modules/minipass-pipeline/README.md +69 -0
- package/node_modules/minipass-pipeline/index.js +128 -0
- package/node_modules/minipass-pipeline/node_modules/minipass/LICENSE +15 -0
- package/node_modules/minipass-pipeline/node_modules/minipass/README.md +728 -0
- package/node_modules/minipass-pipeline/node_modules/minipass/index.d.ts +155 -0
- package/node_modules/minipass-pipeline/node_modules/minipass/index.js +649 -0
- package/node_modules/minipass-pipeline/node_modules/minipass/package.json +56 -0
- package/node_modules/minipass-pipeline/package.json +29 -0
- package/node_modules/minipass-sized/LICENSE +15 -0
- package/node_modules/minipass-sized/README.md +30 -0
- package/node_modules/minipass-sized/dist/commonjs/index.d.ts +21 -0
- package/node_modules/minipass-sized/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/minipass-sized/dist/commonjs/index.js +69 -0
- package/node_modules/minipass-sized/dist/commonjs/index.js.map +1 -0
- package/node_modules/minipass-sized/dist/commonjs/package.json +3 -0
- package/node_modules/minipass-sized/dist/esm/index.d.ts +21 -0
- package/node_modules/minipass-sized/dist/esm/index.d.ts.map +1 -0
- package/node_modules/minipass-sized/dist/esm/index.js +64 -0
- package/node_modules/minipass-sized/dist/esm/index.js.map +1 -0
- package/node_modules/minipass-sized/dist/esm/package.json +3 -0
- package/node_modules/minipass-sized/package.json +69 -0
- package/node_modules/minizlib/LICENSE +26 -0
- package/node_modules/minizlib/README.md +64 -0
- package/node_modules/minizlib/dist/commonjs/constants.d.ts +2 -0
- package/node_modules/minizlib/dist/commonjs/constants.d.ts.map +1 -0
- package/node_modules/minizlib/dist/commonjs/constants.js +123 -0
- package/node_modules/minizlib/dist/commonjs/constants.js.map +1 -0
- package/node_modules/minizlib/dist/commonjs/index.d.ts +99 -0
- package/node_modules/minizlib/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/minizlib/dist/commonjs/index.js +416 -0
- package/node_modules/minizlib/dist/commonjs/index.js.map +1 -0
- package/node_modules/minizlib/dist/commonjs/package.json +3 -0
- package/node_modules/minizlib/dist/esm/constants.d.ts +2 -0
- package/node_modules/minizlib/dist/esm/constants.d.ts.map +1 -0
- package/node_modules/minizlib/dist/esm/constants.js +117 -0
- package/node_modules/minizlib/dist/esm/constants.js.map +1 -0
- package/node_modules/minizlib/dist/esm/index.d.ts +99 -0
- package/node_modules/minizlib/dist/esm/index.d.ts.map +1 -0
- package/node_modules/minizlib/dist/esm/index.js +363 -0
- package/node_modules/minizlib/dist/esm/index.js.map +1 -0
- package/node_modules/minizlib/dist/esm/package.json +3 -0
- package/node_modules/minizlib/package.json +80 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +38 -0
- package/node_modules/ms/readme.md +59 -0
- package/node_modules/negotiator/LICENSE +24 -0
- package/node_modules/negotiator/README.md +212 -0
- package/node_modules/negotiator/index.js +83 -0
- package/node_modules/negotiator/lib/accept.js +54 -0
- package/node_modules/negotiator/lib/charset.js +145 -0
- package/node_modules/negotiator/lib/encoding.js +184 -0
- package/node_modules/negotiator/lib/language.js +158 -0
- package/node_modules/negotiator/lib/mediaType.js +176 -0
- package/node_modules/negotiator/package.json +49 -0
- package/node_modules/p-map/index.d.ts +392 -0
- package/node_modules/p-map/index.js +663 -0
- package/node_modules/p-map/license +9 -0
- package/node_modules/p-map/package.json +57 -0
- package/node_modules/p-map/readme.md +404 -0
- package/node_modules/path-scurry/LICENSE.md +55 -0
- package/node_modules/path-scurry/README.md +635 -0
- package/node_modules/path-scurry/dist/commonjs/index.d.ts +1122 -0
- package/node_modules/path-scurry/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/path-scurry/dist/commonjs/index.js +2056 -0
- package/node_modules/path-scurry/dist/commonjs/index.js.map +1 -0
- package/node_modules/path-scurry/dist/commonjs/package.json +3 -0
- package/node_modules/path-scurry/dist/esm/index.d.ts +1122 -0
- package/node_modules/path-scurry/dist/esm/index.d.ts.map +1 -0
- package/node_modules/path-scurry/dist/esm/index.js +2011 -0
- package/node_modules/path-scurry/dist/esm/index.js.map +1 -0
- package/node_modules/path-scurry/dist/esm/package.json +3 -0
- package/node_modules/path-scurry/package.json +72 -0
- package/node_modules/proc-log/LICENSE +15 -0
- package/node_modules/proc-log/README.md +226 -0
- package/node_modules/proc-log/lib/index.js +158 -0
- package/node_modules/proc-log/package.json +46 -0
- package/node_modules/proxy-agent-negotiate/dist/index.d.ts +14 -0
- package/node_modules/proxy-agent-negotiate/dist/index.d.ts.map +1 -0
- package/node_modules/proxy-agent-negotiate/dist/index.js +35 -0
- package/node_modules/proxy-agent-negotiate/dist/index.js.map +1 -0
- package/node_modules/proxy-agent-negotiate/package.json +47 -0
- package/node_modules/safer-buffer/LICENSE +21 -0
- package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/node_modules/safer-buffer/Readme.md +156 -0
- package/node_modules/safer-buffer/dangerous.js +58 -0
- package/node_modules/safer-buffer/package.json +34 -0
- package/node_modules/safer-buffer/safer.js +77 -0
- package/node_modules/safer-buffer/tests.js +406 -0
- package/node_modules/semver/LICENSE +15 -0
- package/node_modules/semver/README.md +680 -0
- package/node_modules/semver/bin/semver.js +195 -0
- package/node_modules/semver/classes/comparator.js +143 -0
- package/node_modules/semver/classes/index.js +7 -0
- package/node_modules/semver/classes/range.js +577 -0
- package/node_modules/semver/classes/semver.js +350 -0
- package/node_modules/semver/functions/clean.js +8 -0
- package/node_modules/semver/functions/cmp.js +54 -0
- package/node_modules/semver/functions/coerce.js +62 -0
- package/node_modules/semver/functions/compare-build.js +9 -0
- package/node_modules/semver/functions/compare-loose.js +5 -0
- package/node_modules/semver/functions/compare.js +7 -0
- package/node_modules/semver/functions/diff.js +60 -0
- package/node_modules/semver/functions/eq.js +5 -0
- package/node_modules/semver/functions/gt.js +5 -0
- package/node_modules/semver/functions/gte.js +5 -0
- package/node_modules/semver/functions/inc.js +21 -0
- package/node_modules/semver/functions/lt.js +5 -0
- package/node_modules/semver/functions/lte.js +5 -0
- package/node_modules/semver/functions/major.js +5 -0
- package/node_modules/semver/functions/minor.js +5 -0
- package/node_modules/semver/functions/neq.js +5 -0
- package/node_modules/semver/functions/parse.js +18 -0
- package/node_modules/semver/functions/patch.js +5 -0
- package/node_modules/semver/functions/prerelease.js +8 -0
- package/node_modules/semver/functions/rcompare.js +5 -0
- package/node_modules/semver/functions/rsort.js +5 -0
- package/node_modules/semver/functions/satisfies.js +12 -0
- package/node_modules/semver/functions/sort.js +5 -0
- package/node_modules/semver/functions/truncate.js +48 -0
- package/node_modules/semver/functions/valid.js +8 -0
- package/node_modules/semver/index.js +93 -0
- package/node_modules/semver/internal/constants.js +67 -0
- package/node_modules/semver/internal/debug.js +11 -0
- package/node_modules/semver/internal/identifiers.js +29 -0
- package/node_modules/semver/internal/lrucache.js +42 -0
- package/node_modules/semver/internal/parse-options.js +17 -0
- package/node_modules/semver/internal/re.js +223 -0
- package/node_modules/semver/internal/trim-comparator-whitespace.js +438 -0
- package/node_modules/semver/package.json +78 -0
- package/node_modules/semver/preload.js +4 -0
- package/node_modules/semver/range.bnf +17 -0
- package/node_modules/semver/ranges/gtr.js +6 -0
- package/node_modules/semver/ranges/intersects.js +9 -0
- package/node_modules/semver/ranges/ltr.js +6 -0
- package/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/node_modules/semver/ranges/min-version.js +63 -0
- package/node_modules/semver/ranges/outside.js +82 -0
- package/node_modules/semver/ranges/simplify.js +49 -0
- package/node_modules/semver/ranges/subset.js +249 -0
- package/node_modules/semver/ranges/to-comparators.js +10 -0
- package/node_modules/semver/ranges/valid.js +13 -0
- package/node_modules/sigstore/LICENSE +202 -0
- package/node_modules/sigstore/README.md +219 -0
- package/node_modules/sigstore/dist/config.d.ts +38 -0
- package/node_modules/sigstore/dist/config.js +126 -0
- package/node_modules/sigstore/dist/index.d.ts +9 -0
- package/node_modules/sigstore/dist/index.js +34 -0
- package/node_modules/sigstore/dist/sigstore.d.ts +11 -0
- package/node_modules/sigstore/dist/sigstore.js +112 -0
- package/node_modules/sigstore/package.json +47 -0
- package/node_modules/smart-buffer/.prettierrc.yaml +5 -0
- package/node_modules/smart-buffer/.travis.yml +13 -0
- package/node_modules/smart-buffer/LICENSE +20 -0
- package/node_modules/smart-buffer/README.md +633 -0
- package/node_modules/smart-buffer/build/smartbuffer.js +1233 -0
- package/node_modules/smart-buffer/build/smartbuffer.js.map +1 -0
- package/node_modules/smart-buffer/build/utils.js +108 -0
- package/node_modules/smart-buffer/build/utils.js.map +1 -0
- package/node_modules/smart-buffer/docs/CHANGELOG.md +70 -0
- package/node_modules/smart-buffer/docs/README_v3.md +367 -0
- package/node_modules/smart-buffer/docs/ROADMAP.md +0 -0
- package/node_modules/smart-buffer/package.json +79 -0
- package/node_modules/smart-buffer/typings/smartbuffer.d.ts +755 -0
- package/node_modules/smart-buffer/typings/utils.d.ts +66 -0
- package/node_modules/socks/.prettierrc.yaml +7 -0
- package/node_modules/socks/LICENSE +20 -0
- package/node_modules/socks/README.md +686 -0
- package/node_modules/socks/build/client/socksclient.js +793 -0
- package/node_modules/socks/build/client/socksclient.js.map +1 -0
- package/node_modules/socks/build/common/constants.js +108 -0
- package/node_modules/socks/build/common/constants.js.map +1 -0
- package/node_modules/socks/build/common/helpers.js +166 -0
- package/node_modules/socks/build/common/helpers.js.map +1 -0
- package/node_modules/socks/build/common/receivebuffer.js +43 -0
- package/node_modules/socks/build/common/receivebuffer.js.map +1 -0
- package/node_modules/socks/build/common/util.js +25 -0
- package/node_modules/socks/build/common/util.js.map +1 -0
- package/node_modules/socks/build/index.js +18 -0
- package/node_modules/socks/build/index.js.map +1 -0
- package/node_modules/socks/docs/examples/index.md +17 -0
- package/node_modules/socks/docs/examples/javascript/associateExample.md +90 -0
- package/node_modules/socks/docs/examples/javascript/bindExample.md +83 -0
- package/node_modules/socks/docs/examples/javascript/connectExample.md +258 -0
- package/node_modules/socks/docs/examples/typescript/associateExample.md +93 -0
- package/node_modules/socks/docs/examples/typescript/bindExample.md +86 -0
- package/node_modules/socks/docs/examples/typescript/connectExample.md +265 -0
- package/node_modules/socks/docs/index.md +5 -0
- package/node_modules/socks/docs/migratingFromV1.md +86 -0
- package/node_modules/socks/package.json +58 -0
- package/node_modules/socks/typings/client/socksclient.d.ts +162 -0
- package/node_modules/socks/typings/common/constants.d.ts +151 -0
- package/node_modules/socks/typings/common/helpers.d.ts +17 -0
- package/node_modules/socks/typings/common/receiveBuffer.d.ts +12 -0
- package/node_modules/socks/typings/common/util.d.ts +14 -0
- package/node_modules/socks/typings/index.d.ts +1 -0
- package/node_modules/socks-proxy-agent/LICENSE +22 -0
- package/node_modules/socks-proxy-agent/README.md +50 -0
- package/node_modules/socks-proxy-agent/dist/index.d.ts +25 -0
- package/node_modules/socks-proxy-agent/dist/index.d.ts.map +1 -0
- package/node_modules/socks-proxy-agent/dist/index.js +169 -0
- package/node_modules/socks-proxy-agent/dist/index.js.map +1 -0
- package/node_modules/socks-proxy-agent/package.json +142 -0
- package/node_modules/ssri/LICENSE.md +16 -0
- package/node_modules/ssri/README.md +528 -0
- package/node_modules/ssri/lib/index.js +550 -0
- package/node_modules/ssri/package.json +66 -0
- package/node_modules/tuf-js/LICENSE +21 -0
- package/node_modules/tuf-js/README.md +3 -0
- package/node_modules/tuf-js/dist/config.d.ts +15 -0
- package/node_modules/tuf-js/dist/config.js +16 -0
- package/node_modules/tuf-js/dist/error.d.ts +22 -0
- package/node_modules/tuf-js/dist/error.js +49 -0
- package/node_modules/tuf-js/dist/fetcher.d.ts +25 -0
- package/node_modules/tuf-js/dist/fetcher.js +131 -0
- package/node_modules/tuf-js/dist/index.d.ts +6 -0
- package/node_modules/tuf-js/dist/index.js +9 -0
- package/node_modules/tuf-js/dist/store.d.ts +18 -0
- package/node_modules/tuf-js/dist/store.js +219 -0
- package/node_modules/tuf-js/dist/updater.d.ts +35 -0
- package/node_modules/tuf-js/dist/updater.js +379 -0
- package/node_modules/tuf-js/dist/utils/tmpfile.d.ts +3 -0
- package/node_modules/tuf-js/dist/utils/tmpfile.js +25 -0
- package/node_modules/tuf-js/dist/utils/url.d.ts +1 -0
- package/node_modules/tuf-js/dist/utils/url.js +13 -0
- package/node_modules/tuf-js/package.json +43 -0
- package/node_modules/yallist/LICENSE +15 -0
- package/node_modules/yallist/README.md +204 -0
- package/node_modules/yallist/iterator.js +8 -0
- package/node_modules/yallist/package.json +29 -0
- package/node_modules/yallist/yallist.js +426 -0
- package/npm-shrinkwrap.json +771 -0
- package/package.json +63 -4
- package/place_the_release/place_the_release.mjs +132 -0
- package/read_the_release_registry/read_the_release_registry.mjs +255 -0
- package/refuse_in_words/refuse_in_words.mjs +31 -0
- package/signers.txt +11 -0
- package/unpack_the_release_layer/unpack_the_release_layer.mjs +286 -0
- package/verify_the_release_signature/verify_the_release_signature.mjs +174 -0
|
@@ -0,0 +1,778 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Matcher = void 0;
|
|
4
|
+
const numeric_range_js_1 = require("./numeric-range.js");
|
|
5
|
+
const parse_class_js_1 = require("./parse-class.js");
|
|
6
|
+
// the end of the pattern, or of a negated sub-pattern
|
|
7
|
+
const MATCH = { t: 'match', id: 0 };
|
|
8
|
+
const extTypes = '!?+*@';
|
|
9
|
+
const lit = (ch) => ({ t: 'lit', ch });
|
|
10
|
+
const reEscape = (s) => s.replace(/[\\^$.*+?()[\]{}|/]/g, '\\$&');
|
|
11
|
+
// a RegExp that only matches `s`, with unicode case folding
|
|
12
|
+
const newFoldRe = (s) => new RegExp(`^${reEscape(s)}$`, 'iu');
|
|
13
|
+
// foldRe for one literal char. The same chars are in most patterns,
|
|
14
|
+
// so keep them. A RegExp without the `g` or `y` flag has no state to
|
|
15
|
+
// share.
|
|
16
|
+
const foldCache = new Map();
|
|
17
|
+
const foldRe = (ch) => {
|
|
18
|
+
let re = foldCache.get(ch);
|
|
19
|
+
if (!re) {
|
|
20
|
+
re = newFoldRe(ch);
|
|
21
|
+
if (foldCache.size >= 1000)
|
|
22
|
+
foldCache.clear();
|
|
23
|
+
foldCache.set(ch, re);
|
|
24
|
+
}
|
|
25
|
+
return re;
|
|
26
|
+
};
|
|
27
|
+
const litMatch = (l, c) => {
|
|
28
|
+
if (c === l.ch)
|
|
29
|
+
return true;
|
|
30
|
+
if (!l.re)
|
|
31
|
+
return false;
|
|
32
|
+
const code = c.charCodeAt(0);
|
|
33
|
+
if (code >= 128)
|
|
34
|
+
return l.re.test(c);
|
|
35
|
+
const ascii = (l.ascii ??= new Uint8Array(128));
|
|
36
|
+
ascii[code] ||= l.re.test(c) ? 1 : 2;
|
|
37
|
+
return ascii[code] === 1;
|
|
38
|
+
};
|
|
39
|
+
const tokenize = (p, nocase, noext, form, mark) => {
|
|
40
|
+
const toks = [];
|
|
41
|
+
for (let i = 0; i < p.length;) {
|
|
42
|
+
const c = String.fromCodePoint(p.codePointAt(i));
|
|
43
|
+
if (mark) {
|
|
44
|
+
// a \ before a range would only escape its first char
|
|
45
|
+
const m = c === '\\' && p.startsWith(mark, i + 1) ? 1 : 0;
|
|
46
|
+
if (m || c === mark) {
|
|
47
|
+
const start = i + m + mark.length;
|
|
48
|
+
const end = p.indexOf(mark, start);
|
|
49
|
+
const r = /^(-?\d+)\.\.(-?\d+)$/.exec(p.slice(start, end));
|
|
50
|
+
const alts = end !== -1 && r && (0, numeric_range_js_1.numericRange)(r[1], r[2]);
|
|
51
|
+
if (alts) {
|
|
52
|
+
toks.push({ t: 'ext', type: '@', alts });
|
|
53
|
+
i = end + mark.length;
|
|
54
|
+
continue;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
if (c === '\\') {
|
|
59
|
+
// a trailing \ is a literal \
|
|
60
|
+
const e = p.codePointAt(i + 1);
|
|
61
|
+
const ch = e === undefined ? c : String.fromCodePoint(e);
|
|
62
|
+
toks.push(lit(ch));
|
|
63
|
+
i += 1 + ch.length;
|
|
64
|
+
continue;
|
|
65
|
+
}
|
|
66
|
+
if (c === '[') {
|
|
67
|
+
const [re, consumed] = (0, parse_class_js_1.parseClass)(p, i, nocase, form);
|
|
68
|
+
if (consumed) {
|
|
69
|
+
toks.push({ t: 'class', re });
|
|
70
|
+
i += consumed;
|
|
71
|
+
continue;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
if (!noext && extTypes.includes(c) && p[i + 1] === '(') {
|
|
75
|
+
toks.push({ t: 'open', type: c });
|
|
76
|
+
i += 2;
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
79
|
+
toks.push(!noext && c === '|' ? { t: 'bar' }
|
|
80
|
+
: !noext && c === ')' ? { t: 'close' }
|
|
81
|
+
: c === '*' ? { t: 'star' }
|
|
82
|
+
: c === '?' ? { t: 'any' }
|
|
83
|
+
: lit(c));
|
|
84
|
+
i += c.length;
|
|
85
|
+
}
|
|
86
|
+
return toks;
|
|
87
|
+
};
|
|
88
|
+
// map each open token index to the index of its close token
|
|
89
|
+
const pair = (toks) => {
|
|
90
|
+
const pairs = new Map();
|
|
91
|
+
const stack = [];
|
|
92
|
+
toks.forEach((tok, i) => {
|
|
93
|
+
if (tok.t === 'open')
|
|
94
|
+
stack.push(i);
|
|
95
|
+
else if (tok.t === 'close' && stack.length)
|
|
96
|
+
pairs.set(stack.pop(), i);
|
|
97
|
+
});
|
|
98
|
+
return pairs;
|
|
99
|
+
};
|
|
100
|
+
// build the alternatives between start and end. An open token that
|
|
101
|
+
// is not closed is never inside a closed extglob, so bar and close
|
|
102
|
+
// tokens are only literal at the top level.
|
|
103
|
+
const build = (toks, pairs, start, end, top) => {
|
|
104
|
+
let seq = [];
|
|
105
|
+
const alts = [seq];
|
|
106
|
+
for (let i = start; i < end; i++) {
|
|
107
|
+
const tok = toks[i];
|
|
108
|
+
const close = pairs.get(i);
|
|
109
|
+
if (tok.t === 'open' && close !== undefined) {
|
|
110
|
+
const sub = build(toks, pairs, i + 1, close, false);
|
|
111
|
+
seq.push({ t: 'ext', type: tok.type, alts: sub });
|
|
112
|
+
i = close;
|
|
113
|
+
}
|
|
114
|
+
else if (tok.t === 'bar' && !top) {
|
|
115
|
+
alts.push((seq = []));
|
|
116
|
+
}
|
|
117
|
+
else if (tok.t === 'open') {
|
|
118
|
+
seq.push(lit(tok.type), lit('('));
|
|
119
|
+
}
|
|
120
|
+
else if (tok.t === 'bar') {
|
|
121
|
+
seq.push(lit('|'));
|
|
122
|
+
}
|
|
123
|
+
else if (tok.t === 'close') {
|
|
124
|
+
seq.push(lit(')'));
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
seq.push(tok);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return alts;
|
|
131
|
+
};
|
|
132
|
+
// normalize each run of literal chars as one string, so that a char
|
|
133
|
+
// and the combining marks after it compose (or decompose) together.
|
|
134
|
+
// Syntax is already parsed, so a char that normalizes to a syntax
|
|
135
|
+
// char (such as full-width `*` in NFKC) stays a literal.
|
|
136
|
+
const normalize = (items, form) => {
|
|
137
|
+
const out = [];
|
|
138
|
+
let run = '';
|
|
139
|
+
const flush = () => {
|
|
140
|
+
for (const ch of run.normalize(form))
|
|
141
|
+
out.push(lit(ch));
|
|
142
|
+
run = '';
|
|
143
|
+
};
|
|
144
|
+
for (const it of items) {
|
|
145
|
+
if (it.t === 'lit') {
|
|
146
|
+
run += it.ch;
|
|
147
|
+
continue;
|
|
148
|
+
}
|
|
149
|
+
flush();
|
|
150
|
+
out.push(it.t === 'ext' ?
|
|
151
|
+
{ ...it, alts: it.alts.map(a => normalize(a, form)) }
|
|
152
|
+
: it);
|
|
153
|
+
}
|
|
154
|
+
flush();
|
|
155
|
+
return out;
|
|
156
|
+
};
|
|
157
|
+
// the start node, and the number of node ids. Ids are dense, from 0
|
|
158
|
+
// for the match node.
|
|
159
|
+
const compile = (items, nocase) => {
|
|
160
|
+
let id = 1;
|
|
161
|
+
const split = (out) => ({ t: 'split', id: id++, out });
|
|
162
|
+
const seq = (items, next) => items.reduceRight((next, it) => item(it, next), next);
|
|
163
|
+
const item = (it, next) => {
|
|
164
|
+
switch (it.t) {
|
|
165
|
+
case 'lit':
|
|
166
|
+
const re = nocase ? foldRe(it.ch) : undefined;
|
|
167
|
+
return { t: 'lit', id: id++, ch: it.ch, re, next };
|
|
168
|
+
case 'any':
|
|
169
|
+
case 'star':
|
|
170
|
+
return { t: it.t, id: id++, next };
|
|
171
|
+
case 'class':
|
|
172
|
+
return { t: 'class', id: id++, re: it.re, next };
|
|
173
|
+
}
|
|
174
|
+
const alts = (next) => it.alts.map(a => seq(a, next));
|
|
175
|
+
switch (it.type) {
|
|
176
|
+
case '@':
|
|
177
|
+
return split(alts(next));
|
|
178
|
+
case '?':
|
|
179
|
+
return split([next, ...alts(next)]);
|
|
180
|
+
case '!':
|
|
181
|
+
return { t: 'neg', id: id++, sub: split(alts(MATCH)), next };
|
|
182
|
+
}
|
|
183
|
+
// * and +, loop back after each match
|
|
184
|
+
const after = split([]);
|
|
185
|
+
const entry = split(alts(after));
|
|
186
|
+
after.out.push(next, entry);
|
|
187
|
+
return it.type === '*' ? after : entry;
|
|
188
|
+
};
|
|
189
|
+
const start = seq(items, MATCH);
|
|
190
|
+
return [start, id];
|
|
191
|
+
};
|
|
192
|
+
// one line per node, in the order that a walk from the start
|
|
193
|
+
// reaches them. Edges point to node ids. The nodes of a negated
|
|
194
|
+
// sub-pattern are indented under their negation.
|
|
195
|
+
const show = (start) => {
|
|
196
|
+
const lines = [];
|
|
197
|
+
const seen = new Set();
|
|
198
|
+
const ref = (n) => (n.t === 'match' ? 'match' : String(n.id));
|
|
199
|
+
const walk = (n, indent) => {
|
|
200
|
+
if (n.t === 'match' || seen.has(n))
|
|
201
|
+
return;
|
|
202
|
+
seen.add(n);
|
|
203
|
+
const line = (desc) => lines.push(`${indent}${n.id}: ${desc}`);
|
|
204
|
+
switch (n.t) {
|
|
205
|
+
case 'split':
|
|
206
|
+
line(`split -> ${n.out.map(ref).join(', ')}`);
|
|
207
|
+
for (const o of n.out)
|
|
208
|
+
walk(o, indent);
|
|
209
|
+
return;
|
|
210
|
+
case 'neg':
|
|
211
|
+
line(`!(${ref(n.sub)}) -> ${ref(n.next)}`);
|
|
212
|
+
walk(n.sub, indent + ' ');
|
|
213
|
+
return walk(n.next, indent);
|
|
214
|
+
case 'lit':
|
|
215
|
+
line(`${JSON.stringify(n.ch)} -> ${ref(n.next)}`);
|
|
216
|
+
break;
|
|
217
|
+
case 'class':
|
|
218
|
+
line(`${n.re} -> ${ref(n.next)}`);
|
|
219
|
+
break;
|
|
220
|
+
default:
|
|
221
|
+
line(`${n.t === 'any' ? '?' : '*'} -> ${ref(n.next)}`);
|
|
222
|
+
}
|
|
223
|
+
walk(n.next, indent);
|
|
224
|
+
};
|
|
225
|
+
walk(start, '');
|
|
226
|
+
return [`start -> ${ref(start)}`, ...lines].join('\n');
|
|
227
|
+
};
|
|
228
|
+
// The threads at one position in the string. Each node thread is
|
|
229
|
+
// only kept once, and runs with the same state are only kept once,
|
|
230
|
+
// so that identical threads merge. The match node is not in
|
|
231
|
+
// `threads`, because it can not step. It sets `match` instead.
|
|
232
|
+
class State {
|
|
233
|
+
// set by the Sim, to mark the nodes that this state has
|
|
234
|
+
gen;
|
|
235
|
+
threads = [];
|
|
236
|
+
match = false;
|
|
237
|
+
runs = [];
|
|
238
|
+
// the sorted ids of the threads, with 0 for a match, once the
|
|
239
|
+
// state is done
|
|
240
|
+
ids = [];
|
|
241
|
+
constructor(gen) {
|
|
242
|
+
this.gen = gen;
|
|
243
|
+
}
|
|
244
|
+
// no threads, so nothing more can match
|
|
245
|
+
get dead() {
|
|
246
|
+
return !this.threads.length && !this.match && !this.runs.length;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
// true if the two states hold the same threads
|
|
250
|
+
const sameState = (a, b) => {
|
|
251
|
+
if (a.ids.length !== b.ids.length)
|
|
252
|
+
return false;
|
|
253
|
+
if (a.runs.length !== b.runs.length)
|
|
254
|
+
return false;
|
|
255
|
+
if (a.ids.some((id, i) => id !== b.ids[i]))
|
|
256
|
+
return false;
|
|
257
|
+
return a.runs.every(r => b.runs.some(o => o.neg === r.neg && sameState(o.state, r.state)));
|
|
258
|
+
};
|
|
259
|
+
const marks = (size) => ({
|
|
260
|
+
has: new Float64Array(size),
|
|
261
|
+
seen: new Float64Array(size),
|
|
262
|
+
gen: 0,
|
|
263
|
+
});
|
|
264
|
+
class Sim {
|
|
265
|
+
// `.` and `..` only match literal dots, even with `dot:true`
|
|
266
|
+
dots;
|
|
267
|
+
// the string starts with `.`, and `dot:true` is not set
|
|
268
|
+
dotStart;
|
|
269
|
+
#marks;
|
|
270
|
+
constructor(dots, dotStart, marks) {
|
|
271
|
+
this.dots = dots;
|
|
272
|
+
this.dotStart = dotStart;
|
|
273
|
+
this.#marks = marks;
|
|
274
|
+
}
|
|
275
|
+
state() {
|
|
276
|
+
return new State(++this.#marks.gen);
|
|
277
|
+
}
|
|
278
|
+
// sort the ids of a state, once it has all of its threads
|
|
279
|
+
done(state) {
|
|
280
|
+
state.ids = state.threads.map(n => n.id).sort((a, b) => a - b);
|
|
281
|
+
if (state.match)
|
|
282
|
+
state.ids.unshift(MATCH.id);
|
|
283
|
+
return state;
|
|
284
|
+
}
|
|
285
|
+
// true the first time that the state walks through the node, so
|
|
286
|
+
// that loops in the graph stop
|
|
287
|
+
#visit(state, node) {
|
|
288
|
+
const { seen } = this.#marks;
|
|
289
|
+
if (seen[node.id] === state.gen)
|
|
290
|
+
return false;
|
|
291
|
+
seen[node.id] = state.gen;
|
|
292
|
+
return true;
|
|
293
|
+
}
|
|
294
|
+
#addThread(state, node) {
|
|
295
|
+
const { has } = this.#marks;
|
|
296
|
+
if (has[node.id] === state.gen)
|
|
297
|
+
return false;
|
|
298
|
+
has[node.id] = state.gen;
|
|
299
|
+
state.threads.push(node);
|
|
300
|
+
return true;
|
|
301
|
+
}
|
|
302
|
+
// wildcards only match a leading dot if `dot:true`. In a negated
|
|
303
|
+
// sub-pattern, this does not apply, because the negation itself
|
|
304
|
+
// can not match a leading dot.
|
|
305
|
+
restricted(i, top) {
|
|
306
|
+
return top && (this.dots || (this.dotStart && i === 0));
|
|
307
|
+
}
|
|
308
|
+
add(state, node, i, top) {
|
|
309
|
+
switch (node.t) {
|
|
310
|
+
case 'split':
|
|
311
|
+
if (!this.#visit(state, node))
|
|
312
|
+
return;
|
|
313
|
+
for (const o of node.out)
|
|
314
|
+
this.add(state, o, i, top);
|
|
315
|
+
return;
|
|
316
|
+
case 'neg':
|
|
317
|
+
if (!this.#visit(state, node))
|
|
318
|
+
return;
|
|
319
|
+
const sub = this.state();
|
|
320
|
+
this.add(sub, node.sub, i, false);
|
|
321
|
+
this.done(sub);
|
|
322
|
+
return this.addRun(state, { t: 'run', neg: node, state: sub }, i, top);
|
|
323
|
+
case 'star':
|
|
324
|
+
// a * can not start a dotfile, even if it matches nothing
|
|
325
|
+
if (this.restricted(i, top))
|
|
326
|
+
return;
|
|
327
|
+
if (this.#addThread(state, node))
|
|
328
|
+
this.add(state, node.next, i, top);
|
|
329
|
+
return;
|
|
330
|
+
case 'match':
|
|
331
|
+
state.match = true;
|
|
332
|
+
return;
|
|
333
|
+
default:
|
|
334
|
+
this.#addThread(state, node);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
addRun(state, run, i, top) {
|
|
338
|
+
for (const r of state.runs) {
|
|
339
|
+
if (r.neg === run.neg && sameState(r.state, run.state))
|
|
340
|
+
return;
|
|
341
|
+
}
|
|
342
|
+
state.runs.push(run);
|
|
343
|
+
if (!run.state.match) {
|
|
344
|
+
this.add(state, run.neg.next, i, top);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
// the threads after char `c`, at index `i`
|
|
348
|
+
step(state, c, i, top) {
|
|
349
|
+
const next = this.state();
|
|
350
|
+
for (const th of state.threads) {
|
|
351
|
+
switch (th.t) {
|
|
352
|
+
case 'lit':
|
|
353
|
+
if (litMatch(th, c)) {
|
|
354
|
+
this.add(next, th.next, i + 1, top);
|
|
355
|
+
}
|
|
356
|
+
break;
|
|
357
|
+
case 'any':
|
|
358
|
+
if (!this.restricted(i, top))
|
|
359
|
+
this.add(next, th.next, i + 1, top);
|
|
360
|
+
break;
|
|
361
|
+
case 'class':
|
|
362
|
+
if (!this.restricted(i, top) && th.re.test(c)) {
|
|
363
|
+
this.add(next, th.next, i + 1, top);
|
|
364
|
+
}
|
|
365
|
+
break;
|
|
366
|
+
case 'star':
|
|
367
|
+
if (!this.restricted(i, top))
|
|
368
|
+
this.add(next, th, i + 1, top);
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
if (!this.restricted(i, top)) {
|
|
372
|
+
for (const run of state.runs) {
|
|
373
|
+
// a sub-pattern with no threads can not match again, so the
|
|
374
|
+
// run stays the same
|
|
375
|
+
if (run.state.dead) {
|
|
376
|
+
this.addRun(next, run, i + 1, top);
|
|
377
|
+
continue;
|
|
378
|
+
}
|
|
379
|
+
const sub = this.step(run.state, c, i, false);
|
|
380
|
+
this.addRun(next, { t: 'run', neg: run.neg, state: sub }, i + 1, top);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
return this.done(next);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
// A canonical key for the threads in a state. States with the same
|
|
387
|
+
// key hold the same threads, so they match the same strings.
|
|
388
|
+
const stateKey = (state) => {
|
|
389
|
+
const ids = state.ids.join();
|
|
390
|
+
if (!state.runs.length)
|
|
391
|
+
return ids;
|
|
392
|
+
const runs = state.runs.map(r => `${r.neg.id}(${stateKey(r.state)})`);
|
|
393
|
+
return `${ids}|${runs.sort().join('|')}`;
|
|
394
|
+
};
|
|
395
|
+
// The cache can hold about this many chars of state keys and
|
|
396
|
+
// transitions. When it is full, it is cleared, so that a pattern
|
|
397
|
+
// can not use an unbounded amount of memory.
|
|
398
|
+
const DFA_BUDGET = 1 << 18;
|
|
399
|
+
// A cache of the states that the simulation reaches, built as the
|
|
400
|
+
// matcher is used. Each char of a string is then one Map lookup,
|
|
401
|
+
// once the states that it leads to are known.
|
|
402
|
+
//
|
|
403
|
+
// The dot rules only restrict the first char of a dotfile (strings
|
|
404
|
+
// that are only `.` or `..` do not use the cache). So a dotfile
|
|
405
|
+
// starts at its own state, which takes its first step with the
|
|
406
|
+
// restriction, and every other state takes steps without it.
|
|
407
|
+
class Dfa {
|
|
408
|
+
#start;
|
|
409
|
+
#states = new Map();
|
|
410
|
+
#size = 0;
|
|
411
|
+
#plain;
|
|
412
|
+
#dotStart;
|
|
413
|
+
#sim;
|
|
414
|
+
#dotSim;
|
|
415
|
+
constructor(start, marks) {
|
|
416
|
+
this.#start = start;
|
|
417
|
+
this.#sim = new Sim(false, false, marks);
|
|
418
|
+
this.#dotSim = new Sim(false, true, marks);
|
|
419
|
+
}
|
|
420
|
+
#make(state) {
|
|
421
|
+
return {
|
|
422
|
+
state,
|
|
423
|
+
match: state.match,
|
|
424
|
+
dead: state.dead,
|
|
425
|
+
next: new Map(),
|
|
426
|
+
};
|
|
427
|
+
}
|
|
428
|
+
#intern(state) {
|
|
429
|
+
const key = stateKey(state);
|
|
430
|
+
const found = this.#states.get(key);
|
|
431
|
+
if (found)
|
|
432
|
+
return found;
|
|
433
|
+
if (this.#size > DFA_BUDGET)
|
|
434
|
+
this.#clear();
|
|
435
|
+
const d = this.#make(state);
|
|
436
|
+
this.#states.set(key, d);
|
|
437
|
+
this.#size += key.length + 1;
|
|
438
|
+
return d;
|
|
439
|
+
}
|
|
440
|
+
#clear() {
|
|
441
|
+
this.#states.clear();
|
|
442
|
+
this.#size = 0;
|
|
443
|
+
this.#plain = undefined;
|
|
444
|
+
this.#dotStart = undefined;
|
|
445
|
+
}
|
|
446
|
+
start(dotStart) {
|
|
447
|
+
if (dotStart) {
|
|
448
|
+
if (this.#dotStart)
|
|
449
|
+
return this.#dotStart;
|
|
450
|
+
const state = this.#dotSim.state();
|
|
451
|
+
this.#dotSim.add(state, this.#start, 0, true);
|
|
452
|
+
return (this.#dotStart = this.#make(this.#dotSim.done(state)));
|
|
453
|
+
}
|
|
454
|
+
if (this.#plain)
|
|
455
|
+
return this.#plain;
|
|
456
|
+
const state = this.#sim.state();
|
|
457
|
+
this.#sim.add(state, this.#start, 0, true);
|
|
458
|
+
return (this.#plain = this.#intern(this.#sim.done(state)));
|
|
459
|
+
}
|
|
460
|
+
// the next state, after a miss in `d.ascii`
|
|
461
|
+
next(d, c) {
|
|
462
|
+
const code = c.charCodeAt(0);
|
|
463
|
+
const found = code < 128 ? undefined : d.next.get(c);
|
|
464
|
+
if (found)
|
|
465
|
+
return found;
|
|
466
|
+
// the dotfile start is not in the cache, so it is never shared
|
|
467
|
+
const n = d === this.#dotStart ?
|
|
468
|
+
this.#intern(this.#dotSim.step(d.state, c, 0, true))
|
|
469
|
+
: this.#intern(this.#sim.step(d.state, c, 1, true));
|
|
470
|
+
if (code < 128) {
|
|
471
|
+
if (!d.ascii) {
|
|
472
|
+
d.ascii = new Array(128);
|
|
473
|
+
this.#size += 128;
|
|
474
|
+
}
|
|
475
|
+
d.ascii[code] = n;
|
|
476
|
+
}
|
|
477
|
+
else {
|
|
478
|
+
d.next.set(c, n);
|
|
479
|
+
}
|
|
480
|
+
this.#size++;
|
|
481
|
+
return n;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
// the nodes in order, if the graph is a single chain
|
|
485
|
+
const linear = (start) => {
|
|
486
|
+
const nodes = [];
|
|
487
|
+
for (let n = start; n.t !== 'match'; n = n.next) {
|
|
488
|
+
if (n.t === 'split' || n.t === 'neg')
|
|
489
|
+
return undefined;
|
|
490
|
+
nodes.push(n);
|
|
491
|
+
}
|
|
492
|
+
return nodes;
|
|
493
|
+
};
|
|
494
|
+
// Match a chain of nodes. Each node other than `*` matches exactly
|
|
495
|
+
// one char, so on a failure it is enough to go back to the last `*`
|
|
496
|
+
// and let it match one more char. This takes at most
|
|
497
|
+
// nodes.length * chars.length steps.
|
|
498
|
+
const testLinear = (nodes, chars, start, end) => {
|
|
499
|
+
let ni = 0;
|
|
500
|
+
let ci = start;
|
|
501
|
+
let starNi = -1;
|
|
502
|
+
let starCi = 0;
|
|
503
|
+
while (ci < end) {
|
|
504
|
+
const n = nodes[ni];
|
|
505
|
+
if (n?.t === 'star') {
|
|
506
|
+
starNi = ni++;
|
|
507
|
+
starCi = ci;
|
|
508
|
+
continue;
|
|
509
|
+
}
|
|
510
|
+
const c = chars[ci];
|
|
511
|
+
if (n &&
|
|
512
|
+
(n.t === 'any' ||
|
|
513
|
+
(n.t === 'lit' && litMatch(n, c)) ||
|
|
514
|
+
(n.t === 'class' && n.re.test(c)))) {
|
|
515
|
+
ni++;
|
|
516
|
+
ci++;
|
|
517
|
+
continue;
|
|
518
|
+
}
|
|
519
|
+
if (starNi === -1)
|
|
520
|
+
return false;
|
|
521
|
+
ni = starNi + 1;
|
|
522
|
+
ci = ++starCi;
|
|
523
|
+
}
|
|
524
|
+
while (nodes[ni]?.t === 'star')
|
|
525
|
+
ni++;
|
|
526
|
+
return ni === nodes.length;
|
|
527
|
+
};
|
|
528
|
+
// The least and most chars that the items can match. These are only
|
|
529
|
+
// bounds: a negation can match a string of any length, so it counts
|
|
530
|
+
// as 0 to Infinity.
|
|
531
|
+
const lengths = (items) => {
|
|
532
|
+
let min = 0;
|
|
533
|
+
let max = 0;
|
|
534
|
+
for (const it of items) {
|
|
535
|
+
const [lo, hi] = itemLengths(it);
|
|
536
|
+
min += lo;
|
|
537
|
+
max += hi;
|
|
538
|
+
}
|
|
539
|
+
return [min, max];
|
|
540
|
+
};
|
|
541
|
+
const itemLengths = (it) => {
|
|
542
|
+
if (it.t === 'star')
|
|
543
|
+
return [0, Infinity];
|
|
544
|
+
if (it.t !== 'ext')
|
|
545
|
+
return [1, 1];
|
|
546
|
+
if (it.type === '!')
|
|
547
|
+
return [0, Infinity];
|
|
548
|
+
const alts = it.alts.map(lengths);
|
|
549
|
+
const min = Math.min(...alts.map(a => a[0]));
|
|
550
|
+
const max = Math.max(...alts.map(a => a[1]));
|
|
551
|
+
// a loop of alternatives that only match the empty string is empty
|
|
552
|
+
const loop = max === 0 ? 0 : Infinity;
|
|
553
|
+
return (it.type === '@' ? [min, max]
|
|
554
|
+
: it.type === '?' ? [0, max]
|
|
555
|
+
: it.type === '*' ? [0, loop]
|
|
556
|
+
: [min, loop]);
|
|
557
|
+
};
|
|
558
|
+
// true if the chars from `start` match the literals
|
|
559
|
+
const hasAffix = (lits, chars, start) => {
|
|
560
|
+
for (let j = 0; j < lits.length; j++) {
|
|
561
|
+
if (!litMatch(lits[j], chars[start + j]))
|
|
562
|
+
return false;
|
|
563
|
+
}
|
|
564
|
+
return true;
|
|
565
|
+
};
|
|
566
|
+
// a `/`, or half of a surrogate pair
|
|
567
|
+
const slashOrSurrogate = /[/\ud800-\udfff]/;
|
|
568
|
+
const surrogate = /[\ud800-\udfff]/;
|
|
569
|
+
// a string can be indexed by code point, unless it has surrogate
|
|
570
|
+
// pairs
|
|
571
|
+
const codePoints = (s) => surrogate.test(s) ? [...s] : s;
|
|
572
|
+
const noSlash = (s) => {
|
|
573
|
+
if (s.includes('/')) {
|
|
574
|
+
throw new Error('can only match a single path portion, got: ' + s);
|
|
575
|
+
}
|
|
576
|
+
};
|
|
577
|
+
class Matcher {
|
|
578
|
+
pattern;
|
|
579
|
+
options;
|
|
580
|
+
#start;
|
|
581
|
+
// the number of node ids
|
|
582
|
+
#size;
|
|
583
|
+
#marks;
|
|
584
|
+
// the Sim for strings that are only `.` or `..`
|
|
585
|
+
#dotsSim;
|
|
586
|
+
// the string to compare, if the pattern has no magic. With
|
|
587
|
+
// `nocase:true`, the RegExp that folds case is made when it is
|
|
588
|
+
// first used.
|
|
589
|
+
#literal;
|
|
590
|
+
#literalFold = false;
|
|
591
|
+
#literalRe;
|
|
592
|
+
// the nodes between the prefix and suffix, if the graph is a
|
|
593
|
+
// single chain
|
|
594
|
+
#linear;
|
|
595
|
+
// the linear nodes are only `*` and `?`, so the length bounds and
|
|
596
|
+
// the prefix and suffix decide the match
|
|
597
|
+
#wild = false;
|
|
598
|
+
// the least and most chars that a match can have
|
|
599
|
+
#min = 0;
|
|
600
|
+
#max = Infinity;
|
|
601
|
+
// the literals that a match must start and end with. Each one
|
|
602
|
+
// matches exactly one char, and they are distinct items in the
|
|
603
|
+
// pattern, so a string that does not have them can not match.
|
|
604
|
+
#prefix = [];
|
|
605
|
+
#suffix = [];
|
|
606
|
+
// the prefix and suffix as strings, if they do not fold case
|
|
607
|
+
#prefixStr;
|
|
608
|
+
#suffixStr;
|
|
609
|
+
// there is a prefix or suffix to check
|
|
610
|
+
#affix = false;
|
|
611
|
+
#dfa;
|
|
612
|
+
#form;
|
|
613
|
+
constructor(pattern, options = {}) {
|
|
614
|
+
if (pattern.includes('/')) {
|
|
615
|
+
throw new Error('can only match a single path portion, got pattern: ' + pattern);
|
|
616
|
+
}
|
|
617
|
+
this.pattern = pattern;
|
|
618
|
+
this.options = options;
|
|
619
|
+
const { nocase = false, noext = false, normalize: n } = options;
|
|
620
|
+
this.#form = n === true ? 'NFC' : n || undefined;
|
|
621
|
+
// a pattern that is only an empty extglob is a literal string,
|
|
622
|
+
// except for `!()`, which matches any non-empty string
|
|
623
|
+
const literal = /^[?*+@]\(\)$/.test(pattern);
|
|
624
|
+
const toks = tokenize(pattern, nocase, noext || literal, this.#form, options.rangeMark);
|
|
625
|
+
let [items] = build(toks, pair(toks), 0, toks.length, true);
|
|
626
|
+
if (this.#form)
|
|
627
|
+
items = normalize(items, this.#form);
|
|
628
|
+
const [start, size] = compile(items, nocase);
|
|
629
|
+
this.#start = start;
|
|
630
|
+
this.#size = size;
|
|
631
|
+
if (items.every(it => it.t === 'lit')) {
|
|
632
|
+
this.#literal = items.map(it => it.ch).join('');
|
|
633
|
+
this.#literalFold = nocase;
|
|
634
|
+
}
|
|
635
|
+
else {
|
|
636
|
+
const lit = (it) => it.t !== 'lit' ? undefined
|
|
637
|
+
: nocase ? { ch: it.ch, re: foldRe(it.ch) }
|
|
638
|
+
: { ch: it.ch };
|
|
639
|
+
for (const it of items) {
|
|
640
|
+
const l = lit(it);
|
|
641
|
+
if (!l)
|
|
642
|
+
break;
|
|
643
|
+
this.#prefix.push(l);
|
|
644
|
+
}
|
|
645
|
+
for (let j = items.length - 1; j >= 0; j--) {
|
|
646
|
+
const l = lit(items[j]);
|
|
647
|
+
if (!l)
|
|
648
|
+
break;
|
|
649
|
+
this.#suffix.unshift(l);
|
|
650
|
+
}
|
|
651
|
+
this.#affix = !!(this.#prefix.length || this.#suffix.length);
|
|
652
|
+
if (!nocase) {
|
|
653
|
+
this.#prefixStr = this.#prefix.map(l => l.ch).join('');
|
|
654
|
+
this.#suffixStr = this.#suffix.map(l => l.ch).join('');
|
|
655
|
+
}
|
|
656
|
+
this.#linear = linear(this.#start)?.slice(this.#prefix.length, -this.#suffix.length || undefined);
|
|
657
|
+
this.#wild = !!this.#linear?.every(n => n.t === 'star' || n.t === 'any');
|
|
658
|
+
const [min, max] = lengths(items);
|
|
659
|
+
this.#min = min;
|
|
660
|
+
this.#max = max;
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
test(s) {
|
|
664
|
+
// The `/` check uses the string as given, so with normalization it
|
|
665
|
+
// is a separate step. Otherwise, one scan finds both a `/` and the
|
|
666
|
+
// surrogate pairs that stop the string being indexed by code point.
|
|
667
|
+
if (this.#form) {
|
|
668
|
+
noSlash(s);
|
|
669
|
+
return this.#test(s.normalize(this.#form));
|
|
670
|
+
}
|
|
671
|
+
if (slashOrSurrogate.test(s)) {
|
|
672
|
+
noSlash(s);
|
|
673
|
+
return this.#test(s, [...s]);
|
|
674
|
+
}
|
|
675
|
+
return this.#test(s, s);
|
|
676
|
+
}
|
|
677
|
+
/**
|
|
678
|
+
* The same as {@link Matcher#test}, but the string is not checked
|
|
679
|
+
* for `/` chars, so the result for a string that has one is not
|
|
680
|
+
* defined. Only use it for a string that is known to be one path
|
|
681
|
+
* portion, such as a part of a path that was split on `/`. It can
|
|
682
|
+
* be faster, because some patterns do not need to look at each char
|
|
683
|
+
* of the string.
|
|
684
|
+
*/
|
|
685
|
+
testUnchecked(s) {
|
|
686
|
+
return this.#test(this.#form ? s.normalize(this.#form) : s);
|
|
687
|
+
}
|
|
688
|
+
// Test a string that has no `/`. `chars` indexes it by code point.
|
|
689
|
+
// If it is not given, it is only found if a step needs it.
|
|
690
|
+
#test(s, chars) {
|
|
691
|
+
if (this.#literal !== undefined) {
|
|
692
|
+
return this.#literalFold ?
|
|
693
|
+
(this.#literalRe ??= newFoldRe(this.#literal)).test(s)
|
|
694
|
+
: s === this.#literal;
|
|
695
|
+
}
|
|
696
|
+
// the length check means that the prefix and suffix do not
|
|
697
|
+
// overlap. Without the chars, the length in code points is from
|
|
698
|
+
// half of the UTF-16 length (if each one is a surrogate pair) to
|
|
699
|
+
// all of it, which is often enough to know.
|
|
700
|
+
const min = this.#min;
|
|
701
|
+
const max = this.#max;
|
|
702
|
+
if (chars === undefined) {
|
|
703
|
+
const most = s.length;
|
|
704
|
+
const least = (most + 1) >> 1;
|
|
705
|
+
if (most < min || least > max)
|
|
706
|
+
return false;
|
|
707
|
+
if (least < min || most > max)
|
|
708
|
+
chars = codePoints(s);
|
|
709
|
+
}
|
|
710
|
+
if (chars !== undefined &&
|
|
711
|
+
(chars.length < min || chars.length > max)) {
|
|
712
|
+
return false;
|
|
713
|
+
}
|
|
714
|
+
const prefix = this.#prefix.length;
|
|
715
|
+
if (this.#affix) {
|
|
716
|
+
if (this.#prefixStr !== undefined && this.#suffixStr !== undefined) {
|
|
717
|
+
if (!s.startsWith(this.#prefixStr) ||
|
|
718
|
+
!s.endsWith(this.#suffixStr)) {
|
|
719
|
+
return false;
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
else {
|
|
723
|
+
chars ??= codePoints(s);
|
|
724
|
+
const end = chars.length - this.#suffix.length;
|
|
725
|
+
if (!hasAffix(this.#prefix, chars, 0) ||
|
|
726
|
+
!hasAffix(this.#suffix, chars, end)) {
|
|
727
|
+
return false;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
const dotStart = !this.options.dot && s.startsWith('.');
|
|
732
|
+
if (this.#linear) {
|
|
733
|
+
// `.` and `..` only match literal dots, even with `dot:true`
|
|
734
|
+
if (s === '.' || s === '..')
|
|
735
|
+
return false;
|
|
736
|
+
// only a literal can match the leading dot. A `*` can not
|
|
737
|
+
// start a dotfile, even if it matches nothing.
|
|
738
|
+
if (dotStart && !prefix)
|
|
739
|
+
return false;
|
|
740
|
+
if (this.#wild)
|
|
741
|
+
return true;
|
|
742
|
+
chars ??= codePoints(s);
|
|
743
|
+
const end = chars.length - this.#suffix.length;
|
|
744
|
+
return testLinear(this.#linear, chars, prefix, end);
|
|
745
|
+
}
|
|
746
|
+
chars ??= codePoints(s);
|
|
747
|
+
if (s === '.' || s === '..') {
|
|
748
|
+
this.#marks ??= marks(this.#size);
|
|
749
|
+
const sim = (this.#dotsSim ??= new Sim(true, false, this.#marks));
|
|
750
|
+
const start = sim.state();
|
|
751
|
+
sim.add(start, this.#start, 0, true);
|
|
752
|
+
let state = sim.done(start);
|
|
753
|
+
for (let i = 0; i < chars.length; i++) {
|
|
754
|
+
state = sim.step(state, chars[i], i, true);
|
|
755
|
+
}
|
|
756
|
+
return state.match;
|
|
757
|
+
}
|
|
758
|
+
this.#marks ??= marks(this.#size);
|
|
759
|
+
const dfa = (this.#dfa ??= new Dfa(this.#start, this.#marks));
|
|
760
|
+
let d = dfa.start(dotStart);
|
|
761
|
+
// read char codes from the string, so that a one-char string is
|
|
762
|
+
// only made for a cache miss
|
|
763
|
+
const str = chars === s;
|
|
764
|
+
for (let i = 0; i < chars.length; i++) {
|
|
765
|
+
if (d.dead)
|
|
766
|
+
return false;
|
|
767
|
+
const code = str ? s.charCodeAt(i) : chars[i].charCodeAt(0);
|
|
768
|
+
d = d.ascii?.[code] ?? dfa.next(d, chars[i]);
|
|
769
|
+
}
|
|
770
|
+
return d.match;
|
|
771
|
+
}
|
|
772
|
+
/** a readable listing of the state machine */
|
|
773
|
+
toString() {
|
|
774
|
+
return show(this.#start);
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
exports.Matcher = Matcher;
|
|
778
|
+
//# sourceMappingURL=index.js.map
|