@macula-io/martha 0.0.0 → 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 +53 -8
- 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 +56 -2
- 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,283 @@
|
|
|
1
|
+
"use strict"
|
|
2
|
+
var Buffer = require("safer-buffer").Buffer
|
|
3
|
+
|
|
4
|
+
// UTF-7 codec, according to https://tools.ietf.org/html/rfc2152
|
|
5
|
+
// See also below a UTF-7-IMAP codec, according to http://tools.ietf.org/html/rfc3501#section-5.1.3
|
|
6
|
+
|
|
7
|
+
exports.utf7 = Utf7Codec
|
|
8
|
+
exports.unicode11utf7 = "utf7" // Alias UNICODE-1-1-UTF-7
|
|
9
|
+
function Utf7Codec (codecOptions, iconv) {
|
|
10
|
+
this.iconv = iconv
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
Utf7Codec.prototype.encoder = Utf7Encoder
|
|
14
|
+
Utf7Codec.prototype.decoder = Utf7Decoder
|
|
15
|
+
Utf7Codec.prototype.bomAware = true
|
|
16
|
+
|
|
17
|
+
// -- Encoding
|
|
18
|
+
|
|
19
|
+
// Why scape ()?./?
|
|
20
|
+
// eslint-disable-next-line no-useless-escape
|
|
21
|
+
var nonDirectChars = /[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g
|
|
22
|
+
|
|
23
|
+
function Utf7Encoder (options, codec) {
|
|
24
|
+
this.iconv = codec.iconv
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
Utf7Encoder.prototype.write = function (str) {
|
|
28
|
+
// Naive implementation.
|
|
29
|
+
// Non-direct chars are encoded as "+<base64>-"; single "+" char is encoded as "+-".
|
|
30
|
+
return Buffer.from(str.replace(nonDirectChars, function (chunk) {
|
|
31
|
+
return "+" + (chunk === "+"
|
|
32
|
+
? ""
|
|
33
|
+
: this.iconv.encode(chunk, "utf16-be").toString("base64").replace(/=+$/, "")) +
|
|
34
|
+
"-"
|
|
35
|
+
}.bind(this)))
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
Utf7Encoder.prototype.end = function () {
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// -- Decoding
|
|
42
|
+
|
|
43
|
+
function Utf7Decoder (options, codec) {
|
|
44
|
+
this.iconv = codec.iconv
|
|
45
|
+
this.inBase64 = false
|
|
46
|
+
this.base64Accum = ""
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Why scape /?
|
|
50
|
+
// eslint-disable-next-line no-useless-escape
|
|
51
|
+
var base64Regex = /[A-Za-z0-9\/+]/
|
|
52
|
+
var base64Chars = []
|
|
53
|
+
for (var i = 0; i < 256; i++) { base64Chars[i] = base64Regex.test(String.fromCharCode(i)) }
|
|
54
|
+
|
|
55
|
+
var plusChar = "+".charCodeAt(0)
|
|
56
|
+
var minusChar = "-".charCodeAt(0)
|
|
57
|
+
var andChar = "&".charCodeAt(0)
|
|
58
|
+
|
|
59
|
+
Utf7Decoder.prototype.write = function (buf) {
|
|
60
|
+
var res = ""; var lastI = 0
|
|
61
|
+
var inBase64 = this.inBase64
|
|
62
|
+
var base64Accum = this.base64Accum
|
|
63
|
+
|
|
64
|
+
// The decoder is more involved as we must handle chunks in stream.
|
|
65
|
+
|
|
66
|
+
for (var i = 0; i < buf.length; i++) {
|
|
67
|
+
if (!inBase64) { // We're in direct mode.
|
|
68
|
+
// Write direct chars until '+'
|
|
69
|
+
if (buf[i] == plusChar) {
|
|
70
|
+
res += this.iconv.decode(buf.slice(lastI, i), "ascii") // Write direct chars.
|
|
71
|
+
lastI = i + 1
|
|
72
|
+
inBase64 = true
|
|
73
|
+
}
|
|
74
|
+
} else { // We decode base64.
|
|
75
|
+
if (!base64Chars[buf[i]]) { // Base64 ended.
|
|
76
|
+
if (i == lastI && buf[i] == minusChar) { // "+-" -> "+"
|
|
77
|
+
res += "+"
|
|
78
|
+
} else {
|
|
79
|
+
var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i), "ascii")
|
|
80
|
+
res += this.iconv.decode(Buffer.from(b64str, "base64"), "utf16-be")
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
if (buf[i] != minusChar) // Minus is absorbed after base64.
|
|
84
|
+
{ i-- }
|
|
85
|
+
|
|
86
|
+
lastI = i + 1
|
|
87
|
+
inBase64 = false
|
|
88
|
+
base64Accum = ""
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
if (!inBase64) {
|
|
94
|
+
res += this.iconv.decode(buf.slice(lastI), "ascii") // Write direct chars.
|
|
95
|
+
} else {
|
|
96
|
+
var b64str = base64Accum + this.iconv.decode(buf.slice(lastI), "ascii")
|
|
97
|
+
|
|
98
|
+
var canBeDecoded = b64str.length - (b64str.length % 8) // Minimal chunk: 2 quads -> 2x3 bytes -> 3 chars.
|
|
99
|
+
base64Accum = b64str.slice(canBeDecoded) // The rest will be decoded in future.
|
|
100
|
+
b64str = b64str.slice(0, canBeDecoded)
|
|
101
|
+
|
|
102
|
+
res += this.iconv.decode(Buffer.from(b64str, "base64"), "utf16-be")
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
this.inBase64 = inBase64
|
|
106
|
+
this.base64Accum = base64Accum
|
|
107
|
+
|
|
108
|
+
return res
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
Utf7Decoder.prototype.end = function () {
|
|
112
|
+
var res = ""
|
|
113
|
+
if (this.inBase64 && this.base64Accum.length > 0) { res = this.iconv.decode(Buffer.from(this.base64Accum, "base64"), "utf16-be") }
|
|
114
|
+
|
|
115
|
+
this.inBase64 = false
|
|
116
|
+
this.base64Accum = ""
|
|
117
|
+
return res
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// UTF-7-IMAP codec.
|
|
121
|
+
// RFC3501 Sec. 5.1.3 Modified UTF-7 (http://tools.ietf.org/html/rfc3501#section-5.1.3)
|
|
122
|
+
// Differences:
|
|
123
|
+
// * Base64 part is started by "&" instead of "+"
|
|
124
|
+
// * Direct characters are 0x20-0x7E, except "&" (0x26)
|
|
125
|
+
// * In Base64, "," is used instead of "/"
|
|
126
|
+
// * Base64 must not be used to represent direct characters.
|
|
127
|
+
// * No implicit shift back from Base64 (should always end with '-')
|
|
128
|
+
// * String must end in non-shifted position.
|
|
129
|
+
// * "-&" while in base64 is not allowed.
|
|
130
|
+
|
|
131
|
+
exports.utf7imap = Utf7IMAPCodec
|
|
132
|
+
function Utf7IMAPCodec (codecOptions, iconv) {
|
|
133
|
+
this.iconv = iconv
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
Utf7IMAPCodec.prototype.encoder = Utf7IMAPEncoder
|
|
137
|
+
Utf7IMAPCodec.prototype.decoder = Utf7IMAPDecoder
|
|
138
|
+
Utf7IMAPCodec.prototype.bomAware = true
|
|
139
|
+
|
|
140
|
+
// -- Encoding
|
|
141
|
+
|
|
142
|
+
function Utf7IMAPEncoder (options, codec) {
|
|
143
|
+
this.iconv = codec.iconv
|
|
144
|
+
this.inBase64 = false
|
|
145
|
+
this.base64Accum = Buffer.alloc(6)
|
|
146
|
+
this.base64AccumIdx = 0
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
Utf7IMAPEncoder.prototype.write = function (str) {
|
|
150
|
+
var inBase64 = this.inBase64
|
|
151
|
+
var base64Accum = this.base64Accum
|
|
152
|
+
var base64AccumIdx = this.base64AccumIdx
|
|
153
|
+
var buf = Buffer.alloc(str.length * 5 + 10); var bufIdx = 0
|
|
154
|
+
|
|
155
|
+
for (var i = 0; i < str.length; i++) {
|
|
156
|
+
var uChar = str.charCodeAt(i)
|
|
157
|
+
if (uChar >= 0x20 && uChar <= 0x7E) { // Direct character or '&'.
|
|
158
|
+
if (inBase64) {
|
|
159
|
+
if (base64AccumIdx > 0) {
|
|
160
|
+
bufIdx += buf.write(base64Accum.slice(0, base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), bufIdx)
|
|
161
|
+
base64AccumIdx = 0
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
buf[bufIdx++] = minusChar // Write '-', then go to direct mode.
|
|
165
|
+
inBase64 = false
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
if (!inBase64) {
|
|
169
|
+
buf[bufIdx++] = uChar // Write direct character
|
|
170
|
+
|
|
171
|
+
if (uChar === andChar) // Ampersand -> '&-'
|
|
172
|
+
{ buf[bufIdx++] = minusChar }
|
|
173
|
+
}
|
|
174
|
+
} else { // Non-direct character
|
|
175
|
+
if (!inBase64) {
|
|
176
|
+
buf[bufIdx++] = andChar // Write '&', then go to base64 mode.
|
|
177
|
+
inBase64 = true
|
|
178
|
+
}
|
|
179
|
+
if (inBase64) {
|
|
180
|
+
base64Accum[base64AccumIdx++] = uChar >> 8
|
|
181
|
+
base64Accum[base64AccumIdx++] = uChar & 0xFF
|
|
182
|
+
|
|
183
|
+
if (base64AccumIdx == base64Accum.length) {
|
|
184
|
+
bufIdx += buf.write(base64Accum.toString("base64").replace(/\//g, ","), bufIdx)
|
|
185
|
+
base64AccumIdx = 0
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
this.inBase64 = inBase64
|
|
192
|
+
this.base64AccumIdx = base64AccumIdx
|
|
193
|
+
|
|
194
|
+
return buf.slice(0, bufIdx)
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
Utf7IMAPEncoder.prototype.end = function () {
|
|
198
|
+
var buf = Buffer.alloc(10); var bufIdx = 0
|
|
199
|
+
if (this.inBase64) {
|
|
200
|
+
if (this.base64AccumIdx > 0) {
|
|
201
|
+
bufIdx += buf.write(this.base64Accum.slice(0, this.base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), bufIdx)
|
|
202
|
+
this.base64AccumIdx = 0
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
buf[bufIdx++] = minusChar // Write '-', then go to direct mode.
|
|
206
|
+
this.inBase64 = false
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
return buf.slice(0, bufIdx)
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// -- Decoding
|
|
213
|
+
|
|
214
|
+
function Utf7IMAPDecoder (options, codec) {
|
|
215
|
+
this.iconv = codec.iconv
|
|
216
|
+
this.inBase64 = false
|
|
217
|
+
this.base64Accum = ""
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
var base64IMAPChars = base64Chars.slice()
|
|
221
|
+
base64IMAPChars[",".charCodeAt(0)] = true
|
|
222
|
+
|
|
223
|
+
Utf7IMAPDecoder.prototype.write = function (buf) {
|
|
224
|
+
var res = ""; var lastI = 0
|
|
225
|
+
var inBase64 = this.inBase64
|
|
226
|
+
var base64Accum = this.base64Accum
|
|
227
|
+
|
|
228
|
+
// The decoder is more involved as we must handle chunks in stream.
|
|
229
|
+
// It is forgiving, closer to standard UTF-7 (for example, '-' is optional at the end).
|
|
230
|
+
|
|
231
|
+
for (var i = 0; i < buf.length; i++) {
|
|
232
|
+
if (!inBase64) { // We're in direct mode.
|
|
233
|
+
// Write direct chars until '&'
|
|
234
|
+
if (buf[i] == andChar) {
|
|
235
|
+
res += this.iconv.decode(buf.slice(lastI, i), "ascii") // Write direct chars.
|
|
236
|
+
lastI = i + 1
|
|
237
|
+
inBase64 = true
|
|
238
|
+
}
|
|
239
|
+
} else { // We decode base64.
|
|
240
|
+
if (!base64IMAPChars[buf[i]]) { // Base64 ended.
|
|
241
|
+
if (i == lastI && buf[i] == minusChar) { // "&-" -> "&"
|
|
242
|
+
res += "&"
|
|
243
|
+
} else {
|
|
244
|
+
var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i), "ascii").replace(/,/g, "/")
|
|
245
|
+
res += this.iconv.decode(Buffer.from(b64str, "base64"), "utf16-be")
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
if (buf[i] != minusChar) // Minus may be absorbed after base64.
|
|
249
|
+
{ i-- }
|
|
250
|
+
|
|
251
|
+
lastI = i + 1
|
|
252
|
+
inBase64 = false
|
|
253
|
+
base64Accum = ""
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
if (!inBase64) {
|
|
259
|
+
res += this.iconv.decode(buf.slice(lastI), "ascii") // Write direct chars.
|
|
260
|
+
} else {
|
|
261
|
+
var b64str = base64Accum + this.iconv.decode(buf.slice(lastI), "ascii").replace(/,/g, "/")
|
|
262
|
+
|
|
263
|
+
var canBeDecoded = b64str.length - (b64str.length % 8) // Minimal chunk: 2 quads -> 2x3 bytes -> 3 chars.
|
|
264
|
+
base64Accum = b64str.slice(canBeDecoded) // The rest will be decoded in future.
|
|
265
|
+
b64str = b64str.slice(0, canBeDecoded)
|
|
266
|
+
|
|
267
|
+
res += this.iconv.decode(Buffer.from(b64str, "base64"), "utf16-be")
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
this.inBase64 = inBase64
|
|
271
|
+
this.base64Accum = base64Accum
|
|
272
|
+
|
|
273
|
+
return res
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
Utf7IMAPDecoder.prototype.end = function () {
|
|
277
|
+
var res = ""
|
|
278
|
+
if (this.inBase64 && this.base64Accum.length > 0) { res = this.iconv.decode(Buffer.from(this.base64Accum, "base64"), "utf16-be") }
|
|
279
|
+
|
|
280
|
+
this.inBase64 = false
|
|
281
|
+
this.base64Accum = ""
|
|
282
|
+
return res
|
|
283
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict"
|
|
2
|
+
|
|
3
|
+
var BOMChar = "\uFEFF"
|
|
4
|
+
|
|
5
|
+
exports.PrependBOM = PrependBOMWrapper
|
|
6
|
+
function PrependBOMWrapper (encoder, options) {
|
|
7
|
+
this.encoder = encoder
|
|
8
|
+
this.addBOM = true
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
PrependBOMWrapper.prototype.write = function (str) {
|
|
12
|
+
if (this.addBOM) {
|
|
13
|
+
str = BOMChar + str
|
|
14
|
+
this.addBOM = false
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return this.encoder.write(str)
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
PrependBOMWrapper.prototype.end = function () {
|
|
21
|
+
return this.encoder.end()
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// ------------------------------------------------------------------------------
|
|
25
|
+
|
|
26
|
+
exports.StripBOM = StripBOMWrapper
|
|
27
|
+
function StripBOMWrapper (decoder, options) {
|
|
28
|
+
this.decoder = decoder
|
|
29
|
+
this.pass = false
|
|
30
|
+
this.options = options || {}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
StripBOMWrapper.prototype.write = function (buf) {
|
|
34
|
+
var res = this.decoder.write(buf)
|
|
35
|
+
if (this.pass || !res) { return res }
|
|
36
|
+
|
|
37
|
+
if (res[0] === BOMChar) {
|
|
38
|
+
res = res.slice(1)
|
|
39
|
+
if (typeof this.options.stripBOM === "function") { this.options.stripBOM() }
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
this.pass = true
|
|
43
|
+
return res
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
StripBOMWrapper.prototype.end = function () {
|
|
47
|
+
return this.decoder.end()
|
|
48
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict"
|
|
2
|
+
|
|
3
|
+
var hasOwn = typeof Object.hasOwn === "undefined" ? Function.call.bind(Object.prototype.hasOwnProperty) : Object.hasOwn
|
|
4
|
+
|
|
5
|
+
function mergeModules (target, module) {
|
|
6
|
+
for (var key in module) {
|
|
7
|
+
if (hasOwn(module, key)) {
|
|
8
|
+
target[key] = module[key]
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
module.exports = mergeModules
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/* ---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
* REQUIREMENT: This definition is dependent on the @types/node definition.
|
|
5
|
+
* Install with `npm install @types/node --save-dev`
|
|
6
|
+
*-------------------------------------------------------------------------------------------- */
|
|
7
|
+
|
|
8
|
+
/* ---------------------------------------------------------------------------------------------
|
|
9
|
+
* This file provides detailed typings for the public API of iconv-lite
|
|
10
|
+
*-------------------------------------------------------------------------------------------- */
|
|
11
|
+
|
|
12
|
+
import type Stream = require("stream")
|
|
13
|
+
import type { Encoding } from "../types/encodings"
|
|
14
|
+
|
|
15
|
+
declare namespace iconv {
|
|
16
|
+
export interface DecodeOptions {
|
|
17
|
+
/**
|
|
18
|
+
* Strip the Byte Order Mark (BOM) from the input,
|
|
19
|
+
* when decoding, if the codec is BOM-aware. @default true
|
|
20
|
+
*/
|
|
21
|
+
stripBOM?: boolean;
|
|
22
|
+
/** Override the default endianness for `UTF-16` and `UTF-32` decodings. */
|
|
23
|
+
defaultEncoding?: "utf16be" | "utf32be";
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface EncodeOptions {
|
|
27
|
+
/**
|
|
28
|
+
* Add a Byte Order Mark (BOM) to the output, when encoding,
|
|
29
|
+
* if the codec is BOM-aware. @default false
|
|
30
|
+
*/
|
|
31
|
+
addBOM?: boolean;
|
|
32
|
+
/** Override the default endianness for `UTF-32` encoding. */
|
|
33
|
+
defaultEncoding?: "utf32be";
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface EncoderStream {
|
|
37
|
+
write(str: string): Buffer;
|
|
38
|
+
end(): Buffer | undefined;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface DecoderStream {
|
|
42
|
+
write(buf: Buffer): string;
|
|
43
|
+
end(): string | undefined;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface Codec {
|
|
47
|
+
encoder: new (options?: EncodeOptions, codec?: Codec) => EncoderStream;
|
|
48
|
+
decoder: new (options?: DecodeOptions, codec?: Codec) => DecoderStream;
|
|
49
|
+
bomAware?: boolean;
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** Encodes a `string` into a `Buffer`, using the provided `encoding`. */
|
|
54
|
+
export function encode (content: string, encoding: Encoding, options?: EncodeOptions): Buffer
|
|
55
|
+
|
|
56
|
+
/** Decodes a `Buffer` into a `string`, using the provided `encoding`. */
|
|
57
|
+
export function decode (buffer: Buffer | Uint8Array, encoding: Encoding, options?: DecodeOptions): string
|
|
58
|
+
|
|
59
|
+
/** Checks if a given encoding is supported by `iconv-lite`. */
|
|
60
|
+
export function encodingExists (encoding: string): encoding is Encoding
|
|
61
|
+
|
|
62
|
+
/** Legacy alias for {@link iconv.encode}. */
|
|
63
|
+
export const toEncoding: typeof iconv.encode
|
|
64
|
+
|
|
65
|
+
/** Legacy alias for {@link iconv.decode}. */
|
|
66
|
+
export const fromEncoding: typeof iconv.decode
|
|
67
|
+
|
|
68
|
+
/** Creates a stream that decodes binary data from a given `encoding` into strings. */
|
|
69
|
+
export function decodeStream (encoding: Encoding, options?: DecodeOptions): NodeJS.ReadWriteStream
|
|
70
|
+
|
|
71
|
+
/** Creates a stream that encodes strings into binary data in a given `encoding`. */
|
|
72
|
+
export function encodeStream (encoding: Encoding, options?: EncodeOptions): NodeJS.ReadWriteStream
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Explicitly enable Streaming API in browser environments by passing in:
|
|
76
|
+
* ```js
|
|
77
|
+
* require('stream')
|
|
78
|
+
* ```
|
|
79
|
+
* @example iconv.enableStreamingAPI(require('stream'));
|
|
80
|
+
*/
|
|
81
|
+
export function enableStreamingAPI (stream_module: { Transform: typeof Stream.Transform }): void
|
|
82
|
+
|
|
83
|
+
/** Creates and returns a low-level encoder stream. */
|
|
84
|
+
export function getEncoder (encoding: Encoding, options?: EncodeOptions): EncoderStream
|
|
85
|
+
|
|
86
|
+
/** Creates and returns a low-level decoder stream. */
|
|
87
|
+
export function getDecoder (encoding: Encoding, options?: DecodeOptions): DecoderStream
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Returns a codec object for the given `encoding`.
|
|
91
|
+
* @throws If the `encoding` is not recognized.
|
|
92
|
+
*/
|
|
93
|
+
export function getCodec (encoding: Encoding): Codec
|
|
94
|
+
|
|
95
|
+
/** Strips all non-alphanumeric characters and appended year from `encoding`. */
|
|
96
|
+
export function _canonicalizeEncoding (encoding: Encoding): string
|
|
97
|
+
|
|
98
|
+
/** A cache of all loaded encoding definitions. */
|
|
99
|
+
export let encodings: Record<
|
|
100
|
+
Encoding,
|
|
101
|
+
| string
|
|
102
|
+
| {
|
|
103
|
+
type: string;
|
|
104
|
+
[key: string]: any;
|
|
105
|
+
}
|
|
106
|
+
> | null
|
|
107
|
+
|
|
108
|
+
/** A cache of initialized codec objects. */
|
|
109
|
+
export let _codecDataCache: Record<string, Codec>
|
|
110
|
+
|
|
111
|
+
/** The character used for untranslatable `Unicode` characters. @default "�" */
|
|
112
|
+
export let defaultCharUnicode: string
|
|
113
|
+
|
|
114
|
+
/** The character used for untranslatable `single-byte` characters. @default "?" */
|
|
115
|
+
export let defaultCharSingleByte: string
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Skip deprecation warning when strings are used instead of Buffers during decoding.
|
|
119
|
+
* Note: {@link iconv.decode} converts the string to Buffer regardless.
|
|
120
|
+
*/
|
|
121
|
+
export let skipDecodeWarning: boolean
|
|
122
|
+
|
|
123
|
+
/** @readonly Whether or not, Streaming API is enabled. */
|
|
124
|
+
export const supportsStreams: boolean
|
|
125
|
+
|
|
126
|
+
export type { iconv as Iconv, Encoding }
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export = iconv
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
"use strict"
|
|
2
|
+
|
|
3
|
+
var Buffer = require("safer-buffer").Buffer
|
|
4
|
+
|
|
5
|
+
var bomHandling = require("./bom-handling")
|
|
6
|
+
var mergeModules = require("./helpers/merge-exports")
|
|
7
|
+
|
|
8
|
+
// All codecs and aliases are kept here, keyed by encoding name/alias.
|
|
9
|
+
// They are lazy loaded in `iconv.getCodec` from `encodings/index.js`.
|
|
10
|
+
// Cannot initialize with { __proto__: null } because Boolean({ __proto__: null }) === true
|
|
11
|
+
module.exports.encodings = null
|
|
12
|
+
|
|
13
|
+
// Characters emitted in case of error.
|
|
14
|
+
module.exports.defaultCharUnicode = "�"
|
|
15
|
+
module.exports.defaultCharSingleByte = "?"
|
|
16
|
+
|
|
17
|
+
// Public API.
|
|
18
|
+
module.exports.encode = function encode (str, encoding, options) {
|
|
19
|
+
str = "" + (str || "") // Ensure string.
|
|
20
|
+
|
|
21
|
+
var encoder = module.exports.getEncoder(encoding, options)
|
|
22
|
+
|
|
23
|
+
var res = encoder.write(str)
|
|
24
|
+
var trail = encoder.end()
|
|
25
|
+
|
|
26
|
+
return (trail && trail.length > 0) ? Buffer.concat([res, trail]) : res
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
module.exports.decode = function decode (buf, encoding, options) {
|
|
30
|
+
if (typeof buf === "string") {
|
|
31
|
+
if (!module.exports.skipDecodeWarning) {
|
|
32
|
+
console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding")
|
|
33
|
+
module.exports.skipDecodeWarning = true
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
buf = Buffer.from("" + (buf || ""), "binary") // Ensure buffer.
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
var decoder = module.exports.getDecoder(encoding, options)
|
|
40
|
+
|
|
41
|
+
var res = decoder.write(buf)
|
|
42
|
+
var trail = decoder.end()
|
|
43
|
+
|
|
44
|
+
return trail ? (res + trail) : res
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
module.exports.encodingExists = function encodingExists (enc) {
|
|
48
|
+
try {
|
|
49
|
+
module.exports.getCodec(enc)
|
|
50
|
+
return true
|
|
51
|
+
} catch (e) {
|
|
52
|
+
return false
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Legacy aliases to convert functions
|
|
57
|
+
module.exports.toEncoding = module.exports.encode
|
|
58
|
+
module.exports.fromEncoding = module.exports.decode
|
|
59
|
+
|
|
60
|
+
// Search for a codec in iconv.encodings. Cache codec data in iconv._codecDataCache.
|
|
61
|
+
module.exports._codecDataCache = { __proto__: null }
|
|
62
|
+
|
|
63
|
+
module.exports.getCodec = function getCodec (encoding) {
|
|
64
|
+
if (!module.exports.encodings) {
|
|
65
|
+
var raw = require("../encodings")
|
|
66
|
+
// TODO: In future versions when old nodejs support is removed can use object.assign
|
|
67
|
+
module.exports.encodings = { __proto__: null } // Initialize as empty object.
|
|
68
|
+
mergeModules(module.exports.encodings, raw)
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// Canonicalize encoding name: strip all non-alphanumeric chars and appended year.
|
|
72
|
+
var enc = module.exports._canonicalizeEncoding(encoding)
|
|
73
|
+
|
|
74
|
+
// Traverse iconv.encodings to find actual codec.
|
|
75
|
+
var codecOptions = {}
|
|
76
|
+
while (true) {
|
|
77
|
+
var codec = module.exports._codecDataCache[enc]
|
|
78
|
+
|
|
79
|
+
if (codec) { return codec }
|
|
80
|
+
|
|
81
|
+
var codecDef = module.exports.encodings[enc]
|
|
82
|
+
|
|
83
|
+
switch (typeof codecDef) {
|
|
84
|
+
case "string": // Direct alias to other encoding.
|
|
85
|
+
enc = codecDef
|
|
86
|
+
break
|
|
87
|
+
|
|
88
|
+
case "object": // Alias with options. Can be layered.
|
|
89
|
+
for (var key in codecDef) { codecOptions[key] = codecDef[key] }
|
|
90
|
+
|
|
91
|
+
if (!codecOptions.encodingName) { codecOptions.encodingName = enc }
|
|
92
|
+
|
|
93
|
+
enc = codecDef.type
|
|
94
|
+
break
|
|
95
|
+
|
|
96
|
+
case "function": // Codec itself.
|
|
97
|
+
if (!codecOptions.encodingName) { codecOptions.encodingName = enc }
|
|
98
|
+
|
|
99
|
+
// The codec function must load all tables and return object with .encoder and .decoder methods.
|
|
100
|
+
// It'll be called only once (for each different options object).
|
|
101
|
+
//
|
|
102
|
+
codec = new codecDef(codecOptions, module.exports)
|
|
103
|
+
|
|
104
|
+
module.exports._codecDataCache[codecOptions.encodingName] = codec // Save it to be reused later.
|
|
105
|
+
return codec
|
|
106
|
+
|
|
107
|
+
default:
|
|
108
|
+
throw new Error("Encoding not recognized: '" + encoding + "' (searched as: '" + enc + "')")
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
module.exports._canonicalizeEncoding = function (encoding) {
|
|
114
|
+
// Canonicalize encoding name: strip all non-alphanumeric chars and appended year.
|
|
115
|
+
return ("" + encoding).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g, "")
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
module.exports.getEncoder = function getEncoder (encoding, options) {
|
|
119
|
+
var codec = module.exports.getCodec(encoding)
|
|
120
|
+
var encoder = new codec.encoder(options, codec)
|
|
121
|
+
|
|
122
|
+
if (codec.bomAware && options && options.addBOM) { encoder = new bomHandling.PrependBOM(encoder, options) }
|
|
123
|
+
|
|
124
|
+
return encoder
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
module.exports.getDecoder = function getDecoder (encoding, options) {
|
|
128
|
+
var codec = module.exports.getCodec(encoding)
|
|
129
|
+
var decoder = new codec.decoder(options, codec)
|
|
130
|
+
|
|
131
|
+
if (codec.bomAware && !(options && options.stripBOM === false)) { decoder = new bomHandling.StripBOM(decoder, options) }
|
|
132
|
+
|
|
133
|
+
return decoder
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// Streaming API
|
|
137
|
+
// NOTE: Streaming API naturally depends on 'stream' module from Node.js. Unfortunately in browser environments this module can add
|
|
138
|
+
// up to 100Kb to the output bundle. To avoid unnecessary code bloat, we don't enable Streaming API in browser by default.
|
|
139
|
+
// If you would like to enable it explicitly, please add the following code to your app:
|
|
140
|
+
// > iconv.enableStreamingAPI(require('stream'));
|
|
141
|
+
module.exports.enableStreamingAPI = function enableStreamingAPI (streamModule) {
|
|
142
|
+
if (module.exports.supportsStreams) { return }
|
|
143
|
+
|
|
144
|
+
// Dependency-inject stream module to create IconvLite stream classes.
|
|
145
|
+
var streams = require("./streams")(streamModule)
|
|
146
|
+
|
|
147
|
+
// Not public API yet, but expose the stream classes.
|
|
148
|
+
module.exports.IconvLiteEncoderStream = streams.IconvLiteEncoderStream
|
|
149
|
+
module.exports.IconvLiteDecoderStream = streams.IconvLiteDecoderStream
|
|
150
|
+
|
|
151
|
+
// Streaming API.
|
|
152
|
+
module.exports.encodeStream = function encodeStream (encoding, options) {
|
|
153
|
+
return new module.exports.IconvLiteEncoderStream(module.exports.getEncoder(encoding, options), options)
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
module.exports.decodeStream = function decodeStream (encoding, options) {
|
|
157
|
+
return new module.exports.IconvLiteDecoderStream(module.exports.getDecoder(encoding, options), options)
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
module.exports.supportsStreams = true
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// Enable Streaming API automatically if 'stream' module is available and non-empty (the majority of environments).
|
|
164
|
+
var streamModule
|
|
165
|
+
try {
|
|
166
|
+
streamModule = require("stream")
|
|
167
|
+
} catch (e) {}
|
|
168
|
+
|
|
169
|
+
if (streamModule && streamModule.Transform) {
|
|
170
|
+
module.exports.enableStreamingAPI(streamModule)
|
|
171
|
+
} else {
|
|
172
|
+
// In rare cases where 'stream' module is not available by default, throw a helpful exception.
|
|
173
|
+
module.exports.encodeStream = module.exports.decodeStream = function () {
|
|
174
|
+
throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.")
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// Some environments, such as browsers, may not load JavaScript files as UTF-8
|
|
179
|
+
// eslint-disable-next-line no-constant-condition
|
|
180
|
+
if ("Ā" !== "\u0100") {
|
|
181
|
+
console.error("iconv-lite warning: js files use non-utf8 encoding. See https://github.com/ashtuchkin/iconv-lite/wiki/Javascript-source-file-encodings for more info.")
|
|
182
|
+
}
|