@emulsify/cli 1.5.0 → 1.7.1
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 +89 -1
- package/dist/handlers/componentInstall.js +9 -5
- package/dist/handlers/componentList.js +1 -1
- package/dist/handlers/init.js +1 -1
- package/dist/handlers/systemInstall.js +27 -11
- package/dist/index.js +13 -21
- package/dist/node_modules/.package-lock.json +34 -43
- package/dist/node_modules/@types/node/LICENSE +0 -0
- package/dist/node_modules/@types/node/README.md +3 -3
- package/dist/node_modules/@types/node/assert.d.ts +33 -31
- package/dist/node_modules/@types/node/async_hooks.d.ts +29 -21
- package/dist/node_modules/@types/node/buffer.d.ts +67 -3
- package/dist/node_modules/@types/node/child_process.d.ts +230 -62
- package/dist/node_modules/@types/node/cluster.d.ts +62 -27
- package/dist/node_modules/@types/node/console.d.ts +6 -6
- package/dist/node_modules/@types/node/constants.d.ts +12 -11
- package/dist/node_modules/@types/node/crypto.d.ts +338 -240
- package/dist/node_modules/@types/node/dgram.d.ts +50 -14
- package/dist/node_modules/@types/node/dns.d.ts +183 -54
- package/dist/node_modules/@types/node/domain.d.ts +4 -4
- package/dist/node_modules/@types/node/events.d.ts +4 -4
- package/dist/node_modules/@types/node/fs/promises.d.ts +105 -39
- package/dist/node_modules/@types/node/fs.d.ts +440 -126
- package/dist/node_modules/@types/node/globals.d.ts +176 -24
- package/dist/node_modules/@types/node/globals.global.d.ts +0 -0
- package/dist/node_modules/@types/node/http.d.ts +309 -218
- package/dist/node_modules/@types/node/http2.d.ts +345 -98
- package/dist/node_modules/@types/node/https.d.ts +250 -118
- package/dist/node_modules/@types/node/index.d.ts +1 -2
- package/dist/node_modules/@types/node/inspector.d.ts +2 -3
- package/dist/node_modules/@types/node/module.d.ts +4 -4
- package/dist/node_modules/@types/node/net.d.ts +42 -14
- package/dist/node_modules/@types/node/os.d.ts +5 -4
- package/dist/node_modules/@types/node/package.json +10 -8
- package/dist/node_modules/@types/node/path.d.ts +35 -24
- package/dist/node_modules/@types/node/perf_hooks.d.ts +5 -5
- package/dist/node_modules/@types/node/process.d.ts +62 -23
- package/dist/node_modules/@types/node/punycode.d.ts +3 -3
- package/dist/node_modules/@types/node/querystring.d.ts +15 -5
- package/dist/node_modules/@types/node/readline.d.ts +16 -6
- package/dist/node_modules/@types/node/repl.d.ts +13 -7
- package/dist/node_modules/@types/node/stream.d.ts +190 -31
- package/dist/node_modules/@types/node/string_decoder.d.ts +3 -3
- package/dist/node_modules/@types/node/timers.d.ts +6 -6
- package/dist/node_modules/@types/node/tls.d.ts +113 -30
- package/dist/node_modules/@types/node/trace_events.d.ts +3 -3
- package/dist/node_modules/@types/node/ts4.8/assert.d.ts +130 -0
- package/dist/node_modules/@types/node/ts4.8/async_hooks.d.ts +237 -0
- package/dist/node_modules/@types/node/ts4.8/buffer.d.ts +89 -0
- package/dist/node_modules/@types/node/ts4.8/child_process.d.ts +682 -0
- package/dist/node_modules/@types/node/ts4.8/cluster.d.ts +300 -0
- package/dist/node_modules/@types/node/ts4.8/console.d.ts +142 -0
- package/dist/node_modules/@types/node/ts4.8/constants.d.ts +19 -0
- package/dist/node_modules/@types/node/ts4.8/crypto.d.ts +1287 -0
- package/dist/node_modules/@types/node/ts4.8/dgram.d.ts +180 -0
- package/dist/node_modules/@types/node/ts4.8/dns.d.ts +516 -0
- package/dist/node_modules/@types/node/ts4.8/domain.d.ts +27 -0
- package/dist/node_modules/@types/node/ts4.8/events.d.ts +82 -0
- package/dist/node_modules/@types/node/ts4.8/fs/promises.d.ts +634 -0
- package/dist/node_modules/@types/node/ts4.8/fs.d.ts +2587 -0
- package/dist/node_modules/@types/node/ts4.8/globals.d.ts +763 -0
- package/dist/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/dist/node_modules/@types/node/ts4.8/http.d.ts +580 -0
- package/dist/node_modules/@types/node/ts4.8/http2.d.ts +1208 -0
- package/dist/node_modules/@types/node/ts4.8/https.d.ts +274 -0
- package/dist/node_modules/@types/node/ts4.8/index.d.ts +53 -0
- package/dist/node_modules/@types/node/ts4.8/inspector.d.ts +3050 -0
- package/dist/node_modules/@types/node/ts4.8/module.d.ts +56 -0
- package/dist/node_modules/@types/node/ts4.8/net.d.ts +324 -0
- package/dist/node_modules/@types/node/ts4.8/os.d.ts +243 -0
- package/dist/node_modules/@types/node/ts4.8/path.d.ts +168 -0
- package/dist/node_modules/@types/node/ts4.8/perf_hooks.d.ts +274 -0
- package/dist/node_modules/@types/node/ts4.8/process.d.ts +452 -0
- package/dist/node_modules/@types/node/ts4.8/punycode.d.ts +78 -0
- package/dist/node_modules/@types/node/ts4.8/querystring.d.ts +41 -0
- package/dist/node_modules/@types/node/ts4.8/readline.d.ts +184 -0
- package/dist/node_modules/@types/node/ts4.8/repl.d.ts +404 -0
- package/dist/node_modules/@types/node/ts4.8/stream.d.ts +518 -0
- package/dist/node_modules/@types/node/ts4.8/string_decoder.d.ts +10 -0
- package/dist/node_modules/@types/node/ts4.8/timers.d.ts +19 -0
- package/dist/node_modules/@types/node/ts4.8/tls.d.ts +866 -0
- package/dist/node_modules/@types/node/ts4.8/trace_events.d.ts +64 -0
- package/dist/node_modules/@types/node/ts4.8/tty.d.ts +69 -0
- package/dist/node_modules/@types/node/ts4.8/url.d.ts +187 -0
- package/dist/node_modules/@types/node/ts4.8/util.d.ts +278 -0
- package/dist/node_modules/@types/node/ts4.8/v8.d.ts +189 -0
- package/dist/node_modules/@types/node/ts4.8/vm.d.ts +155 -0
- package/dist/node_modules/@types/node/ts4.8/wasi.d.ts +88 -0
- package/dist/node_modules/@types/node/ts4.8/worker_threads.d.ts +241 -0
- package/dist/node_modules/@types/node/ts4.8/zlib.d.ts +364 -0
- package/dist/node_modules/@types/node/tty.d.ts +4 -4
- package/dist/node_modules/@types/node/url.d.ts +75 -7
- package/dist/node_modules/@types/node/util.d.ts +103 -41
- package/dist/node_modules/@types/node/v8.d.ts +4 -5
- package/dist/node_modules/@types/node/vm.d.ts +7 -7
- package/dist/node_modules/@types/node/wasi.d.ts +3 -4
- package/dist/node_modules/@types/node/worker_threads.d.ts +8 -8
- package/dist/node_modules/@types/node/zlib.d.ts +13 -13
- package/dist/node_modules/@types/progress/LICENSE +0 -0
- package/dist/node_modules/@types/progress/README.md +2 -3
- package/dist/node_modules/@types/progress/index.d.ts +0 -5
- package/dist/node_modules/@types/progress/package.json +6 -6
- package/dist/node_modules/ajv-formats/node_modules/ajv/README.md +20 -5
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2019.d.ts +3 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2019.js +7 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2019.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2020.d.ts +3 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2020.js +7 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2020.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/ajv.d.ts +3 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/ajv.js +7 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/ajv.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.d.ts +6 -5
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js +9 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.d.ts +2 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.d.ts +5 -5
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js +9 -10
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.js +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js +19 -8
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.d.ts +2 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js +6 -6
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.d.ts +2 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.js +3 -3
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.d.ts +6 -6
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js +16 -14
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.d.ts +2 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.d.ts +2 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js +2 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js +12 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/core.d.ts +7 -5
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/core.js +22 -18
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/core.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/jtd.d.ts +4 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/jtd.js +7 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/jtd.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.js +2 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.js +8 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/index.d.ts +25 -19
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.d.ts +15 -14
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.d.ts +31 -25
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +2 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.js +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js +10 -3
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +3 -3
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.js +8 -5
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.js +3 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +3 -3
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.js +10 -7
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.js +4 -3
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.d.ts +2 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +3 -3
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/2019.ts +4 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/2020.ts +4 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/ajv.ts +4 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/code.ts +8 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/index.ts +25 -5
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/index.ts +8 -8
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/parse.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/serialize.ts +21 -15
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/types.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/ref_error.ts +4 -3
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/resolve.ts +18 -15
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/rules.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/dataType.ts +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/index.ts +11 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/core.ts +13 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/jtd.ts +4 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/parseJson.ts +2 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/uri.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/standalone/index.ts +9 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/index.ts +14 -3
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/json-schema.ts +2 -4
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/jtd-schema.ts +25 -16
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/ref.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/index.ts +11 -3
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/properties.ts +13 -6
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/ref.ts +3 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/values.ts +10 -7
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/enum.ts +5 -3
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/package.json +40 -38
- package/dist/node_modules/commander/Readme.md +407 -169
- package/dist/node_modules/commander/esm.mjs +13 -1
- package/dist/node_modules/commander/index.js +13 -2206
- package/dist/node_modules/commander/lib/argument.js +145 -0
- package/dist/node_modules/commander/lib/command.js +2299 -0
- package/dist/node_modules/commander/lib/error.js +43 -0
- package/dist/node_modules/commander/lib/help.js +457 -0
- package/dist/node_modules/commander/lib/option.js +327 -0
- package/dist/node_modules/commander/lib/suggestSimilar.js +100 -0
- package/dist/node_modules/commander/package.json +46 -34
- package/dist/node_modules/commander/typings/esm.d.mts +3 -0
- package/dist/node_modules/commander/typings/index.d.ts +889 -617
- package/dist/node_modules/debug/README.md +3 -0
- package/dist/node_modules/debug/package.json +1 -1
- package/dist/node_modules/debug/src/common.js +1 -1
- package/dist/node_modules/fs-extra/README.md +3 -5
- package/dist/node_modules/fs-extra/lib/{copy-sync → copy}/copy-sync.js +11 -8
- package/dist/node_modules/fs-extra/lib/copy/copy.js +12 -9
- package/dist/node_modules/fs-extra/lib/copy/index.js +2 -1
- package/dist/node_modules/fs-extra/lib/empty/index.js +10 -19
- package/dist/node_modules/fs-extra/lib/ensure/index.js +15 -15
- package/dist/node_modules/fs-extra/lib/ensure/link.js +10 -7
- package/dist/node_modules/fs-extra/lib/ensure/symlink.js +34 -15
- package/dist/node_modules/fs-extra/lib/fs/index.js +8 -10
- package/dist/node_modules/fs-extra/lib/index.js +1 -12
- package/dist/node_modules/fs-extra/lib/json/output-json-sync.js +1 -1
- package/dist/node_modules/fs-extra/lib/json/output-json.js +1 -1
- package/dist/node_modules/fs-extra/lib/mkdirs/make-dir.js +16 -130
- package/dist/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
- package/dist/node_modules/fs-extra/lib/move/index.js +2 -1
- package/dist/node_modules/fs-extra/lib/{move-sync → move}/move-sync.js +12 -5
- package/dist/node_modules/fs-extra/lib/move/move.js +14 -4
- package/dist/node_modules/fs-extra/lib/remove/index.js +15 -2
- package/dist/node_modules/fs-extra/lib/util/stat.js +60 -45
- package/dist/node_modules/fs-extra/package.json +7 -10
- package/dist/node_modules/graceful-fs/LICENSE +1 -1
- package/dist/node_modules/graceful-fs/graceful-fs.js +23 -4
- package/dist/node_modules/graceful-fs/package.json +6 -3
- package/dist/node_modules/graceful-fs/polyfills.js +39 -30
- package/dist/node_modules/punycode/README.md +29 -3
- package/dist/node_modules/punycode/package.json +7 -7
- package/dist/node_modules/punycode/punycode.es6.js +25 -22
- package/dist/node_modules/punycode/punycode.js +25 -22
- package/dist/node_modules/ramda/dist/ramda.js +4 -4
- package/dist/node_modules/ramda/dist/ramda.min.js +1 -1
- package/dist/node_modules/ramda/es/trim.js +1 -1
- package/dist/node_modules/ramda/package.json +1 -1
- package/dist/node_modules/ramda/src/trim.js +1 -1
- package/dist/node_modules/universalify/README.md +1 -1
- package/dist/node_modules/universalify/index.js +6 -6
- package/dist/node_modules/universalify/package.json +2 -2
- package/dist/package.json +5 -6
- package/dist/schemas/variant.json +28 -5
- package/dist/util/cache/cloneIntoCache.js +1 -1
- package/dist/util/cache/getCachedItemPath.js +4 -2
- package/dist/util/cache/getJsonFromCachedFile.js +2 -2
- package/dist/util/getGitRepoNameFromUrl.js +1 -1
- package/dist/util/getRepositoryLatestTag.js +16 -0
- package/dist/util/platform/getInitSuccessMessageForPlatform.js +4 -3
- package/dist/util/project/buildComponentDependencyList.js +20 -0
- package/package.json +6 -7
- package/dist/node_modules/at-least-node/LICENSE +0 -6
- package/dist/node_modules/at-least-node/README.md +0 -25
- package/dist/node_modules/at-least-node/index.js +0 -5
- package/dist/node_modules/at-least-node/package.json +0 -32
- package/dist/node_modules/commander/CHANGELOG.md +0 -440
- package/dist/node_modules/fs-extra/CHANGELOG.md +0 -902
- package/dist/node_modules/fs-extra/lib/copy-sync/index.js +0 -5
- package/dist/node_modules/fs-extra/lib/move-sync/index.js +0 -5
- /package/dist/node_modules/fs-extra/lib/{output → output-file}/index.js +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const fs = require('graceful-fs')
|
|
4
4
|
const path = require('path')
|
|
5
|
-
const copySync = require('../copy
|
|
5
|
+
const copySync = require('../copy').copySync
|
|
6
6
|
const removeSync = require('../remove').removeSync
|
|
7
7
|
const mkdirpSync = require('../mkdirs').mkdirpSync
|
|
8
8
|
const stat = require('../util/stat')
|
|
@@ -11,13 +11,20 @@ function moveSync (src, dest, opts) {
|
|
|
11
11
|
opts = opts || {}
|
|
12
12
|
const overwrite = opts.overwrite || opts.clobber || false
|
|
13
13
|
|
|
14
|
-
const { srcStat } = stat.checkPathsSync(src, dest, 'move')
|
|
14
|
+
const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, 'move', opts)
|
|
15
15
|
stat.checkParentPathsSync(src, srcStat, dest, 'move')
|
|
16
|
-
mkdirpSync(path.dirname(dest))
|
|
17
|
-
return doRename(src, dest, overwrite)
|
|
16
|
+
if (!isParentRoot(dest)) mkdirpSync(path.dirname(dest))
|
|
17
|
+
return doRename(src, dest, overwrite, isChangingCase)
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
function
|
|
20
|
+
function isParentRoot (dest) {
|
|
21
|
+
const parent = path.dirname(dest)
|
|
22
|
+
const parsedPath = path.parse(parent)
|
|
23
|
+
return parsedPath.root === parent
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function doRename (src, dest, overwrite, isChangingCase) {
|
|
27
|
+
if (isChangingCase) return rename(src, dest, overwrite)
|
|
21
28
|
if (overwrite) {
|
|
22
29
|
removeSync(dest)
|
|
23
30
|
return rename(src, dest, overwrite)
|
|
@@ -14,22 +14,32 @@ function move (src, dest, opts, cb) {
|
|
|
14
14
|
opts = {}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
opts = opts || {}
|
|
18
|
+
|
|
17
19
|
const overwrite = opts.overwrite || opts.clobber || false
|
|
18
20
|
|
|
19
|
-
stat.checkPaths(src, dest, 'move', (err, stats) => {
|
|
21
|
+
stat.checkPaths(src, dest, 'move', opts, (err, stats) => {
|
|
20
22
|
if (err) return cb(err)
|
|
21
|
-
const { srcStat } = stats
|
|
23
|
+
const { srcStat, isChangingCase = false } = stats
|
|
22
24
|
stat.checkParentPaths(src, srcStat, dest, 'move', err => {
|
|
23
25
|
if (err) return cb(err)
|
|
26
|
+
if (isParentRoot(dest)) return doRename(src, dest, overwrite, isChangingCase, cb)
|
|
24
27
|
mkdirp(path.dirname(dest), err => {
|
|
25
28
|
if (err) return cb(err)
|
|
26
|
-
return doRename(src, dest, overwrite, cb)
|
|
29
|
+
return doRename(src, dest, overwrite, isChangingCase, cb)
|
|
27
30
|
})
|
|
28
31
|
})
|
|
29
32
|
})
|
|
30
33
|
}
|
|
31
34
|
|
|
32
|
-
function
|
|
35
|
+
function isParentRoot (dest) {
|
|
36
|
+
const parent = path.dirname(dest)
|
|
37
|
+
const parsedPath = path.parse(parent)
|
|
38
|
+
return parsedPath.root === parent
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function doRename (src, dest, overwrite, isChangingCase, cb) {
|
|
42
|
+
if (isChangingCase) return rename(src, dest, overwrite, cb)
|
|
33
43
|
if (overwrite) {
|
|
34
44
|
return remove(dest, err => {
|
|
35
45
|
if (err) return cb(err)
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
+
const fs = require('graceful-fs')
|
|
3
4
|
const u = require('universalify').fromCallback
|
|
4
5
|
const rimraf = require('./rimraf')
|
|
5
6
|
|
|
7
|
+
function remove (path, callback) {
|
|
8
|
+
// Node 14.14.0+
|
|
9
|
+
if (fs.rm) return fs.rm(path, { recursive: true, force: true }, callback)
|
|
10
|
+
rimraf(path, callback)
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function removeSync (path) {
|
|
14
|
+
// Node 14.14.0+
|
|
15
|
+
if (fs.rmSync) return fs.rmSync(path, { recursive: true, force: true })
|
|
16
|
+
rimraf.sync(path)
|
|
17
|
+
}
|
|
18
|
+
|
|
6
19
|
module.exports = {
|
|
7
|
-
remove: u(
|
|
8
|
-
removeSync
|
|
20
|
+
remove: u(remove),
|
|
21
|
+
removeSync
|
|
9
22
|
}
|
|
@@ -3,27 +3,28 @@
|
|
|
3
3
|
const fs = require('../fs')
|
|
4
4
|
const path = require('path')
|
|
5
5
|
const util = require('util')
|
|
6
|
-
const atLeastNode = require('at-least-node')
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
function getStats (src, dest) {
|
|
7
|
+
function getStats (src, dest, opts) {
|
|
8
|
+
const statFunc = opts.dereference
|
|
9
|
+
? (file) => fs.stat(file, { bigint: true })
|
|
10
|
+
: (file) => fs.lstat(file, { bigint: true })
|
|
13
11
|
return Promise.all([
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
statFunc(src),
|
|
13
|
+
statFunc(dest).catch(err => {
|
|
16
14
|
if (err.code === 'ENOENT') return null
|
|
17
15
|
throw err
|
|
18
16
|
})
|
|
19
17
|
]).then(([srcStat, destStat]) => ({ srcStat, destStat }))
|
|
20
18
|
}
|
|
21
19
|
|
|
22
|
-
function getStatsSync (src, dest) {
|
|
20
|
+
function getStatsSync (src, dest, opts) {
|
|
23
21
|
let destStat
|
|
24
|
-
const
|
|
22
|
+
const statFunc = opts.dereference
|
|
23
|
+
? (file) => fs.statSync(file, { bigint: true })
|
|
24
|
+
: (file) => fs.lstatSync(file, { bigint: true })
|
|
25
|
+
const srcStat = statFunc(src)
|
|
25
26
|
try {
|
|
26
|
-
destStat =
|
|
27
|
+
destStat = statFunc(dest)
|
|
27
28
|
} catch (err) {
|
|
28
29
|
if (err.code === 'ENOENT') return { srcStat, destStat: null }
|
|
29
30
|
throw err
|
|
@@ -31,13 +32,30 @@ function getStatsSync (src, dest) {
|
|
|
31
32
|
return { srcStat, destStat }
|
|
32
33
|
}
|
|
33
34
|
|
|
34
|
-
function checkPaths (src, dest, funcName, cb) {
|
|
35
|
-
util.callbackify(getStats)(src, dest, (err, stats) => {
|
|
35
|
+
function checkPaths (src, dest, funcName, opts, cb) {
|
|
36
|
+
util.callbackify(getStats)(src, dest, opts, (err, stats) => {
|
|
36
37
|
if (err) return cb(err)
|
|
37
38
|
const { srcStat, destStat } = stats
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
|
|
40
|
+
if (destStat) {
|
|
41
|
+
if (areIdentical(srcStat, destStat)) {
|
|
42
|
+
const srcBaseName = path.basename(src)
|
|
43
|
+
const destBaseName = path.basename(dest)
|
|
44
|
+
if (funcName === 'move' &&
|
|
45
|
+
srcBaseName !== destBaseName &&
|
|
46
|
+
srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
47
|
+
return cb(null, { srcStat, destStat, isChangingCase: true })
|
|
48
|
+
}
|
|
49
|
+
return cb(new Error('Source and destination must not be the same.'))
|
|
50
|
+
}
|
|
51
|
+
if (srcStat.isDirectory() && !destStat.isDirectory()) {
|
|
52
|
+
return cb(new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`))
|
|
53
|
+
}
|
|
54
|
+
if (!srcStat.isDirectory() && destStat.isDirectory()) {
|
|
55
|
+
return cb(new Error(`Cannot overwrite directory '${dest}' with non-directory '${src}'.`))
|
|
56
|
+
}
|
|
40
57
|
}
|
|
58
|
+
|
|
41
59
|
if (srcStat.isDirectory() && isSrcSubdir(src, dest)) {
|
|
42
60
|
return cb(new Error(errMsg(src, dest, funcName)))
|
|
43
61
|
}
|
|
@@ -45,11 +63,28 @@ function checkPaths (src, dest, funcName, cb) {
|
|
|
45
63
|
})
|
|
46
64
|
}
|
|
47
65
|
|
|
48
|
-
function checkPathsSync (src, dest, funcName) {
|
|
49
|
-
const { srcStat, destStat } = getStatsSync(src, dest)
|
|
50
|
-
|
|
51
|
-
|
|
66
|
+
function checkPathsSync (src, dest, funcName, opts) {
|
|
67
|
+
const { srcStat, destStat } = getStatsSync(src, dest, opts)
|
|
68
|
+
|
|
69
|
+
if (destStat) {
|
|
70
|
+
if (areIdentical(srcStat, destStat)) {
|
|
71
|
+
const srcBaseName = path.basename(src)
|
|
72
|
+
const destBaseName = path.basename(dest)
|
|
73
|
+
if (funcName === 'move' &&
|
|
74
|
+
srcBaseName !== destBaseName &&
|
|
75
|
+
srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
76
|
+
return { srcStat, destStat, isChangingCase: true }
|
|
77
|
+
}
|
|
78
|
+
throw new Error('Source and destination must not be the same.')
|
|
79
|
+
}
|
|
80
|
+
if (srcStat.isDirectory() && !destStat.isDirectory()) {
|
|
81
|
+
throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`)
|
|
82
|
+
}
|
|
83
|
+
if (!srcStat.isDirectory() && destStat.isDirectory()) {
|
|
84
|
+
throw new Error(`Cannot overwrite directory '${dest}' with non-directory '${src}'.`)
|
|
85
|
+
}
|
|
52
86
|
}
|
|
87
|
+
|
|
53
88
|
if (srcStat.isDirectory() && isSrcSubdir(src, dest)) {
|
|
54
89
|
throw new Error(errMsg(src, dest, funcName))
|
|
55
90
|
}
|
|
@@ -64,7 +99,7 @@ function checkParentPaths (src, srcStat, dest, funcName, cb) {
|
|
|
64
99
|
const srcParent = path.resolve(path.dirname(src))
|
|
65
100
|
const destParent = path.resolve(path.dirname(dest))
|
|
66
101
|
if (destParent === srcParent || destParent === path.parse(destParent).root) return cb()
|
|
67
|
-
|
|
102
|
+
fs.stat(destParent, { bigint: true }, (err, destStat) => {
|
|
68
103
|
if (err) {
|
|
69
104
|
if (err.code === 'ENOENT') return cb()
|
|
70
105
|
return cb(err)
|
|
@@ -73,9 +108,7 @@ function checkParentPaths (src, srcStat, dest, funcName, cb) {
|
|
|
73
108
|
return cb(new Error(errMsg(src, dest, funcName)))
|
|
74
109
|
}
|
|
75
110
|
return checkParentPaths(src, srcStat, destParent, funcName, cb)
|
|
76
|
-
}
|
|
77
|
-
if (nodeSupportsBigInt) fs.stat(destParent, { bigint: true }, callback)
|
|
78
|
-
else fs.stat(destParent, callback)
|
|
111
|
+
})
|
|
79
112
|
}
|
|
80
113
|
|
|
81
114
|
function checkParentPathsSync (src, srcStat, dest, funcName) {
|
|
@@ -84,7 +117,7 @@ function checkParentPathsSync (src, srcStat, dest, funcName) {
|
|
|
84
117
|
if (destParent === srcParent || destParent === path.parse(destParent).root) return
|
|
85
118
|
let destStat
|
|
86
119
|
try {
|
|
87
|
-
destStat = statSync(destParent)
|
|
120
|
+
destStat = fs.statSync(destParent, { bigint: true })
|
|
88
121
|
} catch (err) {
|
|
89
122
|
if (err.code === 'ENOENT') return
|
|
90
123
|
throw err
|
|
@@ -96,26 +129,7 @@ function checkParentPathsSync (src, srcStat, dest, funcName) {
|
|
|
96
129
|
}
|
|
97
130
|
|
|
98
131
|
function areIdentical (srcStat, destStat) {
|
|
99
|
-
|
|
100
|
-
if (nodeSupportsBigInt || destStat.ino < Number.MAX_SAFE_INTEGER) {
|
|
101
|
-
// definitive answer
|
|
102
|
-
return true
|
|
103
|
-
}
|
|
104
|
-
// Use additional heuristics if we can't use 'bigint'.
|
|
105
|
-
// Different 'ino' could be represented the same if they are >= Number.MAX_SAFE_INTEGER
|
|
106
|
-
// See issue 657
|
|
107
|
-
if (destStat.size === srcStat.size &&
|
|
108
|
-
destStat.mode === srcStat.mode &&
|
|
109
|
-
destStat.nlink === srcStat.nlink &&
|
|
110
|
-
destStat.atimeMs === srcStat.atimeMs &&
|
|
111
|
-
destStat.mtimeMs === srcStat.mtimeMs &&
|
|
112
|
-
destStat.ctimeMs === srcStat.ctimeMs &&
|
|
113
|
-
destStat.birthtimeMs === srcStat.birthtimeMs) {
|
|
114
|
-
// heuristic answer
|
|
115
|
-
return true
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
return false
|
|
132
|
+
return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev
|
|
119
133
|
}
|
|
120
134
|
|
|
121
135
|
// return true if dest is a subdir of src, otherwise false.
|
|
@@ -135,5 +149,6 @@ module.exports = {
|
|
|
135
149
|
checkPathsSync,
|
|
136
150
|
checkParentPaths,
|
|
137
151
|
checkParentPathsSync,
|
|
138
|
-
isSrcSubdir
|
|
152
|
+
isSrcSubdir,
|
|
153
|
+
areIdentical
|
|
139
154
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fs-extra",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.1.0",
|
|
4
4
|
"description": "fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as recursive mkdir, copy, and remove.",
|
|
5
5
|
"engines": {
|
|
6
|
-
"node": ">=
|
|
6
|
+
"node": ">=12"
|
|
7
7
|
},
|
|
8
8
|
"homepage": "https://github.com/jprichardson/node-fs-extra",
|
|
9
9
|
"repository": {
|
|
@@ -37,13 +37,12 @@
|
|
|
37
37
|
"author": "JP Richardson <jprichardson@gmail.com>",
|
|
38
38
|
"license": "MIT",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"at-least-node": "^1.0.0",
|
|
41
40
|
"graceful-fs": "^4.2.0",
|
|
42
41
|
"jsonfile": "^6.0.1",
|
|
43
42
|
"universalify": "^2.0.0"
|
|
44
43
|
},
|
|
45
44
|
"devDependencies": {
|
|
46
|
-
"
|
|
45
|
+
"at-least-node": "^1.0.0",
|
|
47
46
|
"klaw": "^2.1.1",
|
|
48
47
|
"klaw-sync": "^3.0.2",
|
|
49
48
|
"minimist": "^1.1.1",
|
|
@@ -51,7 +50,7 @@
|
|
|
51
50
|
"nyc": "^15.0.0",
|
|
52
51
|
"proxyquire": "^2.0.1",
|
|
53
52
|
"read-dir-files": "^0.1.1",
|
|
54
|
-
"standard": "^
|
|
53
|
+
"standard": "^16.0.3"
|
|
55
54
|
},
|
|
56
55
|
"main": "./lib/index.js",
|
|
57
56
|
"files": [
|
|
@@ -59,12 +58,10 @@
|
|
|
59
58
|
"!lib/**/__tests__/"
|
|
60
59
|
],
|
|
61
60
|
"scripts": {
|
|
62
|
-
"full-ci": "npm run lint && npm run coverage",
|
|
63
|
-
"coverage": "nyc -r lcovonly npm run unit",
|
|
64
|
-
"coveralls": "coveralls < coverage/lcov.info",
|
|
65
61
|
"lint": "standard",
|
|
66
62
|
"test-find": "find ./lib/**/__tests__ -name *.test.js | xargs mocha",
|
|
67
63
|
"test": "npm run lint && npm run unit",
|
|
68
|
-
"unit": "node test.js"
|
|
69
|
-
}
|
|
64
|
+
"unit": "nyc node test.js"
|
|
65
|
+
},
|
|
66
|
+
"sideEffects": false
|
|
70
67
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The ISC License
|
|
2
2
|
|
|
3
|
-
Copyright (c) Isaac Z. Schlueter, Ben Noordhuis, and Contributors
|
|
3
|
+
Copyright (c) 2011-2022 Isaac Z. Schlueter, Ben Noordhuis, and Contributors
|
|
4
4
|
|
|
5
5
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
6
|
purpose with or without fee is hereby granted, provided that the above
|
|
@@ -191,16 +191,35 @@ function patch (fs) {
|
|
|
191
191
|
|
|
192
192
|
var fs$readdir = fs.readdir
|
|
193
193
|
fs.readdir = readdir
|
|
194
|
+
var noReaddirOptionVersions = /^v[0-5]\./
|
|
194
195
|
function readdir (path, options, cb) {
|
|
195
196
|
if (typeof options === 'function')
|
|
196
197
|
cb = options, options = null
|
|
197
198
|
|
|
199
|
+
var go$readdir = noReaddirOptionVersions.test(process.version)
|
|
200
|
+
? function go$readdir (path, options, cb, startTime) {
|
|
201
|
+
return fs$readdir(path, fs$readdirCallback(
|
|
202
|
+
path, options, cb, startTime
|
|
203
|
+
))
|
|
204
|
+
}
|
|
205
|
+
: function go$readdir (path, options, cb, startTime) {
|
|
206
|
+
return fs$readdir(path, options, fs$readdirCallback(
|
|
207
|
+
path, options, cb, startTime
|
|
208
|
+
))
|
|
209
|
+
}
|
|
210
|
+
|
|
198
211
|
return go$readdir(path, options, cb)
|
|
199
212
|
|
|
200
|
-
function
|
|
201
|
-
return
|
|
213
|
+
function fs$readdirCallback (path, options, cb, startTime) {
|
|
214
|
+
return function (err, files) {
|
|
202
215
|
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
|
203
|
-
enqueue([
|
|
216
|
+
enqueue([
|
|
217
|
+
go$readdir,
|
|
218
|
+
[path, options, cb],
|
|
219
|
+
err,
|
|
220
|
+
startTime || Date.now(),
|
|
221
|
+
Date.now()
|
|
222
|
+
])
|
|
204
223
|
else {
|
|
205
224
|
if (files && files.sort)
|
|
206
225
|
files.sort()
|
|
@@ -208,7 +227,7 @@ function patch (fs) {
|
|
|
208
227
|
if (typeof cb === 'function')
|
|
209
228
|
cb.call(this, err, files)
|
|
210
229
|
}
|
|
211
|
-
}
|
|
230
|
+
}
|
|
212
231
|
}
|
|
213
232
|
}
|
|
214
233
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graceful-fs",
|
|
3
3
|
"description": "A drop-in replacement for fs, making various improvements.",
|
|
4
|
-
"version": "4.2.
|
|
4
|
+
"version": "4.2.11",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/isaacs/node-graceful-fs"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"import-fresh": "^2.0.0",
|
|
39
39
|
"mkdirp": "^0.5.0",
|
|
40
40
|
"rimraf": "^2.2.8",
|
|
41
|
-
"tap": "^
|
|
41
|
+
"tap": "^16.3.4"
|
|
42
42
|
},
|
|
43
43
|
"files": [
|
|
44
44
|
"fs.js",
|
|
@@ -46,5 +46,8 @@
|
|
|
46
46
|
"legacy-streams.js",
|
|
47
47
|
"polyfills.js",
|
|
48
48
|
"clone.js"
|
|
49
|
-
]
|
|
49
|
+
],
|
|
50
|
+
"tap": {
|
|
51
|
+
"reporter": "classic"
|
|
52
|
+
}
|
|
50
53
|
}
|
|
@@ -71,13 +71,13 @@ function patch (fs) {
|
|
|
71
71
|
fs.lstatSync = statFixSync(fs.lstatSync)
|
|
72
72
|
|
|
73
73
|
// if lchmod/lchown do not exist, then make them no-ops
|
|
74
|
-
if (!fs.lchmod) {
|
|
74
|
+
if (fs.chmod && !fs.lchmod) {
|
|
75
75
|
fs.lchmod = function (path, mode, cb) {
|
|
76
76
|
if (cb) process.nextTick(cb)
|
|
77
77
|
}
|
|
78
78
|
fs.lchmodSync = function () {}
|
|
79
79
|
}
|
|
80
|
-
if (!fs.lchown) {
|
|
80
|
+
if (fs.chown && !fs.lchown) {
|
|
81
81
|
fs.lchown = function (path, uid, gid, cb) {
|
|
82
82
|
if (cb) process.nextTick(cb)
|
|
83
83
|
}
|
|
@@ -94,32 +94,38 @@ function patch (fs) {
|
|
|
94
94
|
// CPU to a busy looping process, which can cause the program causing the lock
|
|
95
95
|
// contention to be starved of CPU by node, so the contention doesn't resolve.
|
|
96
96
|
if (platform === "win32") {
|
|
97
|
-
fs.rename =
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
backoff
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
97
|
+
fs.rename = typeof fs.rename !== 'function' ? fs.rename
|
|
98
|
+
: (function (fs$rename) {
|
|
99
|
+
function rename (from, to, cb) {
|
|
100
|
+
var start = Date.now()
|
|
101
|
+
var backoff = 0;
|
|
102
|
+
fs$rename(from, to, function CB (er) {
|
|
103
|
+
if (er
|
|
104
|
+
&& (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY")
|
|
105
|
+
&& Date.now() - start < 60000) {
|
|
106
|
+
setTimeout(function() {
|
|
107
|
+
fs.stat(to, function (stater, st) {
|
|
108
|
+
if (stater && stater.code === "ENOENT")
|
|
109
|
+
fs$rename(from, to, CB);
|
|
110
|
+
else
|
|
111
|
+
cb(er)
|
|
112
|
+
})
|
|
113
|
+
}, backoff)
|
|
114
|
+
if (backoff < 100)
|
|
115
|
+
backoff += 10;
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
if (cb) cb(er)
|
|
119
|
+
})
|
|
120
|
+
}
|
|
121
|
+
if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename)
|
|
122
|
+
return rename
|
|
123
|
+
})(fs.rename)
|
|
119
124
|
}
|
|
120
125
|
|
|
121
126
|
// if read() returns EAGAIN, then just try it again.
|
|
122
|
-
fs.read =
|
|
127
|
+
fs.read = typeof fs.read !== 'function' ? fs.read
|
|
128
|
+
: (function (fs$read) {
|
|
123
129
|
function read (fd, buffer, offset, length, position, callback_) {
|
|
124
130
|
var callback
|
|
125
131
|
if (callback_ && typeof callback_ === 'function') {
|
|
@@ -140,7 +146,8 @@ function patch (fs) {
|
|
|
140
146
|
return read
|
|
141
147
|
})(fs.read)
|
|
142
148
|
|
|
143
|
-
fs.readSync =
|
|
149
|
+
fs.readSync = typeof fs.readSync !== 'function' ? fs.readSync
|
|
150
|
+
: (function (fs$readSync) { return function (fd, buffer, offset, length, position) {
|
|
144
151
|
var eagCounter = 0
|
|
145
152
|
while (true) {
|
|
146
153
|
try {
|
|
@@ -199,7 +206,7 @@ function patch (fs) {
|
|
|
199
206
|
}
|
|
200
207
|
|
|
201
208
|
function patchLutimes (fs) {
|
|
202
|
-
if (constants.hasOwnProperty("O_SYMLINK")) {
|
|
209
|
+
if (constants.hasOwnProperty("O_SYMLINK") && fs.futimes) {
|
|
203
210
|
fs.lutimes = function (path, at, mt, cb) {
|
|
204
211
|
fs.open(path, constants.O_SYMLINK, function (er, fd) {
|
|
205
212
|
if (er) {
|
|
@@ -233,7 +240,7 @@ function patch (fs) {
|
|
|
233
240
|
return ret
|
|
234
241
|
}
|
|
235
242
|
|
|
236
|
-
} else {
|
|
243
|
+
} else if (fs.futimes) {
|
|
237
244
|
fs.lutimes = function (_a, _b, _c, cb) { if (cb) process.nextTick(cb) }
|
|
238
245
|
fs.lutimesSync = function () {}
|
|
239
246
|
}
|
|
@@ -310,8 +317,10 @@ function patch (fs) {
|
|
|
310
317
|
return function (target, options) {
|
|
311
318
|
var stats = options ? orig.call(fs, target, options)
|
|
312
319
|
: orig.call(fs, target)
|
|
313
|
-
if (stats
|
|
314
|
-
|
|
320
|
+
if (stats) {
|
|
321
|
+
if (stats.uid < 0) stats.uid += 0x100000000
|
|
322
|
+
if (stats.gid < 0) stats.gid += 0x100000000
|
|
323
|
+
}
|
|
315
324
|
return stats;
|
|
316
325
|
}
|
|
317
326
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Punycode.js [](https://www.npmjs.com/package/punycode) [](https://www.jsdelivr.com/package/npm/punycode)
|
|
2
2
|
|
|
3
3
|
Punycode.js is a robust Punycode converter that fully complies to [RFC 3492](https://tools.ietf.org/html/rfc3492) and [RFC 5891](https://tools.ietf.org/html/rfc5891).
|
|
4
4
|
|
|
@@ -12,7 +12,7 @@ This JavaScript library is the result of comparing, optimizing and documenting d
|
|
|
12
12
|
|
|
13
13
|
This project was [bundled](https://github.com/joyent/node/blob/master/lib/punycode.js) with Node.js from [v0.6.2+](https://github.com/joyent/node/compare/975f1930b1...61e796decc) until [v7](https://github.com/nodejs/node/pull/7941) (soft-deprecated).
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
This project provides a CommonJS module that uses ES2015+ features and JavaScript module, which work in modern Node.js versions and browsers. For the old Punycode.js version that offers the same functionality in a UMD build with support for older pre-ES2015 runtimes, including Rhino, Ringo, and Narwhal, see [v1.4.1](https://github.com/mathiasbynens/punycode.js/releases/tag/v1.4.1).
|
|
16
16
|
|
|
17
17
|
## Installation
|
|
18
18
|
|
|
@@ -24,8 +24,12 @@ npm install punycode --save
|
|
|
24
24
|
|
|
25
25
|
In [Node.js](https://nodejs.org/):
|
|
26
26
|
|
|
27
|
+
> ⚠️ Note that userland modules don't hide core modules.
|
|
28
|
+
> For example, `require('punycode')` still imports the deprecated core module even if you executed `npm install punycode`.
|
|
29
|
+
> Use `require('punycode/')` to import userland modules rather than core modules.
|
|
30
|
+
|
|
27
31
|
```js
|
|
28
|
-
const punycode = require('punycode');
|
|
32
|
+
const punycode = require('punycode/');
|
|
29
33
|
```
|
|
30
34
|
|
|
31
35
|
## API
|
|
@@ -111,6 +115,28 @@ punycode.ucs2.encode([0x1D306]);
|
|
|
111
115
|
|
|
112
116
|
A string representing the current Punycode.js version number.
|
|
113
117
|
|
|
118
|
+
## For maintainers
|
|
119
|
+
|
|
120
|
+
### How to publish a new release
|
|
121
|
+
|
|
122
|
+
1. On the `main` branch, bump the version number in `package.json`:
|
|
123
|
+
|
|
124
|
+
```sh
|
|
125
|
+
npm version patch -m 'Release v%s'
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Instead of `patch`, use `minor` or `major` [as needed](https://semver.org/).
|
|
129
|
+
|
|
130
|
+
Note that this produces a Git commit + tag.
|
|
131
|
+
|
|
132
|
+
1. Push the release commit and tag:
|
|
133
|
+
|
|
134
|
+
```sh
|
|
135
|
+
git push && git push --tags
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
Our CI then automatically publishes the new release to npm, under both the [`punycode`](https://www.npmjs.com/package/punycode) and [`punycode.js`](https://www.npmjs.com/package/punycode.js) names.
|
|
139
|
+
|
|
114
140
|
## Author
|
|
115
141
|
|
|
116
142
|
| [](https://twitter.com/mathias "Follow @mathias on Twitter") |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "punycode",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "A robust Punycode converter that fully complies to RFC 3492 and RFC 5891, and works on nearly all JavaScript platforms.",
|
|
5
5
|
"homepage": "https://mths.be/punycode",
|
|
6
6
|
"main": "punycode.js",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
],
|
|
32
32
|
"repository": {
|
|
33
33
|
"type": "git",
|
|
34
|
-
"url": "https://github.com/
|
|
34
|
+
"url": "https://github.com/mathiasbynens/punycode.js.git"
|
|
35
35
|
},
|
|
36
|
-
"bugs": "https://github.com/
|
|
36
|
+
"bugs": "https://github.com/mathiasbynens/punycode.js/issues",
|
|
37
37
|
"files": [
|
|
38
38
|
"LICENSE-MIT.txt",
|
|
39
39
|
"punycode.js",
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
],
|
|
42
42
|
"scripts": {
|
|
43
43
|
"test": "mocha tests",
|
|
44
|
-
"
|
|
44
|
+
"build": "node scripts/prepublish.js"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"codecov": "^
|
|
48
|
-
"
|
|
49
|
-
"mocha": "^2.
|
|
47
|
+
"codecov": "^3.8.3",
|
|
48
|
+
"nyc": "^15.1.0",
|
|
49
|
+
"mocha": "^10.2.0"
|
|
50
50
|
},
|
|
51
51
|
"jspm": {
|
|
52
52
|
"map": {
|