flucto 1.17.0 → 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 +45 -1
- package/README.md +81 -9
- package/dist-electron/cli/args.js +0 -2
- package/dist-electron/cli/args.js.map +1 -1
- package/dist-electron/cli/index.js +8 -6
- package/dist-electron/cli/index.js.map +1 -1
- package/dist-electron/cli/output.js +1 -2
- package/dist-electron/cli/output.js.map +1 -1
- package/dist-electron/main/index.js +34 -217
- package/dist-electron/main/index.js.map +1 -1
- package/dist-electron/main/search/reddit.js.map +1 -1
- package/dist-electron/main/services/binaryInstaller.js +89 -27
- package/dist-electron/main/services/binaryInstaller.js.map +1 -1
- package/dist-electron/main/services/cliUpdater.js +102 -83
- package/dist-electron/main/services/cliUpdater.js.map +1 -1
- package/dist-electron/main/services/mediaDownload.js +20 -23
- package/dist-electron/main/services/mediaDownload.js.map +1 -1
- package/dist-electron/main/services/platformAssets.js +13 -39
- package/dist-electron/main/services/platformAssets.js.map +1 -1
- package/dist-electron/main/services/releaseDownload.js +101 -0
- package/dist-electron/main/services/releaseDownload.js.map +1 -0
- package/dist-electron/main/updater.js +193 -21
- package/dist-electron/main/updater.js.map +1 -1
- package/node_modules/adm-zip/LICENSE +21 -0
- package/node_modules/adm-zip/README.md +90 -0
- package/node_modules/adm-zip/adm-zip.js +1020 -0
- package/node_modules/adm-zip/headers/entryHeader.js +396 -0
- package/node_modules/adm-zip/headers/index.js +2 -0
- package/node_modules/adm-zip/headers/mainHeader.js +177 -0
- package/node_modules/adm-zip/methods/deflater.js +33 -0
- package/node_modules/adm-zip/methods/index.js +3 -0
- package/node_modules/adm-zip/methods/inflater.js +64 -0
- package/node_modules/adm-zip/methods/zipcrypto.js +175 -0
- package/node_modules/adm-zip/package.json +56 -0
- package/node_modules/adm-zip/types.d.ts +223 -0
- package/node_modules/adm-zip/util/constants.js +142 -0
- package/node_modules/adm-zip/util/decoder.js +5 -0
- package/node_modules/adm-zip/util/errors.js +66 -0
- package/node_modules/adm-zip/util/fattr.js +76 -0
- package/node_modules/adm-zip/util/index.js +5 -0
- package/node_modules/adm-zip/util/utils.js +481 -0
- package/node_modules/adm-zip/zipEntry.js +415 -0
- package/node_modules/adm-zip/zipFile.js +466 -0
- package/node_modules/ajv/.runkit_example.js +23 -0
- package/node_modules/ajv/LICENSE +22 -0
- package/node_modules/ajv/README.md +207 -0
- package/node_modules/ajv/dist/2019.d.ts +19 -0
- package/node_modules/ajv/dist/2019.js +61 -0
- package/node_modules/ajv/dist/2019.js.map +1 -0
- package/node_modules/ajv/dist/2020.d.ts +19 -0
- package/node_modules/ajv/dist/2020.js +55 -0
- package/node_modules/ajv/dist/2020.js.map +1 -0
- package/node_modules/ajv/dist/ajv.d.ts +18 -0
- package/node_modules/ajv/dist/ajv.js +50 -0
- package/node_modules/ajv/dist/ajv.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
- package/node_modules/ajv/dist/compile/codegen/code.js +156 -0
- package/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
- package/node_modules/ajv/dist/compile/codegen/index.js +697 -0
- package/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
- package/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
- package/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
- package/node_modules/ajv/dist/compile/errors.d.ts +13 -0
- package/node_modules/ajv/dist/compile/errors.js +123 -0
- package/node_modules/ajv/dist/compile/errors.js.map +1 -0
- package/node_modules/ajv/dist/compile/index.d.ts +80 -0
- package/node_modules/ajv/dist/compile/index.js +242 -0
- package/node_modules/ajv/dist/compile/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
- package/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
- package/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.js +236 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
- package/node_modules/ajv/dist/compile/jtd/types.js +14 -0
- package/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
- package/node_modules/ajv/dist/compile/names.d.ts +20 -0
- package/node_modules/ajv/dist/compile/names.js +28 -0
- package/node_modules/ajv/dist/compile/names.js.map +1 -0
- package/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
- package/node_modules/ajv/dist/compile/ref_error.js +12 -0
- package/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
- package/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
- package/node_modules/ajv/dist/compile/resolve.js +155 -0
- package/node_modules/ajv/dist/compile/resolve.js.map +1 -0
- package/node_modules/ajv/dist/compile/rules.d.ts +28 -0
- package/node_modules/ajv/dist/compile/rules.js +26 -0
- package/node_modules/ajv/dist/compile/rules.js.map +1 -0
- package/node_modules/ajv/dist/compile/util.d.ts +40 -0
- package/node_modules/ajv/dist/compile/util.js +178 -0
- package/node_modules/ajv/dist/compile/util.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
- package/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
- package/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
- package/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
- package/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
- package/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
- package/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
- package/node_modules/ajv/dist/compile/validate/index.js +520 -0
- package/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
- package/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
- package/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
- package/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
- package/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
- package/node_modules/ajv/dist/core.d.ts +174 -0
- package/node_modules/ajv/dist/core.js +618 -0
- package/node_modules/ajv/dist/core.js.map +1 -0
- package/node_modules/ajv/dist/jtd.d.ts +47 -0
- package/node_modules/ajv/dist/jtd.js +72 -0
- package/node_modules/ajv/dist/jtd.js.map +1 -0
- package/node_modules/ajv/dist/refs/data.json +13 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
- package/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
- package/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
- package/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
- package/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
- package/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
- package/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/equal.js +7 -0
- package/node_modules/ajv/dist/runtime/equal.js.map +1 -0
- package/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
- package/node_modules/ajv/dist/runtime/parseJson.js +185 -0
- package/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
- package/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/quote.js +30 -0
- package/node_modules/ajv/dist/runtime/quote.js.map +1 -0
- package/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/re2.js +6 -0
- package/node_modules/ajv/dist/runtime/re2.js.map +1 -0
- package/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/timestamp.js +42 -0
- package/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
- package/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
- package/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
- package/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/uri.js +6 -0
- package/node_modules/ajv/dist/runtime/uri.js.map +1 -0
- package/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
- package/node_modules/ajv/dist/runtime/validation_error.js +11 -0
- package/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
- package/node_modules/ajv/dist/standalone/index.d.ts +6 -0
- package/node_modules/ajv/dist/standalone/index.js +90 -0
- package/node_modules/ajv/dist/standalone/index.js.map +1 -0
- package/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
- package/node_modules/ajv/dist/standalone/instance.js +35 -0
- package/node_modules/ajv/dist/standalone/instance.js.map +1 -0
- package/node_modules/ajv/dist/types/index.d.ts +183 -0
- package/node_modules/ajv/dist/types/index.js +3 -0
- package/node_modules/ajv/dist/types/index.js.map +1 -0
- package/node_modules/ajv/dist/types/json-schema.d.ts +125 -0
- package/node_modules/ajv/dist/types/json-schema.js +3 -0
- package/node_modules/ajv/dist/types/json-schema.js.map +1 -0
- package/node_modules/ajv/dist/types/jtd-schema.d.ts +174 -0
- package/node_modules/ajv/dist/types/jtd-schema.js +3 -0
- package/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
- package/node_modules/ajv/dist/vocabularies/code.js +131 -0
- package/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
- package/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
- package/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
- package/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/errors.js +3 -0
- package/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
- package/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
- package/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
- package/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/next.js +8 -0
- package/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
- package/node_modules/ajv/lib/2019.ts +81 -0
- package/node_modules/ajv/lib/2020.ts +75 -0
- package/node_modules/ajv/lib/ajv.ts +70 -0
- package/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
- package/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
- package/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
- package/node_modules/ajv/lib/compile/errors.ts +184 -0
- package/node_modules/ajv/lib/compile/index.ts +324 -0
- package/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
- package/node_modules/ajv/lib/compile/jtd/serialize.ts +277 -0
- package/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
- package/node_modules/ajv/lib/compile/names.ts +27 -0
- package/node_modules/ajv/lib/compile/ref_error.ts +13 -0
- package/node_modules/ajv/lib/compile/resolve.ts +149 -0
- package/node_modules/ajv/lib/compile/rules.ts +50 -0
- package/node_modules/ajv/lib/compile/util.ts +213 -0
- package/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
- package/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
- package/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
- package/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
- package/node_modules/ajv/lib/compile/validate/index.ts +582 -0
- package/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
- package/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
- package/node_modules/ajv/lib/core.ts +892 -0
- package/node_modules/ajv/lib/jtd.ts +132 -0
- package/node_modules/ajv/lib/refs/data.json +13 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
- package/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
- package/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
- package/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
- package/node_modules/ajv/lib/runtime/equal.ts +7 -0
- package/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
- package/node_modules/ajv/lib/runtime/quote.ts +31 -0
- package/node_modules/ajv/lib/runtime/re2.ts +6 -0
- package/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
- package/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
- package/node_modules/ajv/lib/runtime/uri.ts +6 -0
- package/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
- package/node_modules/ajv/lib/standalone/index.ts +100 -0
- package/node_modules/ajv/lib/standalone/instance.ts +36 -0
- package/node_modules/ajv/lib/types/index.ts +244 -0
- package/node_modules/ajv/lib/types/json-schema.ts +187 -0
- package/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
- package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
- package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
- package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
- package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
- package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
- package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
- package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
- package/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
- package/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
- package/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
- package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
- package/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
- package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
- package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
- package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
- package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
- package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
- package/node_modules/ajv/lib/vocabularies/code.ts +168 -0
- package/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
- package/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
- package/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
- package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
- package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
- package/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
- package/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
- package/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
- package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
- package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
- package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
- package/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
- package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
- package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
- package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
- package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
- package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
- package/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
- package/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
- package/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
- package/node_modules/ajv/lib/vocabularies/next.ts +8 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
- package/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
- package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
- package/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
- package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
- package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +39 -0
- package/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
- package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
- package/node_modules/ajv/package.json +126 -0
- package/node_modules/ajv-formats/LICENSE +21 -0
- package/node_modules/ajv-formats/README.md +125 -0
- package/node_modules/ajv-formats/dist/formats.d.ts +9 -0
- package/node_modules/ajv-formats/dist/formats.js +208 -0
- package/node_modules/ajv-formats/dist/formats.js.map +1 -0
- package/node_modules/ajv-formats/dist/index.d.ts +15 -0
- package/node_modules/ajv-formats/dist/index.js +37 -0
- package/node_modules/ajv-formats/dist/index.js.map +1 -0
- package/node_modules/ajv-formats/dist/limit.d.ts +10 -0
- package/node_modules/ajv-formats/dist/limit.js +69 -0
- package/node_modules/ajv-formats/dist/limit.js.map +1 -0
- package/node_modules/ajv-formats/package.json +74 -0
- package/node_modules/ajv-formats/src/formats.ts +269 -0
- package/node_modules/ajv-formats/src/index.ts +62 -0
- package/node_modules/ajv-formats/src/limit.ts +99 -0
- package/node_modules/argparse/LICENSE +254 -0
- package/node_modules/argparse/README.md +84 -0
- package/node_modules/argparse/argparse.js +3707 -0
- package/node_modules/argparse/lib/sub.js +67 -0
- package/node_modules/argparse/lib/textwrap.js +440 -0
- package/node_modules/argparse/package.json +31 -0
- package/node_modules/atomically/dist/constants.d.ts +15 -0
- package/node_modules/atomically/dist/constants.js +19 -0
- package/node_modules/atomically/dist/index.d.ts +15 -0
- package/node_modules/atomically/dist/index.js +209 -0
- package/node_modules/atomically/dist/types.d.ts +27 -0
- package/node_modules/atomically/dist/types.js +2 -0
- package/node_modules/atomically/dist/utils/lang.d.ts +6 -0
- package/node_modules/atomically/dist/utils/lang.js +16 -0
- package/node_modules/atomically/dist/utils/scheduler.d.ts +6 -0
- package/node_modules/atomically/dist/utils/scheduler.js +34 -0
- package/node_modules/atomically/dist/utils/temp.d.ts +11 -0
- package/node_modules/atomically/dist/utils/temp.js +59 -0
- package/node_modules/atomically/license +21 -0
- package/node_modules/atomically/package.json +42 -0
- package/node_modules/atomically/readme.md +147 -0
- package/node_modules/builder-util-runtime/LICENSE +22 -0
- package/node_modules/builder-util-runtime/out/CancellationToken.d.ts +17 -0
- package/node_modules/builder-util-runtime/out/CancellationToken.js +108 -0
- package/node_modules/builder-util-runtime/out/CancellationToken.js.map +1 -0
- package/node_modules/builder-util-runtime/out/MemoLazy.d.ts +10 -0
- package/node_modules/builder-util-runtime/out/MemoLazy.js +42 -0
- package/node_modules/builder-util-runtime/out/MemoLazy.js.map +1 -0
- package/node_modules/builder-util-runtime/out/ProgressCallbackTransform.d.ts +21 -0
- package/node_modules/builder-util-runtime/out/ProgressCallbackTransform.js +54 -0
- package/node_modules/builder-util-runtime/out/ProgressCallbackTransform.js.map +1 -0
- package/node_modules/builder-util-runtime/out/blockMapApi.d.ts +12 -0
- package/node_modules/builder-util-runtime/out/blockMapApi.js +3 -0
- package/node_modules/builder-util-runtime/out/blockMapApi.js.map +1 -0
- package/node_modules/builder-util-runtime/out/error.d.ts +1 -0
- package/node_modules/builder-util-runtime/out/error.js +9 -0
- package/node_modules/builder-util-runtime/out/error.js.map +1 -0
- package/node_modules/builder-util-runtime/out/httpExecutor.d.ts +86 -0
- package/node_modules/builder-util-runtime/out/httpExecutor.js +529 -0
- package/node_modules/builder-util-runtime/out/httpExecutor.js.map +1 -0
- package/node_modules/builder-util-runtime/out/index.d.ts +15 -0
- package/node_modules/builder-util-runtime/out/index.js +49 -0
- package/node_modules/builder-util-runtime/out/index.js.map +1 -0
- package/node_modules/builder-util-runtime/out/objects.d.ts +8 -0
- package/node_modules/builder-util-runtime/out/objects.js +106 -0
- package/node_modules/builder-util-runtime/out/objects.js.map +1 -0
- package/node_modules/builder-util-runtime/out/publishOptions.d.ts +396 -0
- package/node_modules/builder-util-runtime/out/publishOptions.js +76 -0
- package/node_modules/builder-util-runtime/out/publishOptions.js.map +1 -0
- package/node_modules/builder-util-runtime/out/retry.d.ts +9 -0
- package/node_modules/builder-util-runtime/out/retry.js +21 -0
- package/node_modules/builder-util-runtime/out/retry.js.map +1 -0
- package/node_modules/builder-util-runtime/out/rfc2253Parser.d.ts +1 -0
- package/node_modules/builder-util-runtime/out/rfc2253Parser.js +80 -0
- package/node_modules/builder-util-runtime/out/rfc2253Parser.js.map +1 -0
- package/node_modules/builder-util-runtime/out/updateInfo.d.ts +76 -0
- package/node_modules/builder-util-runtime/out/updateInfo.js +3 -0
- package/node_modules/builder-util-runtime/out/updateInfo.js.map +1 -0
- package/node_modules/builder-util-runtime/out/uuid.d.ts +21 -0
- package/node_modules/builder-util-runtime/out/uuid.js +200 -0
- package/node_modules/builder-util-runtime/out/uuid.js.map +1 -0
- package/node_modules/builder-util-runtime/out/xml.d.ts +15 -0
- package/node_modules/builder-util-runtime/out/xml.js +109 -0
- package/node_modules/builder-util-runtime/out/xml.js.map +1 -0
- package/node_modules/builder-util-runtime/package.json +29 -0
- package/node_modules/builder-util-runtime/readme.md +3 -0
- package/node_modules/conf/dist/source/index.d.ts +135 -0
- package/node_modules/conf/dist/source/index.js +672 -0
- package/node_modules/conf/dist/source/types.d.ts +311 -0
- package/node_modules/conf/dist/source/types.js +1 -0
- package/node_modules/conf/license +9 -0
- package/node_modules/conf/node_modules/semver/LICENSE +15 -0
- package/node_modules/conf/node_modules/semver/README.md +680 -0
- package/node_modules/conf/node_modules/semver/bin/semver.js +195 -0
- package/node_modules/conf/node_modules/semver/classes/comparator.js +143 -0
- package/node_modules/conf/node_modules/semver/classes/index.js +7 -0
- package/node_modules/conf/node_modules/semver/classes/range.js +577 -0
- package/node_modules/conf/node_modules/semver/classes/semver.js +350 -0
- package/node_modules/conf/node_modules/semver/functions/clean.js +8 -0
- package/node_modules/conf/node_modules/semver/functions/cmp.js +54 -0
- package/node_modules/conf/node_modules/semver/functions/coerce.js +62 -0
- package/node_modules/conf/node_modules/semver/functions/compare-build.js +9 -0
- package/node_modules/conf/node_modules/semver/functions/compare-loose.js +5 -0
- package/node_modules/conf/node_modules/semver/functions/compare.js +7 -0
- package/node_modules/conf/node_modules/semver/functions/diff.js +60 -0
- package/node_modules/conf/node_modules/semver/functions/eq.js +5 -0
- package/node_modules/conf/node_modules/semver/functions/gt.js +5 -0
- package/node_modules/conf/node_modules/semver/functions/gte.js +5 -0
- package/node_modules/conf/node_modules/semver/functions/inc.js +21 -0
- package/node_modules/conf/node_modules/semver/functions/lt.js +5 -0
- package/node_modules/conf/node_modules/semver/functions/lte.js +5 -0
- package/node_modules/conf/node_modules/semver/functions/major.js +5 -0
- package/node_modules/conf/node_modules/semver/functions/minor.js +5 -0
- package/node_modules/conf/node_modules/semver/functions/neq.js +5 -0
- package/node_modules/conf/node_modules/semver/functions/parse.js +18 -0
- package/node_modules/conf/node_modules/semver/functions/patch.js +5 -0
- package/node_modules/conf/node_modules/semver/functions/prerelease.js +8 -0
- package/node_modules/conf/node_modules/semver/functions/rcompare.js +5 -0
- package/node_modules/conf/node_modules/semver/functions/rsort.js +5 -0
- package/node_modules/conf/node_modules/semver/functions/satisfies.js +12 -0
- package/node_modules/conf/node_modules/semver/functions/sort.js +5 -0
- package/node_modules/conf/node_modules/semver/functions/truncate.js +48 -0
- package/node_modules/conf/node_modules/semver/functions/valid.js +8 -0
- package/node_modules/conf/node_modules/semver/index.js +93 -0
- package/node_modules/conf/node_modules/semver/internal/constants.js +37 -0
- package/node_modules/conf/node_modules/semver/internal/debug.js +11 -0
- package/node_modules/conf/node_modules/semver/internal/identifiers.js +29 -0
- package/node_modules/conf/node_modules/semver/internal/lrucache.js +42 -0
- package/node_modules/conf/node_modules/semver/internal/parse-options.js +17 -0
- package/node_modules/conf/node_modules/semver/internal/re.js +223 -0
- package/node_modules/conf/node_modules/semver/package.json +78 -0
- package/node_modules/conf/node_modules/semver/preload.js +4 -0
- package/node_modules/conf/node_modules/semver/range.bnf +17 -0
- package/node_modules/conf/node_modules/semver/ranges/gtr.js +6 -0
- package/node_modules/conf/node_modules/semver/ranges/intersects.js +9 -0
- package/node_modules/conf/node_modules/semver/ranges/ltr.js +6 -0
- package/node_modules/conf/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/node_modules/conf/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/node_modules/conf/node_modules/semver/ranges/min-version.js +63 -0
- package/node_modules/conf/node_modules/semver/ranges/outside.js +82 -0
- package/node_modules/conf/node_modules/semver/ranges/simplify.js +49 -0
- package/node_modules/conf/node_modules/semver/ranges/subset.js +249 -0
- package/node_modules/conf/node_modules/semver/ranges/to-comparators.js +10 -0
- package/node_modules/conf/node_modules/semver/ranges/valid.js +13 -0
- package/node_modules/conf/package.json +82 -0
- package/node_modules/conf/readme.md +599 -0
- package/node_modules/debounce-fn/index.d.ts +79 -0
- package/node_modules/debounce-fn/index.js +88 -0
- package/node_modules/debounce-fn/license +9 -0
- package/node_modules/debounce-fn/package.json +48 -0
- package/node_modules/debounce-fn/readme.md +73 -0
- package/node_modules/debug/LICENSE +20 -0
- package/node_modules/debug/README.md +481 -0
- package/node_modules/debug/package.json +64 -0
- package/node_modules/debug/src/browser.js +272 -0
- package/node_modules/debug/src/common.js +292 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -0
- package/node_modules/dot-prop/index.d.ts +262 -0
- package/node_modules/dot-prop/index.js +551 -0
- package/node_modules/dot-prop/license +9 -0
- package/node_modules/dot-prop/package.json +58 -0
- package/node_modules/dot-prop/readme.md +312 -0
- package/node_modules/dotenv/CHANGELOG.md +643 -0
- package/node_modules/dotenv/LICENSE +23 -0
- package/node_modules/dotenv/README-es.md +757 -0
- package/node_modules/dotenv/README.md +812 -0
- package/node_modules/dotenv/SECURITY.md +1 -0
- package/node_modules/dotenv/config.d.ts +1 -0
- package/node_modules/dotenv/config.js +9 -0
- package/node_modules/dotenv/lib/cli-options.js +17 -0
- package/node_modules/dotenv/lib/env-options.js +28 -0
- package/node_modules/dotenv/lib/main.d.ts +179 -0
- package/node_modules/dotenv/lib/main.js +423 -0
- package/node_modules/dotenv/package.json +62 -0
- package/node_modules/dotenv/skills/dotenv/SKILL.md +200 -0
- package/node_modules/dotenv/skills/dotenvx/SKILL.md +118 -0
- package/node_modules/electron-store/index.d.ts +64 -0
- package/node_modules/electron-store/index.js +83 -0
- package/node_modules/electron-store/license +9 -0
- package/node_modules/electron-store/package.json +72 -0
- package/node_modules/electron-store/readme.md +482 -0
- package/node_modules/electron-updater/LICENSE +22 -0
- package/node_modules/electron-updater/README.md +15 -0
- package/node_modules/electron-updater/node_modules/fs-extra/LICENSE +15 -0
- package/node_modules/electron-updater/node_modules/fs-extra/README.md +262 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/copy/copy-sync.js +169 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/copy/copy.js +235 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/copy/index.js +7 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/empty/index.js +39 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/ensure/file.js +69 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/ensure/index.js +23 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/ensure/link.js +64 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/ensure/symlink-paths.js +99 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/ensure/symlink-type.js +31 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/ensure/symlink.js +82 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/fs/index.js +128 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/index.js +16 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/json/index.js +16 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/json/output-json.js +12 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/mkdirs/make-dir.js +27 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/move/index.js +7 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/move/move-sync.js +54 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/move/move.js +75 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/output-file/index.js +40 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/path-exists/index.js +12 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/remove/index.js +22 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/remove/rimraf.js +302 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/util/stat.js +154 -0
- package/node_modules/electron-updater/node_modules/fs-extra/lib/util/utimes.js +26 -0
- package/node_modules/electron-updater/node_modules/fs-extra/package.json +67 -0
- package/node_modules/electron-updater/node_modules/semver/LICENSE +15 -0
- package/node_modules/electron-updater/node_modules/semver/README.md +665 -0
- package/node_modules/electron-updater/node_modules/semver/bin/semver.js +191 -0
- package/node_modules/electron-updater/node_modules/semver/classes/comparator.js +143 -0
- package/node_modules/electron-updater/node_modules/semver/classes/index.js +7 -0
- package/node_modules/electron-updater/node_modules/semver/classes/range.js +557 -0
- package/node_modules/electron-updater/node_modules/semver/classes/semver.js +333 -0
- package/node_modules/electron-updater/node_modules/semver/functions/clean.js +8 -0
- package/node_modules/electron-updater/node_modules/semver/functions/cmp.js +54 -0
- package/node_modules/electron-updater/node_modules/semver/functions/coerce.js +62 -0
- package/node_modules/electron-updater/node_modules/semver/functions/compare-build.js +9 -0
- package/node_modules/electron-updater/node_modules/semver/functions/compare-loose.js +5 -0
- package/node_modules/electron-updater/node_modules/semver/functions/compare.js +7 -0
- package/node_modules/electron-updater/node_modules/semver/functions/diff.js +60 -0
- package/node_modules/electron-updater/node_modules/semver/functions/eq.js +5 -0
- package/node_modules/electron-updater/node_modules/semver/functions/gt.js +5 -0
- package/node_modules/electron-updater/node_modules/semver/functions/gte.js +5 -0
- package/node_modules/electron-updater/node_modules/semver/functions/inc.js +21 -0
- package/node_modules/electron-updater/node_modules/semver/functions/lt.js +5 -0
- package/node_modules/electron-updater/node_modules/semver/functions/lte.js +5 -0
- package/node_modules/electron-updater/node_modules/semver/functions/major.js +5 -0
- package/node_modules/electron-updater/node_modules/semver/functions/minor.js +5 -0
- package/node_modules/electron-updater/node_modules/semver/functions/neq.js +5 -0
- package/node_modules/electron-updater/node_modules/semver/functions/parse.js +18 -0
- package/node_modules/electron-updater/node_modules/semver/functions/patch.js +5 -0
- package/node_modules/electron-updater/node_modules/semver/functions/prerelease.js +8 -0
- package/node_modules/electron-updater/node_modules/semver/functions/rcompare.js +5 -0
- package/node_modules/electron-updater/node_modules/semver/functions/rsort.js +5 -0
- package/node_modules/electron-updater/node_modules/semver/functions/satisfies.js +12 -0
- package/node_modules/electron-updater/node_modules/semver/functions/sort.js +5 -0
- package/node_modules/electron-updater/node_modules/semver/functions/valid.js +8 -0
- package/node_modules/electron-updater/node_modules/semver/index.js +91 -0
- package/node_modules/electron-updater/node_modules/semver/internal/constants.js +37 -0
- package/node_modules/electron-updater/node_modules/semver/internal/debug.js +11 -0
- package/node_modules/electron-updater/node_modules/semver/internal/identifiers.js +29 -0
- package/node_modules/electron-updater/node_modules/semver/internal/lrucache.js +42 -0
- package/node_modules/electron-updater/node_modules/semver/internal/parse-options.js +17 -0
- package/node_modules/electron-updater/node_modules/semver/internal/re.js +223 -0
- package/node_modules/electron-updater/node_modules/semver/package.json +78 -0
- package/node_modules/electron-updater/node_modules/semver/preload.js +4 -0
- package/node_modules/electron-updater/node_modules/semver/range.bnf +16 -0
- package/node_modules/electron-updater/node_modules/semver/ranges/gtr.js +6 -0
- package/node_modules/electron-updater/node_modules/semver/ranges/intersects.js +9 -0
- package/node_modules/electron-updater/node_modules/semver/ranges/ltr.js +6 -0
- package/node_modules/electron-updater/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/node_modules/electron-updater/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/node_modules/electron-updater/node_modules/semver/ranges/min-version.js +63 -0
- package/node_modules/electron-updater/node_modules/semver/ranges/outside.js +82 -0
- package/node_modules/electron-updater/node_modules/semver/ranges/simplify.js +49 -0
- package/node_modules/electron-updater/node_modules/semver/ranges/subset.js +249 -0
- package/node_modules/electron-updater/node_modules/semver/ranges/to-comparators.js +10 -0
- package/node_modules/electron-updater/node_modules/semver/ranges/valid.js +13 -0
- package/node_modules/electron-updater/out/AppAdapter.d.ts +22 -0
- package/node_modules/electron-updater/out/AppAdapter.js +21 -0
- package/node_modules/electron-updater/out/AppAdapter.js.map +1 -0
- package/node_modules/electron-updater/out/AppImageUpdater.d.ts +11 -0
- package/node_modules/electron-updater/out/AppImageUpdater.js +118 -0
- package/node_modules/electron-updater/out/AppImageUpdater.js.map +1 -0
- package/node_modules/electron-updater/out/AppUpdater.d.ts +241 -0
- package/node_modules/electron-updater/out/AppUpdater.js +735 -0
- package/node_modules/electron-updater/out/AppUpdater.js.map +1 -0
- package/node_modules/electron-updater/out/BaseUpdater.d.ts +33 -0
- package/node_modules/electron-updater/out/BaseUpdater.js +150 -0
- package/node_modules/electron-updater/out/BaseUpdater.js.map +1 -0
- package/node_modules/electron-updater/out/DebUpdater.d.ts +13 -0
- package/node_modules/electron-updater/out/DebUpdater.js +84 -0
- package/node_modules/electron-updater/out/DebUpdater.js.map +1 -0
- package/node_modules/electron-updater/out/DownloadedUpdateHelper.d.ts +35 -0
- package/node_modules/electron-updater/out/DownloadedUpdateHelper.js +169 -0
- package/node_modules/electron-updater/out/DownloadedUpdateHelper.js.map +1 -0
- package/node_modules/electron-updater/out/ElectronAppAdapter.d.ts +15 -0
- package/node_modules/electron-updater/out/ElectronAppAdapter.js +42 -0
- package/node_modules/electron-updater/out/ElectronAppAdapter.js.map +1 -0
- package/node_modules/electron-updater/out/LinuxUpdater.d.ts +29 -0
- package/node_modules/electron-updater/out/LinuxUpdater.js +119 -0
- package/node_modules/electron-updater/out/LinuxUpdater.js.map +1 -0
- package/node_modules/electron-updater/out/MacUpdater.d.ts +20 -0
- package/node_modules/electron-updater/out/MacUpdater.js +259 -0
- package/node_modules/electron-updater/out/MacUpdater.js.map +1 -0
- package/node_modules/electron-updater/out/NsisUpdater.d.ts +25 -0
- package/node_modules/electron-updater/out/NsisUpdater.js +178 -0
- package/node_modules/electron-updater/out/NsisUpdater.js.map +1 -0
- package/node_modules/electron-updater/out/PacmanUpdater.d.ts +13 -0
- package/node_modules/electron-updater/out/PacmanUpdater.js +67 -0
- package/node_modules/electron-updater/out/PacmanUpdater.js.map +1 -0
- package/node_modules/electron-updater/out/RpmUpdater.d.ts +13 -0
- package/node_modules/electron-updater/out/RpmUpdater.js +65 -0
- package/node_modules/electron-updater/out/RpmUpdater.js.map +1 -0
- package/node_modules/electron-updater/out/differentialDownloader/DataSplitter.d.ts +39 -0
- package/node_modules/electron-updater/out/differentialDownloader/DataSplitter.js +229 -0
- package/node_modules/electron-updater/out/differentialDownloader/DataSplitter.js.map +1 -0
- package/node_modules/electron-updater/out/differentialDownloader/DifferentialDownloader.d.ts +30 -0
- package/node_modules/electron-updater/out/differentialDownloader/DifferentialDownloader.js +268 -0
- package/node_modules/electron-updater/out/differentialDownloader/DifferentialDownloader.js.map +1 -0
- package/node_modules/electron-updater/out/differentialDownloader/FileWithEmbeddedBlockMapDifferentialDownloader.d.ts +4 -0
- package/node_modules/electron-updater/out/differentialDownloader/FileWithEmbeddedBlockMapDifferentialDownloader.js +37 -0
- package/node_modules/electron-updater/out/differentialDownloader/FileWithEmbeddedBlockMapDifferentialDownloader.js.map +1 -0
- package/node_modules/electron-updater/out/differentialDownloader/GenericDifferentialDownloader.d.ts +5 -0
- package/node_modules/electron-updater/out/differentialDownloader/GenericDifferentialDownloader.js +11 -0
- package/node_modules/electron-updater/out/differentialDownloader/GenericDifferentialDownloader.js.map +1 -0
- package/node_modules/electron-updater/out/differentialDownloader/ProgressDifferentialDownloadCallbackTransform.d.ts +31 -0
- package/node_modules/electron-updater/out/differentialDownloader/ProgressDifferentialDownloadCallbackTransform.js +90 -0
- package/node_modules/electron-updater/out/differentialDownloader/ProgressDifferentialDownloadCallbackTransform.js.map +1 -0
- package/node_modules/electron-updater/out/differentialDownloader/downloadPlanBuilder.d.ts +12 -0
- package/node_modules/electron-updater/out/differentialDownloader/downloadPlanBuilder.js +113 -0
- package/node_modules/electron-updater/out/differentialDownloader/downloadPlanBuilder.js.map +1 -0
- package/node_modules/electron-updater/out/differentialDownloader/multipleRangeDownloader.d.ts +6 -0
- package/node_modules/electron-updater/out/differentialDownloader/multipleRangeDownloader.js +114 -0
- package/node_modules/electron-updater/out/differentialDownloader/multipleRangeDownloader.js.map +1 -0
- package/node_modules/electron-updater/out/electronHttpExecutor.d.ts +16 -0
- package/node_modules/electron-updater/out/electronHttpExecutor.js +79 -0
- package/node_modules/electron-updater/out/electronHttpExecutor.js.map +1 -0
- package/node_modules/electron-updater/out/main.d.ts +19 -0
- package/node_modules/electron-updater/out/main.js +84 -0
- package/node_modules/electron-updater/out/main.js.map +1 -0
- package/node_modules/electron-updater/out/providerFactory.d.ts +5 -0
- package/node_modules/electron-updater/out/providerFactory.js +68 -0
- package/node_modules/electron-updater/out/providerFactory.js.map +1 -0
- package/node_modules/electron-updater/out/providers/BitbucketProvider.d.ts +14 -0
- package/node_modules/electron-updater/out/providers/BitbucketProvider.js +42 -0
- package/node_modules/electron-updater/out/providers/BitbucketProvider.js.map +1 -0
- package/node_modules/electron-updater/out/providers/GenericProvider.d.ts +13 -0
- package/node_modules/electron-updater/out/providers/GenericProvider.js +51 -0
- package/node_modules/electron-updater/out/providers/GenericProvider.js.map +1 -0
- package/node_modules/electron-updater/out/providers/GitHubProvider.d.ts +29 -0
- package/node_modules/electron-updater/out/providers/GitHubProvider.js +237 -0
- package/node_modules/electron-updater/out/providers/GitHubProvider.js.map +1 -0
- package/node_modules/electron-updater/out/providers/GitLabProvider.d.ts +58 -0
- package/node_modules/electron-updater/out/providers/GitLabProvider.js +281 -0
- package/node_modules/electron-updater/out/providers/GitLabProvider.js.map +1 -0
- package/node_modules/electron-updater/out/providers/KeygenProvider.d.ts +15 -0
- package/node_modules/electron-updater/out/providers/KeygenProvider.js +46 -0
- package/node_modules/electron-updater/out/providers/KeygenProvider.js.map +1 -0
- package/node_modules/electron-updater/out/providers/PrivateGitHubProvider.d.ts +26 -0
- package/node_modules/electron-updater/out/providers/PrivateGitHubProvider.js +95 -0
- package/node_modules/electron-updater/out/providers/PrivateGitHubProvider.js.map +1 -0
- package/node_modules/electron-updater/out/providers/Provider.d.ts +35 -0
- package/node_modules/electron-updater/out/providers/Provider.js +146 -0
- package/node_modules/electron-updater/out/providers/Provider.js.map +1 -0
- package/node_modules/electron-updater/out/types.d.ts +43 -0
- package/node_modules/electron-updater/out/types.js +42 -0
- package/node_modules/electron-updater/out/types.js.map +1 -0
- package/node_modules/electron-updater/out/util.d.ts +3 -0
- package/node_modules/electron-updater/out/util.js +33 -0
- package/node_modules/electron-updater/out/util.js.map +1 -0
- package/node_modules/electron-updater/out/windowsExecutableCodeSignatureVerifier.d.ts +2 -0
- package/node_modules/electron-updater/out/windowsExecutableCodeSignatureVerifier.js +142 -0
- package/node_modules/electron-updater/out/windowsExecutableCodeSignatureVerifier.js.map +1 -0
- package/node_modules/electron-updater/package.json +40 -0
- package/node_modules/env-paths/index.d.ts +90 -0
- package/node_modules/env-paths/index.js +68 -0
- package/node_modules/env-paths/license +9 -0
- package/node_modules/env-paths/package.json +48 -0
- package/node_modules/env-paths/readme.md +113 -0
- package/node_modules/fast-deep-equal/LICENSE +21 -0
- package/node_modules/fast-deep-equal/README.md +96 -0
- package/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
- package/node_modules/fast-deep-equal/es6/index.js +72 -0
- package/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
- package/node_modules/fast-deep-equal/es6/react.js +79 -0
- package/node_modules/fast-deep-equal/index.d.ts +4 -0
- package/node_modules/fast-deep-equal/index.js +46 -0
- package/node_modules/fast-deep-equal/package.json +61 -0
- package/node_modules/fast-deep-equal/react.d.ts +2 -0
- package/node_modules/fast-deep-equal/react.js +53 -0
- package/node_modules/fast-uri/.gitattributes +2 -0
- package/node_modules/fast-uri/.github/dependabot.yml +13 -0
- package/node_modules/fast-uri/.github/workflows/ci.yml +106 -0
- package/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
- package/node_modules/fast-uri/LICENSE +30 -0
- package/node_modules/fast-uri/README.md +152 -0
- package/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
- package/node_modules/fast-uri/benchmark/equal.mjs +51 -0
- package/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
- package/node_modules/fast-uri/benchmark/package.json +17 -0
- package/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
- package/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
- package/node_modules/fast-uri/eslint.config.js +6 -0
- package/node_modules/fast-uri/index.js +631 -0
- package/node_modules/fast-uri/lib/schemes.js +272 -0
- package/node_modules/fast-uri/lib/utils.js +747 -0
- package/node_modules/fast-uri/package.json +68 -0
- package/node_modules/fast-uri/test/ajv.test.js +43 -0
- package/node_modules/fast-uri/test/component-safe-serialization.test.js +163 -0
- package/node_modules/fast-uri/test/equal.test.js +145 -0
- package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +503 -0
- package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
- package/node_modules/fast-uri/test/ipv6-canonical.test.js +34 -0
- package/node_modules/fast-uri/test/ipv6-validation.test.js +124 -0
- package/node_modules/fast-uri/test/malformed-percent.test.js +77 -0
- package/node_modules/fast-uri/test/malformed-urn.test.js +61 -0
- package/node_modules/fast-uri/test/parse.test.js +327 -0
- package/node_modules/fast-uri/test/query-fragment-normalization.test.js +33 -0
- package/node_modules/fast-uri/test/reserved-path-normalization.test.js +109 -0
- package/node_modules/fast-uri/test/resolve.test.js +87 -0
- package/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
- package/node_modules/fast-uri/test/scheme-validation.test.js +124 -0
- package/node_modules/fast-uri/test/security-normalization.test.js +178 -0
- package/node_modules/fast-uri/test/security.test.js +431 -0
- package/node_modules/fast-uri/test/serialize.test.js +151 -0
- package/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
- package/node_modules/fast-uri/test/uri-js.test.js +912 -0
- package/node_modules/fast-uri/test/urn-full-input.test.js +29 -0
- package/node_modules/fast-uri/test/util.test.js +38 -0
- package/node_modules/fast-uri/test/websocket-query-preservation.test.js +24 -0
- package/node_modules/fast-uri/tsconfig.json +9 -0
- package/node_modules/fast-uri/types/index.d.ts +60 -0
- package/node_modules/fast-uri/types/index.test-d.ts +17 -0
- package/node_modules/graceful-fs/LICENSE +15 -0
- package/node_modules/graceful-fs/README.md +143 -0
- package/node_modules/graceful-fs/clone.js +23 -0
- package/node_modules/graceful-fs/graceful-fs.js +448 -0
- package/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/node_modules/graceful-fs/package.json +53 -0
- package/node_modules/graceful-fs/polyfills.js +355 -0
- package/node_modules/js-yaml/LICENSE +21 -0
- package/node_modules/js-yaml/README.md +233 -0
- package/node_modules/js-yaml/bin/js-yaml.js +117 -0
- package/node_modules/js-yaml/dist/js-yaml.js +3022 -0
- package/node_modules/js-yaml/dist/js-yaml.js.map +1 -0
- package/node_modules/js-yaml/dist/js-yaml.min.js +2 -0
- package/node_modules/js-yaml/dist/js-yaml.min.js.map +1 -0
- package/node_modules/js-yaml/dist/js-yaml.mjs +3082 -0
- package/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -0
- package/node_modules/js-yaml/index.js +44 -0
- package/node_modules/js-yaml/lib/common.js +50 -0
- package/node_modules/js-yaml/lib/dumper.js +937 -0
- package/node_modules/js-yaml/lib/exception.js +51 -0
- package/node_modules/js-yaml/lib/index_vite_proxy.tmp.mjs +37 -0
- package/node_modules/js-yaml/lib/loader.js +1803 -0
- package/node_modules/js-yaml/lib/schema/core.js +9 -0
- package/node_modules/js-yaml/lib/schema/default.js +20 -0
- package/node_modules/js-yaml/lib/schema/failsafe.js +14 -0
- package/node_modules/js-yaml/lib/schema/json.js +17 -0
- package/node_modules/js-yaml/lib/schema.js +109 -0
- package/node_modules/js-yaml/lib/snippet.js +96 -0
- package/node_modules/js-yaml/lib/type/binary.js +122 -0
- package/node_modules/js-yaml/lib/type/bool.js +35 -0
- package/node_modules/js-yaml/lib/type/float.js +99 -0
- package/node_modules/js-yaml/lib/type/int.js +142 -0
- package/node_modules/js-yaml/lib/type/map.js +8 -0
- package/node_modules/js-yaml/lib/type/merge.js +12 -0
- package/node_modules/js-yaml/lib/type/null.js +35 -0
- package/node_modules/js-yaml/lib/type/omap.js +45 -0
- package/node_modules/js-yaml/lib/type/pairs.js +50 -0
- package/node_modules/js-yaml/lib/type/seq.js +8 -0
- package/node_modules/js-yaml/lib/type/set.js +29 -0
- package/node_modules/js-yaml/lib/type/str.js +8 -0
- package/node_modules/js-yaml/lib/type/timestamp.js +88 -0
- package/node_modules/js-yaml/lib/type.js +66 -0
- package/node_modules/js-yaml/package.json +83 -0
- package/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
- package/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
- package/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
- package/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
- package/node_modules/json-schema-traverse/LICENSE +21 -0
- package/node_modules/json-schema-traverse/README.md +95 -0
- package/node_modules/json-schema-traverse/index.d.ts +40 -0
- package/node_modules/json-schema-traverse/index.js +93 -0
- package/node_modules/json-schema-traverse/package.json +43 -0
- package/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
- package/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
- package/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
- package/node_modules/json-schema-typed/LICENSE.md +57 -0
- package/node_modules/json-schema-typed/README.md +108 -0
- package/node_modules/json-schema-typed/draft_07.d.ts +882 -0
- package/node_modules/json-schema-typed/draft_07.js +328 -0
- package/node_modules/json-schema-typed/draft_2019_09.d.ts +1247 -0
- package/node_modules/json-schema-typed/draft_2019_09.js +349 -0
- package/node_modules/json-schema-typed/draft_2020_12.d.ts +1239 -0
- package/node_modules/json-schema-typed/draft_2020_12.js +352 -0
- package/node_modules/json-schema-typed/package.json +44 -0
- package/node_modules/jsonfile/LICENSE +15 -0
- package/node_modules/jsonfile/README.md +230 -0
- package/node_modules/jsonfile/index.js +88 -0
- package/node_modules/jsonfile/package.json +40 -0
- package/node_modules/jsonfile/utils.js +18 -0
- package/node_modules/lazy-val/out/main.d.ts +7 -0
- package/node_modules/lazy-val/out/main.js +26 -0
- package/node_modules/lazy-val/out/main.js.map +1 -0
- package/node_modules/lazy-val/package.json +21 -0
- package/node_modules/lazy-val/readme.md +11 -0
- package/node_modules/lodash.escaperegexp/LICENSE +47 -0
- package/node_modules/lodash.escaperegexp/README.md +18 -0
- package/node_modules/lodash.escaperegexp/index.js +166 -0
- package/node_modules/lodash.escaperegexp/package.json +17 -0
- package/node_modules/lodash.isequal/LICENSE +47 -0
- package/node_modules/lodash.isequal/README.md +18 -0
- package/node_modules/lodash.isequal/index.js +1848 -0
- package/node_modules/lodash.isequal/package.json +16 -0
- package/node_modules/mimic-function/index.d.ts +52 -0
- package/node_modules/mimic-function/index.js +72 -0
- package/node_modules/mimic-function/license +9 -0
- package/node_modules/mimic-function/package.json +49 -0
- package/node_modules/mimic-function/readme.md +80 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +38 -0
- package/node_modules/ms/readme.md +59 -0
- package/node_modules/playwright-core/LICENSE +202 -0
- package/node_modules/playwright-core/NOTICE +5 -0
- package/node_modules/playwright-core/README.md +3 -0
- package/node_modules/playwright-core/ThirdPartyNotices.txt +13 -0
- package/node_modules/playwright-core/bin/install_media_pack.ps1 +5 -0
- package/node_modules/playwright-core/bin/install_webkit_wsl.ps1 +33 -0
- package/node_modules/playwright-core/bin/reinstall_chrome_beta_linux.sh +42 -0
- package/node_modules/playwright-core/bin/reinstall_chrome_beta_mac.sh +13 -0
- package/node_modules/playwright-core/bin/reinstall_chrome_beta_win.ps1 +24 -0
- package/node_modules/playwright-core/bin/reinstall_chrome_stable_linux.sh +42 -0
- package/node_modules/playwright-core/bin/reinstall_chrome_stable_mac.sh +12 -0
- package/node_modules/playwright-core/bin/reinstall_chrome_stable_win.ps1 +24 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_beta_linux.sh +48 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_beta_mac.sh +11 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_beta_win.ps1 +23 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_dev_linux.sh +48 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_dev_mac.sh +11 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_dev_win.ps1 +23 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_stable_linux.sh +48 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_stable_mac.sh +11 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_stable_win.ps1 +24 -0
- package/node_modules/playwright-core/browsers.json +52 -0
- package/node_modules/playwright-core/cli.js +21 -0
- package/node_modules/playwright-core/index.d.ts +17 -0
- package/node_modules/playwright-core/index.js +17 -0
- package/node_modules/playwright-core/index.mjs +28 -0
- package/node_modules/playwright-core/lib/bootstrap.js +88 -0
- package/node_modules/playwright-core/lib/coreBundle.js +75813 -0
- package/node_modules/playwright-core/lib/entry/cliDaemon.js +5 -0
- package/node_modules/playwright-core/lib/entry/dashboardApp.js +3 -0
- package/node_modules/playwright-core/lib/entry/mcp.js +10 -0
- package/node_modules/playwright-core/lib/entry/oopBrowserDownload.js +3 -0
- package/node_modules/playwright-core/lib/package.js +50 -0
- package/node_modules/playwright-core/lib/server/chromium/appIcon.png +0 -0
- package/node_modules/playwright-core/lib/server/electron/loader.js +116 -0
- package/node_modules/playwright-core/lib/serverRegistry.js +1939 -0
- package/node_modules/playwright-core/lib/serverRegistry.js.LICENSE +65 -0
- package/node_modules/playwright-core/lib/tools/cli-client/channelSessions.js +141 -0
- package/node_modules/playwright-core/lib/tools/cli-client/cli.js +6 -0
- package/node_modules/playwright-core/lib/tools/cli-client/help.json +721 -0
- package/node_modules/playwright-core/lib/tools/cli-client/minimist.js +128 -0
- package/node_modules/playwright-core/lib/tools/cli-client/output.js +351 -0
- package/node_modules/playwright-core/lib/tools/cli-client/program.js +418 -0
- package/node_modules/playwright-core/lib/tools/cli-client/registry.js +180 -0
- package/node_modules/playwright-core/lib/tools/cli-client/session.js +259 -0
- package/node_modules/playwright-core/lib/tools/dashboard/appIcon.png +0 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/SKILL.md +425 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/element-attributes.md +23 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/playwright-tests.md +39 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/request-mocking.md +87 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/running-code.md +241 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/session-management.md +225 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/storage-state.md +275 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/test-generation.md +433 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/tracing.md +139 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/video-recording.md +143 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/SKILL.md +136 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/gallery-spec.md +144 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/migration.md +89 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/react.md +69 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/typing.md +173 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/vue.md +77 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-trace/SKILL.md +174 -0
- package/node_modules/playwright-core/lib/tools/utils/extension.js +112 -0
- package/node_modules/playwright-core/lib/tools/utils/socketConnection.js +108 -0
- package/node_modules/playwright-core/lib/utilsBundle.js +85357 -0
- package/node_modules/playwright-core/lib/utilsBundle.js.LICENSE +1890 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/codeMirrorModule--QdMvsKi.css +1 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/codeMirrorModule-CQ8RZGBm.js +32 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/codicon-DCmgc-ay.ttf +0 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/firefox-1bWoP6pv.svg +1 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/firefox-beta-k3eOH_eK.svg +1 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/firefox-nightly-Cp5nfeDT.svg +1 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/index-AwgwcYie.css +1 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/index-hRvO4yU2.js +12 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/safari-na3_-uQk.svg +1 -0
- package/node_modules/playwright-core/lib/vite/dashboard/index.html +29 -0
- package/node_modules/playwright-core/lib/vite/dashboard/playwright-logo.svg +24 -0
- package/node_modules/playwright-core/lib/vite/htmlReport/index.html +16 -0
- package/node_modules/playwright-core/lib/vite/htmlReport/report.css +2 -0
- package/node_modules/playwright-core/lib/vite/htmlReport/report.js +32 -0
- package/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule--QdMvsKi.css +1 -0
- package/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-CVQWJZAA.js +32 -0
- package/node_modules/playwright-core/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
- package/node_modules/playwright-core/lib/vite/recorder/assets/index-BZpYJZ-P.css +1 -0
- package/node_modules/playwright-core/lib/vite/recorder/assets/index-hrlLqLtq.js +129 -0
- package/node_modules/playwright-core/lib/vite/recorder/index.html +29 -0
- package/node_modules/playwright-core/lib/vite/recorder/playwright-logo.svg +9 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/codeMirrorModule-BbkfBe3n.js +32 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-Ds6CBOo0.js +182 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/urlMatch-L3liM589.js +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/xtermModule-DywYcAf8.js +7 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/codeMirrorModule.-QdMvsKi.css +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/defaultSettingsView.Bqk9acqE.css +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/index.B4cLoZK3.js +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/index.B_TqY17P.css +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/index.html +44 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/manifest.webmanifest +16 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/playwright-logo.svg +9 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/snapshot.B_Jk1wbt.js +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/snapshot.html +10 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/sw.bundle.js +4 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/uiMode.CU5KtEkS.js +5 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/uiMode.CyMfwkXJ.css +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/uiMode.html +18 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/xtermModule.kHJ-D0s7.css +1 -0
- package/node_modules/playwright-core/lib/webp_codec.LICENSE +173 -0
- package/node_modules/playwright-core/lib/webp_codec.wasm +0 -0
- package/node_modules/playwright-core/lib/xdg-open +1267 -0
- package/node_modules/playwright-core/package.json +34 -0
- package/node_modules/playwright-core/types/protocol.d.ts +24645 -0
- package/node_modules/playwright-core/types/structs.d.ts +52 -0
- package/node_modules/playwright-core/types/types.d.ts +26632 -0
- package/node_modules/require-from-string/index.js +34 -0
- package/node_modules/require-from-string/license +21 -0
- package/node_modules/require-from-string/package.json +28 -0
- package/node_modules/require-from-string/readme.md +56 -0
- package/node_modules/sax/LICENSE.md +55 -0
- package/node_modules/sax/README.md +227 -0
- package/node_modules/sax/lib/sax.js +1866 -0
- package/node_modules/sax/package.json +34 -0
- package/node_modules/stubborn-fs/dist/constants.d.ts +11 -0
- package/node_modules/stubborn-fs/dist/constants.js +16 -0
- package/node_modules/stubborn-fs/dist/handlers.d.ts +7 -0
- package/node_modules/stubborn-fs/dist/handlers.js +36 -0
- package/node_modules/stubborn-fs/dist/index.d.ts +274 -0
- package/node_modules/stubborn-fs/dist/index.js +52 -0
- package/node_modules/stubborn-fs/license +21 -0
- package/node_modules/stubborn-fs/package.json +32 -0
- package/node_modules/stubborn-fs/readme.md +69 -0
- package/node_modules/stubborn-utils/dist/attemptify_async.d.ts +3 -0
- package/node_modules/stubborn-utils/dist/attemptify_async.js +10 -0
- package/node_modules/stubborn-utils/dist/attemptify_sync.d.ts +3 -0
- package/node_modules/stubborn-utils/dist/attemptify_sync.js +15 -0
- package/node_modules/stubborn-utils/dist/constants.d.ts +2 -0
- package/node_modules/stubborn-utils/dist/constants.js +4 -0
- package/node_modules/stubborn-utils/dist/index.d.ts +9 -0
- package/node_modules/stubborn-utils/dist/index.js +7 -0
- package/node_modules/stubborn-utils/dist/retryify_async.d.ts +3 -0
- package/node_modules/stubborn-utils/dist/retryify_async.js +29 -0
- package/node_modules/stubborn-utils/dist/retryify_sync.d.ts +3 -0
- package/node_modules/stubborn-utils/dist/retryify_sync.js +25 -0
- package/node_modules/stubborn-utils/dist/types.d.ts +44 -0
- package/node_modules/stubborn-utils/dist/types.js +2 -0
- package/node_modules/stubborn-utils/license +21 -0
- package/node_modules/stubborn-utils/package.json +30 -0
- package/node_modules/stubborn-utils/readme.md +139 -0
- package/node_modules/tagged-tag/index.d.ts +3 -0
- package/node_modules/tagged-tag/license +9 -0
- package/node_modules/tagged-tag/package.json +36 -0
- package/node_modules/tagged-tag/readme.md +5 -0
- package/node_modules/tiny-typed-emitter/LICENSE +21 -0
- package/node_modules/tiny-typed-emitter/README.md +85 -0
- package/node_modules/tiny-typed-emitter/lib/index.d.ts +26 -0
- package/node_modules/tiny-typed-emitter/lib/index.js +3 -0
- package/node_modules/tiny-typed-emitter/package.json +37 -0
- package/node_modules/type-fest/index.d.ts +227 -0
- package/node_modules/type-fest/license-cc0 +121 -0
- package/node_modules/type-fest/license-mit +9 -0
- package/node_modules/type-fest/package.json +75 -0
- package/node_modules/type-fest/readme.md +1085 -0
- package/node_modules/type-fest/source/absolute.d.ts +52 -0
- package/node_modules/type-fest/source/all-extend.d.ts +121 -0
- package/node_modules/type-fest/source/all-union-fields.d.ts +91 -0
- package/node_modules/type-fest/source/and-all.d.ts +76 -0
- package/node_modules/type-fest/source/and.d.ts +82 -0
- package/node_modules/type-fest/source/array-element.d.ts +46 -0
- package/node_modules/type-fest/source/array-indices.d.ts +25 -0
- package/node_modules/type-fest/source/array-length.d.ts +36 -0
- package/node_modules/type-fest/source/array-reverse.d.ts +85 -0
- package/node_modules/type-fest/source/array-slice.d.ts +132 -0
- package/node_modules/type-fest/source/array-splice.d.ts +104 -0
- package/node_modules/type-fest/source/array-tail.d.ts +70 -0
- package/node_modules/type-fest/source/array-values.d.ts +24 -0
- package/node_modules/type-fest/source/arrayable.d.ts +31 -0
- package/node_modules/type-fest/source/async-return-type.d.ts +28 -0
- package/node_modules/type-fest/source/asyncify.d.ts +25 -0
- package/node_modules/type-fest/source/basic.d.ts +38 -0
- package/node_modules/type-fest/source/camel-case.d.ts +125 -0
- package/node_modules/type-fest/source/camel-cased-properties-deep.d.ts +106 -0
- package/node_modules/type-fest/source/camel-cased-properties.d.ts +49 -0
- package/node_modules/type-fest/source/characters.d.ts +67 -0
- package/node_modules/type-fest/source/conditional-except.d.ts +47 -0
- package/node_modules/type-fest/source/conditional-keys.d.ts +63 -0
- package/node_modules/type-fest/source/conditional-pick-deep.d.ts +122 -0
- package/node_modules/type-fest/source/conditional-pick.d.ts +48 -0
- package/node_modules/type-fest/source/conditional-simplify-deep.d.ts +73 -0
- package/node_modules/type-fest/source/conditional-simplify.d.ts +50 -0
- package/node_modules/type-fest/source/delimiter-case.d.ts +79 -0
- package/node_modules/type-fest/source/delimiter-cased-properties-deep.d.ts +115 -0
- package/node_modules/type-fest/source/delimiter-cased-properties.d.ts +52 -0
- package/node_modules/type-fest/source/distributed-omit.d.ts +96 -0
- package/node_modules/type-fest/source/distributed-pick.d.ts +92 -0
- package/node_modules/type-fest/source/empty-object.d.ts +51 -0
- package/node_modules/type-fest/source/entries.d.ts +64 -0
- package/node_modules/type-fest/source/entry.d.ts +67 -0
- package/node_modules/type-fest/source/exact.d.ts +73 -0
- package/node_modules/type-fest/source/except.d.ts +112 -0
- package/node_modules/type-fest/source/exclude-exactly.d.ts +57 -0
- package/node_modules/type-fest/source/exclude-rest-element.d.ts +40 -0
- package/node_modules/type-fest/source/exclude-strict.d.ts +51 -0
- package/node_modules/type-fest/source/exclusify-union.d.ts +147 -0
- package/node_modules/type-fest/source/extends-strict.d.ts +151 -0
- package/node_modules/type-fest/source/extract-exactly.d.ts +56 -0
- package/node_modules/type-fest/source/extract-rest-element.d.ts +30 -0
- package/node_modules/type-fest/source/extract-strict.d.ts +51 -0
- package/node_modules/type-fest/source/find-global-type.d.ts +68 -0
- package/node_modules/type-fest/source/fixed-length-array.d.ts +97 -0
- package/node_modules/type-fest/source/get.d.ts +227 -0
- package/node_modules/type-fest/source/global-this.d.ts +24 -0
- package/node_modules/type-fest/source/globals/index.d.ts +3 -0
- package/node_modules/type-fest/source/globals/observable-like.d.ts +78 -0
- package/node_modules/type-fest/source/greater-than-or-equal.d.ts +63 -0
- package/node_modules/type-fest/source/greater-than.d.ts +92 -0
- package/node_modules/type-fest/source/has-optional-keys.d.ts +23 -0
- package/node_modules/type-fest/source/has-readonly-keys.d.ts +23 -0
- package/node_modules/type-fest/source/has-required-keys.d.ts +61 -0
- package/node_modules/type-fest/source/has-writable-keys.d.ts +23 -0
- package/node_modules/type-fest/source/if-any.d.ts +28 -0
- package/node_modules/type-fest/source/if-empty-object.d.ts +30 -0
- package/node_modules/type-fest/source/if-never.d.ts +28 -0
- package/node_modules/type-fest/source/if-null.d.ts +28 -0
- package/node_modules/type-fest/source/if-unknown.d.ts +28 -0
- package/node_modules/type-fest/source/if.d.ts +102 -0
- package/node_modules/type-fest/source/includes.d.ts +24 -0
- package/node_modules/type-fest/source/int-closed-range.d.ts +45 -0
- package/node_modules/type-fest/source/int-range.d.ts +67 -0
- package/node_modules/type-fest/source/internal/array.d.ts +144 -0
- package/node_modules/type-fest/source/internal/characters.d.ts +65 -0
- package/node_modules/type-fest/source/internal/enforce-optional.d.ts +49 -0
- package/node_modules/type-fest/source/internal/index.d.ts +11 -0
- package/node_modules/type-fest/source/internal/keys.d.ts +100 -0
- package/node_modules/type-fest/source/internal/numeric.d.ts +143 -0
- package/node_modules/type-fest/source/internal/object.d.ts +301 -0
- package/node_modules/type-fest/source/internal/string.d.ts +127 -0
- package/node_modules/type-fest/source/internal/tuple.d.ts +79 -0
- package/node_modules/type-fest/source/internal/type.d.ts +171 -0
- package/node_modules/type-fest/source/invariant-of.d.ts +85 -0
- package/node_modules/type-fest/source/is-any.d.ts +31 -0
- package/node_modules/type-fest/source/is-equal.d.ts +41 -0
- package/node_modules/type-fest/source/is-float.d.ts +43 -0
- package/node_modules/type-fest/source/is-integer.d.ts +60 -0
- package/node_modules/type-fest/source/is-literal.d.ts +317 -0
- package/node_modules/type-fest/source/is-lowercase.d.ts +38 -0
- package/node_modules/type-fest/source/is-never.d.ts +56 -0
- package/node_modules/type-fest/source/is-null.d.ts +22 -0
- package/node_modules/type-fest/source/is-nullable.d.ts +30 -0
- package/node_modules/type-fest/source/is-optional-key-of.d.ts +51 -0
- package/node_modules/type-fest/source/is-optional.d.ts +28 -0
- package/node_modules/type-fest/source/is-readonly-key-of.d.ts +55 -0
- package/node_modules/type-fest/source/is-required-key-of.d.ts +51 -0
- package/node_modules/type-fest/source/is-tuple.d.ts +92 -0
- package/node_modules/type-fest/source/is-undefined.d.ts +22 -0
- package/node_modules/type-fest/source/is-union.d.ts +40 -0
- package/node_modules/type-fest/source/is-unknown.d.ts +43 -0
- package/node_modules/type-fest/source/is-uppercase.d.ts +38 -0
- package/node_modules/type-fest/source/is-writable-key-of.d.ts +51 -0
- package/node_modules/type-fest/source/iterable-element.d.ts +66 -0
- package/node_modules/type-fest/source/join.d.ts +79 -0
- package/node_modules/type-fest/source/json-value.d.ts +33 -0
- package/node_modules/type-fest/source/jsonifiable.d.ts +37 -0
- package/node_modules/type-fest/source/jsonify.d.ts +127 -0
- package/node_modules/type-fest/source/kebab-case.d.ts +47 -0
- package/node_modules/type-fest/source/kebab-cased-properties-deep.d.ts +72 -0
- package/node_modules/type-fest/source/kebab-cased-properties.d.ts +46 -0
- package/node_modules/type-fest/source/key-as-string.d.ts +27 -0
- package/node_modules/type-fest/source/keys-of-union.d.ts +44 -0
- package/node_modules/type-fest/source/last-array-element.d.ts +89 -0
- package/node_modules/type-fest/source/less-than-or-equal.d.ts +60 -0
- package/node_modules/type-fest/source/less-than.d.ts +60 -0
- package/node_modules/type-fest/source/literal-to-primitive-deep.d.ts +71 -0
- package/node_modules/type-fest/source/literal-to-primitive.d.ts +38 -0
- package/node_modules/type-fest/source/literal-union.d.ts +39 -0
- package/node_modules/type-fest/source/merge-deep.d.ts +495 -0
- package/node_modules/type-fest/source/merge-exclusive.d.ts +45 -0
- package/node_modules/type-fest/source/merge.d.ts +87 -0
- package/node_modules/type-fest/source/multidimensional-array.d.ts +38 -0
- package/node_modules/type-fest/source/multidimensional-readonly-array.d.ts +38 -0
- package/node_modules/type-fest/source/non-empty-object.d.ts +38 -0
- package/node_modules/type-fest/source/non-empty-string.d.ts +32 -0
- package/node_modules/type-fest/source/non-empty-tuple.d.ts +24 -0
- package/node_modules/type-fest/source/non-nullable-deep.d.ts +102 -0
- package/node_modules/type-fest/source/numeric.d.ts +226 -0
- package/node_modules/type-fest/source/object-merge.d.ts +199 -0
- package/node_modules/type-fest/source/omit-deep.d.ts +153 -0
- package/node_modules/type-fest/source/omit-index-signature.d.ts +98 -0
- package/node_modules/type-fest/source/opaque.d.ts +3 -0
- package/node_modules/type-fest/source/optional-keys-of.d.ts +46 -0
- package/node_modules/type-fest/source/optional.d.ts +31 -0
- package/node_modules/type-fest/source/or-all.d.ts +73 -0
- package/node_modules/type-fest/source/or.d.ts +82 -0
- package/node_modules/type-fest/source/override-properties.d.ts +43 -0
- package/node_modules/type-fest/source/package-json.d.ts +710 -0
- package/node_modules/type-fest/source/partial-deep.d.ts +157 -0
- package/node_modules/type-fest/source/partial-on-undefined-deep.d.ts +81 -0
- package/node_modules/type-fest/source/pascal-case.d.ts +52 -0
- package/node_modules/type-fest/source/pascal-cased-properties-deep.d.ts +79 -0
- package/node_modules/type-fest/source/pascal-cased-properties.d.ts +46 -0
- package/node_modules/type-fest/source/paths.d.ts +241 -0
- package/node_modules/type-fest/source/pick-deep.d.ts +139 -0
- package/node_modules/type-fest/source/pick-index-signature.d.ts +52 -0
- package/node_modules/type-fest/source/primitive.d.ts +15 -0
- package/node_modules/type-fest/source/promisable.d.ts +27 -0
- package/node_modules/type-fest/source/readonly-deep.d.ts +118 -0
- package/node_modules/type-fest/source/readonly-keys-of.d.ts +38 -0
- package/node_modules/type-fest/source/readonly-tuple.d.ts +34 -0
- package/node_modules/type-fest/source/remove-prefix.d.ts +114 -0
- package/node_modules/type-fest/source/remove-suffix.d.ts +114 -0
- package/node_modules/type-fest/source/replace.d.ts +87 -0
- package/node_modules/type-fest/source/require-all-or-none.d.ts +54 -0
- package/node_modules/type-fest/source/require-at-least-one.d.ts +48 -0
- package/node_modules/type-fest/source/require-exactly-one.d.ts +48 -0
- package/node_modules/type-fest/source/require-one-or-none.d.ts +49 -0
- package/node_modules/type-fest/source/required-deep.d.ts +78 -0
- package/node_modules/type-fest/source/required-keys-of.d.ts +38 -0
- package/node_modules/type-fest/source/schema.d.ts +127 -0
- package/node_modules/type-fest/source/screaming-snake-case.d.ts +31 -0
- package/node_modules/type-fest/source/set-field-type.d.ts +67 -0
- package/node_modules/type-fest/source/set-non-nullable-deep.d.ts +89 -0
- package/node_modules/type-fest/source/set-non-nullable.d.ts +34 -0
- package/node_modules/type-fest/source/set-optional.d.ts +42 -0
- package/node_modules/type-fest/source/set-parameter-type.d.ts +125 -0
- package/node_modules/type-fest/source/set-readonly.d.ts +40 -0
- package/node_modules/type-fest/source/set-required-deep.d.ts +65 -0
- package/node_modules/type-fest/source/set-required.d.ts +75 -0
- package/node_modules/type-fest/source/set-return-type.d.ts +31 -0
- package/node_modules/type-fest/source/shared-union-fields-deep.d.ts +180 -0
- package/node_modules/type-fest/source/shared-union-fields.d.ts +79 -0
- package/node_modules/type-fest/source/simplify-deep.d.ts +117 -0
- package/node_modules/type-fest/source/simplify.d.ts +61 -0
- package/node_modules/type-fest/source/single-key-object.d.ts +28 -0
- package/node_modules/type-fest/source/snake-case.d.ts +48 -0
- package/node_modules/type-fest/source/snake-cased-properties-deep.d.ts +72 -0
- package/node_modules/type-fest/source/snake-cased-properties.d.ts +46 -0
- package/node_modules/type-fest/source/some-extend.d.ts +115 -0
- package/node_modules/type-fest/source/split-on-rest-element.d.ts +108 -0
- package/node_modules/type-fest/source/split.d.ts +90 -0
- package/node_modules/type-fest/source/spread.d.ts +78 -0
- package/node_modules/type-fest/source/string-length.d.ts +38 -0
- package/node_modules/type-fest/source/string-repeat.d.ts +76 -0
- package/node_modules/type-fest/source/string-slice.d.ts +39 -0
- package/node_modules/type-fest/source/string-to-array.d.ts +97 -0
- package/node_modules/type-fest/source/string-to-number.d.ts +67 -0
- package/node_modules/type-fest/source/stringified.d.ts +25 -0
- package/node_modules/type-fest/source/structured-cloneable.d.ts +89 -0
- package/node_modules/type-fest/source/subtract.d.ts +87 -0
- package/node_modules/type-fest/source/sum.d.ts +82 -0
- package/node_modules/type-fest/source/tagged-union.d.ts +53 -0
- package/node_modules/type-fest/source/tagged.d.ts +261 -0
- package/node_modules/type-fest/source/trim.d.ts +29 -0
- package/node_modules/type-fest/source/tsconfig-json.d.ts +1356 -0
- package/node_modules/type-fest/source/tuple-of.d.ts +114 -0
- package/node_modules/type-fest/source/tuple-to-object.d.ts +47 -0
- package/node_modules/type-fest/source/tuple-to-union.d.ts +54 -0
- package/node_modules/type-fest/source/typed-array.d.ts +19 -0
- package/node_modules/type-fest/source/undefined-on-partial-deep.d.ts +83 -0
- package/node_modules/type-fest/source/union-length.d.ts +27 -0
- package/node_modules/type-fest/source/union-member.d.ts +65 -0
- package/node_modules/type-fest/source/union-to-intersection.d.ts +35 -0
- package/node_modules/type-fest/source/union-to-tuple.d.ts +49 -0
- package/node_modules/type-fest/source/unknown-array.d.ts +27 -0
- package/node_modules/type-fest/source/unknown-map.d.ts +26 -0
- package/node_modules/type-fest/source/unknown-record.d.ts +33 -0
- package/node_modules/type-fest/source/unknown-set.d.ts +26 -0
- package/node_modules/type-fest/source/unwrap-partial.d.ts +33 -0
- package/node_modules/type-fest/source/unwrap-required.d.ts +37 -0
- package/node_modules/type-fest/source/value-of.d.ts +24 -0
- package/node_modules/type-fest/source/words.d.ts +148 -0
- package/node_modules/type-fest/source/writable-deep.d.ts +84 -0
- package/node_modules/type-fest/source/writable-keys-of.d.ts +34 -0
- package/node_modules/type-fest/source/writable.d.ts +68 -0
- package/node_modules/type-fest/source/xor.d.ts +83 -0
- package/node_modules/uint8array-extras/index.d.ts +331 -0
- package/node_modules/uint8array-extras/index.js +318 -0
- package/node_modules/uint8array-extras/license +9 -0
- package/node_modules/uint8array-extras/package.json +54 -0
- package/node_modules/uint8array-extras/readme.md +318 -0
- package/node_modules/universalify/LICENSE +20 -0
- package/node_modules/universalify/README.md +76 -0
- package/node_modules/universalify/index.js +24 -0
- package/node_modules/universalify/package.json +34 -0
- package/node_modules/when-exit/dist/browser/index.d.ts +2 -0
- package/node_modules/when-exit/dist/browser/index.js +6 -0
- package/node_modules/when-exit/dist/browser/interceptor.d.ts +10 -0
- package/node_modules/when-exit/dist/browser/interceptor.js +27 -0
- package/node_modules/when-exit/dist/node/constants.d.ts +3 -0
- package/node_modules/when-exit/dist/node/constants.js +7 -0
- package/node_modules/when-exit/dist/node/index.d.ts +2 -0
- package/node_modules/when-exit/dist/node/index.js +6 -0
- package/node_modules/when-exit/dist/node/interceptor.d.ts +11 -0
- package/node_modules/when-exit/dist/node/interceptor.js +50 -0
- package/node_modules/when-exit/dist/node/signals.d.ts +2 -0
- package/node_modules/when-exit/dist/node/signals.js +13 -0
- package/node_modules/when-exit/dist/types.d.ts +3 -0
- package/node_modules/when-exit/dist/types.js +2 -0
- package/node_modules/when-exit/license +21 -0
- package/node_modules/when-exit/package.json +35 -0
- package/node_modules/when-exit/readme.md +41 -0
- package/package.json +27 -12
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
/* IMPORT */
|
|
2
|
+
import { once } from 'node:events';
|
|
3
|
+
import { createWriteStream } from 'node:fs';
|
|
4
|
+
import path from 'node:path';
|
|
5
|
+
import { Readable } from 'node:stream';
|
|
6
|
+
import fs from 'stubborn-fs';
|
|
7
|
+
import { DEFAULT_ENCODING, DEFAULT_FILE_MODE, DEFAULT_FOLDER_MODE, DEFAULT_READ_OPTIONS, DEFAULT_WRITE_OPTIONS, DEFAULT_USER_UID, DEFAULT_USER_GID, DEFAULT_INTERVAL_ASYNC, DEFAULT_TIMEOUT_ASYNC, DEFAULT_TIMEOUT_SYNC, IS_POSIX } from './constants.js';
|
|
8
|
+
import { isException, isFunction, isString, isUndefined } from './utils/lang.js';
|
|
9
|
+
import Scheduler from './utils/scheduler.js';
|
|
10
|
+
import Temp from './utils/temp.js';
|
|
11
|
+
function readFile(filePath, options = DEFAULT_READ_OPTIONS) {
|
|
12
|
+
if (isString(options))
|
|
13
|
+
return readFile(filePath, { encoding: options });
|
|
14
|
+
const timeout = options.timeout ?? DEFAULT_TIMEOUT_ASYNC;
|
|
15
|
+
const retryOptions = { timeout, interval: DEFAULT_INTERVAL_ASYNC };
|
|
16
|
+
return fs.retry.readFile(retryOptions)(filePath, options);
|
|
17
|
+
}
|
|
18
|
+
function readFileSync(filePath, options = DEFAULT_READ_OPTIONS) {
|
|
19
|
+
if (isString(options))
|
|
20
|
+
return readFileSync(filePath, { encoding: options });
|
|
21
|
+
const timeout = options.timeout ?? DEFAULT_TIMEOUT_SYNC;
|
|
22
|
+
const retryOptions = { timeout };
|
|
23
|
+
return fs.retry.readFileSync(retryOptions)(filePath, options);
|
|
24
|
+
}
|
|
25
|
+
function writeFile(filePath, data, options, callback) {
|
|
26
|
+
if (isFunction(options))
|
|
27
|
+
return writeFile(filePath, data, DEFAULT_WRITE_OPTIONS, options);
|
|
28
|
+
const promise = writeFileAsync(filePath, data, options);
|
|
29
|
+
if (callback)
|
|
30
|
+
promise.then(callback, callback);
|
|
31
|
+
return promise;
|
|
32
|
+
}
|
|
33
|
+
async function writeFileAsync(filePath, data, options = DEFAULT_WRITE_OPTIONS) {
|
|
34
|
+
if (isString(options))
|
|
35
|
+
return writeFileAsync(filePath, data, { encoding: options });
|
|
36
|
+
const timeout = options.timeout ?? DEFAULT_TIMEOUT_ASYNC;
|
|
37
|
+
const retryOptions = { timeout, interval: DEFAULT_INTERVAL_ASYNC };
|
|
38
|
+
let schedulerCustomDisposer = null;
|
|
39
|
+
let schedulerDisposer = null;
|
|
40
|
+
let tempDisposer = null;
|
|
41
|
+
let tempPath = null;
|
|
42
|
+
let fd = null;
|
|
43
|
+
try {
|
|
44
|
+
if (options.schedule)
|
|
45
|
+
schedulerCustomDisposer = await options.schedule(filePath);
|
|
46
|
+
schedulerDisposer = await Scheduler.schedule(filePath);
|
|
47
|
+
const filePathReal = await fs.attempt.realpath(filePath);
|
|
48
|
+
const filePathExists = !!filePathReal;
|
|
49
|
+
filePath = filePathReal || filePath;
|
|
50
|
+
[tempPath, tempDisposer] = Temp.get(filePath, options.tmpCreate || Temp.create, !(options.tmpPurge === false));
|
|
51
|
+
const useStatChown = IS_POSIX && isUndefined(options.chown);
|
|
52
|
+
const useStatMode = isUndefined(options.mode);
|
|
53
|
+
if (filePathExists && (useStatChown || useStatMode)) {
|
|
54
|
+
const stats = await fs.attempt.stat(filePath);
|
|
55
|
+
if (stats) {
|
|
56
|
+
options = { ...options };
|
|
57
|
+
if (useStatChown) {
|
|
58
|
+
options.chown = { uid: stats.uid, gid: stats.gid };
|
|
59
|
+
}
|
|
60
|
+
if (useStatMode) {
|
|
61
|
+
options.mode = stats.mode;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (!filePathExists) {
|
|
66
|
+
const parentPath = path.dirname(filePath);
|
|
67
|
+
await fs.attempt.mkdir(parentPath, {
|
|
68
|
+
mode: DEFAULT_FOLDER_MODE,
|
|
69
|
+
recursive: true
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
fd = await fs.retry.open(retryOptions)(tempPath, 'w', options.mode || DEFAULT_FILE_MODE);
|
|
73
|
+
if (options.tmpCreated) {
|
|
74
|
+
options.tmpCreated(tempPath);
|
|
75
|
+
}
|
|
76
|
+
if (isString(data)) {
|
|
77
|
+
await fs.retry.write(retryOptions)(fd, data, 0, options.encoding || DEFAULT_ENCODING);
|
|
78
|
+
}
|
|
79
|
+
else if (data instanceof Readable) {
|
|
80
|
+
const writeStream = createWriteStream(tempPath, { fd, autoClose: false });
|
|
81
|
+
const finishPromise = once(writeStream, 'finish');
|
|
82
|
+
data.pipe(writeStream);
|
|
83
|
+
await finishPromise;
|
|
84
|
+
}
|
|
85
|
+
else if (!isUndefined(data)) {
|
|
86
|
+
await fs.retry.write(retryOptions)(fd, data, 0, data.length, 0);
|
|
87
|
+
}
|
|
88
|
+
if (options.fsync !== false) {
|
|
89
|
+
if (options.fsyncWait !== false) {
|
|
90
|
+
await fs.retry.fsync(retryOptions)(fd);
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
fs.attempt.fsync(fd);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
await fs.retry.close(retryOptions)(fd);
|
|
97
|
+
fd = null;
|
|
98
|
+
if (options.chown && (options.chown.uid !== DEFAULT_USER_UID || options.chown.gid !== DEFAULT_USER_GID)) {
|
|
99
|
+
await fs.attempt.chown(tempPath, options.chown.uid, options.chown.gid);
|
|
100
|
+
}
|
|
101
|
+
if (options.mode && options.mode !== DEFAULT_FILE_MODE) {
|
|
102
|
+
await fs.attempt.chmod(tempPath, options.mode);
|
|
103
|
+
}
|
|
104
|
+
try {
|
|
105
|
+
await fs.retry.rename(retryOptions)(tempPath, filePath);
|
|
106
|
+
}
|
|
107
|
+
catch (error) {
|
|
108
|
+
if (!isException(error))
|
|
109
|
+
throw error;
|
|
110
|
+
if (error.code !== 'ENAMETOOLONG')
|
|
111
|
+
throw error;
|
|
112
|
+
await fs.retry.rename(retryOptions)(tempPath, Temp.truncate(filePath));
|
|
113
|
+
}
|
|
114
|
+
tempDisposer();
|
|
115
|
+
tempPath = null;
|
|
116
|
+
}
|
|
117
|
+
finally {
|
|
118
|
+
if (fd)
|
|
119
|
+
await fs.attempt.close(fd);
|
|
120
|
+
if (tempPath)
|
|
121
|
+
Temp.purge(tempPath);
|
|
122
|
+
if (schedulerCustomDisposer)
|
|
123
|
+
schedulerCustomDisposer();
|
|
124
|
+
if (schedulerDisposer)
|
|
125
|
+
schedulerDisposer();
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
function writeFileSync(filePath, data, options = DEFAULT_WRITE_OPTIONS) {
|
|
129
|
+
if (isString(options))
|
|
130
|
+
return writeFileSync(filePath, data, { encoding: options });
|
|
131
|
+
const timeout = options.timeout ?? DEFAULT_TIMEOUT_SYNC;
|
|
132
|
+
const retryOptions = { timeout };
|
|
133
|
+
let tempDisposer = null;
|
|
134
|
+
let tempPath = null;
|
|
135
|
+
let fd = null;
|
|
136
|
+
try {
|
|
137
|
+
const filePathReal = fs.attempt.realpathSync(filePath);
|
|
138
|
+
const filePathExists = !!filePathReal;
|
|
139
|
+
filePath = filePathReal || filePath;
|
|
140
|
+
[tempPath, tempDisposer] = Temp.get(filePath, options.tmpCreate || Temp.create, !(options.tmpPurge === false));
|
|
141
|
+
const useStatChown = IS_POSIX && isUndefined(options.chown);
|
|
142
|
+
const useStatMode = isUndefined(options.mode);
|
|
143
|
+
if (filePathExists && (useStatChown || useStatMode)) {
|
|
144
|
+
const stats = fs.attempt.statSync(filePath);
|
|
145
|
+
if (stats) {
|
|
146
|
+
options = { ...options };
|
|
147
|
+
if (useStatChown) {
|
|
148
|
+
options.chown = { uid: stats.uid, gid: stats.gid };
|
|
149
|
+
}
|
|
150
|
+
if (useStatMode) {
|
|
151
|
+
options.mode = stats.mode;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
if (!filePathExists) {
|
|
156
|
+
const parentPath = path.dirname(filePath);
|
|
157
|
+
fs.attempt.mkdirSync(parentPath, {
|
|
158
|
+
mode: DEFAULT_FOLDER_MODE,
|
|
159
|
+
recursive: true
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
fd = fs.retry.openSync(retryOptions)(tempPath, 'w', options.mode || DEFAULT_FILE_MODE);
|
|
163
|
+
if (options.tmpCreated) {
|
|
164
|
+
options.tmpCreated(tempPath);
|
|
165
|
+
}
|
|
166
|
+
if (isString(data)) {
|
|
167
|
+
fs.retry.writeSync(retryOptions)(fd, data, 0, options.encoding || DEFAULT_ENCODING);
|
|
168
|
+
}
|
|
169
|
+
else if (!isUndefined(data)) {
|
|
170
|
+
fs.retry.writeSync(retryOptions)(fd, data, 0, data.length, 0);
|
|
171
|
+
}
|
|
172
|
+
if (options.fsync !== false) {
|
|
173
|
+
if (options.fsyncWait !== false) {
|
|
174
|
+
fs.retry.fsyncSync(retryOptions)(fd);
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
fs.attempt.fsync(fd);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
fs.retry.closeSync(retryOptions)(fd);
|
|
181
|
+
fd = null;
|
|
182
|
+
if (options.chown && (options.chown.uid !== DEFAULT_USER_UID || options.chown.gid !== DEFAULT_USER_GID)) {
|
|
183
|
+
fs.attempt.chownSync(tempPath, options.chown.uid, options.chown.gid);
|
|
184
|
+
}
|
|
185
|
+
if (options.mode && options.mode !== DEFAULT_FILE_MODE) {
|
|
186
|
+
fs.attempt.chmodSync(tempPath, options.mode);
|
|
187
|
+
}
|
|
188
|
+
try {
|
|
189
|
+
fs.retry.renameSync(retryOptions)(tempPath, filePath);
|
|
190
|
+
}
|
|
191
|
+
catch (error) {
|
|
192
|
+
if (!isException(error))
|
|
193
|
+
throw error;
|
|
194
|
+
if (error.code !== 'ENAMETOOLONG')
|
|
195
|
+
throw error;
|
|
196
|
+
fs.retry.renameSync(retryOptions)(tempPath, Temp.truncate(filePath));
|
|
197
|
+
}
|
|
198
|
+
tempDisposer();
|
|
199
|
+
tempPath = null;
|
|
200
|
+
}
|
|
201
|
+
finally {
|
|
202
|
+
if (fd)
|
|
203
|
+
fs.attempt.closeSync(fd);
|
|
204
|
+
if (tempPath)
|
|
205
|
+
Temp.purge(tempPath);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
/* EXPORT */
|
|
209
|
+
export { readFile, readFileSync, writeFile, writeFileSync };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
type Callback = (error: Exception | void) => void;
|
|
2
|
+
type Data = Uint8Array | string | undefined;
|
|
3
|
+
type Disposer = () => void;
|
|
4
|
+
type Encoding = 'ascii' | 'base64' | 'binary' | 'hex' | 'latin1' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2';
|
|
5
|
+
type Exception = NodeJS.ErrnoException;
|
|
6
|
+
type Path = string;
|
|
7
|
+
type ReadOptions = {
|
|
8
|
+
encoding?: Encoding | null;
|
|
9
|
+
mode?: string | number | false;
|
|
10
|
+
timeout?: number;
|
|
11
|
+
};
|
|
12
|
+
type WriteOptions = {
|
|
13
|
+
chown?: {
|
|
14
|
+
gid: number;
|
|
15
|
+
uid: number;
|
|
16
|
+
} | false;
|
|
17
|
+
encoding?: Encoding | null;
|
|
18
|
+
fsync?: boolean;
|
|
19
|
+
fsyncWait?: boolean;
|
|
20
|
+
mode?: string | number | false;
|
|
21
|
+
schedule?: (filePath: string) => Promise<Disposer>;
|
|
22
|
+
timeout?: number;
|
|
23
|
+
tmpCreate?: (filePath: string) => string;
|
|
24
|
+
tmpCreated?: (filePath: string) => void;
|
|
25
|
+
tmpPurge?: boolean;
|
|
26
|
+
};
|
|
27
|
+
export type { Callback, Data, Disposer, Encoding, Exception, Path, ReadOptions, WriteOptions };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Exception } from '../types.js';
|
|
2
|
+
declare const isException: (value: unknown) => value is Exception;
|
|
3
|
+
declare const isFunction: (value: unknown) => value is Function;
|
|
4
|
+
declare const isString: (value: unknown) => value is string;
|
|
5
|
+
declare const isUndefined: (value: unknown) => value is undefined;
|
|
6
|
+
export { isException, isFunction, isString, isUndefined };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* IMPORT */
|
|
2
|
+
/* MAIN */
|
|
3
|
+
const isException = (value) => {
|
|
4
|
+
return (value instanceof Error) && ('code' in value);
|
|
5
|
+
};
|
|
6
|
+
const isFunction = (value) => {
|
|
7
|
+
return (typeof value === 'function');
|
|
8
|
+
};
|
|
9
|
+
const isString = (value) => {
|
|
10
|
+
return (typeof value === 'string');
|
|
11
|
+
};
|
|
12
|
+
const isUndefined = (value) => {
|
|
13
|
+
return (value === undefined);
|
|
14
|
+
};
|
|
15
|
+
/* EXPORT */
|
|
16
|
+
export { isException, isFunction, isString, isUndefined };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* IMPORT */
|
|
2
|
+
/* HELPERS */
|
|
3
|
+
const Queues = {};
|
|
4
|
+
/* MAIN */
|
|
5
|
+
//TODO: Maybe publish this as a standalone package
|
|
6
|
+
const Scheduler = {
|
|
7
|
+
/* API */
|
|
8
|
+
next: (id) => {
|
|
9
|
+
const queue = Queues[id];
|
|
10
|
+
if (!queue)
|
|
11
|
+
return;
|
|
12
|
+
queue.shift();
|
|
13
|
+
const job = queue[0];
|
|
14
|
+
if (job) {
|
|
15
|
+
job(() => Scheduler.next(id));
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
delete Queues[id];
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
schedule: (id) => {
|
|
22
|
+
return new Promise(resolve => {
|
|
23
|
+
let queue = Queues[id];
|
|
24
|
+
if (!queue)
|
|
25
|
+
queue = Queues[id] = [];
|
|
26
|
+
queue.push(resolve);
|
|
27
|
+
if (queue.length > 1)
|
|
28
|
+
return;
|
|
29
|
+
resolve(() => Scheduler.next(id));
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
/* EXPORT */
|
|
34
|
+
export default Scheduler;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Disposer } from '../types.js';
|
|
2
|
+
declare const Temp: {
|
|
3
|
+
store: Record<string, boolean>;
|
|
4
|
+
create: (filePath: string) => string;
|
|
5
|
+
get: (filePath: string, creator: (filePath: string) => string, purge?: boolean) => [string, Disposer];
|
|
6
|
+
purge: (filePath: string) => void;
|
|
7
|
+
purgeSync: (filePath: string) => void;
|
|
8
|
+
purgeSyncAll: () => void;
|
|
9
|
+
truncate: (filePath: string) => string;
|
|
10
|
+
};
|
|
11
|
+
export default Temp;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/* IMPORT */
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import fs from 'stubborn-fs';
|
|
4
|
+
import whenExit from 'when-exit';
|
|
5
|
+
import { LIMIT_BASENAME_LENGTH } from '../constants.js';
|
|
6
|
+
/* MAIN */
|
|
7
|
+
//TODO: Maybe publish this as a standalone package
|
|
8
|
+
const Temp = {
|
|
9
|
+
/* VARIABLES */
|
|
10
|
+
store: {}, // filePath => purge
|
|
11
|
+
/* API */
|
|
12
|
+
create: (filePath) => {
|
|
13
|
+
const randomness = `000000${Math.floor(Math.random() * 16777215).toString(16)}`.slice(-6); // 6 random-enough hex characters
|
|
14
|
+
const timestamp = Date.now().toString().slice(-10); // 10 precise timestamp digits
|
|
15
|
+
const prefix = 'tmp-';
|
|
16
|
+
const suffix = `.${prefix}${timestamp}${randomness}`;
|
|
17
|
+
const tempPath = `${filePath}${suffix}`;
|
|
18
|
+
return tempPath;
|
|
19
|
+
},
|
|
20
|
+
get: (filePath, creator, purge = true) => {
|
|
21
|
+
const tempPath = Temp.truncate(creator(filePath));
|
|
22
|
+
if (tempPath in Temp.store)
|
|
23
|
+
return Temp.get(filePath, creator, purge); // Collision found, try again
|
|
24
|
+
Temp.store[tempPath] = purge;
|
|
25
|
+
const disposer = () => delete Temp.store[tempPath];
|
|
26
|
+
return [tempPath, disposer];
|
|
27
|
+
},
|
|
28
|
+
purge: (filePath) => {
|
|
29
|
+
if (!Temp.store[filePath])
|
|
30
|
+
return;
|
|
31
|
+
delete Temp.store[filePath];
|
|
32
|
+
fs.attempt.unlink(filePath);
|
|
33
|
+
},
|
|
34
|
+
purgeSync: (filePath) => {
|
|
35
|
+
if (!Temp.store[filePath])
|
|
36
|
+
return;
|
|
37
|
+
delete Temp.store[filePath];
|
|
38
|
+
fs.attempt.unlinkSync(filePath);
|
|
39
|
+
},
|
|
40
|
+
purgeSyncAll: () => {
|
|
41
|
+
for (const filePath in Temp.store) {
|
|
42
|
+
Temp.purgeSync(filePath);
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
truncate: (filePath) => {
|
|
46
|
+
const basename = path.basename(filePath);
|
|
47
|
+
if (basename.length <= LIMIT_BASENAME_LENGTH)
|
|
48
|
+
return filePath; //FIXME: Rough and quick attempt at detecting ok lengths
|
|
49
|
+
const truncable = /^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(basename);
|
|
50
|
+
if (!truncable)
|
|
51
|
+
return filePath; //FIXME: No truncable part detected, can't really do much without also changing the parent path, which is unsafe, hoping for the best here
|
|
52
|
+
const truncationLength = basename.length - LIMIT_BASENAME_LENGTH;
|
|
53
|
+
return `${filePath.slice(0, -basename.length)}${truncable[1]}${truncable[2].slice(0, -truncationLength)}${truncable[3]}`; //FIXME: The truncable part might be shorter than needed here
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
/* INIT */
|
|
57
|
+
whenExit(Temp.purgeSyncAll); // Ensuring purgeable temp files are purged on exit
|
|
58
|
+
/* EXPORT */
|
|
59
|
+
export default Temp;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020-present Fabio Spampinato
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
|
6
|
+
copy of this software and associated documentation files (the "Software"),
|
|
7
|
+
to deal in the Software without restriction, including without limitation
|
|
8
|
+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
9
|
+
and/or sell copies of the Software, and to permit persons to whom the
|
|
10
|
+
Software is furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
20
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
21
|
+
DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "atomically",
|
|
3
|
+
"repository": "github:fabiospampinato/atomically",
|
|
4
|
+
"description": "Read and write files atomically and reliably.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"version": "2.1.1",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"exports": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"benchmark": "tsex benchmark",
|
|
13
|
+
"benchmarkLwatch": "tsex benchmark --watch",
|
|
14
|
+
"clean": "tsex clean",
|
|
15
|
+
"compile": "tsex compile",
|
|
16
|
+
"compile:watch": "tsex compile --watch",
|
|
17
|
+
"test:init": "esbuild --bundle --log-level=error --target=es2020 --platform=node --format=cjs src/index.ts > test/atomically.cjs",
|
|
18
|
+
"test": "npm run test:init && tap --disable-coverage",
|
|
19
|
+
"test:watch": "npm run test:init && tap --disable-coverage --watch",
|
|
20
|
+
"prepublishOnly": "npm run clean && npm run compile && npm run test"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [
|
|
23
|
+
"atomic",
|
|
24
|
+
"read",
|
|
25
|
+
"write",
|
|
26
|
+
"file",
|
|
27
|
+
"reliable"
|
|
28
|
+
],
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"stubborn-fs": "^2.0.0",
|
|
31
|
+
"when-exit": "^2.1.4"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/node": "^18.19.130",
|
|
35
|
+
"esbuild": "^0.18.20",
|
|
36
|
+
"require-inject": "^1.4.4",
|
|
37
|
+
"tap": "^21.1.1",
|
|
38
|
+
"tsex": "^4.0.2",
|
|
39
|
+
"typescript": "^5.9.3",
|
|
40
|
+
"write-file-atomic": "^7.0.0"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
# Atomically
|
|
2
|
+
|
|
3
|
+
Read and write files atomically and reliably.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- Overview:
|
|
8
|
+
- This library is a rewrite of [`write-file-atomic`](https://github.com/npm/write-file-atomic), with some important enhancements on top, you can largely use this as a drop-in replacement.
|
|
9
|
+
- This library is written in TypeScript, so types aren't an afterthought but come with library.
|
|
10
|
+
- This library is slightly faster than [`write-file-atomic`](https://github.com/npm/write-file-atomic), and it can be 10x faster, while being essentially just as safe, by using the `fsyncWait` option.
|
|
11
|
+
- This library has 0 third-party dependencies, so there's less code to vet and the entire thing is roughly 20% smaller than [`write-file-atomic`](https://github.com/npm/write-file-atomic).
|
|
12
|
+
- This library tries harder to write files on disk than [`write-file-atomic`](https://github.com/npm/write-file-atomic) does, by default retrying some failed operations and handling some more errors.
|
|
13
|
+
- Reliability:
|
|
14
|
+
- Reads are retried, when appropriate, until they succeed or the timeout is reached.
|
|
15
|
+
- Writes are atomic, meaning that first a temporary file containing the new content is written, then this file is renamed to the final path, this way it's impossible to get a corrupt/partially-written file.
|
|
16
|
+
- Writes happening to the same path are queued, ensuring they don't interfere with each other.
|
|
17
|
+
- Temporary files can be configured to not be purged from disk if the write operation fails, which is useful for when keeping the temporary file is better than just losing data.
|
|
18
|
+
- Any needed missing parent folder will be created automatically.
|
|
19
|
+
- Symlinks are resolved automatically.
|
|
20
|
+
- `ENOSYS` errors on `chmod`/`chown` operations are ignored.
|
|
21
|
+
- `EINVAL`/`EPERM` errors on `chmod`/`chown` operations, in POSIX systems where the user is not root, are ignored.
|
|
22
|
+
- `EMFILE`/`ENFILE`/`EAGAIN`/`EBUSY`/`EACCESS`/`EACCES`/`EACCS`/`EPERM` errors happening during necessary operations are caught and the operations are retried until they succeed or the timeout is reached.
|
|
23
|
+
- `ENAMETOOLONG` errors, both appening because of the final path or the temporary path, are attempted to be worked around by smartly truncating paths.
|
|
24
|
+
- Temporary files:
|
|
25
|
+
- By default they are purged automatically once the write operation is completed or if the process exits (cleanly or not).
|
|
26
|
+
- By default they are created by appending a `.tmp-[timestamp][randomness]` suffix to destination paths:
|
|
27
|
+
- The `tmp-` part gives users a hint about the nature of these files, if they happen to see them.
|
|
28
|
+
- The `[timestamp]` part consists of the 10 least significant digits of a milliseconds-precise timestamp, making it likely that if more than one of these files are kept on disk the user will see them in chronological order.
|
|
29
|
+
- The `[randomness]` part consists of 6 random hex characters.
|
|
30
|
+
- If by any chance a collision is found then another suffix is generated.
|
|
31
|
+
- Custom options:
|
|
32
|
+
- `chown`: it allows you to specify custom group and user ids:
|
|
33
|
+
- by default the old file's ids are copied over.
|
|
34
|
+
- if custom ids are provided they will be used.
|
|
35
|
+
- if `false` the default ids are used.
|
|
36
|
+
- `encoding`: it allows you to specify the encoding of the file content:
|
|
37
|
+
- by default when reading no encoding is specified and a raw buffer is returned.
|
|
38
|
+
- by default when writing `utf8` is used when.
|
|
39
|
+
- `fsync`: it allows you to control whether the `fsync` syscall is triggered right after writing the file or not:
|
|
40
|
+
- by default the syscall is triggered immediately after writing the file, increasing the chances that the file will actually be written to disk in case of imminent catastrophic failures, like power outages.
|
|
41
|
+
- if `false` the syscall won't be triggered.
|
|
42
|
+
- `fsyncWait`: it allows you to control whether the triggered `fsync` is waited or not:
|
|
43
|
+
- by default the syscall is waited.
|
|
44
|
+
- if `false` the syscall will still be triggered but not be waited.
|
|
45
|
+
- this increases performance 10x in some cases, and at the end of the day often there's no plan B if `fsync` fails anyway.
|
|
46
|
+
- `mode`: it allows you to specify the mode for the file:
|
|
47
|
+
- by default the old file's mode is copied over.
|
|
48
|
+
- if `false` then `0o666` is used.
|
|
49
|
+
- `schedule`: it's a function that returns a promise that resolves to a disposer function, basically it allows you to provide some custom queueing logic for the writing operation, allowing you to perhaps wire `atomically` with your app's main filesystem job scheduler:
|
|
50
|
+
- even when a custom `schedule` function is provided write operations will still be queued internally by the library too.
|
|
51
|
+
- `timeout`: it allows you to specify the amount of maximum milliseconds within which the library will retry some failed operations:
|
|
52
|
+
- when writing asynchronously by default it will keep retrying for 7500 milliseconds.
|
|
53
|
+
- when writing synchronously by default it will keep retrying for 1000 milliseconds.
|
|
54
|
+
- if `0` or `-1` no failed operations will be retried.
|
|
55
|
+
- if another number is provided that will be the timeout interval.
|
|
56
|
+
- `tmpCreate`: it's a function that will be used to create the custom temporary file path in place of the default one:
|
|
57
|
+
- even when a custom function is provided the final temporary path will still be truncated if the library thinks that it may lead to `ENAMETOOLONG` errors.
|
|
58
|
+
- paths by default are truncated in a way that preserves an eventual existing leading dot and trailing extension.
|
|
59
|
+
- `tmpCreated`: it's a function that will be called with the newly created temporary file path.
|
|
60
|
+
- `tmpPurge`: it allows you to control whether the temporary file will be purged from the filesystem or not if the write fails:
|
|
61
|
+
- by default it will be purged.
|
|
62
|
+
- if `false` it will be kept on disk.
|
|
63
|
+
|
|
64
|
+
## Install
|
|
65
|
+
|
|
66
|
+
```sh
|
|
67
|
+
npm install atomically
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Usage
|
|
71
|
+
|
|
72
|
+
This is the shape of the optional options object:
|
|
73
|
+
|
|
74
|
+
```ts
|
|
75
|
+
type Disposer = () => void;
|
|
76
|
+
|
|
77
|
+
type ReadOptions = string | {
|
|
78
|
+
encoding?: string | null,
|
|
79
|
+
mode?: string | number | false,
|
|
80
|
+
timeout?: number
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
type WriteOptions = string | {
|
|
84
|
+
chown?: { gid: number, uid: number } | false,
|
|
85
|
+
encoding?: string | null,
|
|
86
|
+
fsync?: boolean,
|
|
87
|
+
fsyncWait?: boolean,
|
|
88
|
+
mode?: string | number | false,
|
|
89
|
+
schedule?: ( filePath: string ) => Promise<Disposer>,
|
|
90
|
+
timeout?: number,
|
|
91
|
+
tmpCreate?: ( filePath: string ) => string,
|
|
92
|
+
tmpCreated?: ( filePath: string ) => any,
|
|
93
|
+
tmpPurge?: boolean
|
|
94
|
+
};
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
This is the shape of the provided functions:
|
|
98
|
+
|
|
99
|
+
```ts
|
|
100
|
+
function readFile ( filePath: string, options?: ReadOptions ): Promise<Buffer | string>;
|
|
101
|
+
function readFileSync ( filePath: string, options?: ReadOptions ): Buffer | string;
|
|
102
|
+
function writeFile ( filePath: string, data: Readable | Buffer | string | undefined, options?: WriteOptions ): Promise<void>;
|
|
103
|
+
function writeFileSync ( filePath: string, data: Buffer | string | undefined, options?: WriteOptions ): void;
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
This is how to use the library:
|
|
107
|
+
|
|
108
|
+
```ts
|
|
109
|
+
import {readFile, readFileSync, writeFile, writeFileSync} from 'atomically';
|
|
110
|
+
|
|
111
|
+
// Asynchronous read with default option
|
|
112
|
+
const buffer = await readFile ( '/foo.txt' );
|
|
113
|
+
|
|
114
|
+
// Synchronous read assuming the encoding is "utf8"
|
|
115
|
+
const string = readFileSync ( '/foo.txt', 'utf8' );
|
|
116
|
+
|
|
117
|
+
// Asynchronous write with default options
|
|
118
|
+
await writeFile ( '/foo.txt', 'my_data' );
|
|
119
|
+
|
|
120
|
+
// Asynchronous write that doesn't prod the old file for a stat object at all
|
|
121
|
+
await writeFile ( '/foo.txt', 'my_data', { chown: false, mode: false } );
|
|
122
|
+
|
|
123
|
+
// 10x faster asynchronous write that's less resilient against imminent catastrophies
|
|
124
|
+
await writeFile ( '/foo.txt', 'my_data', { fsync: false } );
|
|
125
|
+
|
|
126
|
+
// 10x faster asynchronous write that's essentially still as resilient against imminent catastrophies
|
|
127
|
+
await writeFile ( '/foo.txt', 'my_data', { fsyncWait: false } );
|
|
128
|
+
|
|
129
|
+
// Asynchronous write with a custom schedule function
|
|
130
|
+
await writeFile ( '/foo.txt', 'my_data', {
|
|
131
|
+
schedule: filePath => {
|
|
132
|
+
return new Promise ( resolve => { // When this returned promise will resolve the write operation will begin
|
|
133
|
+
MyScheduler.schedule ( filePath, () => { // Hypothetical scheduler function that will eventually tell us to go on with this write operation
|
|
134
|
+
const disposer = () => {}; // Hypothetical function that contains eventual clean-up logic, it will be called after the write operation has been completed (successfully or not)
|
|
135
|
+
resolve ( disposer ); // Resolving the promise with a disposer, beginning the write operation
|
|
136
|
+
})
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
// Synchronous write with default options
|
|
142
|
+
writeFileSync ( '/foo.txt', 'my_data' );
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
## License
|
|
146
|
+
|
|
147
|
+
MIT © Fabio Spampinato
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015 Loopline Systems
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EventEmitter } from "events";
|
|
2
|
+
export declare class CancellationToken extends EventEmitter {
|
|
3
|
+
private parentCancelHandler;
|
|
4
|
+
private _cancelled;
|
|
5
|
+
get cancelled(): boolean;
|
|
6
|
+
private _parent;
|
|
7
|
+
set parent(value: CancellationToken);
|
|
8
|
+
constructor(parent?: CancellationToken);
|
|
9
|
+
cancel(): void;
|
|
10
|
+
private onCancel;
|
|
11
|
+
createPromise<R>(callback: (resolve: (thenableOrResult: R | PromiseLike<R>) => void, reject: (error: Error) => void, onCancel: (callback: () => void) => void) => void): Promise<R>;
|
|
12
|
+
private removeParentCancelHandler;
|
|
13
|
+
dispose(): void;
|
|
14
|
+
}
|
|
15
|
+
export declare class CancellationError extends Error {
|
|
16
|
+
constructor();
|
|
17
|
+
}
|