@emulsify/cli 1.0.7 → 1.4.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/README.md +23 -0
- package/dist/handlers/componentInstall.js +37 -13
- package/dist/handlers/componentList.js +11 -11
- package/dist/handlers/hofs/withProgressBar.js +16 -0
- package/dist/handlers/init.js +63 -47
- package/dist/handlers/systemInstall.js +46 -18
- package/dist/handlers/systemList.js +1 -1
- package/dist/index.js +4 -1
- package/dist/lib/constants.js +4 -3
- package/dist/lib/log.js +5 -4
- package/dist/node_modules/.package-lock.json +71 -10
- 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/graceful-fs/README.md +11 -1
- package/dist/node_modules/graceful-fs/graceful-fs.js +105 -49
- package/dist/node_modules/graceful-fs/package.json +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 +76 -0
- package/dist/node_modules/simple-git/package.json +6 -2
- package/dist/node_modules/simple-git/readme.md +32 -2
- package/dist/node_modules/simple-git/src/git.js +0 -33
- 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/progress-monitor-plugin.js +1 -1
- package/dist/node_modules/simple-git/src/lib/plugins/progress-monitor-plugin.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/ConfigList.d.ts +2 -1
- package/dist/node_modules/simple-git/src/lib/responses/ConfigList.js +40 -6
- package/dist/node_modules/simple-git/src/lib/responses/ConfigList.js.map +1 -1
- 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 +3 -1
- package/dist/node_modules/simple-git/src/lib/simple-git-api.js.map +1 -1
- package/dist/node_modules/simple-git/src/lib/task-callback.js +1 -4
- package/dist/node_modules/simple-git/src/lib/task-callback.js.map +1 -1
- package/dist/node_modules/simple-git/src/lib/tasks/config.d.ts +1 -1
- package/dist/node_modules/simple-git/src/lib/tasks/config.js +27 -7
- package/dist/node_modules/simple-git/src/lib/tasks/config.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/tasks/log.d.ts +7 -3
- package/dist/node_modules/simple-git/src/lib/tasks/log.js +25 -4
- package/dist/node_modules/simple-git/src/lib/tasks/log.js.map +1 -1
- package/dist/node_modules/simple-git/src/lib/types/handlers.d.ts +1 -4
- 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 +60 -1
- package/dist/node_modules/simple-git/typings/simple-git.d.ts +17 -1
- package/dist/node_modules/simple-git/typings/types.d.ts +2 -1
- package/dist/package.json +7 -3
- 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 +7 -6
- package/dist/util/cache/copyItemFromCache.js +6 -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 +8 -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/package.json +8 -4
|
@@ -11,6 +11,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./command-config-prefixing-plugin"), exports);
|
|
14
|
+
__exportStar(require("./completion-detection.plugin"), exports);
|
|
14
15
|
__exportStar(require("./error-detection.plugin"), exports);
|
|
15
16
|
__exportStar(require("./plugin-store"), exports);
|
|
16
17
|
__exportStar(require("./progress-monitor-plugin"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oEAAkD;AAClD,2DAAyC;AACzC,iDAA+B;AAC/B,4DAA0C;AAC1C,sDAAoC;AACpC,yDAAuC;AACvC,kDAAgC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oEAAkD;AAClD,gEAA8C;AAC9C,2DAAyC;AACzC,iDAA+B;AAC/B,4DAA0C;AAC1C,sDAAoC;AACpC,yDAAuC;AACvC,kDAAgC"}
|
|
@@ -13,7 +13,7 @@ function progressMonitorPlugin(progress) {
|
|
|
13
13
|
return;
|
|
14
14
|
}
|
|
15
15
|
(_a = context.spawned.stderr) === null || _a === void 0 ? void 0 : _a.on('data', (chunk) => {
|
|
16
|
-
const message = /^([
|
|
16
|
+
const message = /^([\s\S]+?):\s*(\d+)% \((\d+)\/(\d+)\)/.exec(chunk.toString('utf8'));
|
|
17
17
|
if (!message) {
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress-monitor-plugin.js","sourceRoot":"","sources":["progress-monitor-plugin.ts"],"names":[],"mappings":";;;AACA,oCAA+C;AAI/C,SAAgB,qBAAqB,CAAC,QAAqD;IACxF,MAAM,eAAe,GAAG,YAAY,CAAC;IACrC,MAAM,eAAe,GAAG,CAAC,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAEvE,MAAM,UAAU,GAAmC;QAChD,IAAI,EAAE,aAAa;QACnB,MAAM,CAAC,KAAK,EAAE,OAAO;;YAClB,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE;gBAC9C,OAAO;aACT;YAED,MAAA,OAAO,CAAC,OAAO,CAAC,MAAM,0CAAE,EAAE,CAAC,MAAM,EAAE,CAAC,KAAa,EAAE,EAAE;gBAClD,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"progress-monitor-plugin.js","sourceRoot":"","sources":["progress-monitor-plugin.ts"],"names":[],"mappings":";;;AACA,oCAA+C;AAI/C,SAAgB,qBAAqB,CAAC,QAAqD;IACxF,MAAM,eAAe,GAAG,YAAY,CAAC;IACrC,MAAM,eAAe,GAAG,CAAC,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAEvE,MAAM,UAAU,GAAmC;QAChD,IAAI,EAAE,aAAa;QACnB,MAAM,CAAC,KAAK,EAAE,OAAO;;YAClB,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE;gBAC9C,OAAO;aACT;YAED,MAAA,OAAO,CAAC,OAAO,CAAC,MAAM,0CAAE,EAAE,CAAC,MAAM,EAAE,CAAC,KAAa,EAAE,EAAE;gBAClD,MAAM,OAAO,GAAG,wCAAwC,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;gBACtF,IAAI,CAAC,OAAO,EAAE;oBACX,OAAO;iBACT;gBAED,QAAQ,CAAC;oBACN,MAAM,EAAE,OAAO,CAAC,MAAM;oBACtB,KAAK,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;oBACrC,QAAQ,EAAE,gBAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;oBAC9B,SAAS,EAAE,gBAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;oBAC/B,KAAK,EAAE,gBAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;iBAC7B,CAAC,CAAC;YACN,CAAC,EAAE;QACN,CAAC;KACH,CAAC;IAEF,MAAM,MAAM,GAAkC;QAC3C,IAAI,EAAE,YAAY;QAClB,MAAM,CAAC,IAAI,EAAE,OAAO;YACjB,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;gBAC5C,OAAO,IAAI,CAAC;aACd;YAED,OAAO,iBAAS,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;QAC3C,CAAC;KACH,CAAA;IAED,OAAO,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAC/B,CAAC;AAxCD,sDAwCC;AAED,SAAS,kBAAkB,CAAE,KAAa;IACvC,OAAO,MAAM,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,SAAS,CAAC;AACjE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfigListSummary, ConfigValues } from '../../../typings';
|
|
1
|
+
import { ConfigGetResult, ConfigListSummary, ConfigValues } from '../../../typings';
|
|
2
2
|
export declare class ConfigList implements ConfigListSummary {
|
|
3
3
|
files: string[];
|
|
4
4
|
values: {
|
|
@@ -10,3 +10,4 @@ export declare class ConfigList implements ConfigListSummary {
|
|
|
10
10
|
addValue(file: string, key: string, value: string): void;
|
|
11
11
|
}
|
|
12
12
|
export declare function configListParser(text: string): ConfigList;
|
|
13
|
+
export declare function configGetParser(text: string, key: string): ConfigGetResult;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.configListParser = exports.ConfigList = void 0;
|
|
3
|
+
exports.configGetParser = exports.configListParser = exports.ConfigList = void 0;
|
|
4
4
|
const utils_1 = require("../utils");
|
|
5
5
|
class ConfigList {
|
|
6
6
|
constructor() {
|
|
@@ -40,16 +40,50 @@ class ConfigList {
|
|
|
40
40
|
exports.ConfigList = ConfigList;
|
|
41
41
|
function configListParser(text) {
|
|
42
42
|
const config = new ConfigList();
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
const file = configFilePath(lines[i++]);
|
|
46
|
-
const [key, value] = utils_1.splitOn(lines[i++], '\n');
|
|
47
|
-
config.addValue(file, key, value);
|
|
43
|
+
for (const item of configParser(text)) {
|
|
44
|
+
config.addValue(item.file, String(item.key), item.value);
|
|
48
45
|
}
|
|
49
46
|
return config;
|
|
50
47
|
}
|
|
51
48
|
exports.configListParser = configListParser;
|
|
49
|
+
function configGetParser(text, key) {
|
|
50
|
+
let value = null;
|
|
51
|
+
const values = [];
|
|
52
|
+
const scopes = new Map();
|
|
53
|
+
for (const item of configParser(text, key)) {
|
|
54
|
+
if (item.key !== key) {
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
values.push(value = item.value);
|
|
58
|
+
if (!scopes.has(item.file)) {
|
|
59
|
+
scopes.set(item.file, []);
|
|
60
|
+
}
|
|
61
|
+
scopes.get(item.file).push(value);
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
key,
|
|
65
|
+
paths: Array.from(scopes.keys()),
|
|
66
|
+
scopes,
|
|
67
|
+
value,
|
|
68
|
+
values
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
exports.configGetParser = configGetParser;
|
|
52
72
|
function configFilePath(filePath) {
|
|
53
73
|
return filePath.replace(/^(file):/, '');
|
|
54
74
|
}
|
|
75
|
+
function* configParser(text, requestedKey = null) {
|
|
76
|
+
const lines = text.split('\0');
|
|
77
|
+
for (let i = 0, max = lines.length - 1; i < max;) {
|
|
78
|
+
const file = configFilePath(lines[i++]);
|
|
79
|
+
let value = lines[i++];
|
|
80
|
+
let key = requestedKey;
|
|
81
|
+
if (value.includes('\n')) {
|
|
82
|
+
const line = utils_1.splitOn(value, '\n');
|
|
83
|
+
key = line[0];
|
|
84
|
+
value = line[1];
|
|
85
|
+
}
|
|
86
|
+
yield { file, key, value };
|
|
87
|
+
}
|
|
88
|
+
}
|
|
55
89
|
//# sourceMappingURL=ConfigList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigList.js","sourceRoot":"","sources":["ConfigList.ts"],"names":[],"mappings":";;;AACA,oCAAyC;AAEzC,MAAa,UAAU;IAAvB;QAEU,UAAK,GAAa,EAAE,CAAC;QACrB,WAAM,GAAyC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAuC7E,CAAC;IAnCE,IAAW,GAAG;QACX,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;YACb,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAiB,EAAE,IAAY,EAAE,EAAE;gBAC/D,OAAO,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;YAChD,CAAC,EAAE,EAAE,CAAC,CAAC;SACT;QAED,OAAO,IAAI,CAAC,IAAI,CAAC;IACpB,CAAC;IAEM,OAAO,CAAC,IAAY;QACxB,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,EAAE;YACzB,MAAM,MAAM,GAAG,YAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAChC,IAAI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,EAAE,EAAE,CAAC,CAAC;AAC3C,CAAC;AAED,QAAQ,CAAC,CAAC,YAAY,CAAC,IAAY,EAAE,eAA8B,IAAI;IACpE,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAE/B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,GAAG;QAC/C,MAAM,IAAI,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAExC,IAAI,KAAK,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;QACvB,IAAI,GAAG,GAAG,YAAY,CAAC;QAEvB,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;YACvB,MAAM,IAAI,GAAG,eAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;YAClC,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;YACd,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;SAClB;QAED,MAAM,EAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAC,CAAC;KAC3B;AACJ,CAAC"}
|
|
@@ -1,39 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/**
|
|
3
|
-
* The StatusSummary is returned as a response to getting `git().status()`
|
|
4
|
-
*/
|
|
1
|
+
import { StatusResult } from '../../../typings';
|
|
5
2
|
export declare class StatusSummary implements StatusResult {
|
|
6
|
-
not_added:
|
|
7
|
-
conflicted:
|
|
8
|
-
created:
|
|
9
|
-
deleted:
|
|
10
|
-
modified:
|
|
11
|
-
renamed:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
* in the `working_dir`.
|
|
15
|
-
*/
|
|
16
|
-
files: FileStatusResult[];
|
|
17
|
-
staged: string[];
|
|
18
|
-
/**
|
|
19
|
-
* Number of commits ahead of the tracked branch
|
|
20
|
-
*/
|
|
3
|
+
not_added: never[];
|
|
4
|
+
conflicted: never[];
|
|
5
|
+
created: never[];
|
|
6
|
+
deleted: never[];
|
|
7
|
+
modified: never[];
|
|
8
|
+
renamed: never[];
|
|
9
|
+
files: never[];
|
|
10
|
+
staged: never[];
|
|
21
11
|
ahead: number;
|
|
22
|
-
/**
|
|
23
|
-
*Number of commits behind the tracked branch
|
|
24
|
-
*/
|
|
25
12
|
behind: number;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
current: string | null;
|
|
30
|
-
/**
|
|
31
|
-
* Name of the branch being tracked
|
|
32
|
-
*/
|
|
33
|
-
tracking: string | null;
|
|
34
|
-
/**
|
|
35
|
-
* Gets whether this StatusSummary represents a clean working branch.
|
|
36
|
-
*/
|
|
13
|
+
current: null;
|
|
14
|
+
tracking: null;
|
|
15
|
+
detached: boolean;
|
|
37
16
|
isClean(): boolean;
|
|
38
17
|
}
|
|
39
18
|
export declare const parseStatusSummary: (text: string) => StatusResult;
|
|
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.parseStatusSummary = exports.StatusSummary = void 0;
|
|
4
4
|
const utils_1 = require("../utils");
|
|
5
5
|
const FileStatusSummary_1 = require("./FileStatusSummary");
|
|
6
|
-
/**
|
|
7
|
-
* The StatusSummary is returned as a response to getting `git().status()`
|
|
8
|
-
*/
|
|
9
6
|
class StatusSummary {
|
|
10
7
|
constructor() {
|
|
11
8
|
this.not_added = [];
|
|
@@ -14,32 +11,14 @@ class StatusSummary {
|
|
|
14
11
|
this.deleted = [];
|
|
15
12
|
this.modified = [];
|
|
16
13
|
this.renamed = [];
|
|
17
|
-
/**
|
|
18
|
-
* All files represented as an array of objects containing the `path` and status in `index` and
|
|
19
|
-
* in the `working_dir`.
|
|
20
|
-
*/
|
|
21
14
|
this.files = [];
|
|
22
15
|
this.staged = [];
|
|
23
|
-
/**
|
|
24
|
-
* Number of commits ahead of the tracked branch
|
|
25
|
-
*/
|
|
26
16
|
this.ahead = 0;
|
|
27
|
-
/**
|
|
28
|
-
*Number of commits behind the tracked branch
|
|
29
|
-
*/
|
|
30
17
|
this.behind = 0;
|
|
31
|
-
/**
|
|
32
|
-
* Name of the current branch
|
|
33
|
-
*/
|
|
34
18
|
this.current = null;
|
|
35
|
-
/**
|
|
36
|
-
* Name of the branch being tracked
|
|
37
|
-
*/
|
|
38
19
|
this.tracking = null;
|
|
20
|
+
this.detached = false;
|
|
39
21
|
}
|
|
40
|
-
/**
|
|
41
|
-
* Gets whether this StatusSummary represents a clean working branch.
|
|
42
|
-
*/
|
|
43
22
|
isClean() {
|
|
44
23
|
return !this.files.length;
|
|
45
24
|
}
|
|
@@ -113,6 +92,7 @@ const parsers = new Map([
|
|
|
113
92
|
result.tracking = regexResult && regexResult[1];
|
|
114
93
|
regexResult = onEmptyBranchReg.exec(line);
|
|
115
94
|
result.current = regexResult && regexResult[1] || result.current;
|
|
95
|
+
result.detached = /\(no branch\)/.test(line);
|
|
116
96
|
}]
|
|
117
97
|
]);
|
|
118
98
|
const parseStatusSummary = function (text) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusSummary.js","sourceRoot":"","sources":["StatusSummary.ts"],"names":[],"mappings":";;;AACA,oCAAkC;AAClC,2DAAwD;
|
|
1
|
+
{"version":3,"file":"StatusSummary.js","sourceRoot":"","sources":["StatusSummary.ts"],"names":[],"mappings":";;;AACA,oCAAkC;AAClC,2DAAwD;AAIxD,MAAa,aAAa;IAA1B;QACU,cAAS,GAAG,EAAE,CAAC;QACf,eAAU,GAAG,EAAE,CAAC;QAChB,YAAO,GAAG,EAAE,CAAC;QACb,YAAO,GAAG,EAAE,CAAC;QACb,aAAQ,GAAG,EAAE,CAAC;QACd,YAAO,GAAG,EAAE,CAAC;QACb,UAAK,GAAG,EAAE,CAAC;QACX,WAAM,GAAG,EAAE,CAAC;QACZ,UAAK,GAAG,CAAC,CAAC;QACV,WAAM,GAAG,CAAC,CAAC;QAC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,KAAK,GAAG,UAAU,EAAE,CAAC;QACpC,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAEjC,IAAI,OAAO,EAAE;YACV,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;SACxB;QAED,IAAI,GAAG,KAAK,IAAI,EAAE;YACf,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,qCAAiB,CAAC,IAAI,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC;SACpE;IACJ,CAAC;AACJ,CAAC"}
|
|
@@ -120,40 +120,26 @@ class GitExecutorChain {
|
|
|
120
120
|
return new Promise((done) => {
|
|
121
121
|
const stdOut = [];
|
|
122
122
|
const stdErr = [];
|
|
123
|
-
let attempted = false;
|
|
124
123
|
let rejection;
|
|
125
|
-
function attemptClose(exitCode, event = 'retry') {
|
|
126
|
-
// closing when there is content, terminate immediately
|
|
127
|
-
if (attempted || stdErr.length || stdOut.length) {
|
|
128
|
-
logger.info(`exitCode=%s event=%s rejection=%o`, exitCode, event, rejection);
|
|
129
|
-
done({
|
|
130
|
-
stdOut,
|
|
131
|
-
stdErr,
|
|
132
|
-
exitCode,
|
|
133
|
-
rejection,
|
|
134
|
-
});
|
|
135
|
-
attempted = true;
|
|
136
|
-
}
|
|
137
|
-
// first attempt at closing but no content yet, wait briefly for the close/exit that may follow
|
|
138
|
-
if (!attempted) {
|
|
139
|
-
attempted = true;
|
|
140
|
-
setTimeout(() => attemptClose(exitCode, 'deferred'), 50);
|
|
141
|
-
logger('received %s event before content on stdOut/stdErr', event);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
124
|
logger.info(`%s %o`, command, args);
|
|
145
125
|
logger('%O', spawnOptions);
|
|
146
126
|
const spawned = child_process_1.spawn(command, args, spawnOptions);
|
|
147
127
|
spawned.stdout.on('data', onDataReceived(stdOut, 'stdOut', logger, outputLogger.step('stdOut')));
|
|
148
128
|
spawned.stderr.on('data', onDataReceived(stdErr, 'stdErr', logger, outputLogger.step('stdErr')));
|
|
149
129
|
spawned.on('error', onErrorReceived(stdErr, logger));
|
|
150
|
-
spawned.on('close', (code) => attemptClose(code, 'close'));
|
|
151
|
-
spawned.on('exit', (code) => attemptClose(code, 'exit'));
|
|
152
130
|
if (outputHandler) {
|
|
153
131
|
logger(`Passing child process stdOut/stdErr to custom outputHandler`);
|
|
154
132
|
outputHandler(command, spawned.stdout, spawned.stderr, [...args]);
|
|
155
133
|
}
|
|
156
|
-
this._plugins.exec('spawn.after', undefined, Object.assign(Object.assign({}, pluginContext(task, args)), { spawned,
|
|
134
|
+
this._plugins.exec('spawn.after', undefined, Object.assign(Object.assign({}, pluginContext(task, args)), { spawned, close(exitCode, reason) {
|
|
135
|
+
done({
|
|
136
|
+
stdOut,
|
|
137
|
+
stdErr,
|
|
138
|
+
exitCode,
|
|
139
|
+
rejection: rejection || reason,
|
|
140
|
+
});
|
|
141
|
+
},
|
|
142
|
+
kill(reason) {
|
|
157
143
|
if (spawned.killed) {
|
|
158
144
|
return;
|
|
159
145
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-executor-chain.js","sourceRoot":"","sources":["git-executor-chain.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAAoD;AACpD,mDAA+C;AAG/C,wCAAsE;AAEtE,oCAAmF;AAEnF,+DAA0D;AAE1D,MAAa,gBAAgB;IA0B1B,YACW,SAA4B,EAC5B,UAAqB,EACrB,QAAqB;QAFrB,cAAS,GAAT,SAAS,CAAmB;QAC5B,eAAU,GAAV,UAAU,CAAW;QACrB,aAAQ,GAAR,QAAQ,CAAa;QA3BxB,WAAM,GAAiB,OAAO,CAAC,OAAO,EAAE,CAAC;QACzC,WAAM,GAAG,IAAI,uCAAiB,EAAE,CAAC;IA4BzC,CAAC;IAzBD,IAAW,MAAM;QACd,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;IAChC,CAAC;IAED,IAAW,GAAG;QACX,OAAO,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AC1B,CAAC,IACF,CAAC;YACN,CAAC,CAAC,CAAC;QACN,CAAC;KAAA;CAEH;AA/LD,4CA+LC;AAED,SAAS,aAAa,CAAI,IAAsB,EAAE,QAAkB;IACjE,OAAO;QACJ,MAAM,EAAE,aAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE;QAClC,QAAQ;KACV,CAAA;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,MAAgB,EAAE,MAAoB;IAC5D,OAAO,CAAC,GAAU,EAAE,EAAE;QACnB,MAAM,CAAC,oCAAoC,EAAE,GAAG,CAAC,CAAC;QAClD,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;IACxD,CAAC,CAAA;AACJ,CAAC;AAED,SAAS,cAAc,CAAC,MAAgB,EAAE,IAAY,EAAE,MAAoB,EAAE,MAAoB;IAC/F,OAAO,CAAC,MAAc,EAAE,EAAE;QACvB,MAAM,CAAC,sBAAsB,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;QAC7C,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACrB,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IACtB,CAAC,CAAA;AACJ,CAAC"}
|
|
@@ -4,8 +4,10 @@ exports.SimpleGitApi = void 0;
|
|
|
4
4
|
const task_callback_1 = require("./task-callback");
|
|
5
5
|
const change_working_directory_1 = require("./tasks/change-working-directory");
|
|
6
6
|
const config_1 = require("./tasks/config");
|
|
7
|
+
const grep_1 = require("./tasks/grep");
|
|
7
8
|
const hash_object_1 = require("./tasks/hash-object");
|
|
8
9
|
const init_1 = require("./tasks/init");
|
|
10
|
+
const log_1 = require("./tasks/log");
|
|
9
11
|
const merge_1 = require("./tasks/merge");
|
|
10
12
|
const push_1 = require("./tasks/push");
|
|
11
13
|
const status_1 = require("./tasks/status");
|
|
@@ -74,5 +76,5 @@ class SimpleGitApi {
|
|
|
74
76
|
}
|
|
75
77
|
}
|
|
76
78
|
exports.SimpleGitApi = SimpleGitApi;
|
|
77
|
-
Object.assign(SimpleGitApi.prototype, config_1.default());
|
|
79
|
+
Object.assign(SimpleGitApi.prototype, config_1.default(), grep_1.default(), log_1.default());
|
|
78
80
|
//# sourceMappingURL=simple-git-api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simple-git-api.js","sourceRoot":"","sources":["simple-git-api.ts"],"names":[],"mappings":";;;AACA,mDAA+C;AAC/C,+EAA8E;AAC9E,2CAAoC;AACpC,qDAAqD;AACrD,uCAAwC;AACxC,yCAA0C;AAC1C,uCAAwC;AACxC,2CAA4C;AAC5C,uCAAiF;AAEjF,mCAA0G;AAE1G,MAAa,YAAY;IAEtB,YAAoB,SAA4B;QAA5B,cAAS,GAAT,SAAS,CAAmB;IAChD,CAAC;IAES,QAAQ,CAAI,IAAsB,EAAE,IAA+B;QAC1E,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;QACrC,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEjC,IAAI,IAAI,EAAE;YACP,4BAAY,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;SACpC;QAED,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE;YACxB,IAAI,EAAE,EAAC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,EAAC;YACzC,KAAK,EAAE,EAAC,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,EAAC;YAC3C,SAAS,EAAE,EAAC,KAAK,EAAE,KAAK,EAAC;SAC3B,CAAC,CAAC;IACN,CAAC;IAED,GAAG,CAAC,KAAwB;QACzB,OAAO,IAAI,CAAC,QAAQ,CACjB,gCAAyB,CAAC,CAAC,KAAK,EAAE,GAAG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OOP) {
|
|
|
9
9
|
};
|
|
10
10
|
const onError = (err) => {
|
|
11
11
|
if ((err === null || err === void 0 ? void 0 : err.task) === task) {
|
|
12
|
-
|
|
13
|
-
return callback(addDeprecationNoticeToError(err));
|
|
14
|
-
}
|
|
15
|
-
callback(err);
|
|
12
|
+
callback((err instanceof git_response_error_1.GitResponseError) ? addDeprecationNoticeToError(err) : err, undefined);
|
|
16
13
|
}
|
|
17
14
|
};
|
|
18
15
|
response.then(onSuccess, onError);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-callback.js","sourceRoot":"","sources":["task-callback.ts"],"names":[],"mappings":";;;AACA,oEAA+D;AAE/D,mCAA+B;AAE/B,SAAgB,YAAY,CAAI,IAAsB,EAAE,QAAoB,EAAE,WAAqC,YAAI;IAEpH,MAAM,SAAS,GAAG,CAAC,IAAO,EAAE,EAAE;QAC3B,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACxB,CAAC,CAAC;IAEF,MAAM,OAAO,GAAG,CAAC,GAAgC,EAAE,EAAE;QAClD,IAAI,CAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,IAAI,MAAK,IAAI,EAAE;YACrB,
|
|
1
|
+
{"version":3,"file":"task-callback.js","sourceRoot":"","sources":["task-callback.ts"],"names":[],"mappings":";;;AACA,oEAA+D;AAE/D,mCAA+B;AAE/B,SAAgB,YAAY,CAAI,IAAsB,EAAE,QAAoB,EAAE,WAAqC,YAAI;IAEpH,MAAM,SAAS,GAAG,CAAC,IAAO,EAAE,EAAE;QAC3B,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACxB,CAAC,CAAC;IAEF,MAAM,OAAO,GAAG,CAAC,GAAgC,EAAE,EAAE;QAClD,IAAI,CAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,IAAI,MAAK,IAAI,EAAE;YACrB,QAAQ,CAAC,CAAC,GAAG,YAAY,qCAAgB,CAAC,CAAC,CAAC,CAAC,2BAA2B,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,SAAgB,CAAC,CAAC;SACzG;IACJ,CAAC,CAAC;IAEF,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAErC,CAAC;AAdD,oCAcC;AAED,SAAS,2BAA2B,CAAE,GAAqB;IACxD,IAAI,GAAG,GAAG,CAAC,IAAY,EAAE,EAAE;QACxB,OAAO,CAAC,IAAI,CAAC,6DAA6D,IAAI,mCAAmC,IAAI,iDAAiD,CAAC,CAAC;QACxK,GAAG,GAAG,YAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,mBAAmB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC,CAAC;IAE7F,SAAS,iBAAiB,CAAC,GAA0B,EAAE,IAAY;QAChE,IAAI,IAAI,IAAI,GAAG,EAAE;YACd,OAAO,GAAG,CAAC;SACb;QAED,GAAG,CAAC,IAAI,CAAC,GAAG;YACT,UAAU,EAAE,KAAK;YACjB,YAAY,EAAE,KAAK;YACnB,GAAG;gBACA,GAAG,CAAC,IAAI,CAAC,CAAC;gBACV,OAAO,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YACxB,CAAC;SACH,CAAC;QAEF,OAAO,GAAG,CAAC;IACd,CAAC;AACJ,CAAC"}
|
|
@@ -10,11 +10,11 @@ var GitConfigScope;
|
|
|
10
10
|
GitConfigScope["local"] = "local";
|
|
11
11
|
GitConfigScope["worktree"] = "worktree";
|
|
12
12
|
})(GitConfigScope = exports.GitConfigScope || (exports.GitConfigScope = {}));
|
|
13
|
-
function asConfigScope(scope) {
|
|
13
|
+
function asConfigScope(scope, fallback) {
|
|
14
14
|
if (typeof scope === 'string' && GitConfigScope.hasOwnProperty(scope)) {
|
|
15
15
|
return scope;
|
|
16
16
|
}
|
|
17
|
-
return
|
|
17
|
+
return fallback;
|
|
18
18
|
}
|
|
19
19
|
function addConfigTask(key, value, append, scope) {
|
|
20
20
|
const commands = ['config', `--${scope}`];
|
|
@@ -30,9 +30,26 @@ function addConfigTask(key, value, append, scope) {
|
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function getConfigTask(key, scope) {
|
|
34
|
+
const commands = ['config', '--null', '--show-origin', '--get-all', key];
|
|
35
|
+
if (scope) {
|
|
36
|
+
commands.splice(1, 0, `--${scope}`);
|
|
37
|
+
}
|
|
34
38
|
return {
|
|
35
|
-
commands
|
|
39
|
+
commands,
|
|
40
|
+
format: 'utf-8',
|
|
41
|
+
parser(text) {
|
|
42
|
+
return ConfigList_1.configGetParser(text, key);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function listConfigTask(scope) {
|
|
47
|
+
const commands = ['config', '--list', '--show-origin', '--null'];
|
|
48
|
+
if (scope) {
|
|
49
|
+
commands.push(`--${scope}`);
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
commands,
|
|
36
53
|
format: 'utf-8',
|
|
37
54
|
parser(text) {
|
|
38
55
|
return ConfigList_1.configListParser(text);
|
|
@@ -42,10 +59,13 @@ function listConfigTask() {
|
|
|
42
59
|
function default_1() {
|
|
43
60
|
return {
|
|
44
61
|
addConfig(key, value, ...rest) {
|
|
45
|
-
return this._runTask(addConfigTask(key, value, rest[0] === true, asConfigScope(rest[1])), utils_1.trailingFunctionArgument(arguments));
|
|
62
|
+
return this._runTask(addConfigTask(key, value, rest[0] === true, asConfigScope(rest[1], GitConfigScope.local)), utils_1.trailingFunctionArgument(arguments));
|
|
63
|
+
},
|
|
64
|
+
getConfig(key, scope) {
|
|
65
|
+
return this._runTask(getConfigTask(key, asConfigScope(scope, undefined)), utils_1.trailingFunctionArgument(arguments));
|
|
46
66
|
},
|
|
47
|
-
listConfig() {
|
|
48
|
-
return this._runTask(listConfigTask(), utils_1.trailingFunctionArgument(arguments));
|
|
67
|
+
listConfig(...rest) {
|
|
68
|
+
return this._runTask(listConfigTask(asConfigScope(rest[0], undefined)), utils_1.trailingFunctionArgument(arguments));
|
|
49
69
|
},
|
|
50
70
|
};
|
|
51
71
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["config.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["config.ts"],"names":[],"mappings":";;;AACA,wDAA4E;AAG5E,oCAAoD;AAEpD,IAAY,cAKX;AALD,WAAY,cAAc;IACvB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,iCAAe,CAAA;IACf,uCAAqB,CAAA;AACxB,CAAC,EALW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAKzB;AAED,SAAS,aAAa,CAAuC,KAA+B,EAAE,QAAW;IACtG,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,cAAc,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE;QACpE,OAAO,KAAuB,CAAC;KACjC;IACD,OAAO,QAAQ,CAAC;AACnB,CAAC;AAED,SAAS,aAAa,CAAC,GAAW,EAAE,KAAa,EAAE,MAAe,EAAE,KAAqB;IACtF,MAAM,QAAQ,GAAa,CAAC,QAAQ,EAAE,KAAK,KAAK,EAAE,CAAC,CAAC;IAEpD,IAAI,MAAM,EAAE;QACT,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACzB;IAED,QAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IAE1B,OAAO;QACJ,QAAQ;QACR,MAAM,EAAE,OAAO;QACf,MAAM,CAAC,IAAY;YAChB,OAAO,IAAI,CAAC;QACf,CAAC;KACH,CAAA;AACJ,CAAC;AAED,SAAS,aAAa,CAAC,GAAW,EAAE,KAAsB;IACvD,MAAM,QAAQ,GAAa,CAAC,QAA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AAG,IAAe;YAC9C,OAAO,IAAI,CAAC,QAAQ,CACjB,cAAc,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,EACjD,gCAAwB,CAAC,SAAS,CAAC,CACrC,CAAC;QACL,CAAC;KACH,CAAC;AACL,CAAC;AAvBD,4BAuBC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SimpleGit } from '../../../typings';
|
|
2
|
+
export interface GitGrepQuery extends Iterable<string> {
|
|
3
|
+
/** Adds one or more terms to be grouped as an "and" to any other terms */
|
|
4
|
+
and(...and: string[]): this;
|
|
5
|
+
/** Adds one or more search terms - git.grep will "or" this to other terms */
|
|
6
|
+
param(...param: string[]): this;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new builder for a `git.grep` query with optional params
|
|
10
|
+
*/
|
|
11
|
+
export declare function grepQueryBuilder(...params: string[]): GitGrepQuery;
|
|
12
|
+
export default function (): Pick<SimpleGit, 'grep'>;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.grepQueryBuilder = void 0;
|
|
5
|
+
const utils_1 = require("../utils");
|
|
6
|
+
const task_1 = require("./task");
|
|
7
|
+
const disallowedOptions = ['-h'];
|
|
8
|
+
const Query = Symbol('grepQuery');
|
|
9
|
+
class GrepQuery {
|
|
10
|
+
constructor() {
|
|
11
|
+
this[_a] = [];
|
|
12
|
+
}
|
|
13
|
+
*[(_a = Query, Symbol.iterator)]() {
|
|
14
|
+
for (const query of this[Query]) {
|
|
15
|
+
yield query;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
and(...and) {
|
|
19
|
+
and.length && this[Query].push('--and', '(', ...utils_1.prefixedArray(and, '-e'), ')');
|
|
20
|
+
return this;
|
|
21
|
+
}
|
|
22
|
+
param(...param) {
|
|
23
|
+
this[Query].push(...utils_1.prefixedArray(param, '-e'));
|
|
24
|
+
return this;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Creates a new builder for a `git.grep` query with optional params
|
|
29
|
+
*/
|
|
30
|
+
function grepQueryBuilder(...params) {
|
|
31
|
+
return new GrepQuery().param(...params);
|
|
32
|
+
}
|
|
33
|
+
exports.grepQueryBuilder = grepQueryBuilder;
|
|
34
|
+
function parseGrep(grep) {
|
|
35
|
+
const paths = new Set();
|
|
36
|
+
const results = {};
|
|
37
|
+
utils_1.forEachLineWithContent(grep, (input) => {
|
|
38
|
+
const [path, line, preview] = input.split(utils_1.NULL);
|
|
39
|
+
paths.add(path);
|
|
40
|
+
(results[path] = results[path] || []).push({
|
|
41
|
+
line: utils_1.asNumber(line),
|
|
42
|
+
path,
|
|
43
|
+
preview,
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
return {
|
|
47
|
+
paths,
|
|
48
|
+
results,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function default_1() {
|
|
52
|
+
return {
|
|
53
|
+
grep(searchTerm) {
|
|
54
|
+
const then = utils_1.trailingFunctionArgument(arguments);
|
|
55
|
+
const options = utils_1.getTrailingOptions(arguments);
|
|
56
|
+
for (const option of disallowedOptions) {
|
|
57
|
+
if (options.includes(option)) {
|
|
58
|
+
return this._runTask(task_1.configurationErrorTask(`git.grep: use of "${option}" is not supported.`), then);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
if (typeof searchTerm === 'string') {
|
|
62
|
+
searchTerm = grepQueryBuilder().param(searchTerm);
|
|
63
|
+
}
|
|
64
|
+
const commands = ['grep', '--null', '-n', '--full-name', ...options, ...searchTerm];
|
|
65
|
+
return this._runTask({
|
|
66
|
+
commands,
|
|
67
|
+
format: 'utf-8',
|
|
68
|
+
parser(stdOut) {
|
|
69
|
+
return parseGrep(stdOut);
|
|
70
|
+
},
|
|
71
|
+
}, then);
|
|
72
|
+
}
|
|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E,IAAI,CAAC,CAAC;QACZ,CAAC;KACH,CAAA;AACJ,CAAC;AA9BD,4BA8BC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Options, StringTask } from '../types';
|
|
2
|
-
import { LogResult } from '../../../typings';
|
|
2
|
+
import { LogResult, SimpleGit } from '../../../typings';
|
|
3
3
|
export interface DefaultLogFields {
|
|
4
4
|
hash: string;
|
|
5
5
|
date: string;
|
|
@@ -13,6 +13,7 @@ export declare type LogOptions<T = DefaultLogFields> = {
|
|
|
13
13
|
file?: string;
|
|
14
14
|
format?: T;
|
|
15
15
|
from?: string;
|
|
16
|
+
mailMap?: boolean;
|
|
16
17
|
maxCount?: number;
|
|
17
18
|
multiLine?: boolean;
|
|
18
19
|
splitter?: string;
|
|
@@ -20,9 +21,12 @@ export declare type LogOptions<T = DefaultLogFields> = {
|
|
|
20
21
|
symmetric?: boolean;
|
|
21
22
|
to?: string;
|
|
22
23
|
};
|
|
23
|
-
|
|
24
|
+
interface ParsedLogOptions {
|
|
24
25
|
fields: string[];
|
|
25
26
|
splitter: string;
|
|
26
27
|
commands: string[];
|
|
27
|
-
}
|
|
28
|
+
}
|
|
29
|
+
export declare function parseLogOptions<T extends Options>(opt?: LogOptions<T>, customArgs?: string[]): ParsedLogOptions;
|
|
28
30
|
export declare function logTask<T>(splitter: string, fields: string[], customArgs: string[]): StringTask<LogResult<T>>;
|
|
31
|
+
export default function (): Pick<SimpleGit, 'log'>;
|
|
32
|
+
export {};
|