flucto 1.16.4 → 1.18.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 +60 -1
- package/README.md +143 -12
- package/dist-electron/cli/args.js +22 -3
- package/dist-electron/cli/args.js.map +1 -1
- package/dist-electron/cli/index.js +69 -6
- package/dist-electron/cli/index.js.map +1 -1
- package/dist-electron/cli/output.js +9 -3
- package/dist-electron/cli/output.js.map +1 -1
- package/dist-electron/main/index.js +35 -271
- package/dist-electron/main/index.js.map +1 -1
- package/dist-electron/main/media/ytDlp.js +22 -1
- package/dist-electron/main/media/ytDlp.js.map +1 -1
- package/dist-electron/main/platforms/bilibili.js +15 -15
- package/dist-electron/main/platforms/bilibili.js.map +1 -1
- package/dist-electron/main/platforms/createRegistry.js +8 -0
- package/dist-electron/main/platforms/createRegistry.js.map +1 -1
- package/dist-electron/main/platforms/dailymotion.js +23 -0
- package/dist-electron/main/platforms/dailymotion.js.map +1 -0
- package/dist-electron/main/platforms/nicovideo.js +22 -0
- package/dist-electron/main/platforms/nicovideo.js.map +1 -0
- package/dist-electron/main/platforms/ok.js +22 -0
- package/dist-electron/main/platforms/ok.js.map +1 -0
- package/dist-electron/main/platforms/vkvideo.js +32 -0
- package/dist-electron/main/platforms/vkvideo.js.map +1 -0
- package/dist-electron/main/search/bilibili.js +147 -0
- package/dist-electron/main/search/bilibili.js.map +1 -0
- package/dist-electron/main/search/browserSearch.js +69 -0
- package/dist-electron/main/search/browserSearch.js.map +1 -0
- package/dist-electron/main/search/dailymotion.js +89 -0
- package/dist-electron/main/search/dailymotion.js.map +1 -0
- package/dist-electron/main/search/nicovideo.js +87 -0
- package/dist-electron/main/search/nicovideo.js.map +1 -0
- package/dist-electron/main/search/ok.js +6 -0
- package/dist-electron/main/search/ok.js.map +1 -0
- package/dist-electron/main/search/reddit.js +173 -0
- package/dist-electron/main/search/reddit.js.map +1 -0
- package/dist-electron/main/search/socialSearch.js +134 -0
- package/dist-electron/main/search/socialSearch.js.map +1 -0
- package/dist-electron/main/search/vimeo.js +5 -0
- package/dist-electron/main/search/vimeo.js.map +1 -0
- package/dist-electron/main/search/vkvideo.js +187 -0
- package/dist-electron/main/search/vkvideo.js.map +1 -0
- package/dist-electron/main/search/webIndexSearch.js +413 -0
- package/dist-electron/main/search/webIndexSearch.js.map +1 -0
- package/dist-electron/main/search/youtube.js +242 -0
- package/dist-electron/main/search/youtube.js.map +1 -0
- package/dist-electron/main/services/binaryInstaller.js +90 -28
- package/dist-electron/main/services/binaryInstaller.js.map +1 -1
- package/dist-electron/main/services/binaryRefresh.js +1 -1
- package/dist-electron/main/services/binaryRefresh.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/markdownPipeline.js +25 -7
- package/dist-electron/main/services/markdownPipeline.js.map +1 -1
- package/dist-electron/main/services/mediaDownload.js +27 -27
- package/dist-electron/main/services/mediaDownload.js.map +1 -1
- package/dist-electron/main/services/orchestrator.js +3 -4
- package/dist-electron/main/services/orchestrator.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/services/transcriptMarkdown.js +24 -5
- package/dist-electron/main/services/transcriptMarkdown.js.map +1 -1
- package/dist-electron/main/services/videoSearch.js +101 -0
- package/dist-electron/main/services/videoSearch.js.map +1 -0
- package/dist-electron/main/transcript/captionExtractor.js +4 -6
- package/dist-electron/main/transcript/captionExtractor.js.map +1 -1
- package/dist-electron/main/transcript/transcriptHandlers.js +19 -0
- package/dist-electron/main/transcript/transcriptHandlers.js.map +1 -1
- 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/dist-electron/shared/videoSearchPlatforms.js +16 -0
- package/dist-electron/shared/videoSearchPlatforms.js.map +1 -0
- 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 +30 -13
|
@@ -0,0 +1,1020 @@
|
|
|
1
|
+
const Utils = require("./util");
|
|
2
|
+
const pth = require("path");
|
|
3
|
+
const ZipEntry = require("./zipEntry");
|
|
4
|
+
const ZipFile = require("./zipFile");
|
|
5
|
+
|
|
6
|
+
const get_Bool = (...val) => Utils.findLast(val, (c) => typeof c === "boolean");
|
|
7
|
+
const get_Str = (...val) => Utils.findLast(val, (c) => typeof c === "string");
|
|
8
|
+
const get_Fun = (...val) => Utils.findLast(val, (c) => typeof c === "function");
|
|
9
|
+
|
|
10
|
+
const defaultOptions = {
|
|
11
|
+
// option "noSort" : if true it disables files sorting
|
|
12
|
+
noSort: false,
|
|
13
|
+
// read entries during load (initial loading may be slower)
|
|
14
|
+
readEntries: false,
|
|
15
|
+
// default method is none
|
|
16
|
+
method: Utils.Constants.NONE,
|
|
17
|
+
// file system
|
|
18
|
+
fs: null
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
module.exports = function (/**String*/ input, /** object */ options) {
|
|
22
|
+
let inBuffer = null;
|
|
23
|
+
|
|
24
|
+
// create object based default options, allowing them to be overwritten
|
|
25
|
+
const opts = Object.assign(Object.create(null), defaultOptions);
|
|
26
|
+
|
|
27
|
+
// test input variable
|
|
28
|
+
if (input && "object" === typeof input) {
|
|
29
|
+
// if value is not buffer we accept it to be object with options
|
|
30
|
+
if (!(input instanceof Uint8Array)) {
|
|
31
|
+
Object.assign(opts, input);
|
|
32
|
+
input = opts.input ? opts.input : undefined;
|
|
33
|
+
if (opts.input) delete opts.input;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// if input is buffer
|
|
37
|
+
if (Buffer.isBuffer(input)) {
|
|
38
|
+
inBuffer = input;
|
|
39
|
+
opts.method = Utils.Constants.BUFFER;
|
|
40
|
+
input = undefined;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// assign options
|
|
45
|
+
Object.assign(opts, options);
|
|
46
|
+
|
|
47
|
+
// instanciate utils filesystem
|
|
48
|
+
const filetools = new Utils(opts);
|
|
49
|
+
|
|
50
|
+
// Restore the archived permissions on extracted directories. This has to run
|
|
51
|
+
// after a directory's contents are written: applying a restrictive mode
|
|
52
|
+
// (e.g. 0o500) up front would stop us writing the files it contains. Applying
|
|
53
|
+
// the deepest paths first keeps parent directories traversable while their
|
|
54
|
+
// children are updated (issue #530).
|
|
55
|
+
const applyDirAttributes = (dirEntries) => {
|
|
56
|
+
dirEntries
|
|
57
|
+
.filter((d) => d.attr)
|
|
58
|
+
.sort((a, b) => b.path.length - a.path.length)
|
|
59
|
+
.forEach((d) => filetools.fs.chmodSync(d.path, d.attr));
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
if (typeof opts.decoder !== "object" || typeof opts.decoder.encode !== "function" || typeof opts.decoder.decode !== "function") {
|
|
63
|
+
opts.decoder = Utils.decoder;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// if input is file name we retrieve its content
|
|
67
|
+
if (input && "string" === typeof input) {
|
|
68
|
+
// load zip file
|
|
69
|
+
if (filetools.fs.existsSync(input)) {
|
|
70
|
+
opts.method = Utils.Constants.FILE;
|
|
71
|
+
opts.filename = input;
|
|
72
|
+
inBuffer = filetools.fs.readFileSync(input);
|
|
73
|
+
} else {
|
|
74
|
+
throw Utils.Errors.INVALID_FILENAME();
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// create variable
|
|
79
|
+
const _zip = new ZipFile(inBuffer, opts);
|
|
80
|
+
|
|
81
|
+
const { canonical, sanitize, zipnamefix } = Utils;
|
|
82
|
+
|
|
83
|
+
function getEntry(/**Object*/ entry) {
|
|
84
|
+
if (entry && _zip) {
|
|
85
|
+
var item;
|
|
86
|
+
// If entry was given as a file name
|
|
87
|
+
if (typeof entry === "string") item = _zip.getEntry(pth.posix.normalize(entry));
|
|
88
|
+
// if entry was given as a ZipEntry object
|
|
89
|
+
if (typeof entry === "object" && typeof entry.entryName !== "undefined" && typeof entry.header !== "undefined") item = _zip.getEntry(entry.entryName);
|
|
90
|
+
|
|
91
|
+
if (item) {
|
|
92
|
+
return item;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
function fixPath(zipPath) {
|
|
99
|
+
const { join, normalize, sep } = pth.posix;
|
|
100
|
+
// convert windows file separators and normalize
|
|
101
|
+
return join(pth.isAbsolute(zipPath) ? "/": '.', normalize(sep + zipPath.split("\\").join(sep) + sep));
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function filenameFilter(filterfn) {
|
|
105
|
+
if (filterfn instanceof RegExp) {
|
|
106
|
+
// if filter is RegExp wrap it
|
|
107
|
+
return (function (rx) {
|
|
108
|
+
return function (filename) {
|
|
109
|
+
return rx.test(filename);
|
|
110
|
+
};
|
|
111
|
+
})(filterfn);
|
|
112
|
+
} else if ("function" !== typeof filterfn) {
|
|
113
|
+
// if filter is not function we will replace it
|
|
114
|
+
return () => true;
|
|
115
|
+
}
|
|
116
|
+
return filterfn;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// keep last character on folders
|
|
120
|
+
const relativePath = (local, entry) => {
|
|
121
|
+
let lastChar = entry.slice(-1);
|
|
122
|
+
lastChar = lastChar === filetools.sep ? filetools.sep : "";
|
|
123
|
+
return pth.relative(local, entry) + lastChar;
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
return {
|
|
127
|
+
/**
|
|
128
|
+
* Extracts the given entry from the archive and returns the content as a Buffer object
|
|
129
|
+
* @param {ZipEntry|string} entry ZipEntry object or String with the full path of the entry
|
|
130
|
+
* @param {Buffer|string} [pass] - password
|
|
131
|
+
* @return Buffer or Null in case of error
|
|
132
|
+
*/
|
|
133
|
+
readFile: function (entry, pass) {
|
|
134
|
+
var item = getEntry(entry);
|
|
135
|
+
return (item && item.getData(pass)) || null;
|
|
136
|
+
},
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Returns how many child elements has on entry (directories) on files it is always 0
|
|
140
|
+
* @param {ZipEntry|string} entry ZipEntry object or String with the full path of the entry
|
|
141
|
+
* @returns {integer}
|
|
142
|
+
*/
|
|
143
|
+
childCount: function (entry) {
|
|
144
|
+
const item = getEntry(entry);
|
|
145
|
+
if (item) {
|
|
146
|
+
return _zip.getChildCount(item);
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Asynchronous readFile
|
|
152
|
+
* @param {ZipEntry|string} entry ZipEntry object or String with the full path of the entry
|
|
153
|
+
* @param {callback} callback
|
|
154
|
+
*
|
|
155
|
+
* @return Buffer or Null in case of error
|
|
156
|
+
*/
|
|
157
|
+
readFileAsync: function (entry, callback) {
|
|
158
|
+
var item = getEntry(entry);
|
|
159
|
+
if (item) {
|
|
160
|
+
item.getDataAsync(callback);
|
|
161
|
+
} else {
|
|
162
|
+
callback(null, "getEntry failed for:" + entry);
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Extracts the given entry from the archive and returns the content as plain text in the given encoding
|
|
168
|
+
* @param {ZipEntry|string} entry - ZipEntry object or String with the full path of the entry
|
|
169
|
+
* @param {string} encoding - Optional. If no encoding is specified utf8 is used
|
|
170
|
+
*
|
|
171
|
+
* @return String
|
|
172
|
+
*/
|
|
173
|
+
readAsText: function (entry, encoding) {
|
|
174
|
+
var item = getEntry(entry);
|
|
175
|
+
if (item) {
|
|
176
|
+
var data = item.getData();
|
|
177
|
+
if (data && data.length) {
|
|
178
|
+
return data.toString(encoding || "utf8");
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
return "";
|
|
182
|
+
},
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Asynchronous readAsText
|
|
186
|
+
* @param {ZipEntry|string} entry ZipEntry object or String with the full path of the entry
|
|
187
|
+
* @param {callback} callback
|
|
188
|
+
* @param {string} [encoding] - Optional. If no encoding is specified utf8 is used
|
|
189
|
+
*
|
|
190
|
+
* @return String
|
|
191
|
+
*/
|
|
192
|
+
readAsTextAsync: function (entry, callback, encoding) {
|
|
193
|
+
var item = getEntry(entry);
|
|
194
|
+
if (item) {
|
|
195
|
+
item.getDataAsync(function (data, err) {
|
|
196
|
+
if (err) {
|
|
197
|
+
callback(data, err);
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
if (data && data.length) {
|
|
202
|
+
callback(data.toString(encoding || "utf8"));
|
|
203
|
+
} else {
|
|
204
|
+
callback("");
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
} else {
|
|
208
|
+
callback("");
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Remove the entry from the file or the entry and all it's nested directories and files if the given entry is a directory
|
|
214
|
+
*
|
|
215
|
+
* @param {ZipEntry|string} entry
|
|
216
|
+
* @param {boolean} withsubfolders
|
|
217
|
+
* @returns {void}
|
|
218
|
+
*/
|
|
219
|
+
deleteFile: function (entry, withsubfolders = true) {
|
|
220
|
+
// @TODO: test deleteFile
|
|
221
|
+
var item = getEntry(entry);
|
|
222
|
+
if (item) {
|
|
223
|
+
_zip.deleteFile(item.entryName, withsubfolders);
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Remove the entry from the file or directory without affecting any nested entries
|
|
229
|
+
*
|
|
230
|
+
* @param {ZipEntry|string} entry
|
|
231
|
+
* @returns {void}
|
|
232
|
+
*/
|
|
233
|
+
deleteEntry: function (entry) {
|
|
234
|
+
// @TODO: test deleteEntry
|
|
235
|
+
var item = getEntry(entry);
|
|
236
|
+
if (item) {
|
|
237
|
+
_zip.deleteEntry(item.entryName);
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Adds a comment to the zip. The zip must be rewritten after adding the comment.
|
|
243
|
+
*
|
|
244
|
+
* @param {string} comment
|
|
245
|
+
*/
|
|
246
|
+
addZipComment: function (comment) {
|
|
247
|
+
// @TODO: test addZipComment
|
|
248
|
+
_zip.comment = comment;
|
|
249
|
+
},
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Returns the zip comment
|
|
253
|
+
*
|
|
254
|
+
* @return String
|
|
255
|
+
*/
|
|
256
|
+
getZipComment: function () {
|
|
257
|
+
return _zip.comment || "";
|
|
258
|
+
},
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Adds a comment to a specified zipEntry. The zip must be rewritten after adding the comment
|
|
262
|
+
* The comment cannot exceed 65535 characters in length
|
|
263
|
+
*
|
|
264
|
+
* @param {ZipEntry} entry
|
|
265
|
+
* @param {string} comment
|
|
266
|
+
*/
|
|
267
|
+
addZipEntryComment: function (entry, comment) {
|
|
268
|
+
var item = getEntry(entry);
|
|
269
|
+
if (item) {
|
|
270
|
+
item.comment = comment;
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Returns the comment of the specified entry
|
|
276
|
+
*
|
|
277
|
+
* @param {ZipEntry} entry
|
|
278
|
+
* @return String
|
|
279
|
+
*/
|
|
280
|
+
getZipEntryComment: function (entry) {
|
|
281
|
+
var item = getEntry(entry);
|
|
282
|
+
if (item) {
|
|
283
|
+
return item.comment || "";
|
|
284
|
+
}
|
|
285
|
+
return "";
|
|
286
|
+
},
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Updates the content of an existing entry inside the archive. The zip must be rewritten after updating the content
|
|
290
|
+
*
|
|
291
|
+
* @param {ZipEntry} entry
|
|
292
|
+
* @param {Buffer} content
|
|
293
|
+
*/
|
|
294
|
+
updateFile: function (entry, content) {
|
|
295
|
+
var item = getEntry(entry);
|
|
296
|
+
if (item) {
|
|
297
|
+
item.setData(content);
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Adds a file from the disk to the archive
|
|
303
|
+
*
|
|
304
|
+
* @param {string} localPath File to add to zip
|
|
305
|
+
* @param {string} [zipPath] Optional path inside the zip
|
|
306
|
+
* @param {string} [zipName] Optional name for the file
|
|
307
|
+
* @param {string} [comment] Optional file comment
|
|
308
|
+
*/
|
|
309
|
+
addLocalFile: function (localPath, zipPath, zipName, comment) {
|
|
310
|
+
if (filetools.fs.existsSync(localPath)) {
|
|
311
|
+
// fix ZipPath
|
|
312
|
+
zipPath = zipPath ? fixPath(zipPath) : "";
|
|
313
|
+
|
|
314
|
+
// p - local file name
|
|
315
|
+
const p = pth.win32.basename(pth.win32.normalize(localPath));
|
|
316
|
+
|
|
317
|
+
// add file name into zippath
|
|
318
|
+
zipPath += zipName ? zipName : p;
|
|
319
|
+
|
|
320
|
+
// read file attributes
|
|
321
|
+
const _attr = filetools.fs.statSync(localPath);
|
|
322
|
+
|
|
323
|
+
// get file content
|
|
324
|
+
const data = _attr.isFile() ? filetools.fs.readFileSync(localPath) : Buffer.alloc(0);
|
|
325
|
+
|
|
326
|
+
// if folder
|
|
327
|
+
if (_attr.isDirectory()) zipPath += filetools.sep;
|
|
328
|
+
|
|
329
|
+
// add file into zip file
|
|
330
|
+
this.addFile(zipPath, data, comment, _attr);
|
|
331
|
+
} else {
|
|
332
|
+
throw Utils.Errors.FILE_NOT_FOUND(localPath);
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Callback for showing if everything was done.
|
|
338
|
+
*
|
|
339
|
+
* @callback doneCallback
|
|
340
|
+
* @param {Error} err - Error object
|
|
341
|
+
* @param {boolean} done - was request fully completed
|
|
342
|
+
*/
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Adds a file from the disk to the archive
|
|
346
|
+
*
|
|
347
|
+
* @param {(object|string)} options - options object, if it is string it us used as localPath.
|
|
348
|
+
* @param {string} options.localPath - Local path to the file.
|
|
349
|
+
* @param {string} [options.comment] - Optional file comment.
|
|
350
|
+
* @param {string} [options.zipPath] - Optional path inside the zip
|
|
351
|
+
* @param {string} [options.zipName] - Optional name for the file
|
|
352
|
+
* @param {doneCallback} callback - The callback that handles the response.
|
|
353
|
+
*/
|
|
354
|
+
addLocalFileAsync: function (options, callback) {
|
|
355
|
+
options = typeof options === "object" ? options : { localPath: options };
|
|
356
|
+
const localPath = pth.resolve(options.localPath);
|
|
357
|
+
const { comment } = options;
|
|
358
|
+
let { zipPath, zipName } = options;
|
|
359
|
+
const self = this;
|
|
360
|
+
|
|
361
|
+
filetools.fs.stat(localPath, function (err, stats) {
|
|
362
|
+
if (err) return callback(err, false);
|
|
363
|
+
// fix ZipPath
|
|
364
|
+
zipPath = zipPath ? fixPath(zipPath) : "";
|
|
365
|
+
// p - local file name
|
|
366
|
+
const p = pth.win32.basename(pth.win32.normalize(localPath));
|
|
367
|
+
// add file name into zippath
|
|
368
|
+
zipPath += zipName ? zipName : p;
|
|
369
|
+
|
|
370
|
+
if (stats.isFile()) {
|
|
371
|
+
filetools.fs.readFile(localPath, function (err, data) {
|
|
372
|
+
if (err) return callback(err, false);
|
|
373
|
+
self.addFile(zipPath, data, comment, stats);
|
|
374
|
+
return setImmediate(callback, undefined, true);
|
|
375
|
+
});
|
|
376
|
+
} else if (stats.isDirectory()) {
|
|
377
|
+
zipPath += filetools.sep;
|
|
378
|
+
self.addFile(zipPath, Buffer.alloc(0), comment, stats);
|
|
379
|
+
return setImmediate(callback, undefined, true);
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
|
+
},
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Adds a local directory and all its nested files and directories to the archive
|
|
386
|
+
*
|
|
387
|
+
* @param {string} localPath - local path to the folder
|
|
388
|
+
* @param {string} [zipPath] - optional path inside zip
|
|
389
|
+
* @param {(RegExp|function)} [filter] - optional RegExp or Function if files match will be included.
|
|
390
|
+
*/
|
|
391
|
+
addLocalFolder: function (localPath, zipPath, filter) {
|
|
392
|
+
// Prepare filter
|
|
393
|
+
filter = filenameFilter(filter);
|
|
394
|
+
|
|
395
|
+
// fix ZipPath
|
|
396
|
+
zipPath = zipPath ? fixPath(zipPath) : "";
|
|
397
|
+
|
|
398
|
+
// normalize the path first
|
|
399
|
+
localPath = pth.normalize(localPath);
|
|
400
|
+
|
|
401
|
+
if (filetools.fs.existsSync(localPath)) {
|
|
402
|
+
const items = filetools.findFiles(localPath);
|
|
403
|
+
const self = this;
|
|
404
|
+
|
|
405
|
+
if (items.length) {
|
|
406
|
+
for (const filepath of items) {
|
|
407
|
+
const p = pth.join(zipPath, relativePath(localPath, filepath));
|
|
408
|
+
if (filter(p)) {
|
|
409
|
+
self.addLocalFile(filepath, pth.dirname(p));
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
} else {
|
|
414
|
+
throw Utils.Errors.FILE_NOT_FOUND(localPath);
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Asynchronous addLocalFolder
|
|
420
|
+
* @param {string} localPath
|
|
421
|
+
* @param {callback} callback
|
|
422
|
+
* @param {string} [zipPath] optional path inside zip
|
|
423
|
+
* @param {RegExp|function} [filter] optional RegExp or Function if files match will
|
|
424
|
+
* be included.
|
|
425
|
+
*/
|
|
426
|
+
addLocalFolderAsync: function (localPath, callback, zipPath, filter) {
|
|
427
|
+
// Prepare filter
|
|
428
|
+
filter = filenameFilter(filter);
|
|
429
|
+
|
|
430
|
+
// fix ZipPath
|
|
431
|
+
zipPath = zipPath ? fixPath(zipPath) : "";
|
|
432
|
+
|
|
433
|
+
// normalize the path first
|
|
434
|
+
localPath = pth.normalize(localPath);
|
|
435
|
+
|
|
436
|
+
var self = this;
|
|
437
|
+
filetools.fs.open(localPath, "r", function (err) {
|
|
438
|
+
if (err && err.code === "ENOENT") {
|
|
439
|
+
callback(undefined, Utils.Errors.FILE_NOT_FOUND(localPath));
|
|
440
|
+
} else if (err) {
|
|
441
|
+
callback(undefined, err);
|
|
442
|
+
} else {
|
|
443
|
+
var items = filetools.findFiles(localPath);
|
|
444
|
+
var i = -1;
|
|
445
|
+
|
|
446
|
+
var next = function () {
|
|
447
|
+
i += 1;
|
|
448
|
+
if (i < items.length) {
|
|
449
|
+
var filepath = items[i];
|
|
450
|
+
var p = relativePath(localPath, filepath).split("\\").join("/"); //windows fix
|
|
451
|
+
p = p
|
|
452
|
+
.normalize("NFD")
|
|
453
|
+
.replace(/[\u0300-\u036f]/g, "")
|
|
454
|
+
.replace(/[^\x20-\x7E]/g, ""); // accent fix
|
|
455
|
+
if (filter(p)) {
|
|
456
|
+
filetools.fs.stat(filepath, function (er0, stats) {
|
|
457
|
+
if (er0) callback(undefined, er0);
|
|
458
|
+
if (stats.isFile()) {
|
|
459
|
+
filetools.fs.readFile(filepath, function (er1, data) {
|
|
460
|
+
if (er1) {
|
|
461
|
+
callback(undefined, er1);
|
|
462
|
+
} else {
|
|
463
|
+
self.addFile(zipPath + p, data, "", stats);
|
|
464
|
+
next();
|
|
465
|
+
}
|
|
466
|
+
});
|
|
467
|
+
} else {
|
|
468
|
+
self.addFile(zipPath + p + "/", Buffer.alloc(0), "", stats);
|
|
469
|
+
next();
|
|
470
|
+
}
|
|
471
|
+
});
|
|
472
|
+
} else {
|
|
473
|
+
process.nextTick(() => {
|
|
474
|
+
next();
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
} else {
|
|
478
|
+
callback(true, undefined);
|
|
479
|
+
}
|
|
480
|
+
};
|
|
481
|
+
|
|
482
|
+
next();
|
|
483
|
+
}
|
|
484
|
+
});
|
|
485
|
+
},
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Adds a local directory and all its nested files and directories to the archive
|
|
489
|
+
*
|
|
490
|
+
* @param {object | string} options - options object, if it is string it us used as localPath.
|
|
491
|
+
* @param {string} options.localPath - Local path to the folder.
|
|
492
|
+
* @param {string} [options.zipPath] - optional path inside zip.
|
|
493
|
+
* @param {RegExp|function} [options.filter] - optional RegExp or Function if files match will be included.
|
|
494
|
+
* @param {function|string} [options.namefix] - optional function to help fix filename
|
|
495
|
+
* @param {doneCallback} callback - The callback that handles the response.
|
|
496
|
+
*
|
|
497
|
+
*/
|
|
498
|
+
addLocalFolderAsync2: function (options, callback) {
|
|
499
|
+
const self = this;
|
|
500
|
+
options = typeof options === "object" ? options : { localPath: options };
|
|
501
|
+
// Resolve the local filesystem path with the platform resolver. Do NOT
|
|
502
|
+
// run it through fixPath: that normalizes ZIP-internal paths to POSIX
|
|
503
|
+
// and prepends "/", which turns a Windows path like C:\dir into
|
|
504
|
+
// \C:\dir, so readdir finds nothing and the archive comes out empty.
|
|
505
|
+
const localPath = pth.resolve(options.localPath);
|
|
506
|
+
let { zipPath, filter, namefix } = options;
|
|
507
|
+
|
|
508
|
+
if (filter instanceof RegExp) {
|
|
509
|
+
filter = (function (rx) {
|
|
510
|
+
return function (filename) {
|
|
511
|
+
return rx.test(filename);
|
|
512
|
+
};
|
|
513
|
+
})(filter);
|
|
514
|
+
} else if ("function" !== typeof filter) {
|
|
515
|
+
filter = function () {
|
|
516
|
+
return true;
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
// fix ZipPath
|
|
521
|
+
zipPath = zipPath ? fixPath(zipPath) : "";
|
|
522
|
+
|
|
523
|
+
// Check Namefix function
|
|
524
|
+
if (namefix === "latin1") {
|
|
525
|
+
namefix = (str) =>
|
|
526
|
+
str
|
|
527
|
+
.normalize("NFD")
|
|
528
|
+
.replace(/[\u0300-\u036f]/g, "")
|
|
529
|
+
.replace(/[^\x20-\x7E]/g, ""); // accent fix (latin1 characers only)
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
if (typeof namefix !== "function") namefix = (str) => str;
|
|
533
|
+
|
|
534
|
+
// internal, create relative path + fix the name
|
|
535
|
+
const relPathFix = (entry) => pth.join(zipPath, namefix(relativePath(localPath, entry)));
|
|
536
|
+
const fileNameFix = (entry) => pth.win32.basename(pth.win32.normalize(namefix(entry)));
|
|
537
|
+
|
|
538
|
+
filetools.fs.open(localPath, "r", function (err) {
|
|
539
|
+
if (err && err.code === "ENOENT") {
|
|
540
|
+
// callback is (err, done); errors belong in the first argument,
|
|
541
|
+
// otherwise addLocalFolderPromise treats the error as "done" and
|
|
542
|
+
// resolves instead of rejecting.
|
|
543
|
+
callback(Utils.Errors.FILE_NOT_FOUND(localPath), false);
|
|
544
|
+
} else if (err) {
|
|
545
|
+
callback(err, false);
|
|
546
|
+
} else {
|
|
547
|
+
filetools.findFilesAsync(localPath, function (err, fileEntries) {
|
|
548
|
+
if (err) return callback(err, false);
|
|
549
|
+
fileEntries = fileEntries.filter((dir) => filter(relPathFix(dir)));
|
|
550
|
+
// Nothing to add (empty folder or everything filtered out) is a
|
|
551
|
+
// success, not an error. Report done and stop, otherwise the
|
|
552
|
+
// reduce below runs and the callback fires a second time -- and
|
|
553
|
+
// signalling done=false left addLocalFolderPromise hanging.
|
|
554
|
+
if (!fileEntries.length) return callback(undefined, true);
|
|
555
|
+
|
|
556
|
+
setImmediate(
|
|
557
|
+
fileEntries.reverse().reduce(function (next, entry) {
|
|
558
|
+
return function (err, done) {
|
|
559
|
+
if (err || done === false) return setImmediate(next, err, false);
|
|
560
|
+
|
|
561
|
+
self.addLocalFileAsync(
|
|
562
|
+
{
|
|
563
|
+
localPath: entry,
|
|
564
|
+
zipPath: pth.dirname(relPathFix(entry)),
|
|
565
|
+
zipName: fileNameFix(entry)
|
|
566
|
+
},
|
|
567
|
+
next
|
|
568
|
+
);
|
|
569
|
+
};
|
|
570
|
+
}, callback)
|
|
571
|
+
);
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
|
+
});
|
|
575
|
+
},
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* Adds a local directory and all its nested files and directories to the archive
|
|
579
|
+
*
|
|
580
|
+
* @param {string} localPath - path where files will be extracted
|
|
581
|
+
* @param {object} props - optional properties
|
|
582
|
+
* @param {string} [props.zipPath] - optional path inside zip
|
|
583
|
+
* @param {RegExp|function} [props.filter] - optional RegExp or Function if files match will be included.
|
|
584
|
+
* @param {function|string} [props.namefix] - optional function to help fix filename
|
|
585
|
+
*/
|
|
586
|
+
addLocalFolderPromise: function (localPath, props) {
|
|
587
|
+
return new Promise((resolve, reject) => {
|
|
588
|
+
this.addLocalFolderAsync2(Object.assign({ localPath }, props), (err, done) => {
|
|
589
|
+
if (err) return reject(err);
|
|
590
|
+
if (done) resolve(this);
|
|
591
|
+
});
|
|
592
|
+
});
|
|
593
|
+
},
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* Allows you to create a entry (file or directory) in the zip file.
|
|
597
|
+
* If you want to create a directory the entryName must end in / and a null buffer should be provided.
|
|
598
|
+
* Comment and attributes are optional
|
|
599
|
+
*
|
|
600
|
+
* @param {string} entryName
|
|
601
|
+
* @param {Buffer | string} content - file content as buffer or utf8 coded string
|
|
602
|
+
* @param {string} [comment] - file comment
|
|
603
|
+
* @param {number | object} [attr] - number as unix file permissions, object as filesystem Stats object
|
|
604
|
+
*/
|
|
605
|
+
addFile: function (entryName, content, comment, attr) {
|
|
606
|
+
entryName = zipnamefix(entryName);
|
|
607
|
+
let entry = getEntry(entryName);
|
|
608
|
+
const update = entry != null;
|
|
609
|
+
|
|
610
|
+
// prepare new entry
|
|
611
|
+
if (!update) {
|
|
612
|
+
entry = new ZipEntry(opts);
|
|
613
|
+
entry.entryName = entryName;
|
|
614
|
+
}
|
|
615
|
+
entry.comment = comment || "";
|
|
616
|
+
|
|
617
|
+
const isStat = "object" === typeof attr && attr instanceof filetools.fs.Stats;
|
|
618
|
+
|
|
619
|
+
// last modification time from file stats
|
|
620
|
+
if (isStat) {
|
|
621
|
+
entry.header.time = attr.mtime;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
// Set file attribute
|
|
625
|
+
var fileattr = entry.isDirectory ? 0x10 : 0; // (MS-DOS directory flag)
|
|
626
|
+
|
|
627
|
+
// extended attributes field for Unix
|
|
628
|
+
// set file type either S_IFDIR / S_IFREG
|
|
629
|
+
let unix = entry.isDirectory ? 0x4000 : 0x8000;
|
|
630
|
+
|
|
631
|
+
if (isStat) {
|
|
632
|
+
// File attributes from file stats
|
|
633
|
+
unix |= 0xfff & attr.mode;
|
|
634
|
+
} else if ("number" === typeof attr) {
|
|
635
|
+
// attr from given attr values
|
|
636
|
+
unix |= 0xfff & attr;
|
|
637
|
+
} else {
|
|
638
|
+
// Default values:
|
|
639
|
+
unix |= entry.isDirectory ? 0o755 : 0o644; // permissions (drwxr-xr-x) or (-r-wr--r--)
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
fileattr = (fileattr | (unix << 16)) >>> 0; // add attributes
|
|
643
|
+
|
|
644
|
+
entry.attr = fileattr;
|
|
645
|
+
|
|
646
|
+
entry.setData(content);
|
|
647
|
+
if (!update) _zip.setEntry(entry);
|
|
648
|
+
|
|
649
|
+
return entry;
|
|
650
|
+
},
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* Returns an array of ZipEntry objects representing the files and folders inside the archive
|
|
654
|
+
*
|
|
655
|
+
* @param {string} [password]
|
|
656
|
+
* @returns Array
|
|
657
|
+
*/
|
|
658
|
+
getEntries: function (password) {
|
|
659
|
+
_zip.password = password;
|
|
660
|
+
return _zip ? _zip.entries : [];
|
|
661
|
+
},
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* Returns a ZipEntry object representing the file or folder specified by ``name``.
|
|
665
|
+
*
|
|
666
|
+
* @param {string} name
|
|
667
|
+
* @return ZipEntry
|
|
668
|
+
*/
|
|
669
|
+
getEntry: function (/**String*/ name) {
|
|
670
|
+
return getEntry(name);
|
|
671
|
+
},
|
|
672
|
+
|
|
673
|
+
getEntryCount: function () {
|
|
674
|
+
return _zip.getEntryCount();
|
|
675
|
+
},
|
|
676
|
+
|
|
677
|
+
forEach: function (callback) {
|
|
678
|
+
return _zip.forEach(callback);
|
|
679
|
+
},
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* Extracts the given entry to the given targetPath
|
|
683
|
+
* If the entry is a directory inside the archive, the entire directory and it's subdirectories will be extracted
|
|
684
|
+
*
|
|
685
|
+
* @param {string|ZipEntry} entry - ZipEntry object or String with the full path of the entry
|
|
686
|
+
* @param {string} targetPath - Target folder where to write the file
|
|
687
|
+
* @param {boolean} [maintainEntryPath=true] - If maintainEntryPath is true and the entry is inside a folder, the entry folder will be created in targetPath as well. Default is TRUE
|
|
688
|
+
* @param {boolean} [overwrite=false] - If the file already exists at the target path, the file will be overwriten if this is true.
|
|
689
|
+
* @param {boolean} [keepOriginalPermission=false] - The file will be set as the permission from the entry if this is true.
|
|
690
|
+
* @param {string} [outFileName] - String If set will override the filename of the extracted file (Only works if the entry is a file)
|
|
691
|
+
*
|
|
692
|
+
* @return Boolean
|
|
693
|
+
*/
|
|
694
|
+
extractEntryTo: function (entry, targetPath, maintainEntryPath, overwrite, keepOriginalPermission, outFileName) {
|
|
695
|
+
overwrite = get_Bool(false, overwrite);
|
|
696
|
+
keepOriginalPermission = get_Bool(false, keepOriginalPermission);
|
|
697
|
+
maintainEntryPath = get_Bool(true, maintainEntryPath);
|
|
698
|
+
outFileName = get_Str(keepOriginalPermission, outFileName);
|
|
699
|
+
|
|
700
|
+
var item = getEntry(entry);
|
|
701
|
+
if (!item) {
|
|
702
|
+
throw Utils.Errors.NO_ENTRY();
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
var entryName = canonical(item.entryName);
|
|
706
|
+
|
|
707
|
+
var target = sanitize(targetPath, outFileName && !item.isDirectory ? canonical(outFileName) : maintainEntryPath ? entryName : pth.basename(entryName));
|
|
708
|
+
|
|
709
|
+
if (item.isDirectory) {
|
|
710
|
+
var children = _zip.getEntryChildren(item);
|
|
711
|
+
children.forEach(function (child) {
|
|
712
|
+
if (child.isDirectory) return;
|
|
713
|
+
var content = child.getData();
|
|
714
|
+
if (!content) {
|
|
715
|
+
throw Utils.Errors.CANT_EXTRACT_FILE();
|
|
716
|
+
}
|
|
717
|
+
// When not maintaining the full entry path, keep each child's path
|
|
718
|
+
// relative to the extracted directory (drop the directory's own
|
|
719
|
+
// prefix) instead of flattening every file to its basename, which
|
|
720
|
+
// collapsed subdirectories together (issue #306).
|
|
721
|
+
var name = canonical(maintainEntryPath ? child.entryName : child.entryName.substring(item.entryName.length));
|
|
722
|
+
var childName = sanitize(targetPath, name);
|
|
723
|
+
// reject writing through a pre-existing symlink inside the target
|
|
724
|
+
filetools.assertPathSafe(targetPath, childName);
|
|
725
|
+
// The reverse operation for attr depend on method addFile()
|
|
726
|
+
const fileAttr = keepOriginalPermission ? child.header.fileAttr : undefined;
|
|
727
|
+
filetools.writeFileTo(childName, content, overwrite, fileAttr);
|
|
728
|
+
});
|
|
729
|
+
return true;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
var content = item.getData(_zip.password);
|
|
733
|
+
if (!content) throw Utils.Errors.CANT_EXTRACT_FILE();
|
|
734
|
+
|
|
735
|
+
// reject writing through a pre-existing symlink inside the target
|
|
736
|
+
filetools.assertPathSafe(targetPath, target);
|
|
737
|
+
|
|
738
|
+
if (filetools.fs.existsSync(target) && !overwrite) {
|
|
739
|
+
throw Utils.Errors.CANT_OVERRIDE();
|
|
740
|
+
}
|
|
741
|
+
// The reverse operation for attr depend on method addFile()
|
|
742
|
+
const fileAttr = keepOriginalPermission ? entry.header.fileAttr : undefined;
|
|
743
|
+
filetools.writeFileTo(target, content, overwrite, fileAttr);
|
|
744
|
+
|
|
745
|
+
return true;
|
|
746
|
+
},
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* Test the archive
|
|
750
|
+
* @param {string} [pass]
|
|
751
|
+
*/
|
|
752
|
+
test: function (pass) {
|
|
753
|
+
if (!_zip) {
|
|
754
|
+
return false;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
for (var entry of _zip.entries) {
|
|
758
|
+
try {
|
|
759
|
+
if (entry.isDirectory) {
|
|
760
|
+
continue;
|
|
761
|
+
}
|
|
762
|
+
// was `_zip.entries[entry]` (indexing the array with an entry
|
|
763
|
+
// object -> undefined -> threw -> test() always returned false)
|
|
764
|
+
var content = entry.getData(pass);
|
|
765
|
+
if (!content) {
|
|
766
|
+
return false;
|
|
767
|
+
}
|
|
768
|
+
} catch (err) {
|
|
769
|
+
return false;
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
return true;
|
|
773
|
+
},
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* Extracts the entire archive to the given location
|
|
777
|
+
*
|
|
778
|
+
* @param {string} targetPath Target location
|
|
779
|
+
* @param {boolean} [overwrite=false] If the file already exists at the target path, the file will be overwriten if this is true.
|
|
780
|
+
* Default is FALSE
|
|
781
|
+
* @param {boolean} [keepOriginalPermission=false] The file will be set as the permission from the entry if this is true.
|
|
782
|
+
* Default is FALSE
|
|
783
|
+
* @param {string|Buffer} [pass] password
|
|
784
|
+
*/
|
|
785
|
+
extractAllTo: function (targetPath, overwrite, keepOriginalPermission, pass) {
|
|
786
|
+
keepOriginalPermission = get_Bool(false, keepOriginalPermission);
|
|
787
|
+
pass = get_Str(keepOriginalPermission, pass);
|
|
788
|
+
overwrite = get_Bool(false, overwrite);
|
|
789
|
+
if (!_zip) throw Utils.Errors.NO_ZIP();
|
|
790
|
+
|
|
791
|
+
const dirEntries = [];
|
|
792
|
+
_zip.entries.forEach(function (entry) {
|
|
793
|
+
var entryName = sanitize(targetPath, canonical(entry.entryName));
|
|
794
|
+
// reject writing through a pre-existing symlink inside the target
|
|
795
|
+
filetools.assertPathSafe(targetPath, entryName);
|
|
796
|
+
if (entry.isDirectory) {
|
|
797
|
+
filetools.makeDir(entryName);
|
|
798
|
+
// defer restoring the directory permission until its files are written
|
|
799
|
+
if (keepOriginalPermission) dirEntries.push({ path: entryName, attr: entry.header.fileAttr });
|
|
800
|
+
return;
|
|
801
|
+
}
|
|
802
|
+
var content = entry.getData(pass);
|
|
803
|
+
if (!content) {
|
|
804
|
+
throw Utils.Errors.CANT_EXTRACT_FILE();
|
|
805
|
+
}
|
|
806
|
+
// The reverse operation for attr depend on method addFile()
|
|
807
|
+
const fileAttr = keepOriginalPermission ? entry.header.fileAttr : undefined;
|
|
808
|
+
filetools.writeFileTo(entryName, content, overwrite, fileAttr);
|
|
809
|
+
try {
|
|
810
|
+
// best-effort: an invalid date in the archive or a filesystem that
|
|
811
|
+
// rejects utimes must not fail extraction of already-written content (issue #379)
|
|
812
|
+
filetools.fs.utimesSync(entryName, entry.header.time, entry.header.time);
|
|
813
|
+
} catch (err) {
|
|
814
|
+
/* ignore timestamp failures */
|
|
815
|
+
}
|
|
816
|
+
});
|
|
817
|
+
|
|
818
|
+
applyDirAttributes(dirEntries);
|
|
819
|
+
},
|
|
820
|
+
|
|
821
|
+
/**
|
|
822
|
+
* Asynchronous extractAllTo
|
|
823
|
+
*
|
|
824
|
+
* @param {string} targetPath Target location
|
|
825
|
+
* @param {boolean} [overwrite=false] If the file already exists at the target path, the file will be overwriten if this is true.
|
|
826
|
+
* Default is FALSE
|
|
827
|
+
* @param {boolean} [keepOriginalPermission=false] The file will be set as the permission from the entry if this is true.
|
|
828
|
+
* Default is FALSE
|
|
829
|
+
* @param {function} callback The callback will be executed when all entries are extracted successfully or any error is thrown.
|
|
830
|
+
*/
|
|
831
|
+
extractAllToAsync: function (targetPath, overwrite, keepOriginalPermission, callback) {
|
|
832
|
+
callback = get_Fun(overwrite, keepOriginalPermission, callback);
|
|
833
|
+
keepOriginalPermission = get_Bool(false, keepOriginalPermission);
|
|
834
|
+
overwrite = get_Bool(false, overwrite);
|
|
835
|
+
if (!callback) {
|
|
836
|
+
return new Promise((resolve, reject) => {
|
|
837
|
+
this.extractAllToAsync(targetPath, overwrite, keepOriginalPermission, function (err) {
|
|
838
|
+
if (err) {
|
|
839
|
+
reject(err);
|
|
840
|
+
} else {
|
|
841
|
+
resolve(this);
|
|
842
|
+
}
|
|
843
|
+
});
|
|
844
|
+
});
|
|
845
|
+
}
|
|
846
|
+
if (!_zip) {
|
|
847
|
+
callback(Utils.Errors.NO_ZIP());
|
|
848
|
+
return;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
targetPath = pth.resolve(targetPath);
|
|
852
|
+
// convert entryName to
|
|
853
|
+
const getPath = (entry) => sanitize(targetPath, pth.normalize(canonical(entry.entryName)));
|
|
854
|
+
const getError = (msg, file) => new Error(msg + ': "' + file + '"');
|
|
855
|
+
|
|
856
|
+
// separate directories from files
|
|
857
|
+
const dirEntries = [];
|
|
858
|
+
const fileEntries = [];
|
|
859
|
+
_zip.entries.forEach((e) => {
|
|
860
|
+
if (e.isDirectory) {
|
|
861
|
+
dirEntries.push(e);
|
|
862
|
+
} else {
|
|
863
|
+
fileEntries.push(e);
|
|
864
|
+
}
|
|
865
|
+
});
|
|
866
|
+
|
|
867
|
+
// Create directory entries first synchronously
|
|
868
|
+
// this prevents race condition and assures folders are there before writing files
|
|
869
|
+
const deferredDirAttr = [];
|
|
870
|
+
for (const entry of dirEntries) {
|
|
871
|
+
const dirPath = getPath(entry);
|
|
872
|
+
// The reverse operation for attr depend on method addFile()
|
|
873
|
+
const dirAttr = keepOriginalPermission ? entry.header.fileAttr : undefined;
|
|
874
|
+
try {
|
|
875
|
+
// reject writing through a pre-existing symlink inside the target
|
|
876
|
+
filetools.assertPathSafe(targetPath, dirPath);
|
|
877
|
+
filetools.makeDir(dirPath);
|
|
878
|
+
} catch (er) {
|
|
879
|
+
callback(getError("Unable to create folder", dirPath));
|
|
880
|
+
continue;
|
|
881
|
+
}
|
|
882
|
+
// defer restoring the directory permission until its files are written:
|
|
883
|
+
// a restrictive mode applied now would block writing them
|
|
884
|
+
if (dirAttr) deferredDirAttr.push({ path: dirPath, attr: dirAttr });
|
|
885
|
+
try {
|
|
886
|
+
// in unix timestamp will change if files are later added to folder, but still.
|
|
887
|
+
// best-effort: a utimes failure must not abort extraction (issue #379)
|
|
888
|
+
filetools.fs.utimesSync(dirPath, entry.header.time, entry.header.time);
|
|
889
|
+
} catch (er) {
|
|
890
|
+
/* ignore timestamp failures */
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
// restore directory permissions once every file has been extracted
|
|
895
|
+
const done = (err) => {
|
|
896
|
+
if (!err) {
|
|
897
|
+
try {
|
|
898
|
+
applyDirAttributes(deferredDirAttr);
|
|
899
|
+
} catch (er) {
|
|
900
|
+
return callback(getError("Unable to set folder permissions", er.path || ""));
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
callback(err);
|
|
904
|
+
};
|
|
905
|
+
|
|
906
|
+
fileEntries.reverse().reduce(function (next, entry) {
|
|
907
|
+
return function (err) {
|
|
908
|
+
if (err) {
|
|
909
|
+
next(err);
|
|
910
|
+
} else {
|
|
911
|
+
const entryName = pth.normalize(canonical(entry.entryName));
|
|
912
|
+
const filePath = sanitize(targetPath, entryName);
|
|
913
|
+
try {
|
|
914
|
+
// reject writing through a pre-existing symlink inside the target
|
|
915
|
+
filetools.assertPathSafe(targetPath, filePath);
|
|
916
|
+
} catch (er) {
|
|
917
|
+
return next(er);
|
|
918
|
+
}
|
|
919
|
+
entry.getDataAsync(function (content, err_1) {
|
|
920
|
+
if (err_1) {
|
|
921
|
+
next(err_1);
|
|
922
|
+
} else if (!content) {
|
|
923
|
+
next(Utils.Errors.CANT_EXTRACT_FILE());
|
|
924
|
+
} else {
|
|
925
|
+
// The reverse operation for attr depend on method addFile()
|
|
926
|
+
const fileAttr = keepOriginalPermission ? entry.header.fileAttr : undefined;
|
|
927
|
+
filetools.writeFileToAsync(filePath, content, overwrite, fileAttr, function (succ) {
|
|
928
|
+
if (!succ) {
|
|
929
|
+
return next(getError("Unable to write file", filePath));
|
|
930
|
+
}
|
|
931
|
+
filetools.fs.utimes(filePath, entry.header.time, entry.header.time, function () {
|
|
932
|
+
// best-effort: a utimes failure must not abort extraction
|
|
933
|
+
// of already-written content (issue #379)
|
|
934
|
+
next();
|
|
935
|
+
});
|
|
936
|
+
});
|
|
937
|
+
}
|
|
938
|
+
});
|
|
939
|
+
}
|
|
940
|
+
};
|
|
941
|
+
}, done)();
|
|
942
|
+
},
|
|
943
|
+
|
|
944
|
+
/**
|
|
945
|
+
* Writes the newly created zip file to disk at the specified location or if a zip was opened and no ``targetFileName`` is provided, it will overwrite the opened zip
|
|
946
|
+
*
|
|
947
|
+
* @param {string} targetFileName
|
|
948
|
+
* @param {function} callback
|
|
949
|
+
*/
|
|
950
|
+
writeZip: function (targetFileName, callback) {
|
|
951
|
+
if (arguments.length === 1) {
|
|
952
|
+
if (typeof targetFileName === "function") {
|
|
953
|
+
callback = targetFileName;
|
|
954
|
+
targetFileName = "";
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
if (!targetFileName && opts.filename) {
|
|
959
|
+
targetFileName = opts.filename;
|
|
960
|
+
}
|
|
961
|
+
if (!targetFileName) return;
|
|
962
|
+
|
|
963
|
+
var zipData = _zip.compressToBuffer();
|
|
964
|
+
if (zipData) {
|
|
965
|
+
var ok = filetools.writeFileTo(targetFileName, zipData, true);
|
|
966
|
+
if (typeof callback === "function") callback(!ok ? new Error("failed") : null, "");
|
|
967
|
+
}
|
|
968
|
+
},
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
*
|
|
972
|
+
* @param {string} targetFileName
|
|
973
|
+
* @param {object} [props]
|
|
974
|
+
* @param {boolean} [props.overwrite=true] If the file already exists at the target path, the file will be overwriten if this is true.
|
|
975
|
+
* @param {boolean} [props.perm] The file will be set as the permission from the entry if this is true.
|
|
976
|
+
|
|
977
|
+
* @returns {Promise<void>}
|
|
978
|
+
*/
|
|
979
|
+
writeZipPromise: function (/**String*/ targetFileName, /* object */ props) {
|
|
980
|
+
const { overwrite, perm } = Object.assign({ overwrite: true }, props);
|
|
981
|
+
|
|
982
|
+
return new Promise((resolve, reject) => {
|
|
983
|
+
// find file name
|
|
984
|
+
if (!targetFileName && opts.filename) targetFileName = opts.filename;
|
|
985
|
+
if (!targetFileName) reject("ADM-ZIP: ZIP File Name Missing");
|
|
986
|
+
|
|
987
|
+
this.toBufferPromise().then((zipData) => {
|
|
988
|
+
const ret = (done) => (done ? resolve(done) : reject("ADM-ZIP: Wasn't able to write zip file"));
|
|
989
|
+
filetools.writeFileToAsync(targetFileName, zipData, overwrite, perm, ret);
|
|
990
|
+
}, reject);
|
|
991
|
+
});
|
|
992
|
+
},
|
|
993
|
+
|
|
994
|
+
/**
|
|
995
|
+
* @returns {Promise<Buffer>} A promise to the Buffer.
|
|
996
|
+
*/
|
|
997
|
+
toBufferPromise: function () {
|
|
998
|
+
return new Promise((resolve, reject) => {
|
|
999
|
+
_zip.toAsyncBuffer(resolve, reject);
|
|
1000
|
+
});
|
|
1001
|
+
},
|
|
1002
|
+
|
|
1003
|
+
/**
|
|
1004
|
+
* Returns the content of the entire zip file as a Buffer object
|
|
1005
|
+
*
|
|
1006
|
+
* @prop {function} [onSuccess]
|
|
1007
|
+
* @prop {function} [onFail]
|
|
1008
|
+
* @prop {function} [onItemStart]
|
|
1009
|
+
* @prop {function} [onItemEnd]
|
|
1010
|
+
* @returns {Buffer}
|
|
1011
|
+
*/
|
|
1012
|
+
toBuffer: function (onSuccess, onFail, onItemStart, onItemEnd) {
|
|
1013
|
+
if (typeof onSuccess === "function") {
|
|
1014
|
+
_zip.toAsyncBuffer(onSuccess, onFail, onItemStart, onItemEnd);
|
|
1015
|
+
return null;
|
|
1016
|
+
}
|
|
1017
|
+
return _zip.compressToBuffer();
|
|
1018
|
+
}
|
|
1019
|
+
};
|
|
1020
|
+
};
|