@emulsify/cli 1.2.0 → 1.4.2
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/README.md +5 -4
- package/dist/handlers/componentInstall.js +15 -15
- package/dist/handlers/componentList.js +11 -11
- package/dist/handlers/hofs/withProgressBar.js +16 -0
- package/dist/handlers/init.js +63 -59
- package/dist/handlers/systemInstall.js +46 -18
- package/dist/handlers/systemList.js +1 -1
- package/dist/index.js +2 -1
- package/dist/lib/constants.js +5 -3
- package/dist/lib/log.js +5 -4
- package/dist/node_modules/.package-lock.json +68 -7
- package/dist/node_modules/@types/node/LICENSE +21 -0
- package/dist/node_modules/@types/node/README.md +16 -0
- package/dist/node_modules/@types/node/assert.d.ts +128 -0
- package/dist/node_modules/@types/node/async_hooks.d.ts +229 -0
- package/dist/node_modules/@types/node/buffer.d.ts +25 -0
- package/dist/node_modules/@types/node/child_process.d.ts +514 -0
- package/dist/node_modules/@types/node/cluster.d.ts +265 -0
- package/dist/node_modules/@types/node/console.d.ts +142 -0
- package/dist/node_modules/@types/node/constants.d.ts +18 -0
- package/dist/node_modules/@types/node/crypto.d.ts +1189 -0
- package/dist/node_modules/@types/node/dgram.d.ts +144 -0
- package/dist/node_modules/@types/node/dns.d.ts +387 -0
- package/dist/node_modules/@types/node/domain.d.ts +27 -0
- package/dist/node_modules/@types/node/events.d.ts +82 -0
- package/dist/node_modules/@types/node/fs/promises.d.ts +568 -0
- package/dist/node_modules/@types/node/fs.d.ts +2273 -0
- package/dist/node_modules/@types/node/globals.d.ts +613 -0
- package/dist/node_modules/@types/node/globals.global.d.ts +1 -0
- package/dist/node_modules/@types/node/http.d.ts +490 -0
- package/dist/node_modules/@types/node/http2.d.ts +961 -0
- package/dist/node_modules/@types/node/https.d.ts +142 -0
- package/dist/node_modules/@types/node/index.d.ts +99 -0
- package/dist/node_modules/@types/node/inspector.d.ts +3051 -0
- package/dist/node_modules/@types/node/module.d.ts +56 -0
- package/dist/node_modules/@types/node/net.d.ts +296 -0
- package/dist/node_modules/@types/node/os.d.ts +242 -0
- package/dist/node_modules/@types/node/package.json +230 -0
- package/dist/node_modules/@types/node/path.d.ts +157 -0
- package/dist/node_modules/@types/node/perf_hooks.d.ts +274 -0
- package/dist/node_modules/@types/node/process.d.ts +413 -0
- package/dist/node_modules/@types/node/punycode.d.ts +78 -0
- package/dist/node_modules/@types/node/querystring.d.ts +31 -0
- package/dist/node_modules/@types/node/readline.d.ts +174 -0
- package/dist/node_modules/@types/node/repl.d.ts +398 -0
- package/dist/node_modules/@types/node/stream.d.ts +359 -0
- package/dist/node_modules/@types/node/string_decoder.d.ts +10 -0
- package/dist/node_modules/@types/node/timers.d.ts +19 -0
- package/dist/node_modules/@types/node/tls.d.ts +783 -0
- package/dist/node_modules/@types/node/trace_events.d.ts +64 -0
- package/dist/node_modules/@types/node/tty.d.ts +69 -0
- package/dist/node_modules/@types/node/url.d.ts +119 -0
- package/dist/node_modules/@types/node/util.d.ts +216 -0
- package/dist/node_modules/@types/node/v8.d.ts +190 -0
- package/dist/node_modules/@types/node/vm.d.ts +155 -0
- package/dist/node_modules/@types/node/wasi.d.ts +89 -0
- package/dist/node_modules/@types/node/worker_threads.d.ts +241 -0
- package/dist/node_modules/@types/node/zlib.d.ts +364 -0
- package/dist/node_modules/@types/progress/LICENSE +21 -0
- package/dist/node_modules/@types/progress/README.md +16 -0
- package/dist/node_modules/@types/progress/index.d.ts +148 -0
- package/dist/node_modules/@types/progress/package.json +27 -0
- package/dist/node_modules/ajv-formats/LICENSE +21 -0
- package/dist/node_modules/ajv-formats/README.md +123 -0
- package/dist/node_modules/ajv-formats/dist/formats.d.ts +9 -0
- package/dist/node_modules/ajv-formats/dist/formats.js +173 -0
- package/dist/node_modules/ajv-formats/dist/formats.js.map +1 -0
- package/dist/node_modules/ajv-formats/dist/index.d.ts +15 -0
- package/dist/node_modules/ajv-formats/dist/index.js +37 -0
- package/dist/node_modules/ajv-formats/dist/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/dist/limit.d.ts +10 -0
- package/dist/node_modules/ajv-formats/dist/limit.js +69 -0
- package/dist/node_modules/ajv-formats/dist/limit.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/.runkit_example.js +23 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/LICENSE +22 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/README.md +192 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2019.d.ts +17 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2019.js +55 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2019.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2020.d.ts +17 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2020.js +49 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2020.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/ajv.d.ts +16 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/ajv.js +44 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/ajv.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.d.ts +39 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js +147 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.js +697 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.d.ts +13 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js +123 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.d.ts +80 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js +243 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js +218 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.js +14 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.d.ts +20 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js +28 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.d.ts +5 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.js +12 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js +153 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.d.ts +28 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.js +26 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.d.ts +40 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js +178 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js +202 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js +510 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/core.d.ts +171 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/core.js +614 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/core.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/jtd.d.ts +45 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/jtd.js +66 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/jtd.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/data.json +13 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.js +7 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.js +184 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.js +30 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.js +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.js +42 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.js +11 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.js +83 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.js +35 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/index.d.ts +177 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/index.js +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.d.ts +124 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.js +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.d.ts +168 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.js +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.js +131 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js +93 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.js +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.js +146 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.js +66 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.js +48 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.js +8 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.js +47 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.js +24 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/2019.ts +78 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/2020.ts +72 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/ajv.ts +67 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/code.ts +160 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/index.ts +832 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/errors.ts +184 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/index.ts +324 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/serialize.ts +260 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/names.ts +27 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/ref_error.ts +12 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/resolve.ts +146 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/rules.ts +50 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/util.ts +213 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/dataType.ts +229 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/index.ts +573 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/core.ts +880 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/jtd.ts +129 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/data.json +13 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/equal.ts +7 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/parseJson.ts +176 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/quote.ts +31 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/re2.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/standalone/index.ts +93 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/standalone/instance.ts +36 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/index.ts +233 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/json-schema.ts +189 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/jtd-schema.ts +264 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/code.ts +168 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/index.ts +102 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/properties.ts +177 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/ref.ts +74 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/values.ts +55 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/next.ts +8 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/enum.ts +52 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/pattern.ts +28 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/package.json +124 -0
- package/dist/node_modules/ajv-formats/package.json +74 -0
- package/dist/node_modules/ajv-formats/src/formats.ts +232 -0
- package/dist/node_modules/ajv-formats/src/index.ts +62 -0
- package/dist/node_modules/ajv-formats/src/limit.ts +99 -0
- package/dist/node_modules/consola/CHANGELOG.md +706 -0
- package/dist/node_modules/consola/README.md +288 -0
- package/dist/node_modules/consola/dist/consola.browser.js +1 -0
- package/dist/node_modules/consola/dist/consola.js +1 -0
- package/dist/node_modules/consola/package.json +80 -0
- package/dist/node_modules/consola/src/browser.js +20 -0
- package/dist/node_modules/consola/src/consola.js +327 -0
- package/dist/node_modules/consola/src/index.js +7 -0
- package/dist/node_modules/consola/src/logLevels.js +11 -0
- package/dist/node_modules/consola/src/node.js +36 -0
- package/dist/node_modules/consola/src/reporters/basic.js +72 -0
- package/dist/node_modules/consola/src/reporters/browser.js +54 -0
- package/dist/node_modules/consola/src/reporters/fancy.js +87 -0
- package/dist/node_modules/consola/src/reporters/index.js +5 -0
- package/dist/node_modules/consola/src/reporters/json.js +9 -0
- package/dist/node_modules/consola/src/reporters/winston.js +45 -0
- package/dist/node_modules/consola/src/types.js +50 -0
- package/dist/node_modules/consola/src/utils/chalk.js +37 -0
- package/dist/node_modules/consola/src/utils/date.js +5 -0
- package/dist/node_modules/consola/src/utils/error.js +16 -0
- package/dist/node_modules/consola/src/utils/fancy.js +10 -0
- package/dist/node_modules/consola/src/utils/format.js +30 -0
- package/dist/node_modules/consola/src/utils/global.js +38 -0
- package/dist/node_modules/consola/src/utils/index.js +23 -0
- package/dist/node_modules/consola/src/utils/stream.js +20 -0
- package/dist/node_modules/consola/src/utils/string.js +41 -0
- package/dist/node_modules/consola/types/consola.d.ts +182 -0
- package/dist/node_modules/debug/LICENSE +10 -9
- package/dist/node_modules/debug/README.md +24 -1
- package/dist/node_modules/debug/package.json +6 -6
- package/dist/node_modules/debug/src/common.js +1 -1
- package/dist/node_modules/progress/CHANGELOG.md +115 -0
- package/dist/node_modules/progress/LICENSE +22 -0
- package/dist/node_modules/progress/Makefile +8 -0
- package/dist/node_modules/progress/Readme.md +146 -0
- package/dist/node_modules/progress/index.js +1 -0
- package/dist/node_modules/progress/lib/node-progress.js +236 -0
- package/dist/node_modules/progress/package.json +26 -0
- package/dist/node_modules/simple-git/CHANGELOG.md +35 -0
- package/dist/node_modules/simple-git/package.json +6 -2
- package/dist/node_modules/simple-git/readme.md +8 -1
- package/dist/node_modules/simple-git/src/lib/api.d.ts +2 -0
- package/dist/node_modules/simple-git/src/lib/api.js +2 -0
- package/dist/node_modules/simple-git/src/lib/api.js.map +1 -1
- package/dist/node_modules/simple-git/src/lib/errors/git-plugin-error.d.ts +2 -2
- package/dist/node_modules/simple-git/src/lib/git-factory.d.ts +1 -0
- package/dist/node_modules/simple-git/src/lib/git-factory.js +1 -0
- package/dist/node_modules/simple-git/src/lib/git-factory.js.map +1 -1
- package/dist/node_modules/simple-git/src/lib/plugins/completion-detection.plugin.d.ts +3 -0
- package/dist/node_modules/simple-git/src/lib/plugins/completion-detection.plugin.js +80 -0
- package/dist/node_modules/simple-git/src/lib/plugins/completion-detection.plugin.js.map +1 -0
- package/dist/node_modules/simple-git/src/lib/plugins/index.d.ts +1 -0
- package/dist/node_modules/simple-git/src/lib/plugins/index.js +1 -0
- package/dist/node_modules/simple-git/src/lib/plugins/index.js.map +1 -1
- package/dist/node_modules/simple-git/src/lib/plugins/simple-git-plugin.d.ts +1 -0
- package/dist/node_modules/simple-git/src/lib/responses/StatusSummary.d.ts +12 -33
- package/dist/node_modules/simple-git/src/lib/responses/StatusSummary.js +2 -22
- package/dist/node_modules/simple-git/src/lib/responses/StatusSummary.js.map +1 -1
- package/dist/node_modules/simple-git/src/lib/runners/git-executor-chain.js +9 -23
- package/dist/node_modules/simple-git/src/lib/runners/git-executor-chain.js.map +1 -1
- package/dist/node_modules/simple-git/src/lib/simple-git-api.js +2 -1
- package/dist/node_modules/simple-git/src/lib/simple-git-api.js.map +1 -1
- package/dist/node_modules/simple-git/src/lib/tasks/grep.d.ts +12 -0
- package/dist/node_modules/simple-git/src/lib/tasks/grep.js +76 -0
- package/dist/node_modules/simple-git/src/lib/tasks/grep.js.map +1 -0
- package/dist/node_modules/simple-git/src/lib/types/index.d.ts +16 -0
- package/dist/node_modules/simple-git/src/lib/utils/util.d.ts +2 -0
- package/dist/node_modules/simple-git/src/lib/utils/util.js +6 -1
- package/dist/node_modules/simple-git/src/lib/utils/util.js.map +1 -1
- package/dist/node_modules/simple-git/typings/response.d.ts +38 -1
- package/dist/node_modules/simple-git/typings/simple-git.d.ts +7 -0
- package/dist/node_modules/simple-git/typings/types.d.ts +2 -1
- package/dist/package.json +14 -10
- package/dist/schemas/system.json +74 -0
- package/dist/schemas/variant.json +137 -0
- package/dist/scripts/jsonSchemaToTs.js +5 -5
- package/dist/util/cache/cloneIntoCache.js +6 -6
- package/dist/util/cache/copyItemFromCache.js +3 -3
- package/dist/util/cache/getCachedItemCheckout.js +2 -2
- package/dist/util/cache/getCachedItemPath.js +2 -2
- package/dist/util/cache/getJsonFromCachedFile.js +1 -1
- package/dist/util/fs/executeScript.js +1 -1
- package/dist/util/fs/findFileInCurrentPath.js +5 -5
- package/dist/util/platform/getDrupalInfo.js +4 -4
- package/dist/util/platform/getInitSuccessMessageForPlatform.js +35 -0
- package/dist/util/platform/getPlatformInfo.js +1 -1
- package/dist/util/project/getEmulsifyConfig.js +2 -2
- package/dist/util/project/installComponentFromCache.js +4 -4
- package/dist/util/project/installDependencies.js +1 -1
- package/dist/util/project/installGeneralAssetsFromCache.js +3 -3
- package/dist/util/project/setEmulsifyConfig.js +3 -3
- package/dist/util/strToMachineName.js +5 -2
- package/package.json +15 -11
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
Flexible ascii progress bar.
|
|
2
|
+
|
|
3
|
+
## Installation
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
$ npm install progress
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
First we create a `ProgressBar`, giving it a format string
|
|
12
|
+
as well as the `total`, telling the progress bar when it will
|
|
13
|
+
be considered complete. After that all we need to do is `tick()` appropriately.
|
|
14
|
+
|
|
15
|
+
```javascript
|
|
16
|
+
var ProgressBar = require('progress');
|
|
17
|
+
|
|
18
|
+
var bar = new ProgressBar(':bar', { total: 10 });
|
|
19
|
+
var timer = setInterval(function () {
|
|
20
|
+
bar.tick();
|
|
21
|
+
if (bar.complete) {
|
|
22
|
+
console.log('\ncomplete\n');
|
|
23
|
+
clearInterval(timer);
|
|
24
|
+
}
|
|
25
|
+
}, 100);
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Options
|
|
29
|
+
|
|
30
|
+
These are keys in the options object you can pass to the progress bar along with
|
|
31
|
+
`total` as seen in the example above.
|
|
32
|
+
|
|
33
|
+
- `curr` current completed index
|
|
34
|
+
- `total` total number of ticks to complete
|
|
35
|
+
- `width` the displayed width of the progress bar defaulting to total
|
|
36
|
+
- `stream` the output stream defaulting to stderr
|
|
37
|
+
- `head` head character defaulting to complete character
|
|
38
|
+
- `complete` completion character defaulting to "="
|
|
39
|
+
- `incomplete` incomplete character defaulting to "-"
|
|
40
|
+
- `renderThrottle` minimum time between updates in milliseconds defaulting to 16
|
|
41
|
+
- `clear` option to clear the bar on completion defaulting to false
|
|
42
|
+
- `callback` optional function to call when the progress bar completes
|
|
43
|
+
|
|
44
|
+
### Tokens
|
|
45
|
+
|
|
46
|
+
These are tokens you can use in the format of your progress bar.
|
|
47
|
+
|
|
48
|
+
- `:bar` the progress bar itself
|
|
49
|
+
- `:current` current tick number
|
|
50
|
+
- `:total` total ticks
|
|
51
|
+
- `:elapsed` time elapsed in seconds
|
|
52
|
+
- `:percent` completion percentage
|
|
53
|
+
- `:eta` estimated completion time in seconds
|
|
54
|
+
- `:rate` rate of ticks per second
|
|
55
|
+
|
|
56
|
+
### Custom Tokens
|
|
57
|
+
|
|
58
|
+
You can define custom tokens by adding a `{'name': value}` object parameter to your method (`tick()`, `update()`, etc.) calls.
|
|
59
|
+
|
|
60
|
+
```javascript
|
|
61
|
+
var bar = new ProgressBar(':current: :token1 :token2', { total: 3 })
|
|
62
|
+
bar.tick({
|
|
63
|
+
'token1': "Hello",
|
|
64
|
+
'token2': "World!\n"
|
|
65
|
+
})
|
|
66
|
+
bar.tick(2, {
|
|
67
|
+
'token1': "Goodbye",
|
|
68
|
+
'token2': "World!"
|
|
69
|
+
})
|
|
70
|
+
```
|
|
71
|
+
The above example would result in the output below.
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
1: Hello World!
|
|
75
|
+
3: Goodbye World!
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Examples
|
|
79
|
+
|
|
80
|
+
### Download
|
|
81
|
+
|
|
82
|
+
In our download example each tick has a variable influence, so we pass the chunk
|
|
83
|
+
length which adjusts the progress bar appropriately relative to the total
|
|
84
|
+
length.
|
|
85
|
+
|
|
86
|
+
```javascript
|
|
87
|
+
var ProgressBar = require('progress');
|
|
88
|
+
var https = require('https');
|
|
89
|
+
|
|
90
|
+
var req = https.request({
|
|
91
|
+
host: 'download.github.com',
|
|
92
|
+
port: 443,
|
|
93
|
+
path: '/visionmedia-node-jscoverage-0d4608a.zip'
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
req.on('response', function(res){
|
|
97
|
+
var len = parseInt(res.headers['content-length'], 10);
|
|
98
|
+
|
|
99
|
+
console.log();
|
|
100
|
+
var bar = new ProgressBar(' downloading [:bar] :rate/bps :percent :etas', {
|
|
101
|
+
complete: '=',
|
|
102
|
+
incomplete: ' ',
|
|
103
|
+
width: 20,
|
|
104
|
+
total: len
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
res.on('data', function (chunk) {
|
|
108
|
+
bar.tick(chunk.length);
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
res.on('end', function () {
|
|
112
|
+
console.log('\n');
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
req.end();
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
The above example result in a progress bar like the one below.
|
|
120
|
+
|
|
121
|
+
```
|
|
122
|
+
downloading [===== ] 39/bps 29% 3.7s
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### Interrupt
|
|
126
|
+
|
|
127
|
+
To display a message during progress bar execution, use `interrupt()`
|
|
128
|
+
```javascript
|
|
129
|
+
var ProgressBar = require('progress');
|
|
130
|
+
|
|
131
|
+
var bar = new ProgressBar(':bar :current/:total', { total: 10 });
|
|
132
|
+
var timer = setInterval(function () {
|
|
133
|
+
bar.tick();
|
|
134
|
+
if (bar.complete) {
|
|
135
|
+
clearInterval(timer);
|
|
136
|
+
} else if (bar.curr === 5) {
|
|
137
|
+
bar.interrupt('this message appears above the progress bar\ncurrent progress is ' + bar.curr + '/' + bar.total);
|
|
138
|
+
}
|
|
139
|
+
}, 1000);
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
You can see more examples in the `examples` folder.
|
|
143
|
+
|
|
144
|
+
## License
|
|
145
|
+
|
|
146
|
+
MIT
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./lib/node-progress');
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* node-progress
|
|
3
|
+
* Copyright(c) 2011 TJ Holowaychuk <tj@vision-media.ca>
|
|
4
|
+
* MIT Licensed
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Expose `ProgressBar`.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
exports = module.exports = ProgressBar;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Initialize a `ProgressBar` with the given `fmt` string and `options` or
|
|
15
|
+
* `total`.
|
|
16
|
+
*
|
|
17
|
+
* Options:
|
|
18
|
+
*
|
|
19
|
+
* - `curr` current completed index
|
|
20
|
+
* - `total` total number of ticks to complete
|
|
21
|
+
* - `width` the displayed width of the progress bar defaulting to total
|
|
22
|
+
* - `stream` the output stream defaulting to stderr
|
|
23
|
+
* - `head` head character defaulting to complete character
|
|
24
|
+
* - `complete` completion character defaulting to "="
|
|
25
|
+
* - `incomplete` incomplete character defaulting to "-"
|
|
26
|
+
* - `renderThrottle` minimum time between updates in milliseconds defaulting to 16
|
|
27
|
+
* - `callback` optional function to call when the progress bar completes
|
|
28
|
+
* - `clear` will clear the progress bar upon termination
|
|
29
|
+
*
|
|
30
|
+
* Tokens:
|
|
31
|
+
*
|
|
32
|
+
* - `:bar` the progress bar itself
|
|
33
|
+
* - `:current` current tick number
|
|
34
|
+
* - `:total` total ticks
|
|
35
|
+
* - `:elapsed` time elapsed in seconds
|
|
36
|
+
* - `:percent` completion percentage
|
|
37
|
+
* - `:eta` eta in seconds
|
|
38
|
+
* - `:rate` rate of ticks per second
|
|
39
|
+
*
|
|
40
|
+
* @param {string} fmt
|
|
41
|
+
* @param {object|number} options or total
|
|
42
|
+
* @api public
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
function ProgressBar(fmt, options) {
|
|
46
|
+
this.stream = options.stream || process.stderr;
|
|
47
|
+
|
|
48
|
+
if (typeof(options) == 'number') {
|
|
49
|
+
var total = options;
|
|
50
|
+
options = {};
|
|
51
|
+
options.total = total;
|
|
52
|
+
} else {
|
|
53
|
+
options = options || {};
|
|
54
|
+
if ('string' != typeof fmt) throw new Error('format required');
|
|
55
|
+
if ('number' != typeof options.total) throw new Error('total required');
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
this.fmt = fmt;
|
|
59
|
+
this.curr = options.curr || 0;
|
|
60
|
+
this.total = options.total;
|
|
61
|
+
this.width = options.width || this.total;
|
|
62
|
+
this.clear = options.clear
|
|
63
|
+
this.chars = {
|
|
64
|
+
complete : options.complete || '=',
|
|
65
|
+
incomplete : options.incomplete || '-',
|
|
66
|
+
head : options.head || (options.complete || '=')
|
|
67
|
+
};
|
|
68
|
+
this.renderThrottle = options.renderThrottle !== 0 ? (options.renderThrottle || 16) : 0;
|
|
69
|
+
this.lastRender = -Infinity;
|
|
70
|
+
this.callback = options.callback || function () {};
|
|
71
|
+
this.tokens = {};
|
|
72
|
+
this.lastDraw = '';
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* "tick" the progress bar with optional `len` and optional `tokens`.
|
|
77
|
+
*
|
|
78
|
+
* @param {number|object} len or tokens
|
|
79
|
+
* @param {object} tokens
|
|
80
|
+
* @api public
|
|
81
|
+
*/
|
|
82
|
+
|
|
83
|
+
ProgressBar.prototype.tick = function(len, tokens){
|
|
84
|
+
if (len !== 0)
|
|
85
|
+
len = len || 1;
|
|
86
|
+
|
|
87
|
+
// swap tokens
|
|
88
|
+
if ('object' == typeof len) tokens = len, len = 1;
|
|
89
|
+
if (tokens) this.tokens = tokens;
|
|
90
|
+
|
|
91
|
+
// start time for eta
|
|
92
|
+
if (0 == this.curr) this.start = new Date;
|
|
93
|
+
|
|
94
|
+
this.curr += len
|
|
95
|
+
|
|
96
|
+
// try to render
|
|
97
|
+
this.render();
|
|
98
|
+
|
|
99
|
+
// progress complete
|
|
100
|
+
if (this.curr >= this.total) {
|
|
101
|
+
this.render(undefined, true);
|
|
102
|
+
this.complete = true;
|
|
103
|
+
this.terminate();
|
|
104
|
+
this.callback(this);
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Method to render the progress bar with optional `tokens` to place in the
|
|
111
|
+
* progress bar's `fmt` field.
|
|
112
|
+
*
|
|
113
|
+
* @param {object} tokens
|
|
114
|
+
* @api public
|
|
115
|
+
*/
|
|
116
|
+
|
|
117
|
+
ProgressBar.prototype.render = function (tokens, force) {
|
|
118
|
+
force = force !== undefined ? force : false;
|
|
119
|
+
if (tokens) this.tokens = tokens;
|
|
120
|
+
|
|
121
|
+
if (!this.stream.isTTY) return;
|
|
122
|
+
|
|
123
|
+
var now = Date.now();
|
|
124
|
+
var delta = now - this.lastRender;
|
|
125
|
+
if (!force && (delta < this.renderThrottle)) {
|
|
126
|
+
return;
|
|
127
|
+
} else {
|
|
128
|
+
this.lastRender = now;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
var ratio = this.curr / this.total;
|
|
132
|
+
ratio = Math.min(Math.max(ratio, 0), 1);
|
|
133
|
+
|
|
134
|
+
var percent = Math.floor(ratio * 100);
|
|
135
|
+
var incomplete, complete, completeLength;
|
|
136
|
+
var elapsed = new Date - this.start;
|
|
137
|
+
var eta = (percent == 100) ? 0 : elapsed * (this.total / this.curr - 1);
|
|
138
|
+
var rate = this.curr / (elapsed / 1000);
|
|
139
|
+
|
|
140
|
+
/* populate the bar template with percentages and timestamps */
|
|
141
|
+
var str = this.fmt
|
|
142
|
+
.replace(':current', this.curr)
|
|
143
|
+
.replace(':total', this.total)
|
|
144
|
+
.replace(':elapsed', isNaN(elapsed) ? '0.0' : (elapsed / 1000).toFixed(1))
|
|
145
|
+
.replace(':eta', (isNaN(eta) || !isFinite(eta)) ? '0.0' : (eta / 1000)
|
|
146
|
+
.toFixed(1))
|
|
147
|
+
.replace(':percent', percent.toFixed(0) + '%')
|
|
148
|
+
.replace(':rate', Math.round(rate));
|
|
149
|
+
|
|
150
|
+
/* compute the available space (non-zero) for the bar */
|
|
151
|
+
var availableSpace = Math.max(0, this.stream.columns - str.replace(':bar', '').length);
|
|
152
|
+
if(availableSpace && process.platform === 'win32'){
|
|
153
|
+
availableSpace = availableSpace - 1;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
var width = Math.min(this.width, availableSpace);
|
|
157
|
+
|
|
158
|
+
/* TODO: the following assumes the user has one ':bar' token */
|
|
159
|
+
completeLength = Math.round(width * ratio);
|
|
160
|
+
complete = Array(Math.max(0, completeLength + 1)).join(this.chars.complete);
|
|
161
|
+
incomplete = Array(Math.max(0, width - completeLength + 1)).join(this.chars.incomplete);
|
|
162
|
+
|
|
163
|
+
/* add head to the complete string */
|
|
164
|
+
if(completeLength > 0)
|
|
165
|
+
complete = complete.slice(0, -1) + this.chars.head;
|
|
166
|
+
|
|
167
|
+
/* fill in the actual progress bar */
|
|
168
|
+
str = str.replace(':bar', complete + incomplete);
|
|
169
|
+
|
|
170
|
+
/* replace the extra tokens */
|
|
171
|
+
if (this.tokens) for (var key in this.tokens) str = str.replace(':' + key, this.tokens[key]);
|
|
172
|
+
|
|
173
|
+
if (this.lastDraw !== str) {
|
|
174
|
+
this.stream.cursorTo(0);
|
|
175
|
+
this.stream.write(str);
|
|
176
|
+
this.stream.clearLine(1);
|
|
177
|
+
this.lastDraw = str;
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* "update" the progress bar to represent an exact percentage.
|
|
183
|
+
* The ratio (between 0 and 1) specified will be multiplied by `total` and
|
|
184
|
+
* floored, representing the closest available "tick." For example, if a
|
|
185
|
+
* progress bar has a length of 3 and `update(0.5)` is called, the progress
|
|
186
|
+
* will be set to 1.
|
|
187
|
+
*
|
|
188
|
+
* A ratio of 0.5 will attempt to set the progress to halfway.
|
|
189
|
+
*
|
|
190
|
+
* @param {number} ratio The ratio (between 0 and 1 inclusive) to set the
|
|
191
|
+
* overall completion to.
|
|
192
|
+
* @api public
|
|
193
|
+
*/
|
|
194
|
+
|
|
195
|
+
ProgressBar.prototype.update = function (ratio, tokens) {
|
|
196
|
+
var goal = Math.floor(ratio * this.total);
|
|
197
|
+
var delta = goal - this.curr;
|
|
198
|
+
|
|
199
|
+
this.tick(delta, tokens);
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* "interrupt" the progress bar and write a message above it.
|
|
204
|
+
* @param {string} message The message to write.
|
|
205
|
+
* @api public
|
|
206
|
+
*/
|
|
207
|
+
|
|
208
|
+
ProgressBar.prototype.interrupt = function (message) {
|
|
209
|
+
// clear the current line
|
|
210
|
+
this.stream.clearLine();
|
|
211
|
+
// move the cursor to the start of the line
|
|
212
|
+
this.stream.cursorTo(0);
|
|
213
|
+
// write the message text
|
|
214
|
+
this.stream.write(message);
|
|
215
|
+
// terminate the line after writing the message
|
|
216
|
+
this.stream.write('\n');
|
|
217
|
+
// re-display the progress bar with its lastDraw
|
|
218
|
+
this.stream.write(this.lastDraw);
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Terminates a progress bar.
|
|
223
|
+
*
|
|
224
|
+
* @api public
|
|
225
|
+
*/
|
|
226
|
+
|
|
227
|
+
ProgressBar.prototype.terminate = function () {
|
|
228
|
+
if (this.clear) {
|
|
229
|
+
if (this.stream.clearLine) {
|
|
230
|
+
this.stream.clearLine();
|
|
231
|
+
this.stream.cursorTo(0);
|
|
232
|
+
}
|
|
233
|
+
} else {
|
|
234
|
+
this.stream.write('\n');
|
|
235
|
+
}
|
|
236
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "progress",
|
|
3
|
+
"version": "2.0.3",
|
|
4
|
+
"description": "Flexible ascii progress bar",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git://github.com/visionmedia/node-progress"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [
|
|
10
|
+
"cli",
|
|
11
|
+
"progress"
|
|
12
|
+
],
|
|
13
|
+
"author": "TJ Holowaychuk <tj@vision-media.ca>",
|
|
14
|
+
"contributors": [
|
|
15
|
+
"Christoffer Hallas <christoffer.hallas@gmail.com>",
|
|
16
|
+
"Jordan Scales <scalesjordan@gmail.com>",
|
|
17
|
+
"Andrew Rhyne <rhyneandrew@gmail.com>",
|
|
18
|
+
"Marco Brack <PapstDonB@Googlemail.com>"
|
|
19
|
+
],
|
|
20
|
+
"dependencies": {},
|
|
21
|
+
"main": "./index.js",
|
|
22
|
+
"engines": {
|
|
23
|
+
"node": ">=0.4.0"
|
|
24
|
+
},
|
|
25
|
+
"license": "MIT"
|
|
26
|
+
}
|
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# Change History & Release Notes
|
|
2
2
|
|
|
3
|
+
## [2.48.0](https://www.github.com/steveukx/git-js/compare/v2.47.1...v2.48.0) (2021-12-01)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* `StatusResult` returned by `git.status()` should include `detached` state of the working copy. ([#695](https://www.github.com/steveukx/git-js/issues/695)) ([f464ebe](https://www.github.com/steveukx/git-js/commit/f464ebe567c6c5cd4e99fd7e6300d9efdd4cbb1b))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* Add example for empty commit message in `git.commit()` ([61089cb](https://www.github.com/steveukx/git-js/commit/61089cbcb791acf9dc596dcc903e7b9c6c76c0e1))
|
|
14
|
+
|
|
15
|
+
### [2.47.1](https://www.github.com/steveukx/git-js/compare/v2.47.0...v2.47.1) (2021-11-29)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* Add support for node@17 in unit tests ([0d3bf47](https://www.github.com/steveukx/git-js/commit/0d3bf479dd52e68e3af502685568c8e376ba2af3))
|
|
21
|
+
* Add support for node@17 in unit tests ([0d3bf47](https://www.github.com/steveukx/git-js/commit/0d3bf479dd52e68e3af502685568c8e376ba2af3))
|
|
22
|
+
|
|
23
|
+
## [2.47.0](https://www.github.com/steveukx/git-js/compare/v2.46.0...v2.47.0) (2021-10-19)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
* git-grep ([653065e](https://www.github.com/steveukx/git-js/commit/653065ebb19bb6718466fc00d9c77047b83aca5d))
|
|
29
|
+
|
|
30
|
+
## [2.46.0](https://www.github.com/steveukx/git-js/compare/v2.45.1...v2.46.0) (2021-09-29)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* `completion` plugin ([#684](https://www.github.com/steveukx/git-js/issues/684)) ([ecb7bd6](https://www.github.com/steveukx/git-js/commit/ecb7bd6688b5e6d970cf64ac36ebb4c2bf7f081a))
|
|
36
|
+
* `completion` plugin to allow configuring when `simple-git` determines the `git` tasks to be complete. ([ecb7bd6](https://www.github.com/steveukx/git-js/commit/ecb7bd6688b5e6d970cf64ac36ebb4c2bf7f081a))
|
|
37
|
+
|
|
3
38
|
### [2.45.1](https://www.github.com/steveukx/git-js/compare/v2.45.0...v2.45.1) (2021-09-04)
|
|
4
39
|
|
|
5
40
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "simple-git",
|
|
3
3
|
"description": "Simple GIT interface for node.js",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.48.0",
|
|
5
5
|
"author": "Steve King <steve@mydev.co>",
|
|
6
6
|
"contributors": [
|
|
7
7
|
{
|
|
@@ -9,10 +9,14 @@
|
|
|
9
9
|
"email": "steve@mydev.co"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
|
+
"funding": {
|
|
13
|
+
"type": "github",
|
|
14
|
+
"url": "https://github.com/sponsors/steveukx/"
|
|
15
|
+
},
|
|
12
16
|
"dependencies": {
|
|
13
17
|
"@kwsites/file-exists": "^1.1.1",
|
|
14
18
|
"@kwsites/promise-deferred": "^1.1.1",
|
|
15
|
-
"debug": "^4.3.
|
|
19
|
+
"debug": "^4.3.2"
|
|
16
20
|
},
|
|
17
21
|
"devDependencies": {
|
|
18
22
|
"@babel/core": "^7.12.9",
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
# Simple Git
|
|
2
2
|
[](https://www.npmjs.com/package/simple-git)
|
|
3
|
-
[](https://travis-ci.org/steveukx/git-js)
|
|
4
3
|
|
|
5
4
|
A lightweight interface for running `git` commands in any [node.js](https://nodejs.org) application.
|
|
6
5
|
|
|
@@ -79,6 +78,9 @@ await git.pull();
|
|
|
79
78
|
|
|
80
79
|
## Configuring Plugins
|
|
81
80
|
|
|
81
|
+
- [Completion Detection](./docs/PLUGIN-COMPLETION-DETECTION.md)
|
|
82
|
+
Customise how `simple-git` detects the end of a `git` process.
|
|
83
|
+
|
|
82
84
|
- [Error Detection](./docs/PLUGIN-ERRORS.md)
|
|
83
85
|
Customise the detection of errors from the underlying `git` process.
|
|
84
86
|
|
|
@@ -248,6 +250,11 @@ For type details of the response for each of the tasks, please see the [TypeScri
|
|
|
248
250
|
- `.listConfig()` reads the current configuration and returns a [ConfigListSummary](./src/lib/responses/ConfigList.ts)
|
|
249
251
|
- `.listConfig(scope: GitConfigScope)` as with `listConfig` but returns only those items in a specified scope (note that configuration values are overlaid on top of each other to build the config `git` will actually use - to resolve the configuration you are using use `(await listConfig()).all` without the scope argument)
|
|
250
252
|
|
|
253
|
+
## git grep [examples](./examples/git-grep.md)
|
|
254
|
+
|
|
255
|
+
- `.grep(searchTerm)` searches for a single search term across all files in the working tree, optionally passing a standard [options](#how-to-specify-options) object of additional arguments
|
|
256
|
+
- `.grep(grepQueryBuilder(...))` use the `grepQueryBuilder` to create a complex query to search for, optionally passing a standard [options](#how-to-specify-options) object of additional arguments
|
|
257
|
+
|
|
251
258
|
## git hash-object
|
|
252
259
|
|
|
253
260
|
- `.hashObject(filePath, write = false)` computes the object ID value for the contents of the named file (which can be
|
|
@@ -6,6 +6,7 @@ import { TaskConfigurationError } from './errors/task-configuration-error';
|
|
|
6
6
|
import { CheckRepoActions } from './tasks/check-is-repo';
|
|
7
7
|
import { CleanOptions } from './tasks/clean';
|
|
8
8
|
import { GitConfigScope } from './tasks/config';
|
|
9
|
+
import { grepQueryBuilder } from './tasks/grep';
|
|
9
10
|
import { ResetMode } from './tasks/reset';
|
|
10
11
|
declare const api: {
|
|
11
12
|
CheckRepoActions: typeof CheckRepoActions;
|
|
@@ -17,5 +18,6 @@ declare const api: {
|
|
|
17
18
|
GitResponseError: typeof GitResponseError;
|
|
18
19
|
ResetMode: typeof ResetMode;
|
|
19
20
|
TaskConfigurationError: typeof TaskConfigurationError;
|
|
21
|
+
grepQueryBuilder: typeof grepQueryBuilder;
|
|
20
22
|
};
|
|
21
23
|
export default api;
|
|
@@ -8,6 +8,7 @@ const task_configuration_error_1 = require("./errors/task-configuration-error");
|
|
|
8
8
|
const check_is_repo_1 = require("./tasks/check-is-repo");
|
|
9
9
|
const clean_1 = require("./tasks/clean");
|
|
10
10
|
const config_1 = require("./tasks/config");
|
|
11
|
+
const grep_1 = require("./tasks/grep");
|
|
11
12
|
const reset_1 = require("./tasks/reset");
|
|
12
13
|
const api = {
|
|
13
14
|
CheckRepoActions: check_is_repo_1.CheckRepoActions,
|
|
@@ -19,6 +20,7 @@ const api = {
|
|
|
19
20
|
GitResponseError: git_response_error_1.GitResponseError,
|
|
20
21
|
ResetMode: reset_1.ResetMode,
|
|
21
22
|
TaskConfigurationError: task_configuration_error_1.TaskConfigurationError,
|
|
23
|
+
grepQueryBuilder: grep_1.grepQueryBuilder,
|
|
22
24
|
};
|
|
23
25
|
exports.default = api;
|
|
24
26
|
//# sourceMappingURL=api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["api.ts"],"names":[],"mappings":";;AAAA,sEAAiE;AACjE,kDAA8C;AAC9C,gEAA2D;AAC3D,oEAA+D;AAC/D,gFAA2E;AAC3E,yDAAyD;AACzD,yCAA6C;AAC7C,2CAAgD;AAChD,yCAA0C;AAE1C,MAAM,GAAG,GAAG;IACT,gBAAgB,EAAhB,gCAAgB;IAChB,YAAY,EAAZ,oBAAY;IACZ,cAAc,EAAd,uBAAc;IACd,iBAAiB,EAAjB,uCAAiB;IACjB,QAAQ,EAAR,oBAAQ;IACR,cAAc,EAAd,iCAAc;IACd,gBAAgB,EAAhB,qCAAgB;IAChB,SAAS,EAAT,iBAAS;IACT,sBAAsB,EAAtB,iDAAsB;
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["api.ts"],"names":[],"mappings":";;AAAA,sEAAiE;AACjE,kDAA8C;AAC9C,gEAA2D;AAC3D,oEAA+D;AAC/D,gFAA2E;AAC3E,yDAAyD;AACzD,yCAA6C;AAC7C,2CAAgD;AAChD,uCAAgD;AAChD,yCAA0C;AAE1C,MAAM,GAAG,GAAG;IACT,gBAAgB,EAAhB,gCAAgB;IAChB,YAAY,EAAZ,oBAAY;IACZ,cAAc,EAAd,uBAAc;IACd,iBAAiB,EAAjB,uCAAiB;IACjB,QAAQ,EAAR,oBAAQ;IACR,cAAc,EAAd,iCAAc;IACd,gBAAgB,EAAhB,qCAAgB;IAChB,SAAS,EAAT,iBAAS;IACT,sBAAsB,EAAtB,iDAAsB;IACtB,gBAAgB,EAAhB,uBAAgB;CAClB,CAAA;AAED,kBAAe,GAAG,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GitError } from './git-error';
|
|
2
2
|
export declare class GitPluginError extends GitError {
|
|
3
3
|
task?: import("../tasks/task").EmptyTask | import("../types").StringTask<any> | import("../types").BufferTask<any> | undefined;
|
|
4
|
-
readonly plugin?: "progress" | "timeout" | "errors" | "spawnOptions" | "baseDir" | "binary" | "maxConcurrentProcesses" | "config" | undefined;
|
|
5
|
-
constructor(task?: import("../tasks/task").EmptyTask | import("../types").StringTask<any> | import("../types").BufferTask<any> | undefined, plugin?: "progress" | "timeout" | "errors" | "spawnOptions" | "baseDir" | "binary" | "maxConcurrentProcesses" | "config" | undefined, message?: string);
|
|
4
|
+
readonly plugin?: "progress" | "timeout" | "completion" | "errors" | "spawnOptions" | "baseDir" | "binary" | "maxConcurrentProcesses" | "config" | undefined;
|
|
5
|
+
constructor(task?: import("../tasks/task").EmptyTask | import("../types").StringTask<any> | import("../types").BufferTask<any> | undefined, plugin?: "progress" | "timeout" | "completion" | "errors" | "spawnOptions" | "baseDir" | "binary" | "maxConcurrentProcesses" | "config" | undefined, message?: string);
|
|
6
6
|
}
|
|
@@ -20,5 +20,6 @@ export declare function gitExportFactory<T = {}>(factory: SimpleGitFactory, extr
|
|
|
20
20
|
GitResponseError: typeof import("./errors/git-response-error").GitResponseError;
|
|
21
21
|
ResetMode: typeof import("./tasks/reset").ResetMode;
|
|
22
22
|
TaskConfigurationError: typeof import("./errors/task-configuration-error").TaskConfigurationError;
|
|
23
|
+
grepQueryBuilder: typeof import("./tasks/grep").grepQueryBuilder;
|
|
23
24
|
};
|
|
24
25
|
export declare function gitInstanceFactory(baseDir?: string | Partial<SimpleGitOptions>, options?: Partial<SimpleGitOptions>): any;
|
|
@@ -33,6 +33,7 @@ function gitInstanceFactory(baseDir, options) {
|
|
|
33
33
|
if (Array.isArray(config.config)) {
|
|
34
34
|
plugins.add(plugins_1.commandConfigPrefixingPlugin(config.config));
|
|
35
35
|
}
|
|
36
|
+
plugins.add(plugins_1.completionDetectionPlugin(config.completion));
|
|
36
37
|
config.progress && plugins.add(plugins_1.progressMonitorPlugin(config.progress));
|
|
37
38
|
config.timeout && plugins.add(plugins_1.timeoutPlugin(config.timeout));
|
|
38
39
|
config.spawnOptions && plugins.add(plugins_1.spawnOptionsPlugin(config.spawnOptions));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-factory.js","sourceRoot":"","sources":["git-factory.ts"],"names":[],"mappings":";;;AAEA,+BAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"git-factory.js","sourceRoot":"","sources":["git-factory.ts"],"names":[],"mappings":";;;AAEA,+BAAwB;AACxB,uCASmB;AACnB,mCAA6D;AAG7D,MAAM,GAAG,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AAE9B;;;;;GAKG;AACH,SAAgB,eAAe,CAAI,aAAgB;IAChD,OAAO,MAAM,CAAC,gBAAgB,CAAC,aAAa,EAAE;QAC3C,UAAU,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC;QACzB,OAAO,EAAE,EAAC,KAAK,EAAE,aAAa,EAAC;KACjC,CAAC,CAAC;AACN,CAAC;AALD,0CAKC;AAED,SAAgB,gBAAgB,CAAS,OAAyB,EAAE,KAAQ;IACzE,OAAO,MAAM,CAAC,MAAM,CAAC,UAAU,GAAG,IAAkC;QAC9D,OAAO,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACpC,CAAC,EACD,aAAG,EACH,KAAK,IAAI,EAAE,CACb,CAAC;AACL,CAAC;AAPD,4CAOC;AAED,SAAgB,kBAAkB,CAAC,OAA4C,EAAE,OAAmC;IACjH,MAAM,OAAO,GAAG,IAAI,qBAAW,EAAE,CAAC;IAClC,MAAM,MAAM,GAAG,4BAAoB,CAChC,OAAO,IAAI,CAAC,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAC,OAAO,EAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,EACpE,OAAO,CACT,CAAC;IAEF,IAAI,CAAC,oBAAY,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE;QAChC,MAAM,IAAI,aAAG,CAAC,iBAAiB,CAAC,MAAM,EAAE,0DAA0D,CAAC,CAAC;KACtG;IAED,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE;QAC/B,OAAO,CAAC,GAAG,CAAC,sCAA4B,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;KAC3D;IAED,OAAO,CAAC,GAAG,CAAC,mCAAyB,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;IAC1D,MAAM,CAAC,QAAQ,IAAI,OAAO,CAAC,GAAG,CAAC,+BAAqB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;IACvE,MAAM,CAAC,OAAO,IAAI,OAAO,CAAC,GAAG,CAAC,uBAAa,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IAC7D,MAAM,CAAC,YAAY,IAAI,OAAO,CAAC,GAAG,CAAC,4BAAkB,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC;IAE5E,OAAO,CAAC,GAAG,CAAC,8BAAoB,CAAC,+BAAqB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC/D,MAAM,CAAC,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC,8BAAoB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IAElE,OAAO,IAAI,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACnC,CAAC;AAxBD,gDAwBC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.completionDetectionPlugin = void 0;
|
|
13
|
+
const promise_deferred_1 = require("@kwsites/promise-deferred");
|
|
14
|
+
const utils_1 = require("../utils");
|
|
15
|
+
const never = promise_deferred_1.default().promise;
|
|
16
|
+
function completionDetectionPlugin({ onClose = true, onExit = 50 } = {}) {
|
|
17
|
+
function createEvents() {
|
|
18
|
+
let exitCode = -1;
|
|
19
|
+
const events = {
|
|
20
|
+
close: promise_deferred_1.default(),
|
|
21
|
+
closeTimeout: promise_deferred_1.default(),
|
|
22
|
+
exit: promise_deferred_1.default(),
|
|
23
|
+
exitTimeout: promise_deferred_1.default(),
|
|
24
|
+
};
|
|
25
|
+
const result = Promise.race([
|
|
26
|
+
onClose === false ? never : events.closeTimeout.promise,
|
|
27
|
+
onExit === false ? never : events.exitTimeout.promise,
|
|
28
|
+
]);
|
|
29
|
+
configureTimeout(onClose, events.close, events.closeTimeout);
|
|
30
|
+
configureTimeout(onExit, events.exit, events.exitTimeout);
|
|
31
|
+
return {
|
|
32
|
+
close(code) {
|
|
33
|
+
exitCode = code;
|
|
34
|
+
events.close.done();
|
|
35
|
+
},
|
|
36
|
+
exit(code) {
|
|
37
|
+
exitCode = code;
|
|
38
|
+
events.exit.done();
|
|
39
|
+
},
|
|
40
|
+
get exitCode() {
|
|
41
|
+
return exitCode;
|
|
42
|
+
},
|
|
43
|
+
result,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function configureTimeout(flag, event, timeout) {
|
|
47
|
+
if (flag === false) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
(flag === true ? event.promise : event.promise.then(() => utils_1.delay(flag))).then(timeout.done);
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
type: 'spawn.after',
|
|
54
|
+
action(_data, { spawned, close }) {
|
|
55
|
+
var _a, _b;
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
const events = createEvents();
|
|
58
|
+
let deferClose = true;
|
|
59
|
+
let quickClose = () => void (deferClose = false);
|
|
60
|
+
(_a = spawned.stdout) === null || _a === void 0 ? void 0 : _a.on('data', quickClose);
|
|
61
|
+
(_b = spawned.stderr) === null || _b === void 0 ? void 0 : _b.on('data', quickClose);
|
|
62
|
+
spawned.on('error', quickClose);
|
|
63
|
+
spawned.on('close', (code) => events.close(code));
|
|
64
|
+
spawned.on('exit', (code) => events.exit(code));
|
|
65
|
+
try {
|
|
66
|
+
yield events.result;
|
|
67
|
+
if (deferClose) {
|
|
68
|
+
yield utils_1.delay(50);
|
|
69
|
+
}
|
|
70
|
+
close(events.exitCode);
|
|
71
|
+
}
|
|
72
|
+
catch (err) {
|
|
73
|
+
close(events.exitCode, err);
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
exports.completionDetectionPlugin = completionDetectionPlugin;
|
|
80
|
+
//# sourceMappingURL=completion-detection.plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"completion-detection.plugin.js","sourceRoot":"","sources":["completion-detection.plugin.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gEAAsE;AAEtE,oCAAiC;AAGjC,MAAM,KAAK,GAAG,0BAAQ,EAAE,CAAC,OAAO,CAAC;AAEjC,SAAgB,yBAAyB,CAAC,EACG,OAAO,GAAG,IAAI,EACd,MAAM,GAAG,EAAE,KAC2B,EAAE;IAElF,SAAS,YAAY;QAClB,IAAI,QAAQ,GAAG,CAAC,CAAC,CAAC;QAClB,MAAM,MAAM,GAAG;YACZ,KAAK,EAAE,0BAAQ,EAAE;YACjB,YAAY,EAAE,0BAAQ,EAAE;YACxB,IAAI,EAAE,0BAAQ,EAAE;YAChB,WAAW,EAAE,0BAAQ,EAAE;SACzB,CAAC;QAEF,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;YACzB,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO;YACvD,MAAM,KAAK,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,OAAO;SACvD,CAAC,CAAC;QAEH,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC;QAC7D,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;QAE1D,OAAO;YACJ,KAAK,CAAC,IAAY;gBACf,QAAQ,GAAG,IAAI,CAAC;gBAChB,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;YACvB,CAAC;YACD,IAAI,CAAC,IAAY;gBACd,QAAQ,GAAG,IAAI,CAAC;gBAChB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;YACtB,CAAC;YACD,IAAI,QAAQ;gBACT,OAAO,QAAQ,CAAC;YACnB,CAAC;YACD,MAAM;SACR,CAAC;IACL,CAAC;IAED,SAAS,gBAAgB,CAAC,IAAsB,EAAE,KAA4B,EAAE,OAA8B;QAC3G,IAAI,IAAI,KAAK,KAAK,EAAE;YACjB,OAAO;SACT;QAED,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,aAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9F,CAAC;IAED,OAAO;QACJ,IAAI,EAAE,aAAa;QACb,MAAM,CAAC,KAAK,EAAE,EAAC,OAAO,EAAE,KAAK,EAAC;;;gBACjC,MAAM,MAAM,GAAG,YAAY,EAAE,CAAC;gBAE9B,IAAI,UAAU,GAAG,IAAI,CAAC;gBACtB,IAAI,UAAU,GAAG,GAAG,EAAE,CAAC,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,CAAC;gBAEjD,MAAA,OAAO,CAAC,MAAM,0CAAE,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE;gBACvC,MAAA,OAAO,CAAC,MAAM,0CAAE,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE;gBACvC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;gBAEhC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;gBAC1D,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;gBAExD,IAAG;oBACA,MAAM,MAAM,CAAC,MAAM,CAAC;oBACpB,IAAI,UAAU,EAAE;wBACb,MAAM,aAAK,CAAC,EAAE,CAAC,CAAC;qBAClB;oBACD,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;iBACzB;gBACD,OAAO,GAAG,EAAE;oBACT,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;iBAC9B;;SACH;KACH,CAAA;AACJ,CAAC;AAzED,8DAyEC"}
|