flucto 1.17.0 → 1.19.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/CHANGELOG.md +55 -1
- package/README.md +229 -31
- package/dist-electron/cli/args.js +32 -5
- package/dist-electron/cli/args.js.map +1 -1
- package/dist-electron/cli/index.js +54 -6
- package/dist-electron/cli/index.js.map +1 -1
- package/dist-electron/cli/output.js +6 -2
- package/dist-electron/cli/output.js.map +1 -1
- package/dist-electron/main/index.js +36 -217
- package/dist-electron/main/index.js.map +1 -1
- package/dist-electron/main/search/dailymotion.js +5 -1
- package/dist-electron/main/search/dailymotion.js.map +1 -1
- package/dist-electron/main/search/reddit.js.map +1 -1
- package/dist-electron/main/services/aiVideoDiscovery.js +193 -0
- package/dist-electron/main/services/aiVideoDiscovery.js.map +1 -0
- package/dist-electron/main/services/aiVideoEvidence.js +75 -0
- package/dist-electron/main/services/aiVideoEvidence.js.map +1 -0
- package/dist-electron/main/services/binaryInstaller.js +89 -27
- package/dist-electron/main/services/binaryInstaller.js.map +1 -1
- package/dist-electron/main/services/cliUpdater.js +102 -83
- package/dist-electron/main/services/cliUpdater.js.map +1 -1
- package/dist-electron/main/services/mediaDownload.js +20 -23
- package/dist-electron/main/services/mediaDownload.js.map +1 -1
- package/dist-electron/main/services/platformAssets.js +13 -39
- package/dist-electron/main/services/platformAssets.js.map +1 -1
- package/dist-electron/main/services/releaseDownload.js +101 -0
- package/dist-electron/main/services/releaseDownload.js.map +1 -0
- package/dist-electron/main/updater.js +193 -21
- package/dist-electron/main/updater.js.map +1 -1
- package/dist-electron/preload/index.js +1 -0
- package/dist-electron/preload/index.js.map +1 -1
- package/node_modules/adm-zip/LICENSE +21 -0
- package/node_modules/adm-zip/README.md +90 -0
- package/node_modules/adm-zip/adm-zip.js +1020 -0
- package/node_modules/adm-zip/headers/entryHeader.js +396 -0
- package/node_modules/adm-zip/headers/index.js +2 -0
- package/node_modules/adm-zip/headers/mainHeader.js +177 -0
- package/node_modules/adm-zip/methods/deflater.js +33 -0
- package/node_modules/adm-zip/methods/index.js +3 -0
- package/node_modules/adm-zip/methods/inflater.js +64 -0
- package/node_modules/adm-zip/methods/zipcrypto.js +175 -0
- package/node_modules/adm-zip/package.json +56 -0
- package/node_modules/adm-zip/types.d.ts +223 -0
- package/node_modules/adm-zip/util/constants.js +142 -0
- package/node_modules/adm-zip/util/decoder.js +5 -0
- package/node_modules/adm-zip/util/errors.js +66 -0
- package/node_modules/adm-zip/util/fattr.js +76 -0
- package/node_modules/adm-zip/util/index.js +5 -0
- package/node_modules/adm-zip/util/utils.js +481 -0
- package/node_modules/adm-zip/zipEntry.js +415 -0
- package/node_modules/adm-zip/zipFile.js +466 -0
- package/node_modules/ajv/.runkit_example.js +23 -0
- package/node_modules/ajv/LICENSE +22 -0
- package/node_modules/ajv/README.md +207 -0
- package/node_modules/ajv/dist/2019.d.ts +19 -0
- package/node_modules/ajv/dist/2019.js +61 -0
- package/node_modules/ajv/dist/2019.js.map +1 -0
- package/node_modules/ajv/dist/2020.d.ts +19 -0
- package/node_modules/ajv/dist/2020.js +55 -0
- package/node_modules/ajv/dist/2020.js.map +1 -0
- package/node_modules/ajv/dist/ajv.d.ts +18 -0
- package/node_modules/ajv/dist/ajv.js +50 -0
- package/node_modules/ajv/dist/ajv.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
- package/node_modules/ajv/dist/compile/codegen/code.js +156 -0
- package/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
- package/node_modules/ajv/dist/compile/codegen/index.js +697 -0
- package/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
- package/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
- package/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
- package/node_modules/ajv/dist/compile/errors.d.ts +13 -0
- package/node_modules/ajv/dist/compile/errors.js +123 -0
- package/node_modules/ajv/dist/compile/errors.js.map +1 -0
- package/node_modules/ajv/dist/compile/index.d.ts +80 -0
- package/node_modules/ajv/dist/compile/index.js +242 -0
- package/node_modules/ajv/dist/compile/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
- package/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
- package/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.js +236 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
- package/node_modules/ajv/dist/compile/jtd/types.js +14 -0
- package/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
- package/node_modules/ajv/dist/compile/names.d.ts +20 -0
- package/node_modules/ajv/dist/compile/names.js +28 -0
- package/node_modules/ajv/dist/compile/names.js.map +1 -0
- package/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
- package/node_modules/ajv/dist/compile/ref_error.js +12 -0
- package/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
- package/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
- package/node_modules/ajv/dist/compile/resolve.js +155 -0
- package/node_modules/ajv/dist/compile/resolve.js.map +1 -0
- package/node_modules/ajv/dist/compile/rules.d.ts +28 -0
- package/node_modules/ajv/dist/compile/rules.js +26 -0
- package/node_modules/ajv/dist/compile/rules.js.map +1 -0
- package/node_modules/ajv/dist/compile/util.d.ts +40 -0
- package/node_modules/ajv/dist/compile/util.js +178 -0
- package/node_modules/ajv/dist/compile/util.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
- package/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
- package/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
- package/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
- package/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
- package/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
- package/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
- package/node_modules/ajv/dist/compile/validate/index.js +520 -0
- package/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
- package/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
- package/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
- package/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
- package/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
- package/node_modules/ajv/dist/core.d.ts +174 -0
- package/node_modules/ajv/dist/core.js +618 -0
- package/node_modules/ajv/dist/core.js.map +1 -0
- package/node_modules/ajv/dist/jtd.d.ts +47 -0
- package/node_modules/ajv/dist/jtd.js +72 -0
- package/node_modules/ajv/dist/jtd.js.map +1 -0
- package/node_modules/ajv/dist/refs/data.json +13 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
- package/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
- package/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
- package/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
- package/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
- package/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
- package/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/equal.js +7 -0
- package/node_modules/ajv/dist/runtime/equal.js.map +1 -0
- package/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
- package/node_modules/ajv/dist/runtime/parseJson.js +185 -0
- package/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
- package/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/quote.js +30 -0
- package/node_modules/ajv/dist/runtime/quote.js.map +1 -0
- package/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/re2.js +6 -0
- package/node_modules/ajv/dist/runtime/re2.js.map +1 -0
- package/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/timestamp.js +42 -0
- package/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
- package/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
- package/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
- package/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/uri.js +6 -0
- package/node_modules/ajv/dist/runtime/uri.js.map +1 -0
- package/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
- package/node_modules/ajv/dist/runtime/validation_error.js +11 -0
- package/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
- package/node_modules/ajv/dist/standalone/index.d.ts +6 -0
- package/node_modules/ajv/dist/standalone/index.js +90 -0
- package/node_modules/ajv/dist/standalone/index.js.map +1 -0
- package/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
- package/node_modules/ajv/dist/standalone/instance.js +35 -0
- package/node_modules/ajv/dist/standalone/instance.js.map +1 -0
- package/node_modules/ajv/dist/types/index.d.ts +183 -0
- package/node_modules/ajv/dist/types/index.js +3 -0
- package/node_modules/ajv/dist/types/index.js.map +1 -0
- package/node_modules/ajv/dist/types/json-schema.d.ts +125 -0
- package/node_modules/ajv/dist/types/json-schema.js +3 -0
- package/node_modules/ajv/dist/types/json-schema.js.map +1 -0
- package/node_modules/ajv/dist/types/jtd-schema.d.ts +174 -0
- package/node_modules/ajv/dist/types/jtd-schema.js +3 -0
- package/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
- package/node_modules/ajv/dist/vocabularies/code.js +131 -0
- package/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
- package/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
- package/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
- package/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/errors.js +3 -0
- package/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
- package/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
- package/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
- package/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/next.js +8 -0
- package/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
- package/node_modules/ajv/lib/2019.ts +81 -0
- package/node_modules/ajv/lib/2020.ts +75 -0
- package/node_modules/ajv/lib/ajv.ts +70 -0
- package/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
- package/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
- package/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
- package/node_modules/ajv/lib/compile/errors.ts +184 -0
- package/node_modules/ajv/lib/compile/index.ts +324 -0
- package/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
- package/node_modules/ajv/lib/compile/jtd/serialize.ts +277 -0
- package/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
- package/node_modules/ajv/lib/compile/names.ts +27 -0
- package/node_modules/ajv/lib/compile/ref_error.ts +13 -0
- package/node_modules/ajv/lib/compile/resolve.ts +149 -0
- package/node_modules/ajv/lib/compile/rules.ts +50 -0
- package/node_modules/ajv/lib/compile/util.ts +213 -0
- package/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
- package/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
- package/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
- package/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
- package/node_modules/ajv/lib/compile/validate/index.ts +582 -0
- package/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
- package/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
- package/node_modules/ajv/lib/core.ts +892 -0
- package/node_modules/ajv/lib/jtd.ts +132 -0
- package/node_modules/ajv/lib/refs/data.json +13 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
- package/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
- package/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
- package/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
- package/node_modules/ajv/lib/runtime/equal.ts +7 -0
- package/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
- package/node_modules/ajv/lib/runtime/quote.ts +31 -0
- package/node_modules/ajv/lib/runtime/re2.ts +6 -0
- package/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
- package/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
- package/node_modules/ajv/lib/runtime/uri.ts +6 -0
- package/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
- package/node_modules/ajv/lib/standalone/index.ts +100 -0
- package/node_modules/ajv/lib/standalone/instance.ts +36 -0
- package/node_modules/ajv/lib/types/index.ts +244 -0
- package/node_modules/ajv/lib/types/json-schema.ts +187 -0
- package/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
- package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
- package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
- package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
- package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
- package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
- package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
- package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
- package/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
- package/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
- package/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
- package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
- package/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
- package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
- package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
- package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
- package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
- package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
- package/node_modules/ajv/lib/vocabularies/code.ts +168 -0
- package/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
- package/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
- package/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
- package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
- package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
- package/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
- package/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
- package/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
- package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
- package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
- package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
- package/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
- package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
- package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
- package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
- package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
- package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
- package/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
- package/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
- package/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
- package/node_modules/ajv/lib/vocabularies/next.ts +8 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
- package/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
- package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
- package/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
- package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
- package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +39 -0
- package/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
- package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
- package/node_modules/ajv/package.json +126 -0
- package/node_modules/ajv-formats/LICENSE +21 -0
- package/node_modules/ajv-formats/README.md +125 -0
- package/node_modules/ajv-formats/dist/formats.d.ts +9 -0
- package/node_modules/ajv-formats/dist/formats.js +208 -0
- package/node_modules/ajv-formats/dist/formats.js.map +1 -0
- package/node_modules/ajv-formats/dist/index.d.ts +15 -0
- package/node_modules/ajv-formats/dist/index.js +37 -0
- package/node_modules/ajv-formats/dist/index.js.map +1 -0
- package/node_modules/ajv-formats/dist/limit.d.ts +10 -0
- package/node_modules/ajv-formats/dist/limit.js +69 -0
- package/node_modules/ajv-formats/dist/limit.js.map +1 -0
- package/node_modules/ajv-formats/package.json +74 -0
- package/node_modules/ajv-formats/src/formats.ts +269 -0
- package/node_modules/ajv-formats/src/index.ts +62 -0
- package/node_modules/ajv-formats/src/limit.ts +99 -0
- package/node_modules/argparse/LICENSE +254 -0
- package/node_modules/argparse/README.md +84 -0
- package/node_modules/argparse/argparse.js +3707 -0
- package/node_modules/argparse/lib/sub.js +67 -0
- package/node_modules/argparse/lib/textwrap.js +440 -0
- package/node_modules/argparse/package.json +31 -0
- package/node_modules/atomically/dist/constants.d.ts +15 -0
- package/node_modules/atomically/dist/constants.js +19 -0
- package/node_modules/atomically/dist/index.d.ts +15 -0
- package/node_modules/atomically/dist/index.js +209 -0
- package/node_modules/atomically/dist/types.d.ts +27 -0
- package/node_modules/atomically/dist/types.js +2 -0
- package/node_modules/atomically/dist/utils/lang.d.ts +6 -0
- package/node_modules/atomically/dist/utils/lang.js +16 -0
- package/node_modules/atomically/dist/utils/scheduler.d.ts +6 -0
- package/node_modules/atomically/dist/utils/scheduler.js +34 -0
- package/node_modules/atomically/dist/utils/temp.d.ts +11 -0
- package/node_modules/atomically/dist/utils/temp.js +59 -0
- package/node_modules/atomically/license +21 -0
- package/node_modules/atomically/package.json +42 -0
- package/node_modules/atomically/readme.md +147 -0
- package/node_modules/builder-util-runtime/LICENSE +22 -0
- package/node_modules/builder-util-runtime/out/CancellationToken.d.ts +17 -0
- package/node_modules/builder-util-runtime/out/CancellationToken.js +108 -0
- package/node_modules/builder-util-runtime/out/CancellationToken.js.map +1 -0
- package/node_modules/builder-util-runtime/out/MemoLazy.d.ts +10 -0
- package/node_modules/builder-util-runtime/out/MemoLazy.js +42 -0
- package/node_modules/builder-util-runtime/out/MemoLazy.js.map +1 -0
- package/node_modules/builder-util-runtime/out/ProgressCallbackTransform.d.ts +21 -0
- package/node_modules/builder-util-runtime/out/ProgressCallbackTransform.js +54 -0
- package/node_modules/builder-util-runtime/out/ProgressCallbackTransform.js.map +1 -0
- package/node_modules/builder-util-runtime/out/blockMapApi.d.ts +12 -0
- package/node_modules/builder-util-runtime/out/blockMapApi.js +3 -0
- package/node_modules/builder-util-runtime/out/blockMapApi.js.map +1 -0
- package/node_modules/builder-util-runtime/out/error.d.ts +1 -0
- package/node_modules/builder-util-runtime/out/error.js +9 -0
- package/node_modules/builder-util-runtime/out/error.js.map +1 -0
- package/node_modules/builder-util-runtime/out/httpExecutor.d.ts +86 -0
- package/node_modules/builder-util-runtime/out/httpExecutor.js +529 -0
- package/node_modules/builder-util-runtime/out/httpExecutor.js.map +1 -0
- package/node_modules/builder-util-runtime/out/index.d.ts +15 -0
- package/node_modules/builder-util-runtime/out/index.js +49 -0
- package/node_modules/builder-util-runtime/out/index.js.map +1 -0
- package/node_modules/builder-util-runtime/out/objects.d.ts +8 -0
- package/node_modules/builder-util-runtime/out/objects.js +106 -0
- package/node_modules/builder-util-runtime/out/objects.js.map +1 -0
- package/node_modules/builder-util-runtime/out/publishOptions.d.ts +396 -0
- package/node_modules/builder-util-runtime/out/publishOptions.js +76 -0
- package/node_modules/builder-util-runtime/out/publishOptions.js.map +1 -0
- package/node_modules/builder-util-runtime/out/retry.d.ts +9 -0
- package/node_modules/builder-util-runtime/out/retry.js +21 -0
- package/node_modules/builder-util-runtime/out/retry.js.map +1 -0
- package/node_modules/builder-util-runtime/out/rfc2253Parser.d.ts +1 -0
- package/node_modules/builder-util-runtime/out/rfc2253Parser.js +80 -0
- package/node_modules/builder-util-runtime/out/rfc2253Parser.js.map +1 -0
- package/node_modules/builder-util-runtime/out/updateInfo.d.ts +76 -0
- package/node_modules/builder-util-runtime/out/updateInfo.js +3 -0
- package/node_modules/builder-util-runtime/out/updateInfo.js.map +1 -0
- package/node_modules/builder-util-runtime/out/uuid.d.ts +21 -0
- package/node_modules/builder-util-runtime/out/uuid.js +200 -0
- package/node_modules/builder-util-runtime/out/uuid.js.map +1 -0
- package/node_modules/builder-util-runtime/out/xml.d.ts +15 -0
- package/node_modules/builder-util-runtime/out/xml.js +109 -0
- package/node_modules/builder-util-runtime/out/xml.js.map +1 -0
- package/node_modules/builder-util-runtime/package.json +29 -0
- package/node_modules/builder-util-runtime/readme.md +3 -0
- package/node_modules/conf/dist/source/index.d.ts +135 -0
- package/node_modules/conf/dist/source/index.js +672 -0
- package/node_modules/conf/dist/source/types.d.ts +311 -0
- package/node_modules/conf/dist/source/types.js +1 -0
- package/node_modules/conf/license +9 -0
- package/node_modules/conf/node_modules/semver/LICENSE +15 -0
- package/node_modules/conf/node_modules/semver/README.md +680 -0
- package/node_modules/conf/node_modules/semver/bin/semver.js +195 -0
- package/node_modules/conf/node_modules/semver/classes/comparator.js +143 -0
- package/node_modules/conf/node_modules/semver/classes/index.js +7 -0
- package/node_modules/conf/node_modules/semver/classes/range.js +577 -0
- package/node_modules/conf/node_modules/semver/classes/semver.js +350 -0
- package/node_modules/conf/node_modules/semver/functions/clean.js +8 -0
- package/node_modules/conf/node_modules/semver/functions/cmp.js +54 -0
- package/node_modules/conf/node_modules/semver/functions/coerce.js +62 -0
- package/node_modules/conf/node_modules/semver/functions/compare-build.js +9 -0
- package/node_modules/conf/node_modules/semver/functions/compare-loose.js +5 -0
- package/node_modules/conf/node_modules/semver/functions/compare.js +7 -0
- package/node_modules/conf/node_modules/semver/functions/diff.js +60 -0
- package/node_modules/conf/node_modules/semver/functions/eq.js +5 -0
- package/node_modules/conf/node_modules/semver/functions/gt.js +5 -0
- package/node_modules/conf/node_modules/semver/functions/gte.js +5 -0
- package/node_modules/conf/node_modules/semver/functions/inc.js +21 -0
- package/node_modules/conf/node_modules/semver/functions/lt.js +5 -0
- package/node_modules/conf/node_modules/semver/functions/lte.js +5 -0
- package/node_modules/conf/node_modules/semver/functions/major.js +5 -0
- package/node_modules/conf/node_modules/semver/functions/minor.js +5 -0
- package/node_modules/conf/node_modules/semver/functions/neq.js +5 -0
- package/node_modules/conf/node_modules/semver/functions/parse.js +18 -0
- package/node_modules/conf/node_modules/semver/functions/patch.js +5 -0
- package/node_modules/conf/node_modules/semver/functions/prerelease.js +8 -0
- package/node_modules/conf/node_modules/semver/functions/rcompare.js +5 -0
- package/node_modules/conf/node_modules/semver/functions/rsort.js +5 -0
- package/node_modules/conf/node_modules/semver/functions/satisfies.js +12 -0
- package/node_modules/conf/node_modules/semver/functions/sort.js +5 -0
- package/node_modules/conf/node_modules/semver/functions/truncate.js +48 -0
- package/node_modules/conf/node_modules/semver/functions/valid.js +8 -0
- package/node_modules/conf/node_modules/semver/index.js +93 -0
- package/node_modules/conf/node_modules/semver/internal/constants.js +37 -0
- package/node_modules/conf/node_modules/semver/internal/debug.js +11 -0
- package/node_modules/conf/node_modules/semver/internal/identifiers.js +29 -0
- package/node_modules/conf/node_modules/semver/internal/lrucache.js +42 -0
- package/node_modules/conf/node_modules/semver/internal/parse-options.js +17 -0
- package/node_modules/conf/node_modules/semver/internal/re.js +223 -0
- package/node_modules/conf/node_modules/semver/package.json +78 -0
- package/node_modules/conf/node_modules/semver/preload.js +4 -0
- package/node_modules/conf/node_modules/semver/range.bnf +17 -0
- package/node_modules/conf/node_modules/semver/ranges/gtr.js +6 -0
- package/node_modules/conf/node_modules/semver/ranges/intersects.js +9 -0
- package/node_modules/conf/node_modules/semver/ranges/ltr.js +6 -0
- package/node_modules/conf/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/node_modules/conf/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/node_modules/conf/node_modules/semver/ranges/min-version.js +63 -0
- package/node_modules/conf/node_modules/semver/ranges/outside.js +82 -0
- package/node_modules/conf/node_modules/semver/ranges/simplify.js +49 -0
- package/node_modules/conf/node_modules/semver/ranges/subset.js +249 -0
- package/node_modules/conf/node_modules/semver/ranges/to-comparators.js +10 -0
- package/node_modules/conf/node_modules/semver/ranges/valid.js +13 -0
- package/node_modules/conf/package.json +82 -0
- package/node_modules/conf/readme.md +599 -0
- package/node_modules/debounce-fn/index.d.ts +79 -0
- package/node_modules/debounce-fn/index.js +88 -0
- package/node_modules/debounce-fn/license +9 -0
- package/node_modules/debounce-fn/package.json +48 -0
- package/node_modules/debounce-fn/readme.md +73 -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/dot-prop/index.d.ts +262 -0
- package/node_modules/dot-prop/index.js +551 -0
- package/node_modules/dot-prop/license +9 -0
- package/node_modules/dot-prop/package.json +58 -0
- package/node_modules/dot-prop/readme.md +312 -0
- package/node_modules/dotenv/CHANGELOG.md +643 -0
- package/node_modules/dotenv/LICENSE +23 -0
- package/node_modules/dotenv/README-es.md +757 -0
- package/node_modules/dotenv/README.md +812 -0
- package/node_modules/dotenv/SECURITY.md +1 -0
- package/node_modules/dotenv/config.d.ts +1 -0
- package/node_modules/dotenv/config.js +9 -0
- package/node_modules/dotenv/lib/cli-options.js +17 -0
- package/node_modules/dotenv/lib/env-options.js +28 -0
- package/node_modules/dotenv/lib/main.d.ts +179 -0
- package/node_modules/dotenv/lib/main.js +423 -0
- package/node_modules/dotenv/package.json +62 -0
- package/node_modules/dotenv/skills/dotenv/SKILL.md +200 -0
- package/node_modules/dotenv/skills/dotenvx/SKILL.md +118 -0
- package/node_modules/electron-store/index.d.ts +64 -0
- package/node_modules/electron-store/index.js +83 -0
- package/node_modules/electron-store/license +9 -0
- package/node_modules/electron-store/package.json +72 -0
- package/node_modules/electron-store/readme.md +482 -0
- package/node_modules/electron-updater/LICENSE +22 -0
- package/node_modules/electron-updater/README.md +15 -0
- package/node_modules/electron-updater/node_modules/fs-extra/LICENSE +15 -0
- package/node_modules/electron-updater/node_modules/fs-extra/README.md +262 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/copy/copy-sync.js +169 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/copy/copy.js +235 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/copy/index.js +7 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/empty/index.js +39 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/ensure/file.js +69 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/ensure/index.js +23 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/ensure/link.js +64 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/ensure/symlink-paths.js +99 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/ensure/symlink-type.js +31 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/ensure/symlink.js +82 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/fs/index.js +128 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/index.js +16 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/json/index.js +16 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/json/output-json.js +12 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/mkdirs/make-dir.js +27 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/move/index.js +7 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/move/move-sync.js +54 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/move/move.js +75 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/output-file/index.js +40 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/path-exists/index.js +12 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/remove/index.js +22 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/remove/rimraf.js +302 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/util/stat.js +154 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/util/utimes.js +26 -0
- package/node_modules/electron-updater/node_modules/fs-extra/package.json +67 -0
- package/node_modules/electron-updater/node_modules/semver/LICENSE +15 -0
- package/node_modules/electron-updater/node_modules/semver/README.md +665 -0
- package/node_modules/electron-updater/node_modules/semver/bin/semver.js +191 -0
- package/node_modules/electron-updater/node_modules/semver/classes/comparator.js +143 -0
- package/node_modules/electron-updater/node_modules/semver/classes/index.js +7 -0
- package/node_modules/electron-updater/node_modules/semver/classes/range.js +557 -0
- package/node_modules/electron-updater/node_modules/semver/classes/semver.js +333 -0
- package/node_modules/electron-updater/node_modules/semver/functions/clean.js +8 -0
- package/node_modules/electron-updater/node_modules/semver/functions/cmp.js +54 -0
- package/node_modules/electron-updater/node_modules/semver/functions/coerce.js +62 -0
- package/node_modules/electron-updater/node_modules/semver/functions/compare-build.js +9 -0
- package/node_modules/electron-updater/node_modules/semver/functions/compare-loose.js +5 -0
- package/node_modules/electron-updater/node_modules/semver/functions/compare.js +7 -0
- package/node_modules/electron-updater/node_modules/semver/functions/diff.js +60 -0
- package/node_modules/electron-updater/node_modules/semver/functions/eq.js +5 -0
- package/node_modules/electron-updater/node_modules/semver/functions/gt.js +5 -0
- package/node_modules/electron-updater/node_modules/semver/functions/gte.js +5 -0
- package/node_modules/electron-updater/node_modules/semver/functions/inc.js +21 -0
- package/node_modules/electron-updater/node_modules/semver/functions/lt.js +5 -0
- package/node_modules/electron-updater/node_modules/semver/functions/lte.js +5 -0
- package/node_modules/electron-updater/node_modules/semver/functions/major.js +5 -0
- package/node_modules/electron-updater/node_modules/semver/functions/minor.js +5 -0
- package/node_modules/electron-updater/node_modules/semver/functions/neq.js +5 -0
- package/node_modules/electron-updater/node_modules/semver/functions/parse.js +18 -0
- package/node_modules/electron-updater/node_modules/semver/functions/patch.js +5 -0
- package/node_modules/electron-updater/node_modules/semver/functions/prerelease.js +8 -0
- package/node_modules/electron-updater/node_modules/semver/functions/rcompare.js +5 -0
- package/node_modules/electron-updater/node_modules/semver/functions/rsort.js +5 -0
- package/node_modules/electron-updater/node_modules/semver/functions/satisfies.js +12 -0
- package/node_modules/electron-updater/node_modules/semver/functions/sort.js +5 -0
- package/node_modules/electron-updater/node_modules/semver/functions/valid.js +8 -0
- package/node_modules/electron-updater/node_modules/semver/index.js +91 -0
- package/node_modules/electron-updater/node_modules/semver/internal/constants.js +37 -0
- package/node_modules/electron-updater/node_modules/semver/internal/debug.js +11 -0
- package/node_modules/electron-updater/node_modules/semver/internal/identifiers.js +29 -0
- package/node_modules/electron-updater/node_modules/semver/internal/lrucache.js +42 -0
- package/node_modules/electron-updater/node_modules/semver/internal/parse-options.js +17 -0
- package/node_modules/electron-updater/node_modules/semver/internal/re.js +223 -0
- package/node_modules/electron-updater/node_modules/semver/package.json +78 -0
- package/node_modules/electron-updater/node_modules/semver/preload.js +4 -0
- package/node_modules/electron-updater/node_modules/semver/range.bnf +16 -0
- package/node_modules/electron-updater/node_modules/semver/ranges/gtr.js +6 -0
- package/node_modules/electron-updater/node_modules/semver/ranges/intersects.js +9 -0
- package/node_modules/electron-updater/node_modules/semver/ranges/ltr.js +6 -0
- package/node_modules/electron-updater/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/node_modules/electron-updater/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/node_modules/electron-updater/node_modules/semver/ranges/min-version.js +63 -0
- package/node_modules/electron-updater/node_modules/semver/ranges/outside.js +82 -0
- package/node_modules/electron-updater/node_modules/semver/ranges/simplify.js +49 -0
- package/node_modules/electron-updater/node_modules/semver/ranges/subset.js +249 -0
- package/node_modules/electron-updater/node_modules/semver/ranges/to-comparators.js +10 -0
- package/node_modules/electron-updater/node_modules/semver/ranges/valid.js +13 -0
- package/node_modules/electron-updater/out/AppAdapter.d.ts +22 -0
- package/node_modules/electron-updater/out/AppAdapter.js +21 -0
- package/node_modules/electron-updater/out/AppAdapter.js.map +1 -0
- package/node_modules/electron-updater/out/AppImageUpdater.d.ts +11 -0
- package/node_modules/electron-updater/out/AppImageUpdater.js +118 -0
- package/node_modules/electron-updater/out/AppImageUpdater.js.map +1 -0
- package/node_modules/electron-updater/out/AppUpdater.d.ts +241 -0
- package/node_modules/electron-updater/out/AppUpdater.js +735 -0
- package/node_modules/electron-updater/out/AppUpdater.js.map +1 -0
- package/node_modules/electron-updater/out/BaseUpdater.d.ts +33 -0
- package/node_modules/electron-updater/out/BaseUpdater.js +150 -0
- package/node_modules/electron-updater/out/BaseUpdater.js.map +1 -0
- package/node_modules/electron-updater/out/DebUpdater.d.ts +13 -0
- package/node_modules/electron-updater/out/DebUpdater.js +84 -0
- package/node_modules/electron-updater/out/DebUpdater.js.map +1 -0
- package/node_modules/electron-updater/out/DownloadedUpdateHelper.d.ts +35 -0
- package/node_modules/electron-updater/out/DownloadedUpdateHelper.js +169 -0
- package/node_modules/electron-updater/out/DownloadedUpdateHelper.js.map +1 -0
- package/node_modules/electron-updater/out/ElectronAppAdapter.d.ts +15 -0
- package/node_modules/electron-updater/out/ElectronAppAdapter.js +42 -0
- package/node_modules/electron-updater/out/ElectronAppAdapter.js.map +1 -0
- package/node_modules/electron-updater/out/LinuxUpdater.d.ts +29 -0
- package/node_modules/electron-updater/out/LinuxUpdater.js +119 -0
- package/node_modules/electron-updater/out/LinuxUpdater.js.map +1 -0
- package/node_modules/electron-updater/out/MacUpdater.d.ts +20 -0
- package/node_modules/electron-updater/out/MacUpdater.js +259 -0
- package/node_modules/electron-updater/out/MacUpdater.js.map +1 -0
- package/node_modules/electron-updater/out/NsisUpdater.d.ts +25 -0
- package/node_modules/electron-updater/out/NsisUpdater.js +178 -0
- package/node_modules/electron-updater/out/NsisUpdater.js.map +1 -0
- package/node_modules/electron-updater/out/PacmanUpdater.d.ts +13 -0
- package/node_modules/electron-updater/out/PacmanUpdater.js +67 -0
- package/node_modules/electron-updater/out/PacmanUpdater.js.map +1 -0
- package/node_modules/electron-updater/out/RpmUpdater.d.ts +13 -0
- package/node_modules/electron-updater/out/RpmUpdater.js +65 -0
- package/node_modules/electron-updater/out/RpmUpdater.js.map +1 -0
- package/node_modules/electron-updater/out/differentialDownloader/DataSplitter.d.ts +39 -0
- package/node_modules/electron-updater/out/differentialDownloader/DataSplitter.js +229 -0
- package/node_modules/electron-updater/out/differentialDownloader/DataSplitter.js.map +1 -0
- package/node_modules/electron-updater/out/differentialDownloader/DifferentialDownloader.d.ts +30 -0
- package/node_modules/electron-updater/out/differentialDownloader/DifferentialDownloader.js +268 -0
- package/node_modules/electron-updater/out/differentialDownloader/DifferentialDownloader.js.map +1 -0
- package/node_modules/electron-updater/out/differentialDownloader/FileWithEmbeddedBlockMapDifferentialDownloader.d.ts +4 -0
- package/node_modules/electron-updater/out/differentialDownloader/FileWithEmbeddedBlockMapDifferentialDownloader.js +37 -0
- package/node_modules/electron-updater/out/differentialDownloader/FileWithEmbeddedBlockMapDifferentialDownloader.js.map +1 -0
- package/node_modules/electron-updater/out/differentialDownloader/GenericDifferentialDownloader.d.ts +5 -0
- package/node_modules/electron-updater/out/differentialDownloader/GenericDifferentialDownloader.js +11 -0
- package/node_modules/electron-updater/out/differentialDownloader/GenericDifferentialDownloader.js.map +1 -0
- package/node_modules/electron-updater/out/differentialDownloader/ProgressDifferentialDownloadCallbackTransform.d.ts +31 -0
- package/node_modules/electron-updater/out/differentialDownloader/ProgressDifferentialDownloadCallbackTransform.js +90 -0
- package/node_modules/electron-updater/out/differentialDownloader/ProgressDifferentialDownloadCallbackTransform.js.map +1 -0
- package/node_modules/electron-updater/out/differentialDownloader/downloadPlanBuilder.d.ts +12 -0
- package/node_modules/electron-updater/out/differentialDownloader/downloadPlanBuilder.js +113 -0
- package/node_modules/electron-updater/out/differentialDownloader/downloadPlanBuilder.js.map +1 -0
- package/node_modules/electron-updater/out/differentialDownloader/multipleRangeDownloader.d.ts +6 -0
- package/node_modules/electron-updater/out/differentialDownloader/multipleRangeDownloader.js +114 -0
- package/node_modules/electron-updater/out/differentialDownloader/multipleRangeDownloader.js.map +1 -0
- package/node_modules/electron-updater/out/electronHttpExecutor.d.ts +16 -0
- package/node_modules/electron-updater/out/electronHttpExecutor.js +79 -0
- package/node_modules/electron-updater/out/electronHttpExecutor.js.map +1 -0
- package/node_modules/electron-updater/out/main.d.ts +19 -0
- package/node_modules/electron-updater/out/main.js +84 -0
- package/node_modules/electron-updater/out/main.js.map +1 -0
- package/node_modules/electron-updater/out/providerFactory.d.ts +5 -0
- package/node_modules/electron-updater/out/providerFactory.js +68 -0
- package/node_modules/electron-updater/out/providerFactory.js.map +1 -0
- package/node_modules/electron-updater/out/providers/BitbucketProvider.d.ts +14 -0
- package/node_modules/electron-updater/out/providers/BitbucketProvider.js +42 -0
- package/node_modules/electron-updater/out/providers/BitbucketProvider.js.map +1 -0
- package/node_modules/electron-updater/out/providers/GenericProvider.d.ts +13 -0
- package/node_modules/electron-updater/out/providers/GenericProvider.js +51 -0
- package/node_modules/electron-updater/out/providers/GenericProvider.js.map +1 -0
- package/node_modules/electron-updater/out/providers/GitHubProvider.d.ts +29 -0
- package/node_modules/electron-updater/out/providers/GitHubProvider.js +237 -0
- package/node_modules/electron-updater/out/providers/GitHubProvider.js.map +1 -0
- package/node_modules/electron-updater/out/providers/GitLabProvider.d.ts +58 -0
- package/node_modules/electron-updater/out/providers/GitLabProvider.js +281 -0
- package/node_modules/electron-updater/out/providers/GitLabProvider.js.map +1 -0
- package/node_modules/electron-updater/out/providers/KeygenProvider.d.ts +15 -0
- package/node_modules/electron-updater/out/providers/KeygenProvider.js +46 -0
- package/node_modules/electron-updater/out/providers/KeygenProvider.js.map +1 -0
- package/node_modules/electron-updater/out/providers/PrivateGitHubProvider.d.ts +26 -0
- package/node_modules/electron-updater/out/providers/PrivateGitHubProvider.js +95 -0
- package/node_modules/electron-updater/out/providers/PrivateGitHubProvider.js.map +1 -0
- package/node_modules/electron-updater/out/providers/Provider.d.ts +35 -0
- package/node_modules/electron-updater/out/providers/Provider.js +146 -0
- package/node_modules/electron-updater/out/providers/Provider.js.map +1 -0
- package/node_modules/electron-updater/out/types.d.ts +43 -0
- package/node_modules/electron-updater/out/types.js +42 -0
- package/node_modules/electron-updater/out/types.js.map +1 -0
- package/node_modules/electron-updater/out/util.d.ts +3 -0
- package/node_modules/electron-updater/out/util.js +33 -0
- package/node_modules/electron-updater/out/util.js.map +1 -0
- package/node_modules/electron-updater/out/windowsExecutableCodeSignatureVerifier.d.ts +2 -0
- package/node_modules/electron-updater/out/windowsExecutableCodeSignatureVerifier.js +142 -0
- package/node_modules/electron-updater/out/windowsExecutableCodeSignatureVerifier.js.map +1 -0
- package/node_modules/electron-updater/package.json +40 -0
- package/node_modules/env-paths/index.d.ts +90 -0
- package/node_modules/env-paths/index.js +68 -0
- package/node_modules/env-paths/license +9 -0
- package/node_modules/env-paths/package.json +48 -0
- package/node_modules/env-paths/readme.md +113 -0
- package/node_modules/fast-deep-equal/LICENSE +21 -0
- package/node_modules/fast-deep-equal/README.md +96 -0
- package/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
- package/node_modules/fast-deep-equal/es6/index.js +72 -0
- package/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
- package/node_modules/fast-deep-equal/es6/react.js +79 -0
- package/node_modules/fast-deep-equal/index.d.ts +4 -0
- package/node_modules/fast-deep-equal/index.js +46 -0
- package/node_modules/fast-deep-equal/package.json +61 -0
- package/node_modules/fast-deep-equal/react.d.ts +2 -0
- package/node_modules/fast-deep-equal/react.js +53 -0
- package/node_modules/fast-uri/.gitattributes +2 -0
- package/node_modules/fast-uri/.github/dependabot.yml +13 -0
- package/node_modules/fast-uri/.github/workflows/ci.yml +106 -0
- package/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
- package/node_modules/fast-uri/LICENSE +30 -0
- package/node_modules/fast-uri/README.md +152 -0
- package/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
- package/node_modules/fast-uri/benchmark/equal.mjs +51 -0
- package/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
- package/node_modules/fast-uri/benchmark/package.json +17 -0
- package/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
- package/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
- package/node_modules/fast-uri/eslint.config.js +6 -0
- package/node_modules/fast-uri/index.js +631 -0
- package/node_modules/fast-uri/lib/schemes.js +272 -0
- package/node_modules/fast-uri/lib/utils.js +747 -0
- package/node_modules/fast-uri/package.json +68 -0
- package/node_modules/fast-uri/test/ajv.test.js +43 -0
- package/node_modules/fast-uri/test/component-safe-serialization.test.js +163 -0
- package/node_modules/fast-uri/test/equal.test.js +145 -0
- package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +503 -0
- package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
- package/node_modules/fast-uri/test/ipv6-canonical.test.js +34 -0
- package/node_modules/fast-uri/test/ipv6-validation.test.js +124 -0
- package/node_modules/fast-uri/test/malformed-percent.test.js +77 -0
- package/node_modules/fast-uri/test/malformed-urn.test.js +61 -0
- package/node_modules/fast-uri/test/parse.test.js +327 -0
- package/node_modules/fast-uri/test/query-fragment-normalization.test.js +33 -0
- package/node_modules/fast-uri/test/reserved-path-normalization.test.js +109 -0
- package/node_modules/fast-uri/test/resolve.test.js +87 -0
- package/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
- package/node_modules/fast-uri/test/scheme-validation.test.js +124 -0
- package/node_modules/fast-uri/test/security-normalization.test.js +178 -0
- package/node_modules/fast-uri/test/security.test.js +431 -0
- package/node_modules/fast-uri/test/serialize.test.js +151 -0
- package/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
- package/node_modules/fast-uri/test/uri-js.test.js +912 -0
- package/node_modules/fast-uri/test/urn-full-input.test.js +29 -0
- package/node_modules/fast-uri/test/util.test.js +38 -0
- package/node_modules/fast-uri/test/websocket-query-preservation.test.js +24 -0
- package/node_modules/fast-uri/tsconfig.json +9 -0
- package/node_modules/fast-uri/types/index.d.ts +60 -0
- package/node_modules/fast-uri/types/index.test-d.ts +17 -0
- package/node_modules/graceful-fs/LICENSE +15 -0
- package/node_modules/graceful-fs/README.md +143 -0
- package/node_modules/graceful-fs/clone.js +23 -0
- package/node_modules/graceful-fs/graceful-fs.js +448 -0
- package/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/node_modules/graceful-fs/package.json +53 -0
- package/node_modules/graceful-fs/polyfills.js +355 -0
- package/node_modules/js-yaml/LICENSE +21 -0
- package/node_modules/js-yaml/README.md +233 -0
- package/node_modules/js-yaml/bin/js-yaml.js +117 -0
- package/node_modules/js-yaml/dist/js-yaml.js +3022 -0
- package/node_modules/js-yaml/dist/js-yaml.js.map +1 -0
- package/node_modules/js-yaml/dist/js-yaml.min.js +2 -0
- package/node_modules/js-yaml/dist/js-yaml.min.js.map +1 -0
- package/node_modules/js-yaml/dist/js-yaml.mjs +3082 -0
- package/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -0
- package/node_modules/js-yaml/index.js +44 -0
- package/node_modules/js-yaml/lib/common.js +50 -0
- package/node_modules/js-yaml/lib/dumper.js +937 -0
- package/node_modules/js-yaml/lib/exception.js +51 -0
- package/node_modules/js-yaml/lib/index_vite_proxy.tmp.mjs +37 -0
- package/node_modules/js-yaml/lib/loader.js +1803 -0
- package/node_modules/js-yaml/lib/schema/core.js +9 -0
- package/node_modules/js-yaml/lib/schema/default.js +20 -0
- package/node_modules/js-yaml/lib/schema/failsafe.js +14 -0
- package/node_modules/js-yaml/lib/schema/json.js +17 -0
- package/node_modules/js-yaml/lib/schema.js +109 -0
- package/node_modules/js-yaml/lib/snippet.js +96 -0
- package/node_modules/js-yaml/lib/type/binary.js +122 -0
- package/node_modules/js-yaml/lib/type/bool.js +35 -0
- package/node_modules/js-yaml/lib/type/float.js +99 -0
- package/node_modules/js-yaml/lib/type/int.js +142 -0
- package/node_modules/js-yaml/lib/type/map.js +8 -0
- package/node_modules/js-yaml/lib/type/merge.js +12 -0
- package/node_modules/js-yaml/lib/type/null.js +35 -0
- package/node_modules/js-yaml/lib/type/omap.js +45 -0
- package/node_modules/js-yaml/lib/type/pairs.js +50 -0
- package/node_modules/js-yaml/lib/type/seq.js +8 -0
- package/node_modules/js-yaml/lib/type/set.js +29 -0
- package/node_modules/js-yaml/lib/type/str.js +8 -0
- package/node_modules/js-yaml/lib/type/timestamp.js +88 -0
- package/node_modules/js-yaml/lib/type.js +66 -0
- package/node_modules/js-yaml/package.json +83 -0
- package/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
- package/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
- package/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
- package/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
- package/node_modules/json-schema-traverse/LICENSE +21 -0
- package/node_modules/json-schema-traverse/README.md +95 -0
- package/node_modules/json-schema-traverse/index.d.ts +40 -0
- package/node_modules/json-schema-traverse/index.js +93 -0
- package/node_modules/json-schema-traverse/package.json +43 -0
- package/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
- package/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
- package/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
- package/node_modules/json-schema-typed/LICENSE.md +57 -0
- package/node_modules/json-schema-typed/README.md +108 -0
- package/node_modules/json-schema-typed/draft_07.d.ts +882 -0
- package/node_modules/json-schema-typed/draft_07.js +328 -0
- package/node_modules/json-schema-typed/draft_2019_09.d.ts +1247 -0
- package/node_modules/json-schema-typed/draft_2019_09.js +349 -0
- package/node_modules/json-schema-typed/draft_2020_12.d.ts +1239 -0
- package/node_modules/json-schema-typed/draft_2020_12.js +352 -0
- package/node_modules/json-schema-typed/package.json +44 -0
- package/node_modules/jsonfile/LICENSE +15 -0
- package/node_modules/jsonfile/README.md +230 -0
- package/node_modules/jsonfile/index.js +88 -0
- package/node_modules/jsonfile/package.json +40 -0
- package/node_modules/jsonfile/utils.js +18 -0
- package/node_modules/lazy-val/out/main.d.ts +7 -0
- package/node_modules/lazy-val/out/main.js +26 -0
- package/node_modules/lazy-val/out/main.js.map +1 -0
- package/node_modules/lazy-val/package.json +21 -0
- package/node_modules/lazy-val/readme.md +11 -0
- package/node_modules/lodash.escaperegexp/LICENSE +47 -0
- package/node_modules/lodash.escaperegexp/README.md +18 -0
- package/node_modules/lodash.escaperegexp/index.js +166 -0
- package/node_modules/lodash.escaperegexp/package.json +17 -0
- package/node_modules/lodash.isequal/LICENSE +47 -0
- package/node_modules/lodash.isequal/README.md +18 -0
- package/node_modules/lodash.isequal/index.js +1848 -0
- package/node_modules/lodash.isequal/package.json +16 -0
- package/node_modules/mimic-function/index.d.ts +52 -0
- package/node_modules/mimic-function/index.js +72 -0
- package/node_modules/mimic-function/license +9 -0
- package/node_modules/mimic-function/package.json +49 -0
- package/node_modules/mimic-function/readme.md +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/playwright-core/LICENSE +202 -0
- package/node_modules/playwright-core/NOTICE +5 -0
- package/node_modules/playwright-core/README.md +3 -0
- package/node_modules/playwright-core/ThirdPartyNotices.txt +13 -0
- package/node_modules/playwright-core/bin/install_media_pack.ps1 +5 -0
- package/node_modules/playwright-core/bin/install_webkit_wsl.ps1 +33 -0
- package/node_modules/playwright-core/bin/reinstall_chrome_beta_linux.sh +42 -0
- package/node_modules/playwright-core/bin/reinstall_chrome_beta_mac.sh +13 -0
- package/node_modules/playwright-core/bin/reinstall_chrome_beta_win.ps1 +24 -0
- package/node_modules/playwright-core/bin/reinstall_chrome_stable_linux.sh +42 -0
- package/node_modules/playwright-core/bin/reinstall_chrome_stable_mac.sh +12 -0
- package/node_modules/playwright-core/bin/reinstall_chrome_stable_win.ps1 +24 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_beta_linux.sh +48 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_beta_mac.sh +11 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_beta_win.ps1 +23 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_dev_linux.sh +48 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_dev_mac.sh +11 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_dev_win.ps1 +23 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_stable_linux.sh +48 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_stable_mac.sh +11 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_stable_win.ps1 +24 -0
- package/node_modules/playwright-core/browsers.json +52 -0
- package/node_modules/playwright-core/cli.js +21 -0
- package/node_modules/playwright-core/index.d.ts +17 -0
- package/node_modules/playwright-core/index.js +17 -0
- package/node_modules/playwright-core/index.mjs +28 -0
- package/node_modules/playwright-core/lib/bootstrap.js +88 -0
- package/node_modules/playwright-core/lib/coreBundle.js +75813 -0
- package/node_modules/playwright-core/lib/entry/cliDaemon.js +5 -0
- package/node_modules/playwright-core/lib/entry/dashboardApp.js +3 -0
- package/node_modules/playwright-core/lib/entry/mcp.js +10 -0
- package/node_modules/playwright-core/lib/entry/oopBrowserDownload.js +3 -0
- package/node_modules/playwright-core/lib/package.js +50 -0
- package/node_modules/playwright-core/lib/server/chromium/appIcon.png +0 -0
- package/node_modules/playwright-core/lib/server/electron/loader.js +116 -0
- package/node_modules/playwright-core/lib/serverRegistry.js +1939 -0
- package/node_modules/playwright-core/lib/serverRegistry.js.LICENSE +65 -0
- package/node_modules/playwright-core/lib/tools/cli-client/channelSessions.js +141 -0
- package/node_modules/playwright-core/lib/tools/cli-client/cli.js +6 -0
- package/node_modules/playwright-core/lib/tools/cli-client/help.json +721 -0
- package/node_modules/playwright-core/lib/tools/cli-client/minimist.js +128 -0
- package/node_modules/playwright-core/lib/tools/cli-client/output.js +351 -0
- package/node_modules/playwright-core/lib/tools/cli-client/program.js +418 -0
- package/node_modules/playwright-core/lib/tools/cli-client/registry.js +180 -0
- package/node_modules/playwright-core/lib/tools/cli-client/session.js +259 -0
- package/node_modules/playwright-core/lib/tools/dashboard/appIcon.png +0 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/SKILL.md +425 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/element-attributes.md +23 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/playwright-tests.md +39 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/request-mocking.md +87 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/running-code.md +241 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/session-management.md +225 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/storage-state.md +275 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/test-generation.md +433 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/tracing.md +139 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/video-recording.md +143 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/SKILL.md +136 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/gallery-spec.md +144 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/migration.md +89 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/react.md +69 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/typing.md +173 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/vue.md +77 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-trace/SKILL.md +174 -0
- package/node_modules/playwright-core/lib/tools/utils/extension.js +112 -0
- package/node_modules/playwright-core/lib/tools/utils/socketConnection.js +108 -0
- package/node_modules/playwright-core/lib/utilsBundle.js +85357 -0
- package/node_modules/playwright-core/lib/utilsBundle.js.LICENSE +1890 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/codeMirrorModule--QdMvsKi.css +1 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/codeMirrorModule-CQ8RZGBm.js +32 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/codicon-DCmgc-ay.ttf +0 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/firefox-1bWoP6pv.svg +1 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/firefox-beta-k3eOH_eK.svg +1 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/firefox-nightly-Cp5nfeDT.svg +1 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/index-AwgwcYie.css +1 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/index-hRvO4yU2.js +12 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/safari-na3_-uQk.svg +1 -0
- package/node_modules/playwright-core/lib/vite/dashboard/index.html +29 -0
- package/node_modules/playwright-core/lib/vite/dashboard/playwright-logo.svg +24 -0
- package/node_modules/playwright-core/lib/vite/htmlReport/index.html +16 -0
- package/node_modules/playwright-core/lib/vite/htmlReport/report.css +2 -0
- package/node_modules/playwright-core/lib/vite/htmlReport/report.js +32 -0
- package/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule--QdMvsKi.css +1 -0
- package/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-CVQWJZAA.js +32 -0
- package/node_modules/playwright-core/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
- package/node_modules/playwright-core/lib/vite/recorder/assets/index-BZpYJZ-P.css +1 -0
- package/node_modules/playwright-core/lib/vite/recorder/assets/index-hrlLqLtq.js +129 -0
- package/node_modules/playwright-core/lib/vite/recorder/index.html +29 -0
- package/node_modules/playwright-core/lib/vite/recorder/playwright-logo.svg +9 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/codeMirrorModule-BbkfBe3n.js +32 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-Ds6CBOo0.js +182 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/urlMatch-L3liM589.js +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/xtermModule-DywYcAf8.js +7 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/codeMirrorModule.-QdMvsKi.css +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/defaultSettingsView.Bqk9acqE.css +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/index.B4cLoZK3.js +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/index.B_TqY17P.css +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/index.html +44 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/manifest.webmanifest +16 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/playwright-logo.svg +9 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/snapshot.B_Jk1wbt.js +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/snapshot.html +10 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/sw.bundle.js +4 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/uiMode.CU5KtEkS.js +5 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/uiMode.CyMfwkXJ.css +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/uiMode.html +18 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/xtermModule.kHJ-D0s7.css +1 -0
- package/node_modules/playwright-core/lib/webp_codec.LICENSE +173 -0
- package/node_modules/playwright-core/lib/webp_codec.wasm +0 -0
- package/node_modules/playwright-core/lib/xdg-open +1267 -0
- package/node_modules/playwright-core/package.json +34 -0
- package/node_modules/playwright-core/types/protocol.d.ts +24645 -0
- package/node_modules/playwright-core/types/structs.d.ts +52 -0
- package/node_modules/playwright-core/types/types.d.ts +26632 -0
- package/node_modules/require-from-string/index.js +34 -0
- package/node_modules/require-from-string/license +21 -0
- package/node_modules/require-from-string/package.json +28 -0
- package/node_modules/require-from-string/readme.md +56 -0
- package/node_modules/sax/LICENSE.md +55 -0
- package/node_modules/sax/README.md +227 -0
- package/node_modules/sax/lib/sax.js +1866 -0
- package/node_modules/sax/package.json +34 -0
- package/node_modules/stubborn-fs/dist/constants.d.ts +11 -0
- package/node_modules/stubborn-fs/dist/constants.js +16 -0
- package/node_modules/stubborn-fs/dist/handlers.d.ts +7 -0
- package/node_modules/stubborn-fs/dist/handlers.js +36 -0
- package/node_modules/stubborn-fs/dist/index.d.ts +274 -0
- package/node_modules/stubborn-fs/dist/index.js +52 -0
- package/node_modules/stubborn-fs/license +21 -0
- package/node_modules/stubborn-fs/package.json +32 -0
- package/node_modules/stubborn-fs/readme.md +69 -0
- package/node_modules/stubborn-utils/dist/attemptify_async.d.ts +3 -0
- package/node_modules/stubborn-utils/dist/attemptify_async.js +10 -0
- package/node_modules/stubborn-utils/dist/attemptify_sync.d.ts +3 -0
- package/node_modules/stubborn-utils/dist/attemptify_sync.js +15 -0
- package/node_modules/stubborn-utils/dist/constants.d.ts +2 -0
- package/node_modules/stubborn-utils/dist/constants.js +4 -0
- package/node_modules/stubborn-utils/dist/index.d.ts +9 -0
- package/node_modules/stubborn-utils/dist/index.js +7 -0
- package/node_modules/stubborn-utils/dist/retryify_async.d.ts +3 -0
- package/node_modules/stubborn-utils/dist/retryify_async.js +29 -0
- package/node_modules/stubborn-utils/dist/retryify_sync.d.ts +3 -0
- package/node_modules/stubborn-utils/dist/retryify_sync.js +25 -0
- package/node_modules/stubborn-utils/dist/types.d.ts +44 -0
- package/node_modules/stubborn-utils/dist/types.js +2 -0
- package/node_modules/stubborn-utils/license +21 -0
- package/node_modules/stubborn-utils/package.json +30 -0
- package/node_modules/stubborn-utils/readme.md +139 -0
- package/node_modules/tagged-tag/index.d.ts +3 -0
- package/node_modules/tagged-tag/license +9 -0
- package/node_modules/tagged-tag/package.json +36 -0
- package/node_modules/tagged-tag/readme.md +5 -0
- package/node_modules/tiny-typed-emitter/LICENSE +21 -0
- package/node_modules/tiny-typed-emitter/README.md +85 -0
- package/node_modules/tiny-typed-emitter/lib/index.d.ts +26 -0
- package/node_modules/tiny-typed-emitter/lib/index.js +3 -0
- package/node_modules/tiny-typed-emitter/package.json +37 -0
- package/node_modules/type-fest/index.d.ts +227 -0
- package/node_modules/type-fest/license-cc0 +121 -0
- package/node_modules/type-fest/license-mit +9 -0
- package/node_modules/type-fest/package.json +75 -0
- package/node_modules/type-fest/readme.md +1085 -0
- package/node_modules/type-fest/source/absolute.d.ts +52 -0
- package/node_modules/type-fest/source/all-extend.d.ts +121 -0
- package/node_modules/type-fest/source/all-union-fields.d.ts +91 -0
- package/node_modules/type-fest/source/and-all.d.ts +76 -0
- package/node_modules/type-fest/source/and.d.ts +82 -0
- package/node_modules/type-fest/source/array-element.d.ts +46 -0
- package/node_modules/type-fest/source/array-indices.d.ts +25 -0
- package/node_modules/type-fest/source/array-length.d.ts +36 -0
- package/node_modules/type-fest/source/array-reverse.d.ts +85 -0
- package/node_modules/type-fest/source/array-slice.d.ts +132 -0
- package/node_modules/type-fest/source/array-splice.d.ts +104 -0
- package/node_modules/type-fest/source/array-tail.d.ts +70 -0
- package/node_modules/type-fest/source/array-values.d.ts +24 -0
- package/node_modules/type-fest/source/arrayable.d.ts +31 -0
- package/node_modules/type-fest/source/async-return-type.d.ts +28 -0
- package/node_modules/type-fest/source/asyncify.d.ts +25 -0
- package/node_modules/type-fest/source/basic.d.ts +38 -0
- package/node_modules/type-fest/source/camel-case.d.ts +125 -0
- package/node_modules/type-fest/source/camel-cased-properties-deep.d.ts +106 -0
- package/node_modules/type-fest/source/camel-cased-properties.d.ts +49 -0
- package/node_modules/type-fest/source/characters.d.ts +67 -0
- package/node_modules/type-fest/source/conditional-except.d.ts +47 -0
- package/node_modules/type-fest/source/conditional-keys.d.ts +63 -0
- package/node_modules/type-fest/source/conditional-pick-deep.d.ts +122 -0
- package/node_modules/type-fest/source/conditional-pick.d.ts +48 -0
- package/node_modules/type-fest/source/conditional-simplify-deep.d.ts +73 -0
- package/node_modules/type-fest/source/conditional-simplify.d.ts +50 -0
- package/node_modules/type-fest/source/delimiter-case.d.ts +79 -0
- package/node_modules/type-fest/source/delimiter-cased-properties-deep.d.ts +115 -0
- package/node_modules/type-fest/source/delimiter-cased-properties.d.ts +52 -0
- package/node_modules/type-fest/source/distributed-omit.d.ts +96 -0
- package/node_modules/type-fest/source/distributed-pick.d.ts +92 -0
- package/node_modules/type-fest/source/empty-object.d.ts +51 -0
- package/node_modules/type-fest/source/entries.d.ts +64 -0
- package/node_modules/type-fest/source/entry.d.ts +67 -0
- package/node_modules/type-fest/source/exact.d.ts +73 -0
- package/node_modules/type-fest/source/except.d.ts +112 -0
- package/node_modules/type-fest/source/exclude-exactly.d.ts +57 -0
- package/node_modules/type-fest/source/exclude-rest-element.d.ts +40 -0
- package/node_modules/type-fest/source/exclude-strict.d.ts +51 -0
- package/node_modules/type-fest/source/exclusify-union.d.ts +147 -0
- package/node_modules/type-fest/source/extends-strict.d.ts +151 -0
- package/node_modules/type-fest/source/extract-exactly.d.ts +56 -0
- package/node_modules/type-fest/source/extract-rest-element.d.ts +30 -0
- package/node_modules/type-fest/source/extract-strict.d.ts +51 -0
- package/node_modules/type-fest/source/find-global-type.d.ts +68 -0
- package/node_modules/type-fest/source/fixed-length-array.d.ts +97 -0
- package/node_modules/type-fest/source/get.d.ts +227 -0
- package/node_modules/type-fest/source/global-this.d.ts +24 -0
- package/node_modules/type-fest/source/globals/index.d.ts +3 -0
- package/node_modules/type-fest/source/globals/observable-like.d.ts +78 -0
- package/node_modules/type-fest/source/greater-than-or-equal.d.ts +63 -0
- package/node_modules/type-fest/source/greater-than.d.ts +92 -0
- package/node_modules/type-fest/source/has-optional-keys.d.ts +23 -0
- package/node_modules/type-fest/source/has-readonly-keys.d.ts +23 -0
- package/node_modules/type-fest/source/has-required-keys.d.ts +61 -0
- package/node_modules/type-fest/source/has-writable-keys.d.ts +23 -0
- package/node_modules/type-fest/source/if-any.d.ts +28 -0
- package/node_modules/type-fest/source/if-empty-object.d.ts +30 -0
- package/node_modules/type-fest/source/if-never.d.ts +28 -0
- package/node_modules/type-fest/source/if-null.d.ts +28 -0
- package/node_modules/type-fest/source/if-unknown.d.ts +28 -0
- package/node_modules/type-fest/source/if.d.ts +102 -0
- package/node_modules/type-fest/source/includes.d.ts +24 -0
- package/node_modules/type-fest/source/int-closed-range.d.ts +45 -0
- package/node_modules/type-fest/source/int-range.d.ts +67 -0
- package/node_modules/type-fest/source/internal/array.d.ts +144 -0
- package/node_modules/type-fest/source/internal/characters.d.ts +65 -0
- package/node_modules/type-fest/source/internal/enforce-optional.d.ts +49 -0
- package/node_modules/type-fest/source/internal/index.d.ts +11 -0
- package/node_modules/type-fest/source/internal/keys.d.ts +100 -0
- package/node_modules/type-fest/source/internal/numeric.d.ts +143 -0
- package/node_modules/type-fest/source/internal/object.d.ts +301 -0
- package/node_modules/type-fest/source/internal/string.d.ts +127 -0
- package/node_modules/type-fest/source/internal/tuple.d.ts +79 -0
- package/node_modules/type-fest/source/internal/type.d.ts +171 -0
- package/node_modules/type-fest/source/invariant-of.d.ts +85 -0
- package/node_modules/type-fest/source/is-any.d.ts +31 -0
- package/node_modules/type-fest/source/is-equal.d.ts +41 -0
- package/node_modules/type-fest/source/is-float.d.ts +43 -0
- package/node_modules/type-fest/source/is-integer.d.ts +60 -0
- package/node_modules/type-fest/source/is-literal.d.ts +317 -0
- package/node_modules/type-fest/source/is-lowercase.d.ts +38 -0
- package/node_modules/type-fest/source/is-never.d.ts +56 -0
- package/node_modules/type-fest/source/is-null.d.ts +22 -0
- package/node_modules/type-fest/source/is-nullable.d.ts +30 -0
- package/node_modules/type-fest/source/is-optional-key-of.d.ts +51 -0
- package/node_modules/type-fest/source/is-optional.d.ts +28 -0
- package/node_modules/type-fest/source/is-readonly-key-of.d.ts +55 -0
- package/node_modules/type-fest/source/is-required-key-of.d.ts +51 -0
- package/node_modules/type-fest/source/is-tuple.d.ts +92 -0
- package/node_modules/type-fest/source/is-undefined.d.ts +22 -0
- package/node_modules/type-fest/source/is-union.d.ts +40 -0
- package/node_modules/type-fest/source/is-unknown.d.ts +43 -0
- package/node_modules/type-fest/source/is-uppercase.d.ts +38 -0
- package/node_modules/type-fest/source/is-writable-key-of.d.ts +51 -0
- package/node_modules/type-fest/source/iterable-element.d.ts +66 -0
- package/node_modules/type-fest/source/join.d.ts +79 -0
- package/node_modules/type-fest/source/json-value.d.ts +33 -0
- package/node_modules/type-fest/source/jsonifiable.d.ts +37 -0
- package/node_modules/type-fest/source/jsonify.d.ts +127 -0
- package/node_modules/type-fest/source/kebab-case.d.ts +47 -0
- package/node_modules/type-fest/source/kebab-cased-properties-deep.d.ts +72 -0
- package/node_modules/type-fest/source/kebab-cased-properties.d.ts +46 -0
- package/node_modules/type-fest/source/key-as-string.d.ts +27 -0
- package/node_modules/type-fest/source/keys-of-union.d.ts +44 -0
- package/node_modules/type-fest/source/last-array-element.d.ts +89 -0
- package/node_modules/type-fest/source/less-than-or-equal.d.ts +60 -0
- package/node_modules/type-fest/source/less-than.d.ts +60 -0
- package/node_modules/type-fest/source/literal-to-primitive-deep.d.ts +71 -0
- package/node_modules/type-fest/source/literal-to-primitive.d.ts +38 -0
- package/node_modules/type-fest/source/literal-union.d.ts +39 -0
- package/node_modules/type-fest/source/merge-deep.d.ts +495 -0
- package/node_modules/type-fest/source/merge-exclusive.d.ts +45 -0
- package/node_modules/type-fest/source/merge.d.ts +87 -0
- package/node_modules/type-fest/source/multidimensional-array.d.ts +38 -0
- package/node_modules/type-fest/source/multidimensional-readonly-array.d.ts +38 -0
- package/node_modules/type-fest/source/non-empty-object.d.ts +38 -0
- package/node_modules/type-fest/source/non-empty-string.d.ts +32 -0
- package/node_modules/type-fest/source/non-empty-tuple.d.ts +24 -0
- package/node_modules/type-fest/source/non-nullable-deep.d.ts +102 -0
- package/node_modules/type-fest/source/numeric.d.ts +226 -0
- package/node_modules/type-fest/source/object-merge.d.ts +199 -0
- package/node_modules/type-fest/source/omit-deep.d.ts +153 -0
- package/node_modules/type-fest/source/omit-index-signature.d.ts +98 -0
- package/node_modules/type-fest/source/opaque.d.ts +3 -0
- package/node_modules/type-fest/source/optional-keys-of.d.ts +46 -0
- package/node_modules/type-fest/source/optional.d.ts +31 -0
- package/node_modules/type-fest/source/or-all.d.ts +73 -0
- package/node_modules/type-fest/source/or.d.ts +82 -0
- package/node_modules/type-fest/source/override-properties.d.ts +43 -0
- package/node_modules/type-fest/source/package-json.d.ts +710 -0
- package/node_modules/type-fest/source/partial-deep.d.ts +157 -0
- package/node_modules/type-fest/source/partial-on-undefined-deep.d.ts +81 -0
- package/node_modules/type-fest/source/pascal-case.d.ts +52 -0
- package/node_modules/type-fest/source/pascal-cased-properties-deep.d.ts +79 -0
- package/node_modules/type-fest/source/pascal-cased-properties.d.ts +46 -0
- package/node_modules/type-fest/source/paths.d.ts +241 -0
- package/node_modules/type-fest/source/pick-deep.d.ts +139 -0
- package/node_modules/type-fest/source/pick-index-signature.d.ts +52 -0
- package/node_modules/type-fest/source/primitive.d.ts +15 -0
- package/node_modules/type-fest/source/promisable.d.ts +27 -0
- package/node_modules/type-fest/source/readonly-deep.d.ts +118 -0
- package/node_modules/type-fest/source/readonly-keys-of.d.ts +38 -0
- package/node_modules/type-fest/source/readonly-tuple.d.ts +34 -0
- package/node_modules/type-fest/source/remove-prefix.d.ts +114 -0
- package/node_modules/type-fest/source/remove-suffix.d.ts +114 -0
- package/node_modules/type-fest/source/replace.d.ts +87 -0
- package/node_modules/type-fest/source/require-all-or-none.d.ts +54 -0
- package/node_modules/type-fest/source/require-at-least-one.d.ts +48 -0
- package/node_modules/type-fest/source/require-exactly-one.d.ts +48 -0
- package/node_modules/type-fest/source/require-one-or-none.d.ts +49 -0
- package/node_modules/type-fest/source/required-deep.d.ts +78 -0
- package/node_modules/type-fest/source/required-keys-of.d.ts +38 -0
- package/node_modules/type-fest/source/schema.d.ts +127 -0
- package/node_modules/type-fest/source/screaming-snake-case.d.ts +31 -0
- package/node_modules/type-fest/source/set-field-type.d.ts +67 -0
- package/node_modules/type-fest/source/set-non-nullable-deep.d.ts +89 -0
- package/node_modules/type-fest/source/set-non-nullable.d.ts +34 -0
- package/node_modules/type-fest/source/set-optional.d.ts +42 -0
- package/node_modules/type-fest/source/set-parameter-type.d.ts +125 -0
- package/node_modules/type-fest/source/set-readonly.d.ts +40 -0
- package/node_modules/type-fest/source/set-required-deep.d.ts +65 -0
- package/node_modules/type-fest/source/set-required.d.ts +75 -0
- package/node_modules/type-fest/source/set-return-type.d.ts +31 -0
- package/node_modules/type-fest/source/shared-union-fields-deep.d.ts +180 -0
- package/node_modules/type-fest/source/shared-union-fields.d.ts +79 -0
- package/node_modules/type-fest/source/simplify-deep.d.ts +117 -0
- package/node_modules/type-fest/source/simplify.d.ts +61 -0
- package/node_modules/type-fest/source/single-key-object.d.ts +28 -0
- package/node_modules/type-fest/source/snake-case.d.ts +48 -0
- package/node_modules/type-fest/source/snake-cased-properties-deep.d.ts +72 -0
- package/node_modules/type-fest/source/snake-cased-properties.d.ts +46 -0
- package/node_modules/type-fest/source/some-extend.d.ts +115 -0
- package/node_modules/type-fest/source/split-on-rest-element.d.ts +108 -0
- package/node_modules/type-fest/source/split.d.ts +90 -0
- package/node_modules/type-fest/source/spread.d.ts +78 -0
- package/node_modules/type-fest/source/string-length.d.ts +38 -0
- package/node_modules/type-fest/source/string-repeat.d.ts +76 -0
- package/node_modules/type-fest/source/string-slice.d.ts +39 -0
- package/node_modules/type-fest/source/string-to-array.d.ts +97 -0
- package/node_modules/type-fest/source/string-to-number.d.ts +67 -0
- package/node_modules/type-fest/source/stringified.d.ts +25 -0
- package/node_modules/type-fest/source/structured-cloneable.d.ts +89 -0
- package/node_modules/type-fest/source/subtract.d.ts +87 -0
- package/node_modules/type-fest/source/sum.d.ts +82 -0
- package/node_modules/type-fest/source/tagged-union.d.ts +53 -0
- package/node_modules/type-fest/source/tagged.d.ts +261 -0
- package/node_modules/type-fest/source/trim.d.ts +29 -0
- package/node_modules/type-fest/source/tsconfig-json.d.ts +1356 -0
- package/node_modules/type-fest/source/tuple-of.d.ts +114 -0
- package/node_modules/type-fest/source/tuple-to-object.d.ts +47 -0
- package/node_modules/type-fest/source/tuple-to-union.d.ts +54 -0
- package/node_modules/type-fest/source/typed-array.d.ts +19 -0
- package/node_modules/type-fest/source/undefined-on-partial-deep.d.ts +83 -0
- package/node_modules/type-fest/source/union-length.d.ts +27 -0
- package/node_modules/type-fest/source/union-member.d.ts +65 -0
- package/node_modules/type-fest/source/union-to-intersection.d.ts +35 -0
- package/node_modules/type-fest/source/union-to-tuple.d.ts +49 -0
- package/node_modules/type-fest/source/unknown-array.d.ts +27 -0
- package/node_modules/type-fest/source/unknown-map.d.ts +26 -0
- package/node_modules/type-fest/source/unknown-record.d.ts +33 -0
- package/node_modules/type-fest/source/unknown-set.d.ts +26 -0
- package/node_modules/type-fest/source/unwrap-partial.d.ts +33 -0
- package/node_modules/type-fest/source/unwrap-required.d.ts +37 -0
- package/node_modules/type-fest/source/value-of.d.ts +24 -0
- package/node_modules/type-fest/source/words.d.ts +148 -0
- package/node_modules/type-fest/source/writable-deep.d.ts +84 -0
- package/node_modules/type-fest/source/writable-keys-of.d.ts +34 -0
- package/node_modules/type-fest/source/writable.d.ts +68 -0
- package/node_modules/type-fest/source/xor.d.ts +83 -0
- package/node_modules/uint8array-extras/index.d.ts +331 -0
- package/node_modules/uint8array-extras/index.js +318 -0
- package/node_modules/uint8array-extras/license +9 -0
- package/node_modules/uint8array-extras/package.json +54 -0
- package/node_modules/uint8array-extras/readme.md +318 -0
- package/node_modules/universalify/LICENSE +20 -0
- package/node_modules/universalify/README.md +76 -0
- package/node_modules/universalify/index.js +24 -0
- package/node_modules/universalify/package.json +34 -0
- package/node_modules/when-exit/dist/browser/index.d.ts +2 -0
- package/node_modules/when-exit/dist/browser/index.js +6 -0
- package/node_modules/when-exit/dist/browser/interceptor.d.ts +10 -0
- package/node_modules/when-exit/dist/browser/interceptor.js +27 -0
- package/node_modules/when-exit/dist/node/constants.d.ts +3 -0
- package/node_modules/when-exit/dist/node/constants.js +7 -0
- package/node_modules/when-exit/dist/node/index.d.ts +2 -0
- package/node_modules/when-exit/dist/node/index.js +6 -0
- package/node_modules/when-exit/dist/node/interceptor.d.ts +11 -0
- package/node_modules/when-exit/dist/node/interceptor.js +50 -0
- package/node_modules/when-exit/dist/node/signals.d.ts +2 -0
- package/node_modules/when-exit/dist/node/signals.js +13 -0
- package/node_modules/when-exit/dist/types.d.ts +3 -0
- package/node_modules/when-exit/dist/types.js +2 -0
- package/node_modules/when-exit/license +21 -0
- package/node_modules/when-exit/package.json +35 -0
- package/node_modules/when-exit/readme.md +41 -0
- package/package.json +27 -12
|
@@ -0,0 +1,529 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DigestTransform = exports.HttpExecutor = exports.HttpError = void 0;
|
|
4
|
+
exports.addSensitiveRedirectHeader = addSensitiveRedirectHeader;
|
|
5
|
+
exports.addSensitiveFieldPattern = addSensitiveFieldPattern;
|
|
6
|
+
exports.createHttpError = createHttpError;
|
|
7
|
+
exports.parseJson = parseJson;
|
|
8
|
+
exports.configureRequestOptionsFromUrl = configureRequestOptionsFromUrl;
|
|
9
|
+
exports.configureRequestUrl = configureRequestUrl;
|
|
10
|
+
exports.safeGetHeader = safeGetHeader;
|
|
11
|
+
exports.configureRequestOptions = configureRequestOptions;
|
|
12
|
+
exports.isSensitiveFieldName = isSensitiveFieldName;
|
|
13
|
+
exports.hashSensitiveValue = hashSensitiveValue;
|
|
14
|
+
exports.safeStringifyJson = safeStringifyJson;
|
|
15
|
+
const crypto_1 = require("crypto");
|
|
16
|
+
const debug_1 = require("debug");
|
|
17
|
+
const fs_1 = require("fs");
|
|
18
|
+
const stream_1 = require("stream");
|
|
19
|
+
const url_1 = require("url");
|
|
20
|
+
const CancellationToken_1 = require("./CancellationToken");
|
|
21
|
+
const error_1 = require("./error");
|
|
22
|
+
const ProgressCallbackTransform_1 = require("./ProgressCallbackTransform");
|
|
23
|
+
const debug = (0, debug_1.default)("electron-builder");
|
|
24
|
+
// ── Sensitive-data registries ────────────────────────────────────────────────
|
|
25
|
+
// Normalise a header or field name: lowercase + strip all separators (- and _).
|
|
26
|
+
// Shared by both registries so lookup is always separator-agnostic.
|
|
27
|
+
const normalizeName = (name) => name.toLowerCase().replace(/[-_]/g, "");
|
|
28
|
+
// HTTP header names (normalised) stripped on cross-origin redirects.
|
|
29
|
+
// Stored normalised; lookup normalises the incoming key with normalizeName().
|
|
30
|
+
const SENSITIVE_REDIRECT_HEADERS = new Set(["authorization", "proxyauthorization", "privatetoken", "xapikey", "xauthtoken", "xaccesstoken", "xgitlabtoken", "cookie", "xcsrftoken"]);
|
|
31
|
+
// Substrings: a field name containing any of these (after normalization) is redacted.
|
|
32
|
+
const SENSITIVE_FIELD_PATTERNS = ["token", "password", "secret", "authorization", "credential", "apikey", "passphrase", "auth"];
|
|
33
|
+
// Suffixes: a field name ending with any of these (after normalization) is redacted.
|
|
34
|
+
// Intentionally greedy — "publicKey" is also stripped; over-stripping debug logs is
|
|
35
|
+
// acceptable, under-stripping a credential is not.
|
|
36
|
+
const SENSITIVE_FIELD_SUFFIXES = ["key"];
|
|
37
|
+
/**
|
|
38
|
+
* Register an additional HTTP header to strip on cross-origin redirects.
|
|
39
|
+
* Intended for custom publishers (e.g. GenericPublisher with a non-standard auth header).
|
|
40
|
+
*/
|
|
41
|
+
function addSensitiveRedirectHeader(header) {
|
|
42
|
+
SENSITIVE_REDIRECT_HEADERS.add(normalizeName(header));
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Register an additional substring pattern used by {@link safeStringifyJson} to
|
|
46
|
+
* identify sensitive field names. Input is normalized (lowercased, separators stripped).
|
|
47
|
+
* Intended for custom publishers that store credentials under non-standard field names.
|
|
48
|
+
*/
|
|
49
|
+
function addSensitiveFieldPattern(pattern) {
|
|
50
|
+
SENSITIVE_FIELD_PATTERNS.push(pattern.toLowerCase().replace(/[-_]/g, ""));
|
|
51
|
+
}
|
|
52
|
+
function createHttpError(response, description = null) {
|
|
53
|
+
return new HttpError(response.statusCode || -1, `${response.statusCode} ${response.statusMessage}` +
|
|
54
|
+
(description == null ? "" : "\n" + JSON.stringify(description, null, " ")) +
|
|
55
|
+
"\nHeaders: " +
|
|
56
|
+
safeStringifyJson(response.headers), description);
|
|
57
|
+
}
|
|
58
|
+
const HTTP_STATUS_CODES = new Map([
|
|
59
|
+
[429, "Too many requests"],
|
|
60
|
+
[400, "Bad request"],
|
|
61
|
+
[403, "Forbidden"],
|
|
62
|
+
[404, "Not found"],
|
|
63
|
+
[405, "Method not allowed"],
|
|
64
|
+
[406, "Not acceptable"],
|
|
65
|
+
[408, "Request timeout"],
|
|
66
|
+
[413, "Request entity too large"],
|
|
67
|
+
[500, "Internal server error"],
|
|
68
|
+
[502, "Bad gateway"],
|
|
69
|
+
[503, "Service unavailable"],
|
|
70
|
+
[504, "Gateway timeout"],
|
|
71
|
+
[505, "HTTP version not supported"],
|
|
72
|
+
]);
|
|
73
|
+
class HttpError extends Error {
|
|
74
|
+
constructor(statusCode, message = `HTTP error: ${HTTP_STATUS_CODES.get(statusCode) || statusCode}`, description = null) {
|
|
75
|
+
super(message);
|
|
76
|
+
this.statusCode = statusCode;
|
|
77
|
+
this.description = description;
|
|
78
|
+
this.name = "HttpError";
|
|
79
|
+
this.code = `HTTP_ERROR_${statusCode}`;
|
|
80
|
+
}
|
|
81
|
+
isServerError() {
|
|
82
|
+
return this.statusCode >= 500 && this.statusCode <= 599;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.HttpError = HttpError;
|
|
86
|
+
function parseJson(result) {
|
|
87
|
+
return result.then(it => (it == null || it.length === 0 ? null : JSON.parse(it)));
|
|
88
|
+
}
|
|
89
|
+
class HttpExecutor {
|
|
90
|
+
constructor() {
|
|
91
|
+
this.maxRedirects = 10;
|
|
92
|
+
}
|
|
93
|
+
request(options, cancellationToken = new CancellationToken_1.CancellationToken(), data) {
|
|
94
|
+
configureRequestOptions(options);
|
|
95
|
+
const json = data == null ? undefined : JSON.stringify(data);
|
|
96
|
+
const encodedData = json ? Buffer.from(json) : undefined;
|
|
97
|
+
if (encodedData != null) {
|
|
98
|
+
if (debug.enabled) {
|
|
99
|
+
debug(safeStringifyJson(data));
|
|
100
|
+
}
|
|
101
|
+
const { headers, ...opts } = options;
|
|
102
|
+
options = {
|
|
103
|
+
method: "post",
|
|
104
|
+
headers: {
|
|
105
|
+
"Content-Type": "application/json",
|
|
106
|
+
"Content-Length": encodedData.length,
|
|
107
|
+
...headers,
|
|
108
|
+
},
|
|
109
|
+
...opts,
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
return this.doApiRequest(options, cancellationToken, it => it.end(encodedData));
|
|
113
|
+
}
|
|
114
|
+
doApiRequest(options, cancellationToken, requestProcessor, redirectCount = 0) {
|
|
115
|
+
if (debug.enabled) {
|
|
116
|
+
const { headers: _headers, auth: _auth, ...safeOptions } = options;
|
|
117
|
+
debug(`Request: ${safeStringifyJson(safeOptions)}`);
|
|
118
|
+
}
|
|
119
|
+
return cancellationToken.createPromise((resolve, reject, onCancel) => {
|
|
120
|
+
const request = this.createRequest(options, (response) => {
|
|
121
|
+
try {
|
|
122
|
+
this.handleResponse(response, options, cancellationToken, resolve, reject, redirectCount, requestProcessor);
|
|
123
|
+
}
|
|
124
|
+
catch (e) {
|
|
125
|
+
reject(e);
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
this.addErrorAndTimeoutHandlers(request, reject, options.timeout);
|
|
129
|
+
this.addRedirectHandlers(request, options, reject, redirectCount, options => {
|
|
130
|
+
this.doApiRequest(options, cancellationToken, requestProcessor, redirectCount).then(resolve).catch(reject);
|
|
131
|
+
});
|
|
132
|
+
requestProcessor(request, reject);
|
|
133
|
+
onCancel(() => request.abort());
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
// noinspection JSUnusedLocalSymbols
|
|
137
|
+
// eslint-disable-next-line
|
|
138
|
+
addRedirectHandlers(request, options, reject, redirectCount, handler) {
|
|
139
|
+
// not required for NodeJS
|
|
140
|
+
}
|
|
141
|
+
addErrorAndTimeoutHandlers(request, reject, timeout = 60 * 1000) {
|
|
142
|
+
this.addTimeOutHandler(request, reject, timeout);
|
|
143
|
+
request.on("error", reject);
|
|
144
|
+
request.on("aborted", () => {
|
|
145
|
+
reject(new Error("Request has been aborted by the server"));
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
handleResponse(response, options, cancellationToken, resolve, reject, redirectCount, requestProcessor) {
|
|
149
|
+
var _a;
|
|
150
|
+
if (debug.enabled) {
|
|
151
|
+
const { headers: _headers, auth: _auth, ...safeOptions } = options;
|
|
152
|
+
debug(`Response: ${response.statusCode} ${response.statusMessage}, request options: ${safeStringifyJson(safeOptions)}`);
|
|
153
|
+
}
|
|
154
|
+
// we handle any other >= 400 error on request end (read detailed message in the response body)
|
|
155
|
+
if (response.statusCode === 404) {
|
|
156
|
+
// error is clear, we don't need to read detailed error description
|
|
157
|
+
reject(createHttpError(response, `method: ${options.method || "GET"} url: ${options.protocol || "https:"}//${options.hostname}${options.port ? `:${options.port}` : ""}${options.path}
|
|
158
|
+
|
|
159
|
+
Please double check that your authentication token is correct. Due to security reasons, actual status maybe not reported, but 404.
|
|
160
|
+
`));
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
else if (response.statusCode === 204) {
|
|
164
|
+
// on DELETE request
|
|
165
|
+
resolve();
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
const code = (_a = response.statusCode) !== null && _a !== void 0 ? _a : 0;
|
|
169
|
+
const shouldRedirect = code >= 300 && code < 400;
|
|
170
|
+
const redirectUrl = safeGetHeader(response, "location");
|
|
171
|
+
if (shouldRedirect && redirectUrl != null) {
|
|
172
|
+
if (redirectCount > this.maxRedirects) {
|
|
173
|
+
reject(this.createMaxRedirectError());
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
this.doApiRequest(HttpExecutor.prepareRedirectUrlOptions(redirectUrl, options), cancellationToken, requestProcessor, redirectCount).then(resolve).catch(reject);
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
response.setEncoding("utf8");
|
|
180
|
+
let data = "";
|
|
181
|
+
response.on("error", reject);
|
|
182
|
+
response.on("data", (chunk) => (data += chunk));
|
|
183
|
+
response.on("end", () => {
|
|
184
|
+
try {
|
|
185
|
+
if (response.statusCode != null && response.statusCode >= 400) {
|
|
186
|
+
const contentType = safeGetHeader(response, "content-type");
|
|
187
|
+
const isJson = contentType != null && (Array.isArray(contentType) ? contentType.find(it => it.includes("json")) != null : contentType.includes("json"));
|
|
188
|
+
reject(createHttpError(response, `method: ${options.method || "GET"} url: ${options.protocol || "https:"}//${options.hostname}${options.port ? `:${options.port}` : ""}${options.path}
|
|
189
|
+
|
|
190
|
+
Data:
|
|
191
|
+
${isJson ? safeStringifyJson(JSON.parse(data)) : data}
|
|
192
|
+
`));
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
resolve(data.length === 0 ? null : data);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
catch (e) {
|
|
199
|
+
reject(e);
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
async downloadToBuffer(url, options) {
|
|
204
|
+
return await options.cancellationToken.createPromise((resolve, reject, onCancel) => {
|
|
205
|
+
const responseChunks = [];
|
|
206
|
+
const requestOptions = {
|
|
207
|
+
headers: options.headers || undefined,
|
|
208
|
+
// because PrivateGitHubProvider requires HttpExecutor.prepareRedirectUrlOptions logic, so, we need to redirect manually
|
|
209
|
+
redirect: "manual",
|
|
210
|
+
};
|
|
211
|
+
configureRequestUrl(url, requestOptions);
|
|
212
|
+
configureRequestOptions(requestOptions);
|
|
213
|
+
this.doDownload(requestOptions, {
|
|
214
|
+
destination: null,
|
|
215
|
+
options,
|
|
216
|
+
onCancel,
|
|
217
|
+
callback: error => {
|
|
218
|
+
if (error == null) {
|
|
219
|
+
resolve(Buffer.concat(responseChunks));
|
|
220
|
+
}
|
|
221
|
+
else {
|
|
222
|
+
reject(error);
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
responseHandler: (response, callback) => {
|
|
226
|
+
let receivedLength = 0;
|
|
227
|
+
response.on("data", (chunk) => {
|
|
228
|
+
receivedLength += chunk.length;
|
|
229
|
+
if (receivedLength > 524288000) {
|
|
230
|
+
callback(new Error("Maximum allowed size is 500 MB"));
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
responseChunks.push(chunk);
|
|
234
|
+
});
|
|
235
|
+
response.on("end", () => {
|
|
236
|
+
callback(null);
|
|
237
|
+
});
|
|
238
|
+
},
|
|
239
|
+
}, 0);
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
doDownload(requestOptions, options, redirectCount) {
|
|
243
|
+
const request = this.createRequest(requestOptions, (response) => {
|
|
244
|
+
if (response.statusCode >= 400) {
|
|
245
|
+
options.callback(new Error(`Cannot download "${requestOptions.protocol || "https:"}//${requestOptions.hostname}${requestOptions.path}", status ${response.statusCode}: ${response.statusMessage}`));
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
// It is possible for the response stream to fail, e.g. when a network is lost while
|
|
249
|
+
// response stream is in progress. Stop waiting and reject so consumer can catch the error.
|
|
250
|
+
response.on("error", options.callback);
|
|
251
|
+
// this code not relevant for Electron (redirect event instead handled)
|
|
252
|
+
const redirectUrl = safeGetHeader(response, "location");
|
|
253
|
+
if (redirectUrl != null) {
|
|
254
|
+
if (redirectCount < this.maxRedirects) {
|
|
255
|
+
this.doDownload(HttpExecutor.prepareRedirectUrlOptions(redirectUrl, requestOptions), options, redirectCount++);
|
|
256
|
+
}
|
|
257
|
+
else {
|
|
258
|
+
options.callback(this.createMaxRedirectError());
|
|
259
|
+
}
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
if (options.responseHandler == null) {
|
|
263
|
+
configurePipes(options, response);
|
|
264
|
+
}
|
|
265
|
+
else {
|
|
266
|
+
options.responseHandler(response, options.callback);
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
this.addErrorAndTimeoutHandlers(request, options.callback, requestOptions.timeout);
|
|
270
|
+
this.addRedirectHandlers(request, requestOptions, options.callback, redirectCount, requestOptions => {
|
|
271
|
+
this.doDownload(requestOptions, options, redirectCount++);
|
|
272
|
+
});
|
|
273
|
+
request.end();
|
|
274
|
+
}
|
|
275
|
+
createMaxRedirectError() {
|
|
276
|
+
return new Error(`Too many redirects (> ${this.maxRedirects})`);
|
|
277
|
+
}
|
|
278
|
+
addTimeOutHandler(request, callback, timeout) {
|
|
279
|
+
request.on("socket", (socket) => {
|
|
280
|
+
socket.setTimeout(timeout, () => {
|
|
281
|
+
request.abort();
|
|
282
|
+
callback(new Error("Request timed out"));
|
|
283
|
+
});
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
static prepareRedirectUrlOptions(redirectUrl, options) {
|
|
287
|
+
const newOptions = configureRequestOptionsFromUrl(redirectUrl, { ...options });
|
|
288
|
+
const headers = newOptions.headers;
|
|
289
|
+
if (headers == null) {
|
|
290
|
+
return newOptions;
|
|
291
|
+
}
|
|
292
|
+
const originalUrl = HttpExecutor.reconstructOriginalUrl(options);
|
|
293
|
+
const parsedRedirectUrl = parseUrl(redirectUrl, options);
|
|
294
|
+
if (HttpExecutor.isCrossOriginRedirect(originalUrl, parsedRedirectUrl)) {
|
|
295
|
+
if (debug.enabled) {
|
|
296
|
+
debug(`Cross-origin redirect (${originalUrl.host} → ${parsedRedirectUrl.host}): stripping sensitive headers`);
|
|
297
|
+
}
|
|
298
|
+
for (const key of Object.keys(headers)) {
|
|
299
|
+
if (SENSITIVE_REDIRECT_HEADERS.has(normalizeName(key))) {
|
|
300
|
+
delete headers[key];
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
return newOptions;
|
|
305
|
+
}
|
|
306
|
+
static reconstructOriginalUrl(options) {
|
|
307
|
+
const protocol = options.protocol || "https:";
|
|
308
|
+
if (!options.hostname) {
|
|
309
|
+
throw new Error("Missing hostname in request options");
|
|
310
|
+
}
|
|
311
|
+
const hostname = options.hostname;
|
|
312
|
+
const port = options.port ? `:${options.port}` : "";
|
|
313
|
+
const path = options.path || "/";
|
|
314
|
+
return new url_1.URL(`${protocol}//${hostname}${port}${path}`);
|
|
315
|
+
}
|
|
316
|
+
static isCrossOriginRedirect(originalUrl, redirectUrl) {
|
|
317
|
+
// Case-insensitive hostname comparison
|
|
318
|
+
if (originalUrl.hostname.toLowerCase() !== redirectUrl.hostname.toLowerCase()) {
|
|
319
|
+
return true;
|
|
320
|
+
}
|
|
321
|
+
// Special case: allow http -> https redirect on same host with standard ports
|
|
322
|
+
// This matches the behavior of Python requests library for backward compatibility
|
|
323
|
+
// url.port returns an empty string if the port is omitted
|
|
324
|
+
// or explicitly set to the default port for a given protocol.
|
|
325
|
+
if (originalUrl.protocol === "http:" &&
|
|
326
|
+
// This can be replaced with `!originalUrl.port`, but for the sake of clarity.
|
|
327
|
+
["80", ""].includes(originalUrl.port) &&
|
|
328
|
+
redirectUrl.protocol === "https:" &&
|
|
329
|
+
// This can be replaced with `!redirectUrl.port`, but for the sake of clarity.
|
|
330
|
+
["443", ""].includes(redirectUrl.port)) {
|
|
331
|
+
return false;
|
|
332
|
+
}
|
|
333
|
+
// According to RFC 7235, a change in protocol or port constitutes a cross-origin request.
|
|
334
|
+
// Forwarding authentication headers to a different origin can be a security risk.
|
|
335
|
+
// For example, https://example.com:443 and http://example.com:80 are different origins.
|
|
336
|
+
// We only make an exception for HTTP -> HTTPS upgrades on standard ports for backward compatibility.
|
|
337
|
+
// Strip auth on any other protocol change
|
|
338
|
+
if (originalUrl.protocol !== redirectUrl.protocol) {
|
|
339
|
+
return true;
|
|
340
|
+
}
|
|
341
|
+
// Strip auth on port change (accounting for default ports)
|
|
342
|
+
const originalPort = originalUrl.port;
|
|
343
|
+
const redirectPort = redirectUrl.port;
|
|
344
|
+
return originalPort !== redirectPort;
|
|
345
|
+
}
|
|
346
|
+
static async retryOnServerError(task, maxRetries = 3) {
|
|
347
|
+
for (let attemptNumber = 0;; attemptNumber++) {
|
|
348
|
+
try {
|
|
349
|
+
return await task();
|
|
350
|
+
}
|
|
351
|
+
catch (e) {
|
|
352
|
+
if (attemptNumber < maxRetries && ((e instanceof HttpError && e.isServerError()) || e.code === "EPIPE")) {
|
|
353
|
+
await new Promise(r => setTimeout(r, 1000 * (attemptNumber + 1)));
|
|
354
|
+
continue;
|
|
355
|
+
}
|
|
356
|
+
throw e;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
exports.HttpExecutor = HttpExecutor;
|
|
362
|
+
function parseUrl(url, options) {
|
|
363
|
+
try {
|
|
364
|
+
// Would throw exception if url is not absolute
|
|
365
|
+
return new url_1.URL(url);
|
|
366
|
+
}
|
|
367
|
+
catch {
|
|
368
|
+
// Relative URL - construct base URL from original options
|
|
369
|
+
const hostname = options.hostname;
|
|
370
|
+
const protocol = options.protocol || "https:";
|
|
371
|
+
const port = options.port ? `:${options.port}` : "";
|
|
372
|
+
const baseUrl = `${protocol}//${hostname}${port}`;
|
|
373
|
+
return new url_1.URL(url, baseUrl);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
function configureRequestOptionsFromUrl(url, options) {
|
|
377
|
+
const result = configureRequestOptions(options);
|
|
378
|
+
const parsedUrl = parseUrl(url, options);
|
|
379
|
+
configureRequestUrl(parsedUrl, result);
|
|
380
|
+
return result;
|
|
381
|
+
}
|
|
382
|
+
function configureRequestUrl(url, options) {
|
|
383
|
+
options.protocol = url.protocol;
|
|
384
|
+
options.hostname = url.hostname;
|
|
385
|
+
if (url.port) {
|
|
386
|
+
options.port = url.port;
|
|
387
|
+
}
|
|
388
|
+
else if (options.port) {
|
|
389
|
+
delete options.port;
|
|
390
|
+
}
|
|
391
|
+
options.path = url.pathname + url.search;
|
|
392
|
+
}
|
|
393
|
+
class DigestTransform extends stream_1.Transform {
|
|
394
|
+
// noinspection JSUnusedGlobalSymbols
|
|
395
|
+
get actual() {
|
|
396
|
+
return this._actual;
|
|
397
|
+
}
|
|
398
|
+
constructor(expected, algorithm = "sha512", encoding = "base64") {
|
|
399
|
+
super();
|
|
400
|
+
this.expected = expected;
|
|
401
|
+
this.algorithm = algorithm;
|
|
402
|
+
this.encoding = encoding;
|
|
403
|
+
this._actual = null;
|
|
404
|
+
this.isValidateOnEnd = true;
|
|
405
|
+
this.digester = (0, crypto_1.createHash)(algorithm);
|
|
406
|
+
}
|
|
407
|
+
// noinspection JSUnusedGlobalSymbols
|
|
408
|
+
_transform(chunk, encoding, callback) {
|
|
409
|
+
this.digester.update(chunk);
|
|
410
|
+
callback(null, chunk);
|
|
411
|
+
}
|
|
412
|
+
// noinspection JSUnusedGlobalSymbols
|
|
413
|
+
_flush(callback) {
|
|
414
|
+
this._actual = this.digester.digest(this.encoding);
|
|
415
|
+
if (this.isValidateOnEnd) {
|
|
416
|
+
try {
|
|
417
|
+
this.validate();
|
|
418
|
+
}
|
|
419
|
+
catch (e) {
|
|
420
|
+
callback(e);
|
|
421
|
+
return;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
callback(null);
|
|
425
|
+
}
|
|
426
|
+
validate() {
|
|
427
|
+
if (this._actual == null) {
|
|
428
|
+
throw (0, error_1.newError)("Not finished yet", "ERR_STREAM_NOT_FINISHED");
|
|
429
|
+
}
|
|
430
|
+
if (this._actual !== this.expected) {
|
|
431
|
+
throw (0, error_1.newError)(`${this.algorithm} checksum mismatch, expected ${this.expected}, got ${this._actual}`, "ERR_CHECKSUM_MISMATCH");
|
|
432
|
+
}
|
|
433
|
+
return null;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
exports.DigestTransform = DigestTransform;
|
|
437
|
+
function checkSha2(sha2Header, sha2, callback) {
|
|
438
|
+
if (sha2Header != null && sha2 != null && sha2Header !== sha2) {
|
|
439
|
+
callback(new Error(`checksum mismatch: expected ${sha2} but got ${sha2Header} (X-Checksum-Sha2 header)`));
|
|
440
|
+
return false;
|
|
441
|
+
}
|
|
442
|
+
return true;
|
|
443
|
+
}
|
|
444
|
+
function safeGetHeader(response, headerKey) {
|
|
445
|
+
const value = response.headers[headerKey];
|
|
446
|
+
if (value == null) {
|
|
447
|
+
return null;
|
|
448
|
+
}
|
|
449
|
+
else if (Array.isArray(value)) {
|
|
450
|
+
// electron API
|
|
451
|
+
return value.length === 0 ? null : value[value.length - 1];
|
|
452
|
+
}
|
|
453
|
+
else {
|
|
454
|
+
return value;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
function configurePipes(options, response) {
|
|
458
|
+
if (!checkSha2(safeGetHeader(response, "X-Checksum-Sha2"), options.options.sha2, options.callback)) {
|
|
459
|
+
return;
|
|
460
|
+
}
|
|
461
|
+
const streams = [];
|
|
462
|
+
if (options.options.onProgress != null) {
|
|
463
|
+
const contentLength = safeGetHeader(response, "content-length");
|
|
464
|
+
if (contentLength != null) {
|
|
465
|
+
streams.push(new ProgressCallbackTransform_1.ProgressCallbackTransform(parseInt(contentLength, 10), options.options.cancellationToken, options.options.onProgress));
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
const sha512 = options.options.sha512;
|
|
469
|
+
if (sha512 != null) {
|
|
470
|
+
streams.push(new DigestTransform(sha512, "sha512", sha512.length === 128 && !sha512.includes("+") && !sha512.includes("Z") && !sha512.includes("=") ? "hex" : "base64"));
|
|
471
|
+
}
|
|
472
|
+
else if (options.options.sha2 != null) {
|
|
473
|
+
streams.push(new DigestTransform(options.options.sha2, "sha256", "hex"));
|
|
474
|
+
}
|
|
475
|
+
const fileOut = (0, fs_1.createWriteStream)(options.destination);
|
|
476
|
+
streams.push(fileOut);
|
|
477
|
+
let lastStream = response;
|
|
478
|
+
for (const stream of streams) {
|
|
479
|
+
stream.on("error", (error) => {
|
|
480
|
+
fileOut.close();
|
|
481
|
+
if (!options.options.cancellationToken.cancelled) {
|
|
482
|
+
options.callback(error);
|
|
483
|
+
}
|
|
484
|
+
});
|
|
485
|
+
lastStream = lastStream.pipe(stream);
|
|
486
|
+
}
|
|
487
|
+
fileOut.on("finish", () => {
|
|
488
|
+
;
|
|
489
|
+
fileOut.close(options.callback);
|
|
490
|
+
});
|
|
491
|
+
}
|
|
492
|
+
function configureRequestOptions(options, token, method) {
|
|
493
|
+
if (method != null) {
|
|
494
|
+
options.method = method;
|
|
495
|
+
}
|
|
496
|
+
options.headers = { ...options.headers };
|
|
497
|
+
const headers = options.headers;
|
|
498
|
+
if (token != null) {
|
|
499
|
+
;
|
|
500
|
+
headers.authorization = token.startsWith("Basic") || token.startsWith("Bearer") ? token : `token ${token}`;
|
|
501
|
+
}
|
|
502
|
+
if (headers["User-Agent"] == null) {
|
|
503
|
+
headers["User-Agent"] = "electron-builder";
|
|
504
|
+
}
|
|
505
|
+
if (method == null || method === "GET" || headers["Cache-Control"] == null) {
|
|
506
|
+
headers["Cache-Control"] = "no-cache";
|
|
507
|
+
}
|
|
508
|
+
// do not specify for node (in any case we use https module)
|
|
509
|
+
if (options.protocol == null && process.versions.electron != null) {
|
|
510
|
+
options.protocol = "https:";
|
|
511
|
+
}
|
|
512
|
+
return options;
|
|
513
|
+
}
|
|
514
|
+
function isSensitiveFieldName(name) {
|
|
515
|
+
const normalized = normalizeName(name);
|
|
516
|
+
return SENSITIVE_FIELD_PATTERNS.some(p => normalized.includes(p)) || SENSITIVE_FIELD_SUFFIXES.some(s => normalized.endsWith(s));
|
|
517
|
+
}
|
|
518
|
+
function hashSensitiveValue(value) {
|
|
519
|
+
return `${(0, crypto_1.createHash)("sha256").update(value).digest("hex")} (sha256 hash)`;
|
|
520
|
+
}
|
|
521
|
+
function safeStringifyJson(data, skippedNames) {
|
|
522
|
+
return JSON.stringify(data, (name, value) => {
|
|
523
|
+
if (isSensitiveFieldName(name) || (skippedNames != null && skippedNames.has(name))) {
|
|
524
|
+
return typeof value === "string" ? hashSensitiveValue(value) : "<stripped sensitive data>";
|
|
525
|
+
}
|
|
526
|
+
return value;
|
|
527
|
+
}, 2);
|
|
528
|
+
}
|
|
529
|
+
//# sourceMappingURL=httpExecutor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"httpExecutor.js","sourceRoot":"","sources":["../src/httpExecutor.ts"],"names":[],"mappings":";;;AAoCA,gEAEC;AAOD,4DAEC;AAiBD,0CASC;AAmCD,8BAEC;AAoWD,wEAKC;AAED,kDASC;AAmED,sCAUC;AAyCD,0DAwBC;AAED,oDAGC;AAED,gDAEC;AAED,8CAWC;AAto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AAQ,CAAC,CAAC,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,2BAA2B,CAAA;QAC5F,CAAC;QACD,OAAO,KAAK,CAAA;IACd,CAAC,EACD,CAAC,CACF,CAAA;AACH,CAAC","sourcesContent":["import { BinaryToTextEncoding, createHash, Hash } from \"crypto\"\nimport _debug from \"debug\"\nimport { createWriteStream } from \"fs\"\nimport { IncomingMessage, OutgoingHttpHeader, OutgoingHttpHeaders, RequestOptions } from \"http\"\nimport { Socket } from \"net\"\nimport { Transform } from \"stream\"\nimport { URL } from \"url\"\nimport { Nullish } from \".\"\nimport { CancellationToken } from \"./CancellationToken\"\nimport { newError } from \"./error\"\nimport { ProgressCallbackTransform, ProgressInfo } from \"./ProgressCallbackTransform\"\n\nconst debug = _debug(\"electron-builder\")\n\n// ── Sensitive-data registries ────────────────────────────────────────────────\n\n// Normalise a header or field name: lowercase + strip all separators (- and _).\n// Shared by both registries so lookup is always separator-agnostic.\nconst normalizeName = (name: string): string => name.toLowerCase().replace(/[-_]/g, \"\")\n\n// HTTP header names (normalised) stripped on cross-origin redirects.\n// Stored normalised; lookup normalises the incoming key with normalizeName().\nconst SENSITIVE_REDIRECT_HEADERS = new Set([\"authorization\", \"proxyauthorization\", \"privatetoken\", \"xapikey\", \"xauthtoken\", \"xaccesstoken\", \"xgitlabtoken\", \"cookie\", \"xcsrftoken\"])\n\n// Substrings: a field name containing any of these (after normalization) is redacted.\nconst SENSITIVE_FIELD_PATTERNS: string[] = [\"token\", \"password\", \"secret\", \"authorization\", \"credential\", \"apikey\", \"passphrase\", \"auth\"] as const\n\n// Suffixes: a field name ending with any of these (after normalization) is redacted.\n// Intentionally greedy — \"publicKey\" is also stripped; over-stripping debug logs is\n// acceptable, under-stripping a credential is not.\nconst SENSITIVE_FIELD_SUFFIXES: string[] = [\"key\"] as const\n\n/**\n * Register an additional HTTP header to strip on cross-origin redirects.\n * Intended for custom publishers (e.g. GenericPublisher with a non-standard auth header).\n */\nexport function addSensitiveRedirectHeader(header: string): void {\n SENSITIVE_REDIRECT_HEADERS.add(normalizeName(header))\n}\n\n/**\n * Register an additional substring pattern used by {@link safeStringifyJson} to\n * identify sensitive field names. Input is normalized (lowercased, separators stripped).\n * Intended for custom publishers that store credentials under non-standard field names.\n */\nexport function addSensitiveFieldPattern(pattern: string): void {\n SENSITIVE_FIELD_PATTERNS.push(pattern.toLowerCase().replace(/[-_]/g, \"\"))\n}\n\nexport interface RequestHeaders extends OutgoingHttpHeaders {\n [key: string]: OutgoingHttpHeader | undefined\n}\n\nexport interface DownloadOptions {\n readonly headers?: OutgoingHttpHeaders | null\n readonly sha2?: string | null\n readonly sha512?: string | null\n\n readonly cancellationToken: CancellationToken\n\n // noinspection JSUnusedLocalSymbols\n onProgress?: (progress: ProgressInfo) => void\n}\n\nexport function createHttpError(response: IncomingMessage, description: any | null = null) {\n return new HttpError(\n response.statusCode || -1,\n `${response.statusCode} ${response.statusMessage}` +\n (description == null ? \"\" : \"\\n\" + JSON.stringify(description, null, \" \")) +\n \"\\nHeaders: \" +\n safeStringifyJson(response.headers),\n description\n )\n}\n\nconst HTTP_STATUS_CODES = new Map<number, string>([\n [429, \"Too many requests\"],\n [400, \"Bad request\"],\n [403, \"Forbidden\"],\n [404, \"Not found\"],\n [405, \"Method not allowed\"],\n [406, \"Not acceptable\"],\n [408, \"Request timeout\"],\n [413, \"Request entity too large\"],\n [500, \"Internal server error\"],\n [502, \"Bad gateway\"],\n [503, \"Service unavailable\"],\n [504, \"Gateway timeout\"],\n [505, \"HTTP version not supported\"],\n])\n\nexport class HttpError extends Error {\n constructor(\n readonly statusCode: number,\n message = `HTTP error: ${HTTP_STATUS_CODES.get(statusCode) || statusCode}`,\n readonly description: any | null = null\n ) {\n super(message)\n\n this.name = \"HttpError\"\n ;(this as NodeJS.ErrnoException).code = `HTTP_ERROR_${statusCode}`\n }\n\n isServerError() {\n return this.statusCode >= 500 && this.statusCode <= 599\n }\n}\n\nexport function parseJson(result: Promise<string | null>) {\n return result.then(it => (it == null || it.length === 0 ? null : JSON.parse(it)))\n}\n\ninterface Request {\n abort: () => void\n end: (data?: Buffer) => void\n}\nexport abstract class HttpExecutor<T extends Request> {\n protected readonly maxRedirects = 10\n\n request(options: RequestOptions, cancellationToken: CancellationToken = new CancellationToken(), data?: { [name: string]: any } | null): Promise<string | null> {\n configureRequestOptions(options)\n const json = data == null ? undefined : JSON.stringify(data)\n const encodedData = json ? Buffer.from(json) : undefined\n if (encodedData != null) {\n if (debug.enabled) {\n debug(safeStringifyJson(data))\n }\n const { headers, ...opts } = options\n options = {\n method: \"post\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Content-Length\": encodedData.length,\n ...headers,\n },\n ...opts,\n }\n }\n return this.doApiRequest(options, cancellationToken, it => it.end(encodedData))\n }\n\n doApiRequest(\n options: RequestOptions,\n cancellationToken: CancellationToken,\n requestProcessor: (request: T, reject: (error: Error) => void) => void,\n redirectCount = 0\n ): Promise<string> {\n if (debug.enabled) {\n const { headers: _headers, auth: _auth, ...safeOptions } = options as any\n debug(`Request: ${safeStringifyJson(safeOptions)}`)\n }\n\n return cancellationToken.createPromise<string>((resolve, reject, onCancel) => {\n const request = this.createRequest(options, (response: any) => {\n try {\n this.handleResponse(response, options, cancellationToken, resolve, reject, redirectCount, requestProcessor)\n } catch (e: any) {\n reject(e)\n }\n })\n this.addErrorAndTimeoutHandlers(request, reject, options.timeout)\n this.addRedirectHandlers(request, options, reject, redirectCount, options => {\n this.doApiRequest(options, cancellationToken, requestProcessor, redirectCount).then(resolve).catch(reject)\n })\n requestProcessor(request, reject)\n onCancel(() => request.abort())\n })\n }\n\n // noinspection JSUnusedLocalSymbols\n // eslint-disable-next-line\n protected addRedirectHandlers(request: any, options: RequestOptions, reject: (error: Error) => void, redirectCount: number, handler: (options: RequestOptions) => void) {\n // not required for NodeJS\n }\n\n addErrorAndTimeoutHandlers(request: any, reject: (error: Error) => void, timeout = 60 * 1000) {\n this.addTimeOutHandler(request, reject, timeout)\n request.on(\"error\", reject)\n request.on(\"aborted\", () => {\n reject(new Error(\"Request has been aborted by the server\"))\n })\n }\n\n private handleResponse(\n response: IncomingMessage,\n options: RequestOptions,\n cancellationToken: CancellationToken,\n resolve: (data?: any) => void,\n reject: (error: Error) => void,\n redirectCount: number,\n requestProcessor: (request: T, reject: (error: Error) => void) => void\n ) {\n if (debug.enabled) {\n const { headers: _headers, auth: _auth, ...safeOptions } = options as any\n debug(`Response: ${response.statusCode} ${response.statusMessage}, request options: ${safeStringifyJson(safeOptions)}`)\n }\n\n // we handle any other >= 400 error on request end (read detailed message in the response body)\n if (response.statusCode === 404) {\n // error is clear, we don't need to read detailed error description\n reject(\n createHttpError(\n response,\n `method: ${options.method || \"GET\"} url: ${options.protocol || \"https:\"}//${options.hostname}${options.port ? `:${options.port}` : \"\"}${options.path}\n\nPlease double check that your authentication token is correct. Due to security reasons, actual status maybe not reported, but 404.\n`\n )\n )\n return\n } else if (response.statusCode === 204) {\n // on DELETE request\n resolve()\n return\n }\n\n const code = response.statusCode ?? 0\n const shouldRedirect = code >= 300 && code < 400\n const redirectUrl = safeGetHeader(response, \"location\")\n if (shouldRedirect && redirectUrl != null) {\n if (redirectCount > this.maxRedirects) {\n reject(this.createMaxRedirectError())\n return\n }\n\n this.doApiRequest(HttpExecutor.prepareRedirectUrlOptions(redirectUrl, options), cancellationToken, requestProcessor, redirectCount).then(resolve).catch(reject)\n return\n }\n\n response.setEncoding(\"utf8\")\n\n let data = \"\"\n response.on(\"error\", reject)\n response.on(\"data\", (chunk: string) => (data += chunk))\n response.on(\"end\", () => {\n try {\n if (response.statusCode != null && response.statusCode >= 400) {\n const contentType = safeGetHeader(response, \"content-type\")\n const isJson = contentType != null && (Array.isArray(contentType) ? contentType.find(it => it.includes(\"json\")) != null : contentType.includes(\"json\"))\n reject(\n createHttpError(\n response,\n `method: ${options.method || \"GET\"} url: ${options.protocol || \"https:\"}//${options.hostname}${options.port ? `:${options.port}` : \"\"}${options.path}\n\n Data:\n ${isJson ? safeStringifyJson(JSON.parse(data)) : data}\n `\n )\n )\n } else {\n resolve(data.length === 0 ? null : data)\n }\n } catch (e: any) {\n reject(e)\n }\n })\n }\n\n // noinspection JSUnusedLocalSymbols\n abstract createRequest(options: RequestOptions, callback: (response: any) => void): T\n\n async downloadToBuffer(url: URL, options: DownloadOptions): Promise<Buffer> {\n return await options.cancellationToken.createPromise<Buffer>((resolve, reject, onCancel) => {\n const responseChunks: Buffer[] = []\n const requestOptions = {\n headers: options.headers || undefined,\n // because PrivateGitHubProvider requires HttpExecutor.prepareRedirectUrlOptions logic, so, we need to redirect manually\n redirect: \"manual\",\n }\n configureRequestUrl(url, requestOptions)\n configureRequestOptions(requestOptions)\n this.doDownload(\n requestOptions,\n {\n destination: null,\n options,\n onCancel,\n callback: error => {\n if (error == null) {\n resolve(Buffer.concat(responseChunks))\n } else {\n reject(error)\n }\n },\n responseHandler: (response, callback) => {\n let receivedLength = 0\n response.on(\"data\", (chunk: Buffer) => {\n receivedLength += chunk.length\n if (receivedLength > 524288000) {\n callback(new Error(\"Maximum allowed size is 500 MB\"))\n return\n }\n responseChunks.push(chunk)\n })\n response.on(\"end\", () => {\n callback(null)\n })\n },\n },\n 0\n )\n })\n }\n\n protected doDownload(requestOptions: RequestOptions, options: DownloadCallOptions, redirectCount: number) {\n const request = this.createRequest(requestOptions, (response: IncomingMessage) => {\n if (response.statusCode! >= 400) {\n options.callback(\n new Error(\n `Cannot download \"${requestOptions.protocol || \"https:\"}//${requestOptions.hostname}${requestOptions.path}\", status ${response.statusCode}: ${response.statusMessage}`\n )\n )\n return\n }\n\n // It is possible for the response stream to fail, e.g. when a network is lost while\n // response stream is in progress. Stop waiting and reject so consumer can catch the error.\n response.on(\"error\", options.callback)\n\n // this code not relevant for Electron (redirect event instead handled)\n const redirectUrl = safeGetHeader(response, \"location\")\n if (redirectUrl != null) {\n if (redirectCount < this.maxRedirects) {\n this.doDownload(HttpExecutor.prepareRedirectUrlOptions(redirectUrl, requestOptions), options, redirectCount++)\n } else {\n options.callback(this.createMaxRedirectError())\n }\n return\n }\n\n if (options.responseHandler == null) {\n configurePipes(options, response)\n } else {\n options.responseHandler(response, options.callback)\n }\n })\n this.addErrorAndTimeoutHandlers(request, options.callback, requestOptions.timeout)\n this.addRedirectHandlers(request, requestOptions, options.callback, redirectCount, requestOptions => {\n this.doDownload(requestOptions, options, redirectCount++)\n })\n request.end()\n }\n\n protected createMaxRedirectError() {\n return new Error(`Too many redirects (> ${this.maxRedirects})`)\n }\n\n private addTimeOutHandler(request: any, callback: (error: Error) => void, timeout: number) {\n request.on(\"socket\", (socket: Socket) => {\n socket.setTimeout(timeout, () => {\n request.abort()\n callback(new Error(\"Request timed out\"))\n })\n })\n }\n\n static prepareRedirectUrlOptions(redirectUrl: string, options: RequestOptions): RequestOptions {\n const newOptions = configureRequestOptionsFromUrl(redirectUrl, { ...options })\n const headers = newOptions.headers\n if (headers == null) {\n return newOptions\n }\n\n const originalUrl = HttpExecutor.reconstructOriginalUrl(options)\n const parsedRedirectUrl = parseUrl(redirectUrl, options)\n\n if (HttpExecutor.isCrossOriginRedirect(originalUrl, parsedRedirectUrl)) {\n if (debug.enabled) {\n debug(`Cross-origin redirect (${originalUrl.host} → ${parsedRedirectUrl.host}): stripping sensitive headers`)\n }\n for (const key of Object.keys(headers)) {\n if (SENSITIVE_REDIRECT_HEADERS.has(normalizeName(key))) {\n delete (headers as Record<string, unknown>)[key]\n }\n }\n }\n return newOptions\n }\n\n private static reconstructOriginalUrl(options: RequestOptions): URL {\n const protocol = options.protocol || \"https:\"\n if (!options.hostname) {\n throw new Error(\"Missing hostname in request options\")\n }\n const hostname = options.hostname\n const port = options.port ? `:${options.port}` : \"\"\n const path = options.path || \"/\"\n return new URL(`${protocol}//${hostname}${port}${path}`)\n }\n\n private static isCrossOriginRedirect(originalUrl: URL, redirectUrl: URL): boolean {\n // Case-insensitive hostname comparison\n if (originalUrl.hostname.toLowerCase() !== redirectUrl.hostname.toLowerCase()) {\n return true\n }\n\n // Special case: allow http -> https redirect on same host with standard ports\n // This matches the behavior of Python requests library for backward compatibility\n // url.port returns an empty string if the port is omitted\n // or explicitly set to the default port for a given protocol.\n if (\n originalUrl.protocol === \"http:\" &&\n // This can be replaced with `!originalUrl.port`, but for the sake of clarity.\n [\"80\", \"\"].includes(originalUrl.port) &&\n redirectUrl.protocol === \"https:\" &&\n // This can be replaced with `!redirectUrl.port`, but for the sake of clarity.\n [\"443\", \"\"].includes(redirectUrl.port)\n ) {\n return false\n }\n\n // According to RFC 7235, a change in protocol or port constitutes a cross-origin request.\n // Forwarding authentication headers to a different origin can be a security risk.\n // For example, https://example.com:443 and http://example.com:80 are different origins.\n // We only make an exception for HTTP -> HTTPS upgrades on standard ports for backward compatibility.\n\n // Strip auth on any other protocol change\n if (originalUrl.protocol !== redirectUrl.protocol) {\n return true\n }\n\n // Strip auth on port change (accounting for default ports)\n const originalPort = originalUrl.port\n const redirectPort = redirectUrl.port\n return originalPort !== redirectPort\n }\n\n static async retryOnServerError(task: () => Promise<any>, maxRetries = 3): Promise<any> {\n for (let attemptNumber = 0; ; attemptNumber++) {\n try {\n return await task()\n } catch (e: any) {\n if (attemptNumber < maxRetries && ((e instanceof HttpError && e.isServerError()) || e.code === \"EPIPE\")) {\n await new Promise(r => setTimeout(r, 1000 * (attemptNumber + 1)))\n continue\n }\n throw e\n }\n }\n }\n}\n\nexport interface DownloadCallOptions {\n responseHandler: ((response: IncomingMessage, callback: (error: Error | null) => void) => void) | null\n onCancel: (callback: () => void) => void\n callback: (error: Error | null) => void\n\n options: DownloadOptions\n\n destination: string | null\n}\n\nfunction parseUrl(url: string, options: RequestOptions): URL {\n try {\n // Would throw exception if url is not absolute\n return new URL(url)\n } catch {\n // Relative URL - construct base URL from original options\n const hostname = options.hostname\n const protocol = options.protocol || \"https:\"\n const port = options.port ? `:${options.port}` : \"\"\n const baseUrl = `${protocol}//${hostname}${port}`\n return new URL(url, baseUrl)\n }\n}\n\nexport function configureRequestOptionsFromUrl(url: string, options: RequestOptions) {\n const result = configureRequestOptions(options)\n const parsedUrl = parseUrl(url, options)\n configureRequestUrl(parsedUrl, result)\n return result\n}\n\nexport function configureRequestUrl(url: URL, options: RequestOptions): void {\n options.protocol = url.protocol\n options.hostname = url.hostname\n if (url.port) {\n options.port = url.port\n } else if (options.port) {\n delete options.port\n }\n options.path = url.pathname + url.search\n}\n\nexport class DigestTransform extends Transform {\n private readonly digester: Hash\n\n private _actual: string | null = null\n\n // noinspection JSUnusedGlobalSymbols\n get actual() {\n return this._actual\n }\n\n isValidateOnEnd = true\n\n constructor(\n readonly expected: string,\n private readonly algorithm: string = \"sha512\",\n private readonly encoding: BinaryToTextEncoding = \"base64\"\n ) {\n super()\n\n this.digester = createHash(algorithm)\n }\n\n // noinspection JSUnusedGlobalSymbols\n _transform(chunk: Buffer, encoding: string, callback: any) {\n this.digester.update(chunk)\n callback(null, chunk)\n }\n\n // noinspection JSUnusedGlobalSymbols\n _flush(callback: any): void {\n this._actual = this.digester.digest(this.encoding)\n\n if (this.isValidateOnEnd) {\n try {\n this.validate()\n } catch (e: any) {\n callback(e)\n return\n }\n }\n\n callback(null)\n }\n\n validate() {\n if (this._actual == null) {\n throw newError(\"Not finished yet\", \"ERR_STREAM_NOT_FINISHED\")\n }\n\n if (this._actual !== this.expected) {\n throw newError(`${this.algorithm} checksum mismatch, expected ${this.expected}, got ${this._actual}`, \"ERR_CHECKSUM_MISMATCH\")\n }\n\n return null\n }\n}\n\nfunction checkSha2(sha2Header: string | Nullish, sha2: string | Nullish, callback: (error: Error | null) => void): boolean {\n if (sha2Header != null && sha2 != null && sha2Header !== sha2) {\n callback(new Error(`checksum mismatch: expected ${sha2} but got ${sha2Header} (X-Checksum-Sha2 header)`))\n return false\n }\n return true\n}\n\nexport function safeGetHeader(response: any, headerKey: string) {\n const value = response.headers[headerKey]\n if (value == null) {\n return null\n } else if (Array.isArray(value)) {\n // electron API\n return value.length === 0 ? null : value[value.length - 1]\n } else {\n return value\n }\n}\n\nfunction configurePipes(options: DownloadCallOptions, response: IncomingMessage) {\n if (!checkSha2(safeGetHeader(response, \"X-Checksum-Sha2\"), options.options.sha2, options.callback)) {\n return\n }\n\n const streams: Array<any> = []\n if (options.options.onProgress != null) {\n const contentLength = safeGetHeader(response, \"content-length\")\n if (contentLength != null) {\n streams.push(new ProgressCallbackTransform(parseInt(contentLength, 10), options.options.cancellationToken, options.options.onProgress))\n }\n }\n\n const sha512 = options.options.sha512\n if (sha512 != null) {\n streams.push(new DigestTransform(sha512, \"sha512\", sha512.length === 128 && !sha512.includes(\"+\") && !sha512.includes(\"Z\") && !sha512.includes(\"=\") ? \"hex\" : \"base64\"))\n } else if (options.options.sha2 != null) {\n streams.push(new DigestTransform(options.options.sha2, \"sha256\", \"hex\"))\n }\n\n const fileOut = createWriteStream(options.destination!)\n streams.push(fileOut)\n\n let lastStream = response\n for (const stream of streams) {\n stream.on(\"error\", (error: Error) => {\n fileOut.close()\n if (!options.options.cancellationToken.cancelled) {\n options.callback(error)\n }\n })\n lastStream = lastStream.pipe(stream)\n }\n\n fileOut.on(\"finish\", () => {\n ;(fileOut.close as any)(options.callback)\n })\n}\n\nexport function configureRequestOptions(options: RequestOptions, token?: string | null, method?: \"GET\" | \"DELETE\" | \"PUT\" | \"POST\"): RequestOptions {\n if (method != null) {\n options.method = method\n }\n\n options.headers = { ...options.headers }\n const headers = options.headers\n\n if (token != null) {\n ;(headers as any).authorization = token.startsWith(\"Basic\") || token.startsWith(\"Bearer\") ? token : `token ${token}`\n }\n if (headers[\"User-Agent\"] == null) {\n headers[\"User-Agent\"] = \"electron-builder\"\n }\n\n if (method == null || method === \"GET\" || headers[\"Cache-Control\"] == null) {\n headers[\"Cache-Control\"] = \"no-cache\"\n }\n\n // do not specify for node (in any case we use https module)\n if (options.protocol == null && (process.versions as any).electron != null) {\n options.protocol = \"https:\"\n }\n return options\n}\n\nexport function isSensitiveFieldName(name: string): boolean {\n const normalized = normalizeName(name)\n return SENSITIVE_FIELD_PATTERNS.some(p => normalized.includes(p)) || SENSITIVE_FIELD_SUFFIXES.some(s => normalized.endsWith(s))\n}\n\nexport function hashSensitiveValue(value: string): string {\n return `${createHash(\"sha256\").update(value).digest(\"hex\")} (sha256 hash)`\n}\n\nexport function safeStringifyJson(data: any, skippedNames?: Set<string>): string {\n return JSON.stringify(\n data,\n (name, value) => {\n if (isSensitiveFieldName(name) || (skippedNames != null && skippedNames.has(name))) {\n return typeof value === \"string\" ? hashSensitiveValue(value) : \"<stripped sensitive data>\"\n }\n return value\n },\n 2\n )\n}\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { BlockMap } from "./blockMapApi";
|
|
2
|
+
export { CancellationError, CancellationToken } from "./CancellationToken";
|
|
3
|
+
export { newError } from "./error";
|
|
4
|
+
export { configureRequestOptions, configureRequestOptionsFromUrl, configureRequestUrl, createHttpError, DigestTransform, DownloadOptions, HttpError, hashSensitiveValue, HttpExecutor, isSensitiveFieldName, parseJson, RequestHeaders, safeGetHeader, safeStringifyJson, } from "./httpExecutor";
|
|
5
|
+
export { MemoLazy } from "./MemoLazy";
|
|
6
|
+
export { ProgressCallbackTransform, ProgressInfo } from "./ProgressCallbackTransform";
|
|
7
|
+
export { AllPublishOptions, BaseS3Options, BitbucketOptions, CustomPublishOptions, GenericServerOptions, getS3LikeProviderBaseUrl, GithubOptions, githubUrl, githubTagPrefix, GitlabOptions, KeygenOptions, PublishConfiguration, PublishProvider, S3Options, SnapStoreOptions, SpacesOptions, GitlabReleaseInfo, GitlabReleaseAsset, } from "./publishOptions";
|
|
8
|
+
export { retry } from "./retry";
|
|
9
|
+
export { parseDn } from "./rfc2253Parser";
|
|
10
|
+
export { BlockMapDataHolder, PackageFileInfo, ReleaseNoteInfo, UpdateFileInfo, UpdateInfo, WindowsUpdateInfo } from "./updateInfo";
|
|
11
|
+
export { UUID } from "./uuid";
|
|
12
|
+
export { parseXml, XElement } from "./xml";
|
|
13
|
+
export { isValidKey, mapToObject, asArray, Nullish, deepAssign, objectToArgs } from "./objects";
|
|
14
|
+
export declare const CURRENT_APP_INSTALLER_FILE_NAME = "installer.exe";
|
|
15
|
+
export declare const CURRENT_APP_PACKAGE_FILE_NAME = "package.7z";
|