@donmahallem/lerna2codecov 0.1.9 → 0.2.3
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/dist/cjs/_virtual/_commonjsHelpers.cjs +8 -0
- package/dist/cjs/_virtual/_commonjsHelpers.cjs.map +1 -0
- package/dist/cjs/_virtual/conversions.cjs +8 -0
- package/dist/cjs/_virtual/conversions.cjs.map +1 -0
- package/dist/cjs/_virtual/git-host-info.cjs +8 -0
- package/dist/cjs/_virtual/git-host-info.cjs.map +1 -0
- package/dist/cjs/_virtual/identifier.cjs +8 -0
- package/dist/cjs/_virtual/identifier.cjs.map +1 -0
- package/dist/cjs/_virtual/imurmurhash.cjs +8 -0
- package/dist/cjs/_virtual/imurmurhash.cjs.map +1 -0
- package/dist/cjs/_virtual/index.cjs +8 -0
- package/dist/cjs/_virtual/index.cjs.map +1 -0
- package/dist/cjs/_virtual/index10.cjs +8 -0
- package/dist/cjs/_virtual/index10.cjs.map +1 -0
- package/dist/cjs/_virtual/index11.cjs +8 -0
- package/dist/cjs/_virtual/index11.cjs.map +1 -0
- package/dist/cjs/_virtual/index12.cjs +8 -0
- package/dist/cjs/_virtual/index12.cjs.map +1 -0
- package/dist/cjs/_virtual/index13.cjs +8 -0
- package/dist/cjs/_virtual/index13.cjs.map +1 -0
- package/dist/cjs/_virtual/index14.cjs +8 -0
- package/dist/cjs/_virtual/index14.cjs.map +1 -0
- package/dist/cjs/_virtual/index15.cjs +8 -0
- package/dist/cjs/_virtual/index15.cjs.map +1 -0
- package/dist/cjs/_virtual/index2.cjs +8 -0
- package/dist/cjs/_virtual/index2.cjs.map +1 -0
- package/dist/cjs/_virtual/index3.cjs +8 -0
- package/dist/cjs/_virtual/index3.cjs.map +1 -0
- package/dist/cjs/_virtual/index4.cjs +8 -0
- package/dist/cjs/_virtual/index4.cjs.map +1 -0
- package/dist/cjs/_virtual/index5.cjs +8 -0
- package/dist/cjs/_virtual/index5.cjs.map +1 -0
- package/dist/cjs/_virtual/index6.cjs +8 -0
- package/dist/cjs/_virtual/index6.cjs.map +1 -0
- package/dist/cjs/_virtual/index7.cjs +8 -0
- package/dist/cjs/_virtual/index7.cjs.map +1 -0
- package/dist/cjs/_virtual/index8.cjs +8 -0
- package/dist/cjs/_virtual/index8.cjs.map +1 -0
- package/dist/cjs/_virtual/index9.cjs +8 -0
- package/dist/cjs/_virtual/index9.cjs.map +1 -0
- package/dist/cjs/_virtual/keyword.cjs +8 -0
- package/dist/cjs/_virtual/keyword.cjs.map +1 -0
- package/dist/cjs/_virtual/npa.cjs +8 -0
- package/dist/cjs/_virtual/npa.cjs.map +1 -0
- package/dist/cjs/_virtual/re.cjs +8 -0
- package/dist/cjs/_virtual/re.cjs.map +1 -0
- package/dist/cjs/_virtual/semver.cjs +8 -0
- package/dist/cjs/_virtual/semver.cjs.map +1 -0
- package/dist/cjs/_virtual/signals.cjs +8 -0
- package/dist/cjs/_virtual/signals.cjs.map +1 -0
- package/dist/cjs/index.cjs +10 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/cjs/node_modules/@babel/code-frame/lib/index.cjs +168 -0
- package/dist/cjs/node_modules/@babel/code-frame/lib/index.cjs.map +1 -0
- package/dist/cjs/node_modules/@babel/helper-validator-identifier/lib/identifier.cjs +89 -0
- package/dist/cjs/node_modules/@babel/helper-validator-identifier/lib/identifier.cjs.map +1 -0
- package/dist/cjs/node_modules/@babel/helper-validator-identifier/lib/index.cjs +67 -0
- package/dist/cjs/node_modules/@babel/helper-validator-identifier/lib/index.cjs.map +1 -0
- package/dist/cjs/node_modules/@babel/helper-validator-identifier/lib/keyword.cjs +43 -0
- package/dist/cjs/node_modules/@babel/helper-validator-identifier/lib/keyword.cjs.map +1 -0
- package/dist/cjs/node_modules/@babel/highlight/lib/index.cjs +125 -0
- package/dist/cjs/node_modules/@babel/highlight/lib/index.cjs.map +1 -0
- package/dist/cjs/node_modules/@lerna/package/index.cjs +314 -0
- package/dist/cjs/node_modules/@lerna/package/index.cjs.map +1 -0
- package/dist/cjs/node_modules/ansi-styles/index.cjs +172 -0
- package/dist/cjs/node_modules/ansi-styles/index.cjs.map +1 -0
- package/dist/cjs/node_modules/builtins/builtins.cjs +6 -0
- package/dist/cjs/node_modules/builtins/builtins.cjs.map +1 -0
- package/dist/cjs/node_modules/chalk/index.cjs +239 -0
- package/dist/cjs/node_modules/chalk/index.cjs.map +1 -0
- package/dist/cjs/node_modules/chalk/templates.cjs +132 -0
- package/dist/cjs/node_modules/chalk/templates.cjs.map +1 -0
- package/dist/cjs/node_modules/color-convert/conversions.cjs +877 -0
- package/dist/cjs/node_modules/color-convert/conversions.cjs.map +1 -0
- package/dist/cjs/node_modules/color-convert/index.cjs +87 -0
- package/dist/cjs/node_modules/color-convert/index.cjs.map +1 -0
- package/dist/cjs/node_modules/color-convert/route.cjs +104 -0
- package/dist/cjs/node_modules/color-convert/route.cjs.map +1 -0
- package/dist/cjs/node_modules/color-name/index.cjs +155 -0
- package/dist/cjs/node_modules/color-name/index.cjs.map +1 -0
- package/dist/cjs/node_modules/error-ex/index.cjs +151 -0
- package/dist/cjs/node_modules/error-ex/index.cjs.map +1 -0
- package/dist/cjs/node_modules/escape-string-regexp/index.cjs +14 -0
- package/dist/cjs/node_modules/escape-string-regexp/index.cjs.map +1 -0
- package/dist/cjs/node_modules/graceful-fs/clone.cjs +26 -0
- package/dist/cjs/node_modules/graceful-fs/clone.cjs.map +1 -0
- package/dist/cjs/node_modules/graceful-fs/graceful-fs.cjs +467 -0
- package/dist/cjs/node_modules/graceful-fs/graceful-fs.cjs.map +1 -0
- package/dist/cjs/node_modules/graceful-fs/legacy-streams.cjs +129 -0
- package/dist/cjs/node_modules/graceful-fs/legacy-streams.cjs.map +1 -0
- package/dist/cjs/node_modules/graceful-fs/polyfills.cjs +366 -0
- package/dist/cjs/node_modules/graceful-fs/polyfills.cjs.map +1 -0
- package/dist/cjs/node_modules/has-flag/index.cjs +12 -0
- package/dist/cjs/node_modules/has-flag/index.cjs.map +1 -0
- package/dist/cjs/node_modules/hosted-git-info/git-host-info.cjs +94 -0
- package/dist/cjs/node_modules/hosted-git-info/git-host-info.cjs.map +1 -0
- package/dist/cjs/node_modules/hosted-git-info/git-host.cjs +172 -0
- package/dist/cjs/node_modules/hosted-git-info/git-host.cjs.map +1 -0
- package/dist/cjs/node_modules/hosted-git-info/index.cjs +170 -0
- package/dist/cjs/node_modules/hosted-git-info/index.cjs.map +1 -0
- package/dist/cjs/node_modules/imurmurhash/imurmurhash.cjs +143 -0
- package/dist/cjs/node_modules/imurmurhash/imurmurhash.cjs.map +1 -0
- package/dist/cjs/node_modules/is-arrayish/index.cjs +13 -0
- package/dist/cjs/node_modules/is-arrayish/index.cjs.map +1 -0
- package/dist/cjs/node_modules/js-tokens/index.cjs +28 -0
- package/dist/cjs/node_modules/js-tokens/index.cjs.map +1 -0
- package/dist/cjs/node_modules/json-parse-even-better-errors/index.cjs +124 -0
- package/dist/cjs/node_modules/json-parse-even-better-errors/index.cjs.map +1 -0
- package/dist/cjs/node_modules/lines-and-columns/build/index.cjs +68 -0
- package/dist/cjs/node_modules/lines-and-columns/build/index.cjs.map +1 -0
- package/dist/cjs/node_modules/load-json-file/index.cjs +35 -0
- package/dist/cjs/node_modules/load-json-file/index.cjs.map +1 -0
- package/dist/cjs/node_modules/lru-cache/index.cjs +350 -0
- package/dist/cjs/node_modules/lru-cache/index.cjs.map +1 -0
- package/dist/cjs/node_modules/npm-package-arg/npa.cjs +323 -0
- package/dist/cjs/node_modules/npm-package-arg/npa.cjs.map +1 -0
- package/dist/cjs/node_modules/parse-json/index.cjs +65 -0
- package/dist/cjs/node_modules/parse-json/index.cjs.map +1 -0
- package/dist/cjs/node_modules/pify/index.cjs +71 -0
- package/dist/cjs/node_modules/pify/index.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/classes/comparator.cjs +158 -0
- package/dist/cjs/node_modules/semver/classes/comparator.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/classes/range.cjs +541 -0
- package/dist/cjs/node_modules/semver/classes/range.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/classes/semver.cjs +308 -0
- package/dist/cjs/node_modules/semver/classes/semver.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/functions/clean.cjs +23 -0
- package/dist/cjs/node_modules/semver/functions/clean.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/functions/cmp.cjs +74 -0
- package/dist/cjs/node_modules/semver/functions/cmp.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/functions/coerce.cjs +71 -0
- package/dist/cjs/node_modules/semver/functions/coerce.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/functions/compare-build.cjs +24 -0
- package/dist/cjs/node_modules/semver/functions/compare-build.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/functions/compare-loose.cjs +20 -0
- package/dist/cjs/node_modules/semver/functions/compare-loose.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/functions/compare.cjs +22 -0
- package/dist/cjs/node_modules/semver/functions/compare.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/functions/diff.cjs +41 -0
- package/dist/cjs/node_modules/semver/functions/diff.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/functions/eq.cjs +20 -0
- package/dist/cjs/node_modules/semver/functions/eq.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/functions/gt.cjs +20 -0
- package/dist/cjs/node_modules/semver/functions/gt.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/functions/gte.cjs +20 -0
- package/dist/cjs/node_modules/semver/functions/gte.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/functions/inc.cjs +35 -0
- package/dist/cjs/node_modules/semver/functions/inc.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/functions/lt.cjs +20 -0
- package/dist/cjs/node_modules/semver/functions/lt.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/functions/lte.cjs +20 -0
- package/dist/cjs/node_modules/semver/functions/lte.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/functions/major.cjs +20 -0
- package/dist/cjs/node_modules/semver/functions/major.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/functions/minor.cjs +20 -0
- package/dist/cjs/node_modules/semver/functions/minor.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/functions/neq.cjs +20 -0
- package/dist/cjs/node_modules/semver/functions/neq.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/functions/parse.cjs +53 -0
- package/dist/cjs/node_modules/semver/functions/parse.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/functions/patch.cjs +20 -0
- package/dist/cjs/node_modules/semver/functions/patch.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/functions/prerelease.cjs +23 -0
- package/dist/cjs/node_modules/semver/functions/prerelease.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/functions/rcompare.cjs +20 -0
- package/dist/cjs/node_modules/semver/functions/rcompare.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/functions/rsort.cjs +20 -0
- package/dist/cjs/node_modules/semver/functions/rsort.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/functions/satisfies.cjs +27 -0
- package/dist/cjs/node_modules/semver/functions/satisfies.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/functions/sort.cjs +20 -0
- package/dist/cjs/node_modules/semver/functions/sort.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/functions/valid.cjs +23 -0
- package/dist/cjs/node_modules/semver/functions/valid.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/index.cjs +105 -0
- package/dist/cjs/node_modules/semver/index.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/internal/constants.cjs +32 -0
- package/dist/cjs/node_modules/semver/internal/constants.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/internal/debug.cjs +24 -0
- package/dist/cjs/node_modules/semver/internal/debug.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/internal/identifiers.cjs +38 -0
- package/dist/cjs/node_modules/semver/internal/identifiers.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/internal/parse-options.cjs +26 -0
- package/dist/cjs/node_modules/semver/internal/parse-options.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/internal/re.cjs +202 -0
- package/dist/cjs/node_modules/semver/internal/re.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/ranges/gtr.cjs +21 -0
- package/dist/cjs/node_modules/semver/ranges/gtr.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/ranges/intersects.cjs +24 -0
- package/dist/cjs/node_modules/semver/ranges/intersects.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/ranges/ltr.cjs +21 -0
- package/dist/cjs/node_modules/semver/ranges/ltr.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/ranges/max-satisfying.cjs +43 -0
- package/dist/cjs/node_modules/semver/ranges/max-satisfying.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/ranges/min-satisfying.cjs +42 -0
- package/dist/cjs/node_modules/semver/ranges/min-satisfying.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/ranges/min-version.cjs +80 -0
- package/dist/cjs/node_modules/semver/ranges/min-version.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/ranges/outside.cjs +104 -0
- package/dist/cjs/node_modules/semver/ranges/outside.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/ranges/simplify.cjs +65 -0
- package/dist/cjs/node_modules/semver/ranges/simplify.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/ranges/subset.cjs +264 -0
- package/dist/cjs/node_modules/semver/ranges/subset.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/ranges/to-comparators.cjs +25 -0
- package/dist/cjs/node_modules/semver/ranges/to-comparators.cjs.map +1 -0
- package/dist/cjs/node_modules/semver/ranges/valid.cjs +28 -0
- package/dist/cjs/node_modules/semver/ranges/valid.cjs.map +1 -0
- package/dist/cjs/node_modules/signal-exit/index.cjs +218 -0
- package/dist/cjs/node_modules/signal-exit/index.cjs.map +1 -0
- package/dist/cjs/node_modules/signal-exit/signals.cjs +71 -0
- package/dist/cjs/node_modules/signal-exit/signals.cjs.map +1 -0
- package/dist/cjs/node_modules/strip-bom/index.cjs +18 -0
- package/dist/cjs/node_modules/strip-bom/index.cjs.map +1 -0
- package/dist/cjs/node_modules/supports-color/index.cjs +142 -0
- package/dist/cjs/node_modules/supports-color/index.cjs.map +1 -0
- package/dist/cjs/node_modules/validate-npm-package-name/index.cjs +121 -0
- package/dist/cjs/node_modules/validate-npm-package-name/index.cjs.map +1 -0
- package/dist/cjs/node_modules/write-pkg/index.cjs +79 -0
- package/dist/cjs/node_modules/write-pkg/index.cjs.map +1 -0
- package/dist/cjs/node_modules/write-pkg/node_modules/detect-indent/index.cjs +125 -0
- package/dist/cjs/node_modules/write-pkg/node_modules/detect-indent/index.cjs.map +1 -0
- package/dist/cjs/node_modules/write-pkg/node_modules/is-plain-obj/index.cjs +11 -0
- package/dist/cjs/node_modules/write-pkg/node_modules/is-plain-obj/index.cjs.map +1 -0
- package/dist/cjs/node_modules/write-pkg/node_modules/make-dir/index.cjs +155 -0
- package/dist/cjs/node_modules/write-pkg/node_modules/make-dir/index.cjs.map +1 -0
- package/dist/cjs/node_modules/write-pkg/node_modules/semver/semver.cjs +1490 -0
- package/dist/cjs/node_modules/write-pkg/node_modules/semver/semver.cjs.map +1 -0
- package/dist/cjs/node_modules/write-pkg/node_modules/sort-keys/index.cjs +61 -0
- package/dist/cjs/node_modules/write-pkg/node_modules/sort-keys/index.cjs.map +1 -0
- package/dist/cjs/node_modules/write-pkg/node_modules/write-file-atomic/index.cjs +255 -0
- package/dist/cjs/node_modules/write-pkg/node_modules/write-file-atomic/index.cjs.map +1 -0
- package/dist/cjs/node_modules/write-pkg/node_modules/write-json-file/index.cjs +95 -0
- package/dist/cjs/node_modules/write-pkg/node_modules/write-json-file/index.cjs.map +1 -0
- package/dist/cjs/node_modules/yallist/iterator.cjs +22 -0
- package/dist/cjs/node_modules/yallist/iterator.cjs.map +1 -0
- package/dist/cjs/node_modules/yallist/yallist.cjs +442 -0
- package/dist/cjs/node_modules/yallist/yallist.cjs.map +1 -0
- package/dist/cjs/update-config.cjs +64 -0
- package/dist/cjs/update-config.cjs.map +1 -0
- package/dist/esm/_virtual/_commonjsHelpers.mjs +4 -0
- package/dist/esm/_virtual/_commonjsHelpers.mjs.map +1 -0
- package/dist/esm/_virtual/conversions.mjs +4 -0
- package/dist/esm/_virtual/conversions.mjs.map +1 -0
- package/dist/esm/_virtual/git-host-info.mjs +4 -0
- package/dist/esm/_virtual/git-host-info.mjs.map +1 -0
- package/dist/esm/_virtual/identifier.mjs +4 -0
- package/dist/esm/_virtual/identifier.mjs.map +1 -0
- package/dist/esm/_virtual/imurmurhash.mjs +4 -0
- package/dist/esm/_virtual/imurmurhash.mjs.map +1 -0
- package/dist/esm/_virtual/index.mjs +4 -0
- package/dist/esm/_virtual/index.mjs.map +1 -0
- package/dist/esm/_virtual/index10.mjs +4 -0
- package/dist/esm/_virtual/index10.mjs.map +1 -0
- package/dist/esm/_virtual/index11.mjs +4 -0
- package/dist/esm/_virtual/index11.mjs.map +1 -0
- package/dist/esm/_virtual/index12.mjs +4 -0
- package/dist/esm/_virtual/index12.mjs.map +1 -0
- package/dist/esm/_virtual/index13.mjs +4 -0
- package/dist/esm/_virtual/index13.mjs.map +1 -0
- package/dist/esm/_virtual/index14.mjs +4 -0
- package/dist/esm/_virtual/index14.mjs.map +1 -0
- package/dist/esm/_virtual/index15.mjs +4 -0
- package/dist/esm/_virtual/index15.mjs.map +1 -0
- package/dist/esm/_virtual/index2.mjs +4 -0
- package/dist/esm/_virtual/index2.mjs.map +1 -0
- package/dist/esm/_virtual/index3.mjs +4 -0
- package/dist/esm/_virtual/index3.mjs.map +1 -0
- package/dist/esm/_virtual/index4.mjs +4 -0
- package/dist/esm/_virtual/index4.mjs.map +1 -0
- package/dist/esm/_virtual/index5.mjs +4 -0
- package/dist/esm/_virtual/index5.mjs.map +1 -0
- package/dist/esm/_virtual/index6.mjs +4 -0
- package/dist/esm/_virtual/index6.mjs.map +1 -0
- package/dist/esm/_virtual/index7.mjs +4 -0
- package/dist/esm/_virtual/index7.mjs.map +1 -0
- package/dist/esm/_virtual/index8.mjs +4 -0
- package/dist/esm/_virtual/index8.mjs.map +1 -0
- package/dist/esm/_virtual/index9.mjs +4 -0
- package/dist/esm/_virtual/index9.mjs.map +1 -0
- package/dist/esm/_virtual/keyword.mjs +4 -0
- package/dist/esm/_virtual/keyword.mjs.map +1 -0
- package/dist/esm/_virtual/npa.mjs +4 -0
- package/dist/esm/_virtual/npa.mjs.map +1 -0
- package/dist/esm/_virtual/re.mjs +4 -0
- package/dist/esm/_virtual/re.mjs.map +1 -0
- package/dist/esm/_virtual/semver.mjs +4 -0
- package/dist/esm/_virtual/semver.mjs.map +1 -0
- package/dist/esm/_virtual/signals.mjs +4 -0
- package/dist/esm/_virtual/signals.mjs.map +1 -0
- package/dist/esm/index.mjs +2 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/node_modules/@babel/code-frame/lib/index.mjs +166 -0
- package/dist/esm/node_modules/@babel/code-frame/lib/index.mjs.map +1 -0
- package/dist/esm/node_modules/@babel/helper-validator-identifier/lib/identifier.mjs +86 -0
- package/dist/esm/node_modules/@babel/helper-validator-identifier/lib/identifier.mjs.map +1 -0
- package/dist/esm/node_modules/@babel/helper-validator-identifier/lib/index.mjs +65 -0
- package/dist/esm/node_modules/@babel/helper-validator-identifier/lib/index.mjs.map +1 -0
- package/dist/esm/node_modules/@babel/helper-validator-identifier/lib/keyword.mjs +40 -0
- package/dist/esm/node_modules/@babel/helper-validator-identifier/lib/keyword.mjs.map +1 -0
- package/dist/esm/node_modules/@babel/highlight/lib/index.mjs +123 -0
- package/dist/esm/node_modules/@babel/highlight/lib/index.mjs.map +1 -0
- package/dist/esm/node_modules/@lerna/package/index.mjs +306 -0
- package/dist/esm/node_modules/@lerna/package/index.mjs.map +1 -0
- package/dist/esm/node_modules/ansi-styles/index.mjs +170 -0
- package/dist/esm/node_modules/ansi-styles/index.mjs.map +1 -0
- package/dist/esm/node_modules/builtins/builtins.mjs +4 -0
- package/dist/esm/node_modules/builtins/builtins.mjs.map +1 -0
- package/dist/esm/node_modules/chalk/index.mjs +237 -0
- package/dist/esm/node_modules/chalk/index.mjs.map +1 -0
- package/dist/esm/node_modules/chalk/templates.mjs +130 -0
- package/dist/esm/node_modules/chalk/templates.mjs.map +1 -0
- package/dist/esm/node_modules/color-convert/conversions.mjs +876 -0
- package/dist/esm/node_modules/color-convert/conversions.mjs.map +1 -0
- package/dist/esm/node_modules/color-convert/index.mjs +85 -0
- package/dist/esm/node_modules/color-convert/index.mjs.map +1 -0
- package/dist/esm/node_modules/color-convert/route.mjs +102 -0
- package/dist/esm/node_modules/color-convert/route.mjs.map +1 -0
- package/dist/esm/node_modules/color-name/index.mjs +153 -0
- package/dist/esm/node_modules/color-name/index.mjs.map +1 -0
- package/dist/esm/node_modules/error-ex/index.mjs +145 -0
- package/dist/esm/node_modules/error-ex/index.mjs.map +1 -0
- package/dist/esm/node_modules/escape-string-regexp/index.mjs +12 -0
- package/dist/esm/node_modules/escape-string-regexp/index.mjs.map +1 -0
- package/dist/esm/node_modules/graceful-fs/clone.mjs +24 -0
- package/dist/esm/node_modules/graceful-fs/clone.mjs.map +1 -0
- package/dist/esm/node_modules/graceful-fs/graceful-fs.mjs +459 -0
- package/dist/esm/node_modules/graceful-fs/graceful-fs.mjs.map +1 -0
- package/dist/esm/node_modules/graceful-fs/legacy-streams.mjs +123 -0
- package/dist/esm/node_modules/graceful-fs/legacy-streams.mjs.map +1 -0
- package/dist/esm/node_modules/graceful-fs/polyfills.mjs +360 -0
- package/dist/esm/node_modules/graceful-fs/polyfills.mjs.map +1 -0
- package/dist/esm/node_modules/has-flag/index.mjs +10 -0
- package/dist/esm/node_modules/has-flag/index.mjs.map +1 -0
- package/dist/esm/node_modules/hosted-git-info/git-host-info.mjs +90 -0
- package/dist/esm/node_modules/hosted-git-info/git-host-info.mjs.map +1 -0
- package/dist/esm/node_modules/hosted-git-info/git-host.mjs +168 -0
- package/dist/esm/node_modules/hosted-git-info/git-host.mjs.map +1 -0
- package/dist/esm/node_modules/hosted-git-info/index.mjs +162 -0
- package/dist/esm/node_modules/hosted-git-info/index.mjs.map +1 -0
- package/dist/esm/node_modules/imurmurhash/imurmurhash.mjs +141 -0
- package/dist/esm/node_modules/imurmurhash/imurmurhash.mjs.map +1 -0
- package/dist/esm/node_modules/is-arrayish/index.mjs +11 -0
- package/dist/esm/node_modules/is-arrayish/index.mjs.map +1 -0
- package/dist/esm/node_modules/js-tokens/index.mjs +26 -0
- package/dist/esm/node_modules/js-tokens/index.mjs.map +1 -0
- package/dist/esm/node_modules/json-parse-even-better-errors/index.mjs +122 -0
- package/dist/esm/node_modules/json-parse-even-better-errors/index.mjs.map +1 -0
- package/dist/esm/node_modules/lines-and-columns/build/index.mjs +66 -0
- package/dist/esm/node_modules/lines-and-columns/build/index.mjs.map +1 -0
- package/dist/esm/node_modules/load-json-file/index.mjs +29 -0
- package/dist/esm/node_modules/load-json-file/index.mjs.map +1 -0
- package/dist/esm/node_modules/lru-cache/index.mjs +346 -0
- package/dist/esm/node_modules/lru-cache/index.mjs.map +1 -0
- package/dist/esm/node_modules/npm-package-arg/npa.mjs +316 -0
- package/dist/esm/node_modules/npm-package-arg/npa.mjs.map +1 -0
- package/dist/esm/node_modules/parse-json/index.mjs +63 -0
- package/dist/esm/node_modules/parse-json/index.mjs.map +1 -0
- package/dist/esm/node_modules/pify/index.mjs +69 -0
- package/dist/esm/node_modules/pify/index.mjs.map +1 -0
- package/dist/esm/node_modules/semver/classes/comparator.mjs +154 -0
- package/dist/esm/node_modules/semver/classes/comparator.mjs.map +1 -0
- package/dist/esm/node_modules/semver/classes/range.mjs +537 -0
- package/dist/esm/node_modules/semver/classes/range.mjs.map +1 -0
- package/dist/esm/node_modules/semver/classes/semver.mjs +304 -0
- package/dist/esm/node_modules/semver/classes/semver.mjs.map +1 -0
- package/dist/esm/node_modules/semver/functions/clean.mjs +19 -0
- package/dist/esm/node_modules/semver/functions/clean.mjs.map +1 -0
- package/dist/esm/node_modules/semver/functions/cmp.mjs +70 -0
- package/dist/esm/node_modules/semver/functions/cmp.mjs.map +1 -0
- package/dist/esm/node_modules/semver/functions/coerce.mjs +67 -0
- package/dist/esm/node_modules/semver/functions/coerce.mjs.map +1 -0
- package/dist/esm/node_modules/semver/functions/compare-build.mjs +20 -0
- package/dist/esm/node_modules/semver/functions/compare-build.mjs.map +1 -0
- package/dist/esm/node_modules/semver/functions/compare-loose.mjs +16 -0
- package/dist/esm/node_modules/semver/functions/compare-loose.mjs.map +1 -0
- package/dist/esm/node_modules/semver/functions/compare.mjs +18 -0
- package/dist/esm/node_modules/semver/functions/compare.mjs.map +1 -0
- package/dist/esm/node_modules/semver/functions/diff.mjs +37 -0
- package/dist/esm/node_modules/semver/functions/diff.mjs.map +1 -0
- package/dist/esm/node_modules/semver/functions/eq.mjs +16 -0
- package/dist/esm/node_modules/semver/functions/eq.mjs.map +1 -0
- package/dist/esm/node_modules/semver/functions/gt.mjs +16 -0
- package/dist/esm/node_modules/semver/functions/gt.mjs.map +1 -0
- package/dist/esm/node_modules/semver/functions/gte.mjs +16 -0
- package/dist/esm/node_modules/semver/functions/gte.mjs.map +1 -0
- package/dist/esm/node_modules/semver/functions/inc.mjs +31 -0
- package/dist/esm/node_modules/semver/functions/inc.mjs.map +1 -0
- package/dist/esm/node_modules/semver/functions/lt.mjs +16 -0
- package/dist/esm/node_modules/semver/functions/lt.mjs.map +1 -0
- package/dist/esm/node_modules/semver/functions/lte.mjs +16 -0
- package/dist/esm/node_modules/semver/functions/lte.mjs.map +1 -0
- package/dist/esm/node_modules/semver/functions/major.mjs +16 -0
- package/dist/esm/node_modules/semver/functions/major.mjs.map +1 -0
- package/dist/esm/node_modules/semver/functions/minor.mjs +16 -0
- package/dist/esm/node_modules/semver/functions/minor.mjs.map +1 -0
- package/dist/esm/node_modules/semver/functions/neq.mjs +16 -0
- package/dist/esm/node_modules/semver/functions/neq.mjs.map +1 -0
- package/dist/esm/node_modules/semver/functions/parse.mjs +49 -0
- package/dist/esm/node_modules/semver/functions/parse.mjs.map +1 -0
- package/dist/esm/node_modules/semver/functions/patch.mjs +16 -0
- package/dist/esm/node_modules/semver/functions/patch.mjs.map +1 -0
- package/dist/esm/node_modules/semver/functions/prerelease.mjs +19 -0
- package/dist/esm/node_modules/semver/functions/prerelease.mjs.map +1 -0
- package/dist/esm/node_modules/semver/functions/rcompare.mjs +16 -0
- package/dist/esm/node_modules/semver/functions/rcompare.mjs.map +1 -0
- package/dist/esm/node_modules/semver/functions/rsort.mjs +16 -0
- package/dist/esm/node_modules/semver/functions/rsort.mjs.map +1 -0
- package/dist/esm/node_modules/semver/functions/satisfies.mjs +23 -0
- package/dist/esm/node_modules/semver/functions/satisfies.mjs.map +1 -0
- package/dist/esm/node_modules/semver/functions/sort.mjs +16 -0
- package/dist/esm/node_modules/semver/functions/sort.mjs.map +1 -0
- package/dist/esm/node_modules/semver/functions/valid.mjs +19 -0
- package/dist/esm/node_modules/semver/functions/valid.mjs.map +1 -0
- package/dist/esm/node_modules/semver/index.mjs +101 -0
- package/dist/esm/node_modules/semver/index.mjs.map +1 -0
- package/dist/esm/node_modules/semver/internal/constants.mjs +28 -0
- package/dist/esm/node_modules/semver/internal/constants.mjs.map +1 -0
- package/dist/esm/node_modules/semver/internal/debug.mjs +20 -0
- package/dist/esm/node_modules/semver/internal/debug.mjs.map +1 -0
- package/dist/esm/node_modules/semver/internal/identifiers.mjs +34 -0
- package/dist/esm/node_modules/semver/internal/identifiers.mjs.map +1 -0
- package/dist/esm/node_modules/semver/internal/parse-options.mjs +22 -0
- package/dist/esm/node_modules/semver/internal/parse-options.mjs.map +1 -0
- package/dist/esm/node_modules/semver/internal/re.mjs +198 -0
- package/dist/esm/node_modules/semver/internal/re.mjs.map +1 -0
- package/dist/esm/node_modules/semver/ranges/gtr.mjs +17 -0
- package/dist/esm/node_modules/semver/ranges/gtr.mjs.map +1 -0
- package/dist/esm/node_modules/semver/ranges/intersects.mjs +20 -0
- package/dist/esm/node_modules/semver/ranges/intersects.mjs.map +1 -0
- package/dist/esm/node_modules/semver/ranges/ltr.mjs +17 -0
- package/dist/esm/node_modules/semver/ranges/ltr.mjs.map +1 -0
- package/dist/esm/node_modules/semver/ranges/max-satisfying.mjs +39 -0
- package/dist/esm/node_modules/semver/ranges/max-satisfying.mjs.map +1 -0
- package/dist/esm/node_modules/semver/ranges/min-satisfying.mjs +38 -0
- package/dist/esm/node_modules/semver/ranges/min-satisfying.mjs.map +1 -0
- package/dist/esm/node_modules/semver/ranges/min-version.mjs +76 -0
- package/dist/esm/node_modules/semver/ranges/min-version.mjs.map +1 -0
- package/dist/esm/node_modules/semver/ranges/outside.mjs +100 -0
- package/dist/esm/node_modules/semver/ranges/outside.mjs.map +1 -0
- package/dist/esm/node_modules/semver/ranges/simplify.mjs +61 -0
- package/dist/esm/node_modules/semver/ranges/simplify.mjs.map +1 -0
- package/dist/esm/node_modules/semver/ranges/subset.mjs +260 -0
- package/dist/esm/node_modules/semver/ranges/subset.mjs.map +1 -0
- package/dist/esm/node_modules/semver/ranges/to-comparators.mjs +21 -0
- package/dist/esm/node_modules/semver/ranges/to-comparators.mjs.map +1 -0
- package/dist/esm/node_modules/semver/ranges/valid.mjs +24 -0
- package/dist/esm/node_modules/semver/ranges/valid.mjs.map +1 -0
- package/dist/esm/node_modules/signal-exit/index.mjs +212 -0
- package/dist/esm/node_modules/signal-exit/index.mjs.map +1 -0
- package/dist/esm/node_modules/signal-exit/signals.mjs +67 -0
- package/dist/esm/node_modules/signal-exit/signals.mjs.map +1 -0
- package/dist/esm/node_modules/strip-bom/index.mjs +16 -0
- package/dist/esm/node_modules/strip-bom/index.mjs.map +1 -0
- package/dist/esm/node_modules/supports-color/index.mjs +136 -0
- package/dist/esm/node_modules/supports-color/index.mjs.map +1 -0
- package/dist/esm/node_modules/validate-npm-package-name/index.mjs +117 -0
- package/dist/esm/node_modules/validate-npm-package-name/index.mjs.map +1 -0
- package/dist/esm/node_modules/write-pkg/index.mjs +74 -0
- package/dist/esm/node_modules/write-pkg/index.mjs.map +1 -0
- package/dist/esm/node_modules/write-pkg/node_modules/detect-indent/index.mjs +123 -0
- package/dist/esm/node_modules/write-pkg/node_modules/detect-indent/index.mjs.map +1 -0
- package/dist/esm/node_modules/write-pkg/node_modules/is-plain-obj/index.mjs +9 -0
- package/dist/esm/node_modules/write-pkg/node_modules/is-plain-obj/index.mjs.map +1 -0
- package/dist/esm/node_modules/write-pkg/node_modules/make-dir/index.mjs +149 -0
- package/dist/esm/node_modules/write-pkg/node_modules/make-dir/index.mjs.map +1 -0
- package/dist/esm/node_modules/write-pkg/node_modules/semver/semver.mjs +1488 -0
- package/dist/esm/node_modules/write-pkg/node_modules/semver/semver.mjs.map +1 -0
- package/dist/esm/node_modules/write-pkg/node_modules/sort-keys/index.mjs +59 -0
- package/dist/esm/node_modules/write-pkg/node_modules/sort-keys/index.mjs.map +1 -0
- package/dist/esm/node_modules/write-pkg/node_modules/write-file-atomic/index.mjs +250 -0
- package/dist/esm/node_modules/write-pkg/node_modules/write-file-atomic/index.mjs.map +1 -0
- package/dist/esm/node_modules/write-pkg/node_modules/write-json-file/index.mjs +90 -0
- package/dist/esm/node_modules/write-pkg/node_modules/write-json-file/index.mjs.map +1 -0
- package/dist/esm/node_modules/yallist/iterator.mjs +18 -0
- package/dist/esm/node_modules/yallist/iterator.mjs.map +1 -0
- package/dist/esm/node_modules/yallist/yallist.mjs +438 -0
- package/dist/esm/node_modules/yallist/yallist.mjs.map +1 -0
- package/dist/esm/update-config.mjs +56 -0
- package/dist/esm/update-config.mjs.map +1 -0
- package/dist/types/cli.d.ts +1 -2
- package/dist/types/codecov-config.d.ts +13 -14
- package/dist/types/index.d.ts +2 -3
- package/dist/types/update-command.d.ts +8 -9
- package/dist/types/update-config.d.ts +12 -13
- package/dist/types/update.d.ts +6 -7
- package/package.json +65 -66
- package/dist/cjs/index.js +0 -11411
- package/dist/cjs/index.js.map +0 -1
- package/dist/cli/cli.js +0 -11479
- package/dist/cli/cli.js.map +0 -1
- package/dist/esm/index.js +0 -11394
- package/dist/esm/index.js.map +0 -1
- package/dist/types/cli.d.ts.map +0 -1
- package/dist/types/codecov-config.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/update-command.d.ts.map +0 -1
- package/dist/types/update-config.d.ts.map +0 -1
- package/dist/types/update.d.ts.map +0 -1
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { w as writePkg } from '../../_virtual/index2.mjs';
|
|
2
|
+
import require$$0 from 'path';
|
|
3
|
+
import './node_modules/write-json-file/index.mjs';
|
|
4
|
+
import sortKeys$1 from './node_modules/sort-keys/index.mjs';
|
|
5
|
+
import { w as writeJsonFile$1 } from '../../_virtual/index5.mjs';
|
|
6
|
+
|
|
7
|
+
const path = require$$0;
|
|
8
|
+
const writeJsonFile = writeJsonFile$1.exports;
|
|
9
|
+
const sortKeys = sortKeys$1;
|
|
10
|
+
|
|
11
|
+
const dependencyKeys = new Set([
|
|
12
|
+
'dependencies',
|
|
13
|
+
'devDependencies',
|
|
14
|
+
'optionalDependencies',
|
|
15
|
+
'peerDependencies'
|
|
16
|
+
]);
|
|
17
|
+
|
|
18
|
+
function normalize(packageJson) {
|
|
19
|
+
const result = {};
|
|
20
|
+
|
|
21
|
+
for (const key of Object.keys(packageJson)) {
|
|
22
|
+
if (!dependencyKeys.has(key)) {
|
|
23
|
+
result[key] = packageJson[key];
|
|
24
|
+
} else if (Object.keys(packageJson[key]).length !== 0) {
|
|
25
|
+
result[key] = sortKeys(packageJson[key]);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
return result;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
writePkg.exports = async (filePath, data, options) => {
|
|
33
|
+
if (typeof filePath !== 'string') {
|
|
34
|
+
options = data;
|
|
35
|
+
data = filePath;
|
|
36
|
+
filePath = '.';
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
options = {
|
|
40
|
+
normalize: true,
|
|
41
|
+
...options,
|
|
42
|
+
detectIndent: true
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
filePath = path.basename(filePath) === 'package.json' ? filePath : path.join(filePath, 'package.json');
|
|
46
|
+
|
|
47
|
+
data = options.normalize ? normalize(data) : data;
|
|
48
|
+
|
|
49
|
+
return writeJsonFile(filePath, data, options);
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
writePkg.exports.sync = (filePath, data, options) => {
|
|
53
|
+
if (typeof filePath !== 'string') {
|
|
54
|
+
options = data;
|
|
55
|
+
data = filePath;
|
|
56
|
+
filePath = '.';
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
options = {
|
|
60
|
+
normalize: true,
|
|
61
|
+
...options,
|
|
62
|
+
detectIndent: true
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
filePath = path.basename(filePath) === 'package.json' ? filePath : path.join(filePath, 'package.json');
|
|
66
|
+
|
|
67
|
+
data = options.normalize ? normalize(data) : data;
|
|
68
|
+
|
|
69
|
+
writeJsonFile.sync(filePath, data, options);
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
const exports = writePkg.exports;
|
|
73
|
+
export { exports as default };
|
|
74
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../node_modules/write-pkg/index.js"],"sourcesContent":["'use strict';\nconst path = require('path');\nconst writeJsonFile = require('write-json-file');\nconst sortKeys = require('sort-keys');\n\nconst dependencyKeys = new Set([\n\t'dependencies',\n\t'devDependencies',\n\t'optionalDependencies',\n\t'peerDependencies'\n]);\n\nfunction normalize(packageJson) {\n\tconst result = {};\n\n\tfor (const key of Object.keys(packageJson)) {\n\t\tif (!dependencyKeys.has(key)) {\n\t\t\tresult[key] = packageJson[key];\n\t\t} else if (Object.keys(packageJson[key]).length !== 0) {\n\t\t\tresult[key] = sortKeys(packageJson[key]);\n\t\t}\n\t}\n\n\treturn result;\n}\n\nmodule.exports = async (filePath, data, options) => {\n\tif (typeof filePath !== 'string') {\n\t\toptions = data;\n\t\tdata = filePath;\n\t\tfilePath = '.';\n\t}\n\n\toptions = {\n\t\tnormalize: true,\n\t\t...options,\n\t\tdetectIndent: true\n\t};\n\n\tfilePath = path.basename(filePath) === 'package.json' ? filePath : path.join(filePath, 'package.json');\n\n\tdata = options.normalize ? normalize(data) : data;\n\n\treturn writeJsonFile(filePath, data, options);\n};\n\nmodule.exports.sync = (filePath, data, options) => {\n\tif (typeof filePath !== 'string') {\n\t\toptions = data;\n\t\tdata = filePath;\n\t\tfilePath = '.';\n\t}\n\n\toptions = {\n\t\tnormalize: true,\n\t\t...options,\n\t\tdetectIndent: true\n\t};\n\n\tfilePath = path.basename(filePath) === 'package.json' ? filePath : path.join(filePath, 'package.json');\n\n\tdata = options.normalize ? normalize(data) : data;\n\n\twriteJsonFile.sync(filePath, data, options);\n};\n"],"names":["require$$1","require$$2","writePkgModule","writePkg"],"mappings":";;;;;;AACA,MAAM,IAAI,GAAG,UAAe,CAAC;AAC7B,MAAM,aAAa,GAAGA,uBAA0B,CAAC;AACjD,MAAM,QAAQ,GAAGC,UAAoB,CAAC;AACtC;AACA,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC;AAC/B,CAAC,cAAc;AACf,CAAC,iBAAiB;AAClB,CAAC,sBAAsB;AACvB,CAAC,kBAAkB;AACnB,CAAC,CAAC,CAAC;AACH;AACA,SAAS,SAAS,CAAC,WAAW,EAAE;AAChC,CAAC,MAAM,MAAM,GAAG,EAAE,CAAC;AACnB;AACA,CAAC,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE;AAC7C,EAAE,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;AAChC,GAAG,MAAM,CAAC,GAAG,CAAC,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC;AAClC,G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jB,EAAE;AACF;AACA,CAAC,OAAO,GAAG;AACX,EAAE,SAAS,EAAE,IAAI;AACjB,EAAE,GAAG,OAAO;AACZ,EAAE,YAAY,EAAE,IAAI;AACpB,EAAE,CAAC;AACH;AACA,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,cAAc,GAAG,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;AACxG;AACA,CAAC,IAAI,GAAG,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AACnD;AACA,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;AAC7C;;;;;"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
// detect either spaces or tabs but not both to properly handle tabs
|
|
2
|
+
// for indentation and spaces for alignment
|
|
3
|
+
const INDENT_RE = /^(?:( )+|\t+)/;
|
|
4
|
+
|
|
5
|
+
function getMostUsed(indents) {
|
|
6
|
+
let result = 0;
|
|
7
|
+
let maxUsed = 0;
|
|
8
|
+
let maxWeight = 0;
|
|
9
|
+
|
|
10
|
+
for (const entry of indents) {
|
|
11
|
+
// TODO: use destructuring when targeting Node.js 6
|
|
12
|
+
const key = entry[0];
|
|
13
|
+
const val = entry[1];
|
|
14
|
+
|
|
15
|
+
const u = val[0];
|
|
16
|
+
const w = val[1];
|
|
17
|
+
|
|
18
|
+
if (u > maxUsed || (u === maxUsed && w > maxWeight)) {
|
|
19
|
+
maxUsed = u;
|
|
20
|
+
maxWeight = w;
|
|
21
|
+
result = Number(key);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
return result;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
var detectIndent = str => {
|
|
29
|
+
if (typeof str !== 'string') {
|
|
30
|
+
throw new TypeError('Expected a string');
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// used to see if tabs or spaces are the most used
|
|
34
|
+
let tabs = 0;
|
|
35
|
+
let spaces = 0;
|
|
36
|
+
|
|
37
|
+
// remember the size of previous line's indentation
|
|
38
|
+
let prev = 0;
|
|
39
|
+
|
|
40
|
+
// remember how many indents/unindents as occurred for a given size
|
|
41
|
+
// and how much lines follow a given indentation
|
|
42
|
+
//
|
|
43
|
+
// indents = {
|
|
44
|
+
// 3: [1, 0],
|
|
45
|
+
// 4: [1, 5],
|
|
46
|
+
// 5: [1, 0],
|
|
47
|
+
// 12: [1, 0],
|
|
48
|
+
// }
|
|
49
|
+
const indents = new Map();
|
|
50
|
+
|
|
51
|
+
// pointer to the array of last used indent
|
|
52
|
+
let current;
|
|
53
|
+
|
|
54
|
+
// whether the last action was an indent (opposed to an unindent)
|
|
55
|
+
let isIndent;
|
|
56
|
+
|
|
57
|
+
for (const line of str.split(/\n/g)) {
|
|
58
|
+
if (!line) {
|
|
59
|
+
// ignore empty lines
|
|
60
|
+
continue;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
let indent;
|
|
64
|
+
const matches = line.match(INDENT_RE);
|
|
65
|
+
|
|
66
|
+
if (matches) {
|
|
67
|
+
indent = matches[0].length;
|
|
68
|
+
|
|
69
|
+
if (matches[1]) {
|
|
70
|
+
spaces++;
|
|
71
|
+
} else {
|
|
72
|
+
tabs++;
|
|
73
|
+
}
|
|
74
|
+
} else {
|
|
75
|
+
indent = 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const diff = indent - prev;
|
|
79
|
+
prev = indent;
|
|
80
|
+
|
|
81
|
+
if (diff) {
|
|
82
|
+
// an indent or unindent has been detected
|
|
83
|
+
|
|
84
|
+
isIndent = diff > 0;
|
|
85
|
+
|
|
86
|
+
current = indents.get(isIndent ? diff : -diff);
|
|
87
|
+
|
|
88
|
+
if (current) {
|
|
89
|
+
current[0]++;
|
|
90
|
+
} else {
|
|
91
|
+
current = [1, 0];
|
|
92
|
+
indents.set(diff, current);
|
|
93
|
+
}
|
|
94
|
+
} else if (current) {
|
|
95
|
+
// if the last action was an indent, increment the weight
|
|
96
|
+
current[1] += Number(isIndent);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
const amount = getMostUsed(indents);
|
|
101
|
+
|
|
102
|
+
let type;
|
|
103
|
+
let indent;
|
|
104
|
+
if (!amount) {
|
|
105
|
+
type = null;
|
|
106
|
+
indent = '';
|
|
107
|
+
} else if (spaces >= tabs) {
|
|
108
|
+
type = 'space';
|
|
109
|
+
indent = ' '.repeat(amount);
|
|
110
|
+
} else {
|
|
111
|
+
type = 'tab';
|
|
112
|
+
indent = '\t'.repeat(amount);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
return {
|
|
116
|
+
amount,
|
|
117
|
+
type,
|
|
118
|
+
indent
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
export { detectIndent as default };
|
|
123
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../../node_modules/write-pkg/node_modules/detect-indent/index.js"],"sourcesContent":["'use strict';\n\n// detect either spaces or tabs but not both to properly handle tabs\n// for indentation and spaces for alignment\nconst INDENT_RE = /^(?:( )+|\\t+)/;\n\nfunction getMostUsed(indents) {\n\tlet result = 0;\n\tlet maxUsed = 0;\n\tlet maxWeight = 0;\n\n\tfor (const entry of indents) {\n\t\t// TODO: use destructuring when targeting Node.js 6\n\t\tconst key = entry[0];\n\t\tconst val = entry[1];\n\n\t\tconst u = val[0];\n\t\tconst w = val[1];\n\n\t\tif (u > maxUsed || (u === maxUsed && w > maxWeight)) {\n\t\t\tmaxUsed = u;\n\t\t\tmaxWeight = w;\n\t\t\tresult = Number(key);\n\t\t}\n\t}\n\n\treturn result;\n}\n\nmodule.exports = str => {\n\tif (typeof str !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\t// used to see if tabs or spaces are the most used\n\tlet tabs = 0;\n\tlet spaces = 0;\n\n\t// remember the size of previous line's indentation\n\tlet prev = 0;\n\n\t// remember how many indents/unindents as occurred for a given size\n\t// and how much lines follow a given indentation\n\t//\n\t// indents = {\n\t// 3: [1, 0],\n\t// 4: [1, 5],\n\t// 5: [1, 0],\n\t// 12: [1, 0],\n\t// }\n\tconst indents = new Map();\n\n\t// pointer to the array of last used indent\n\tlet current;\n\n\t// whether the last action was an indent (opposed to an unindent)\n\tlet isIndent;\n\n\tfor (const line of str.split(/\\n/g)) {\n\t\tif (!line) {\n\t\t\t// ignore empty lines\n\t\t\tcontinue;\n\t\t}\n\n\t\tlet indent;\n\t\tconst matches = line.match(INDENT_RE);\n\n\t\tif (matches) {\n\t\t\tindent = matches[0].length;\n\n\t\t\tif (matches[1]) {\n\t\t\t\tspaces++;\n\t\t\t} else {\n\t\t\t\ttabs++;\n\t\t\t}\n\t\t} else {\n\t\t\tindent = 0;\n\t\t}\n\n\t\tconst diff = indent - prev;\n\t\tprev = indent;\n\n\t\tif (diff) {\n\t\t\t// an indent or unindent has been detected\n\n\t\t\tisIndent = diff > 0;\n\n\t\t\tcurrent = indents.get(isIndent ? diff : -diff);\n\n\t\t\tif (current) {\n\t\t\t\tcurrent[0]++;\n\t\t\t} else {\n\t\t\t\tcurrent = [1, 0];\n\t\t\t\tindents.set(diff, current);\n\t\t\t}\n\t\t} else if (current) {\n\t\t\t// if the last action was an indent, increment the weight\n\t\t\tcurrent[1] += Number(isIndent);\n\t\t}\n\t}\n\n\tconst amount = getMostUsed(indents);\n\n\tlet type;\n\tlet indent;\n\tif (!amount) {\n\t\ttype = null;\n\t\tindent = '';\n\t} else if (spaces >= tabs) {\n\t\ttype = 'space';\n\t\tindent = ' '.repeat(amount);\n\t} else {\n\t\ttype = 'tab';\n\t\tindent = '\\t'.repeat(amount);\n\t}\n\n\treturn {\n\t\tamount,\n\t\ttype,\n\t\tindent\n\t};\n};\n"],"names":[],"mappings":"AAEA;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,CAAC,QAAQ,CAAC,CAAC;AAClC,GAAG;AACH,EAAE;AACF;AACA,CAAC,MAAM,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;AACrC;AACA,CAAC,IAAI,IAAI,CAAC;AACV,CAAC,IAAI,MAAM,CAAC;AACZ,CAAC,IAAI,CAAC,MAAM,EAAE;AACd,EAAE,IAAI,GAAG,IAAI,CAAC;AACd,EAAE,MAAM,GAAG,EAAE,CAAC;AACd,EAAE,MAAM,IAAI,MAAM,IAAI,IAAI,EAAE;AAC5B,EAAE,IAAI,GAAG,OAAO,CAAC;AACjB,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAC9B,EAAE,MAAM;AACR,EAAE,IAAI,GAAG,KAAK,CAAC;AACf,EAAE,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAC/B,EAAE;AACF;AACA,CAAC,OAAO;AACR,EAAE,MAAM;AACR,EAAE,IAAI;AACN,EAAE,MAAM;AACR,EAAE,CAAC;AACH;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var toString = Object.prototype.toString;
|
|
2
|
+
|
|
3
|
+
var isPlainObj = function (x) {
|
|
4
|
+
var prototype;
|
|
5
|
+
return toString.call(x) === '[object Object]' && (prototype = Object.getPrototypeOf(x), prototype === null || prototype === Object.getPrototypeOf({}));
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export { isPlainObj as default };
|
|
9
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../../node_modules/write-pkg/node_modules/is-plain-obj/index.js"],"sourcesContent":["'use strict';\nvar toString = Object.prototype.toString;\n\nmodule.exports = function (x) {\n\tvar prototype;\n\treturn toString.call(x) === '[object Object]' && (prototype = Object.getPrototypeOf(x), prototype === null || prototype === Object.getPrototypeOf({}));\n};\n"],"names":[],"mappings":"AACA,IAAI,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC;AACzC;IACA,UAAc,GAAG,UAAU,CAAC,EAAE;AAC9B,CAAC,IAAI,SAAS,CAAC;AACf,CAAC,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,iBAAiB,KAAK,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,SAAS,KAAK,IAAI,IAAI,SAAS,KAAK,MAAM,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,CAAC;AACxJ;;;;"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { m as makeDir$1 } from '../../../../_virtual/index9.mjs';
|
|
2
|
+
import require$$0 from 'fs';
|
|
3
|
+
import require$$0$1 from 'path';
|
|
4
|
+
import pify$1 from '../../../pify/index.mjs';
|
|
5
|
+
import '../semver/semver.mjs';
|
|
6
|
+
import { s as semver$1 } from '../../../../_virtual/semver.mjs';
|
|
7
|
+
|
|
8
|
+
const fs = require$$0;
|
|
9
|
+
const path = require$$0$1;
|
|
10
|
+
const pify = pify$1;
|
|
11
|
+
const semver = semver$1.exports;
|
|
12
|
+
|
|
13
|
+
const defaults = {
|
|
14
|
+
mode: 0o777 & (~process.umask()),
|
|
15
|
+
fs
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const useNativeRecursiveOption = semver.satisfies(process.version, '>=10.12.0');
|
|
19
|
+
|
|
20
|
+
// https://github.com/nodejs/node/issues/8987
|
|
21
|
+
// https://github.com/libuv/libuv/pull/1088
|
|
22
|
+
const checkPath = pth => {
|
|
23
|
+
if (process.platform === 'win32') {
|
|
24
|
+
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path.parse(pth).root, ''));
|
|
25
|
+
|
|
26
|
+
if (pathHasInvalidWinCharacters) {
|
|
27
|
+
const error = new Error(`Path contains invalid characters: ${pth}`);
|
|
28
|
+
error.code = 'EINVAL';
|
|
29
|
+
throw error;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const permissionError = pth => {
|
|
35
|
+
// This replicates the exception of `fs.mkdir` with native the
|
|
36
|
+
// `recusive` option when run on an invalid drive under Windows.
|
|
37
|
+
const error = new Error(`operation not permitted, mkdir '${pth}'`);
|
|
38
|
+
error.code = 'EPERM';
|
|
39
|
+
error.errno = -4048;
|
|
40
|
+
error.path = pth;
|
|
41
|
+
error.syscall = 'mkdir';
|
|
42
|
+
return error;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const makeDir = (input, options) => Promise.resolve().then(() => {
|
|
46
|
+
checkPath(input);
|
|
47
|
+
options = Object.assign({}, defaults, options);
|
|
48
|
+
|
|
49
|
+
// TODO: Use util.promisify when targeting Node.js 8
|
|
50
|
+
const mkdir = pify(options.fs.mkdir);
|
|
51
|
+
const stat = pify(options.fs.stat);
|
|
52
|
+
|
|
53
|
+
if (useNativeRecursiveOption && options.fs.mkdir === fs.mkdir) {
|
|
54
|
+
const pth = path.resolve(input);
|
|
55
|
+
|
|
56
|
+
return mkdir(pth, {
|
|
57
|
+
mode: options.mode,
|
|
58
|
+
recursive: true
|
|
59
|
+
}).then(() => pth);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const make = pth => {
|
|
63
|
+
return mkdir(pth, options.mode)
|
|
64
|
+
.then(() => pth)
|
|
65
|
+
.catch(error => {
|
|
66
|
+
if (error.code === 'EPERM') {
|
|
67
|
+
throw error;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (error.code === 'ENOENT') {
|
|
71
|
+
if (path.dirname(pth) === pth) {
|
|
72
|
+
throw permissionError(pth);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (error.message.includes('null bytes')) {
|
|
76
|
+
throw error;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return make(path.dirname(pth)).then(() => make(pth));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return stat(pth)
|
|
83
|
+
.then(stats => stats.isDirectory() ? pth : Promise.reject())
|
|
84
|
+
.catch(() => {
|
|
85
|
+
throw error;
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
return make(path.resolve(input));
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
makeDir$1.exports = makeDir;
|
|
94
|
+
makeDir$1.exports.default = makeDir;
|
|
95
|
+
|
|
96
|
+
makeDir$1.exports.sync = (input, options) => {
|
|
97
|
+
checkPath(input);
|
|
98
|
+
options = Object.assign({}, defaults, options);
|
|
99
|
+
|
|
100
|
+
if (useNativeRecursiveOption && options.fs.mkdirSync === fs.mkdirSync) {
|
|
101
|
+
const pth = path.resolve(input);
|
|
102
|
+
|
|
103
|
+
fs.mkdirSync(pth, {
|
|
104
|
+
mode: options.mode,
|
|
105
|
+
recursive: true
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
return pth;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
const make = pth => {
|
|
112
|
+
try {
|
|
113
|
+
options.fs.mkdirSync(pth, options.mode);
|
|
114
|
+
} catch (error) {
|
|
115
|
+
if (error.code === 'EPERM') {
|
|
116
|
+
throw error;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if (error.code === 'ENOENT') {
|
|
120
|
+
if (path.dirname(pth) === pth) {
|
|
121
|
+
throw permissionError(pth);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
if (error.message.includes('null bytes')) {
|
|
125
|
+
throw error;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
make(path.dirname(pth));
|
|
129
|
+
return make(pth);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
try {
|
|
133
|
+
if (!options.fs.statSync(pth).isDirectory()) {
|
|
134
|
+
throw new Error('The path is not a directory');
|
|
135
|
+
}
|
|
136
|
+
} catch (_) {
|
|
137
|
+
throw error;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return pth;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
return make(path.resolve(input));
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
const exports = makeDir$1.exports;
|
|
148
|
+
export { exports as default };
|
|
149
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../../node_modules/write-pkg/node_modules/make-dir/index.js"],"sourcesContent":["'use strict';\nconst fs = require('fs');\nconst path = require('path');\nconst pify = require('pify');\nconst semver = require('semver');\n\nconst defaults = {\n\tmode: 0o777 & (~process.umask()),\n\tfs\n};\n\nconst useNativeRecursiveOption = semver.satisfies(process.version, '>=10.12.0');\n\n// https://github.com/nodejs/node/issues/8987\n// https://github.com/libuv/libuv/pull/1088\nconst checkPath = pth => {\n\tif (process.platform === 'win32') {\n\t\tconst pathHasInvalidWinCharacters = /[<>:\"|?*]/.test(pth.replace(path.parse(pth).root, ''));\n\n\t\tif (pathHasInvalidWinCharacters) {\n\t\t\tconst error = new Error(`Path contains invalid characters: ${pth}`);\n\t\t\terror.code = 'EINVAL';\n\t\t\tthrow error;\n\t\t}\n\t}\n};\n\nconst permissionError = pth => {\n\t// This replicates the exception of `fs.mkdir` with native the\n\t// `recusive` option when run on an invalid drive under Windows.\n\tconst error = new Error(`operation not permitted, mkdir '${pth}'`);\n\terror.code = 'EPERM';\n\terror.errno = -4048;\n\terror.path = pth;\n\terror.syscall = 'mkdir';\n\treturn error;\n};\n\nconst makeDir = (input, options) => Promise.resolve().then(() => {\n\tcheckPath(input);\n\toptions = Object.assign({}, defaults, options);\n\n\t// TODO: Use util.promisify when targeting Node.js 8\n\tconst mkdir = pify(options.fs.mkdir);\n\tconst stat = pify(options.fs.stat);\n\n\tif (useNativeRecursiveOption && options.fs.mkdir === fs.mkdir) {\n\t\tconst pth = path.resolve(input);\n\n\t\treturn mkdir(pth, {\n\t\t\tmode: options.mode,\n\t\t\trecursive: true\n\t\t}).then(() => pth);\n\t}\n\n\tconst make = pth => {\n\t\treturn mkdir(pth, options.mode)\n\t\t\t.then(() => pth)\n\t\t\t.catch(error => {\n\t\t\t\tif (error.code === 'EPERM') {\n\t\t\t\t\tthrow error;\n\t\t\t\t}\n\n\t\t\t\tif (error.code === 'ENOENT') {\n\t\t\t\t\tif (path.dirname(pth) === pth) {\n\t\t\t\t\t\tthrow permissionError(pth);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (error.message.includes('null bytes')) {\n\t\t\t\t\t\tthrow error;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn make(path.dirname(pth)).then(() => make(pth));\n\t\t\t\t}\n\n\t\t\t\treturn stat(pth)\n\t\t\t\t\t.then(stats => stats.isDirectory() ? pth : Promise.reject())\n\t\t\t\t\t.catch(() => {\n\t\t\t\t\t\tthrow error;\n\t\t\t\t\t});\n\t\t\t});\n\t};\n\n\treturn make(path.resolve(input));\n});\n\nmodule.exports = makeDir;\nmodule.exports.default = makeDir;\n\nmodule.exports.sync = (input, options) => {\n\tcheckPath(input);\n\toptions = Object.assign({}, defaults, options);\n\n\tif (useNativeRecursiveOption && options.fs.mkdirSync === fs.mkdirSync) {\n\t\tconst pth = path.resolve(input);\n\n\t\tfs.mkdirSync(pth, {\n\t\t\tmode: options.mode,\n\t\t\trecursive: true\n\t\t});\n\n\t\treturn pth;\n\t}\n\n\tconst make = pth => {\n\t\ttry {\n\t\t\toptions.fs.mkdirSync(pth, options.mode);\n\t\t} catch (error) {\n\t\t\tif (error.code === 'EPERM') {\n\t\t\t\tthrow error;\n\t\t\t}\n\n\t\t\tif (error.code === 'ENOENT') {\n\t\t\t\tif (path.dirname(pth) === pth) {\n\t\t\t\t\tthrow permissionError(pth);\n\t\t\t\t}\n\n\t\t\t\tif (error.message.includes('null bytes')) {\n\t\t\t\t\tthrow error;\n\t\t\t\t}\n\n\t\t\t\tmake(path.dirname(pth));\n\t\t\t\treturn make(pth);\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tif (!options.fs.statSync(pth).isDirectory()) {\n\t\t\t\t\tthrow new Error('The path is not a directory');\n\t\t\t\t}\n\t\t\t} catch (_) {\n\t\t\t\tthrow error;\n\t\t\t}\n\t\t}\n\n\t\treturn pth;\n\t};\n\n\treturn make(path.resolve(input));\n};\n"],"names":["require$$1","require$$2","require$$3","makeDirModule","makeDir_1"],"mappings":";;;;;;;AACA,MAAM,EAAE,GAAG,UAAa,CAAC;AACzB,MAAM,IAAI,GAAGA,YAAe,CAAC;AAC7B,MAAM,IAAI,GAAGC,MAAe,CAAC;AAC7B,MAAM,MAAM,GAAGC,gBAAiB,CAAC;AACjC;AACA,MAAM,QAAQ,GAAG;AACjB,CAAC,IAAI,EAAE,KAAK,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;AACjC,CAAC,EAAE;AACH,CAAC,CAAC;AACF;AACA,MAAM,wBAAwB,GAAG,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;AAChF;AACA;AACA;AACA,MAAM,SAAS,GAAG,GAAG,IAAI;AACzB,CAAC,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE;AACnC,EAAE,MAAM,2BAA2B,GAAG,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;AAC9F;AACA,EAAE,IAAI,2BAA2B,EAAE;AACnC,GAAG,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,CAAC,kCAAkC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;AACvE,GAAG,KAAK,CAAC,IAAI,GAAG,QAAQ,CAAC;AACzB,GAAG,MAAM,KAAK,CAAC;AACf,GAAG;AACH,EAAE;AACF,CAAC,CAAC;AACF;AACA,MAAM,eAAe,GAAG,GAAG,IAAI;AAC/B;AACA;AACA,CAAC,MAAM,KAAK,GAAG,IA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