@slicemachine/init 2.2.2-dev-next-release.0 → 2.2.2-dev-next-release.4
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/SliceMachineInitProcess.cjs +1 -1
- package/dist/SliceMachineInitProcess.js +1 -1
- package/dist/_node_modules/@babel/code-frame/lib/index.cjs +1 -1
- package/dist/_node_modules/@babel/code-frame/lib/index.js +1 -1
- package/dist/_node_modules/@babel/helper-validator-identifier/lib/identifier.cjs.map +1 -1
- package/dist/_node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +1 -1
- package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.cjs +1 -1
- package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.cjs.map +1 -1
- package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.js +1 -1
- package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.js.map +1 -1
- package/dist/_node_modules/@babel/helper-validator-identifier/lib/keyword.cjs.map +1 -1
- package/dist/_node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +1 -1
- package/dist/_node_modules/@babel/highlight/lib/index.cjs +2 -2
- package/dist/_node_modules/@babel/highlight/lib/index.cjs.map +1 -1
- package/dist/_node_modules/@babel/highlight/lib/index.js +2 -2
- package/dist/_node_modules/@babel/highlight/lib/index.js.map +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/index.cjs +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/index.js +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/async.cjs +2 -2
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/async.cjs.map +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/async.js +2 -2
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/sync.cjs +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/sync.js +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/utils/index.cjs +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/utils/index.js +1 -1
- package/dist/_node_modules/@nodelib/fs.walk/out/readers/async.cjs +3 -4
- package/dist/_node_modules/@nodelib/fs.walk/out/readers/async.cjs.map +1 -1
- package/dist/_node_modules/@nodelib/fs.walk/out/readers/async.js +2 -3
- package/dist/_node_modules/@nodelib/fs.walk/out/readers/async.js.map +1 -1
- package/dist/_node_modules/@nodelib/fs.walk/out/readers/sync.cjs +1 -1
- package/dist/_node_modules/@nodelib/fs.walk/out/readers/sync.js +1 -1
- package/dist/_node_modules/@nodelib/fs.walk/out/settings.cjs +1 -1
- package/dist/_node_modules/@nodelib/fs.walk/out/settings.js +1 -1
- package/dist/_node_modules/arrify/index.cjs +2 -1
- package/dist/_node_modules/arrify/index.cjs.map +1 -1
- package/dist/_node_modules/arrify/index.js +1 -1
- package/dist/_node_modules/braces/index.cjs +6 -5
- package/dist/_node_modules/braces/index.cjs.map +1 -1
- package/dist/_node_modules/braces/index.js +5 -5
- package/dist/_node_modules/braces/lib/compile.cjs +3 -2
- package/dist/_node_modules/braces/lib/compile.cjs.map +1 -1
- package/dist/_node_modules/braces/lib/compile.js +2 -2
- package/dist/_node_modules/braces/lib/constants.cjs +2 -1
- package/dist/_node_modules/braces/lib/constants.cjs.map +1 -1
- package/dist/_node_modules/braces/lib/constants.js +1 -1
- package/dist/_node_modules/braces/lib/expand.cjs +4 -3
- package/dist/_node_modules/braces/lib/expand.cjs.map +1 -1
- package/dist/_node_modules/braces/lib/expand.js +3 -3
- package/dist/_node_modules/braces/lib/parse.cjs +4 -3
- package/dist/_node_modules/braces/lib/parse.cjs.map +1 -1
- package/dist/_node_modules/braces/lib/parse.js +3 -3
- package/dist/_node_modules/braces/lib/stringify.cjs +2 -1
- package/dist/_node_modules/braces/lib/stringify.cjs.map +1 -1
- package/dist/_node_modules/braces/lib/stringify.js +1 -1
- package/dist/_node_modules/braces/lib/utils.cjs +0 -1
- package/dist/_node_modules/braces/lib/utils.cjs.map +1 -1
- package/dist/_node_modules/braces/lib/utils.js +0 -3
- package/dist/_node_modules/camelcase-keys/index.cjs +3 -4
- package/dist/_node_modules/camelcase-keys/index.cjs.map +1 -1
- package/dist/_node_modules/camelcase-keys/index.js +3 -4
- package/dist/_node_modules/camelcase-keys/index.js.map +1 -1
- package/dist/_node_modules/decamelize-keys/_node_modules/decamelize/index.cjs +2 -1
- package/dist/_node_modules/decamelize-keys/_node_modules/decamelize/index.cjs.map +1 -1
- package/dist/_node_modules/decamelize-keys/_node_modules/decamelize/index.js +1 -1
- package/dist/_node_modules/decamelize-keys/_node_modules/map-obj/index.cjs +2 -1
- package/dist/_node_modules/decamelize-keys/_node_modules/map-obj/index.cjs.map +1 -1
- package/dist/_node_modules/decamelize-keys/_node_modules/map-obj/index.js +1 -1
- package/dist/_node_modules/decamelize-keys/index.cjs +5 -3
- package/dist/_node_modules/decamelize-keys/index.cjs.map +1 -1
- package/dist/_node_modules/decamelize-keys/index.js +5 -3
- package/dist/_node_modules/decamelize-keys/index.js.map +1 -1
- package/dist/_node_modules/dir-glob/index.cjs +7 -4
- package/dist/_node_modules/dir-glob/index.cjs.map +1 -1
- package/dist/_node_modules/dir-glob/index.js +8 -5
- package/dist/_node_modules/dir-glob/index.js.map +1 -1
- package/dist/_node_modules/error-ex/index.cjs +3 -2
- package/dist/_node_modules/error-ex/index.cjs.map +1 -1
- package/dist/_node_modules/error-ex/index.js +2 -2
- package/dist/_node_modules/fast-glob/out/index.cjs +4 -2
- package/dist/_node_modules/fast-glob/out/index.cjs.map +1 -1
- package/dist/_node_modules/fast-glob/out/index.js +4 -2
- package/dist/_node_modules/fast-glob/out/index.js.map +1 -1
- package/dist/_node_modules/fast-glob/out/managers/tasks.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/managers/tasks.js +1 -1
- package/dist/_node_modules/fast-glob/out/providers/filters/deep.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/providers/filters/deep.js +1 -1
- package/dist/_node_modules/fast-glob/out/providers/filters/entry.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/providers/filters/entry.js +1 -1
- package/dist/_node_modules/fast-glob/out/providers/filters/error.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/providers/filters/error.js +1 -1
- package/dist/_node_modules/fast-glob/out/providers/matchers/matcher.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/providers/matchers/matcher.js +1 -1
- package/dist/_node_modules/fast-glob/out/providers/transformers/entry.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/providers/transformers/entry.js +1 -1
- package/dist/_node_modules/fast-glob/out/readers/reader.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/readers/reader.js +1 -1
- package/dist/_node_modules/fast-glob/out/utils/index.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/utils/index.js +1 -1
- package/dist/_node_modules/fast-glob/out/utils/pattern.cjs +3 -3
- package/dist/_node_modules/fast-glob/out/utils/pattern.cjs.map +1 -1
- package/dist/_node_modules/fast-glob/out/utils/pattern.js +2 -2
- package/dist/_node_modules/fast-glob/out/utils/stream.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/utils/stream.cjs.map +1 -1
- package/dist/_node_modules/fast-glob/out/utils/stream.js +1 -1
- package/dist/_node_modules/fastq/queue.cjs +5 -3
- package/dist/_node_modules/fastq/queue.cjs.map +1 -1
- package/dist/_node_modules/fastq/queue.js +5 -4
- package/dist/_node_modules/fastq/queue.js.map +1 -1
- package/dist/_node_modules/fill-range/index.cjs +3 -2
- package/dist/_node_modules/fill-range/index.cjs.map +1 -1
- package/dist/_node_modules/fill-range/index.js +2 -2
- package/dist/_node_modules/function-bind/implementation.cjs +2 -1
- package/dist/_node_modules/function-bind/implementation.cjs.map +1 -1
- package/dist/_node_modules/function-bind/implementation.js +1 -1
- package/dist/_node_modules/function-bind/index.cjs +3 -2
- package/dist/_node_modules/function-bind/index.cjs.map +1 -1
- package/dist/_node_modules/function-bind/index.js +2 -2
- package/dist/_node_modules/{fast-glob/_node_modules/glob-parent → glob-parent}/index.cjs +4 -3
- package/dist/_node_modules/glob-parent/index.cjs.map +1 -0
- package/dist/_node_modules/{fast-glob/_node_modules/glob-parent → glob-parent}/index.js +2 -2
- package/dist/_node_modules/glob-parent/index.js.map +1 -0
- package/dist/_node_modules/globby/_node_modules/slash/index.cjs.map +1 -0
- package/dist/_node_modules/globby/_node_modules/slash/index.js.map +1 -0
- package/dist/{packages/init/_node_modules → _node_modules}/globby/ignore.cjs +3 -3
- package/dist/{packages/init/_node_modules → _node_modules}/globby/ignore.js +5 -5
- package/dist/{packages/init/_node_modules → _node_modules}/globby/ignore.js.map +1 -1
- package/dist/{packages/init/_node_modules → _node_modules}/globby/index.cjs +5 -6
- package/dist/{packages/init/_node_modules → _node_modules}/globby/index.cjs.map +1 -1
- package/dist/{packages/init/_node_modules → _node_modules}/globby/index.js +6 -7
- package/dist/{packages/init/_node_modules → _node_modules}/globby/index.js.map +1 -1
- package/dist/_node_modules/hard-rejection/index.cjs +6 -3
- package/dist/_node_modules/hard-rejection/index.cjs.map +1 -1
- package/dist/_node_modules/hard-rejection/index.js +7 -4
- package/dist/_node_modules/hard-rejection/index.js.map +1 -1
- package/dist/_node_modules/has/src/index.cjs +3 -2
- package/dist/_node_modules/has/src/index.cjs.map +1 -1
- package/dist/_node_modules/has/src/index.js +2 -2
- package/dist/_node_modules/ignore/index.cjs +3 -1
- package/dist/_node_modules/ignore/index.cjs.map +1 -1
- package/dist/_node_modules/ignore/index.js +3 -1
- package/dist/_node_modules/ignore/index.js.map +1 -1
- package/dist/_node_modules/is-arrayish/index.cjs +2 -1
- package/dist/_node_modules/is-arrayish/index.cjs.map +1 -1
- package/dist/_node_modules/is-arrayish/index.js +1 -1
- package/dist/_node_modules/is-core-module/core.json.cjs +10 -1
- package/dist/_node_modules/is-core-module/core.json.cjs.map +1 -1
- package/dist/_node_modules/is-core-module/core.json.js +10 -1
- package/dist/_node_modules/is-core-module/core.json.js.map +1 -1
- package/dist/_node_modules/is-core-module/index.cjs +3 -2
- package/dist/_node_modules/is-core-module/index.cjs.map +1 -1
- package/dist/_node_modules/is-core-module/index.js +2 -2
- package/dist/_node_modules/is-extglob/index.cjs +2 -1
- package/dist/_node_modules/is-extglob/index.cjs.map +1 -1
- package/dist/_node_modules/is-extglob/index.js +1 -1
- package/dist/_node_modules/is-glob/index.cjs +3 -2
- package/dist/_node_modules/is-glob/index.cjs.map +1 -1
- package/dist/_node_modules/is-glob/index.js +2 -2
- package/dist/_node_modules/{minimist-options/_node_modules/is-plain-obj → is-plain-obj}/index.cjs +2 -1
- package/dist/_node_modules/is-plain-obj/index.cjs.map +1 -0
- package/dist/_node_modules/{minimist-options/_node_modules/is-plain-obj → is-plain-obj}/index.js +1 -1
- package/dist/_node_modules/is-plain-obj/index.js.map +1 -0
- package/dist/_node_modules/js-tokens/index.cjs +1 -1
- package/dist/_node_modules/js-tokens/index.js +1 -1
- package/dist/_node_modules/kind-of/index.cjs +2 -1
- package/dist/_node_modules/kind-of/index.cjs.map +1 -1
- package/dist/_node_modules/kind-of/index.js +1 -1
- package/dist/_node_modules/lines-and-columns/build/index.cjs +1 -1
- package/dist/_node_modules/lines-and-columns/build/index.js +1 -1
- package/dist/_node_modules/{meow/_node_modules/read-pkg/_node_modules/lru-cache → lru-cache}/index.cjs +4 -3
- package/dist/_node_modules/lru-cache/index.cjs.map +1 -0
- package/dist/_node_modules/{meow/_node_modules/read-pkg/_node_modules/lru-cache → lru-cache}/index.js +2 -2
- package/dist/_node_modules/lru-cache/index.js.map +1 -0
- package/dist/_node_modules/map-obj/index.cjs +6 -3
- package/dist/_node_modules/map-obj/index.cjs.map +1 -1
- package/dist/_node_modules/map-obj/index.js +6 -3
- package/dist/_node_modules/map-obj/index.js.map +1 -1
- package/dist/_node_modules/meow/_node_modules/{lru-cache → hosted-git-info/_node_modules/lru-cache}/index.cjs +2 -1
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/_node_modules/lru-cache/index.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/{lru-cache → hosted-git-info/_node_modules/lru-cache}/index.js +1 -1
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/_node_modules/lru-cache/index.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/git-host-info.cjs +2 -1
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/git-host-info.cjs.map +1 -1
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/git-host-info.js +1 -1
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/git-host.cjs +3 -2
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/git-host.cjs.map +1 -1
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/git-host.js +2 -2
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/index.cjs +114 -113
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/index.cjs.map +1 -1
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/index.js +117 -115
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/index.js.map +1 -1
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/parse-url.cjs +2 -1
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/parse-url.cjs.map +1 -1
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/parse-url.js +1 -1
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/extract_description.cjs +2 -1
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/extract_description.cjs.map +1 -1
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/extract_description.js +1 -1
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/fixer.cjs +7 -7
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/fixer.cjs.map +1 -1
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/fixer.js +5 -6
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/fixer.js.map +1 -1
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/make_warning.cjs +2 -1
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/make_warning.cjs.map +1 -1
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/make_warning.js +1 -1
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/normalize.cjs +5 -3
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/normalize.cjs.map +1 -1
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/normalize.js +5 -3
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/normalize.js.map +1 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.cjs +2 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.cjs.map +1 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.js +1 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.cjs +3 -2
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.cjs.map +1 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.js +2 -2
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/index.cjs +164 -163
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/index.cjs.map +1 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/index.js +167 -165
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/index.js.map +1 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/extract_description.cjs +2 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/extract_description.cjs.map +1 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/extract_description.js +1 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.cjs +7 -7
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.cjs.map +1 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.js +5 -6
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.js.map +1 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/make_warning.cjs +2 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/make_warning.cjs.map +1 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/make_warning.js +1 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/normalize.cjs +5 -3
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/normalize.cjs.map +1 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/normalize.js +5 -3
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/normalize.js.map +1 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/index.js +4 -4
- package/dist/_node_modules/meow/_node_modules/read-pkg/index.js.map +1 -1
- package/dist/_node_modules/meow/_node_modules/trim-newlines/index.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/trim-newlines/index.js.map +1 -0
- package/dist/_node_modules/meow/index.cjs +6 -8
- package/dist/_node_modules/meow/index.cjs.map +1 -1
- package/dist/_node_modules/meow/index.js +8 -10
- package/dist/_node_modules/meow/index.js.map +1 -1
- package/dist/_node_modules/merge2/index.cjs +2 -1
- package/dist/_node_modules/merge2/index.cjs.map +1 -1
- package/dist/_node_modules/merge2/index.js +1 -1
- package/dist/_node_modules/micromatch/index.cjs +5 -5
- package/dist/_node_modules/micromatch/index.cjs.map +1 -1
- package/dist/_node_modules/micromatch/index.js +4 -5
- package/dist/_node_modules/micromatch/index.js.map +1 -1
- package/dist/_node_modules/min-indent/index.cjs +3 -1
- package/dist/_node_modules/min-indent/index.cjs.map +1 -1
- package/dist/_node_modules/min-indent/index.js +3 -1
- package/dist/_node_modules/min-indent/index.js.map +1 -1
- package/dist/_node_modules/minimist-options/index.cjs +10 -7
- package/dist/_node_modules/minimist-options/index.cjs.map +1 -1
- package/dist/_node_modules/minimist-options/index.js +9 -6
- package/dist/_node_modules/minimist-options/index.js.map +1 -1
- package/dist/_node_modules/{json-parse-even-better-errors → parse-json/_node_modules/json-parse-even-better-errors}/index.cjs +2 -1
- package/dist/_node_modules/parse-json/_node_modules/json-parse-even-better-errors/index.cjs.map +1 -0
- package/dist/_node_modules/{json-parse-even-better-errors → parse-json/_node_modules/json-parse-even-better-errors}/index.js +1 -1
- package/dist/_node_modules/parse-json/_node_modules/json-parse-even-better-errors/index.js.map +1 -0
- package/dist/_node_modules/parse-json/index.cjs +8 -6
- package/dist/_node_modules/parse-json/index.cjs.map +1 -1
- package/dist/_node_modules/parse-json/index.js +7 -5
- package/dist/_node_modules/parse-json/index.js.map +1 -1
- package/dist/_node_modules/path-type/index.cjs +1 -1
- package/dist/_node_modules/path-type/index.js +1 -1
- package/dist/_node_modules/picomatch/index.cjs +4 -5
- package/dist/_node_modules/picomatch/index.cjs.map +1 -1
- package/dist/_node_modules/picomatch/index.js +5 -5
- package/dist/_node_modules/picomatch/index.js.map +1 -1
- package/dist/_node_modules/picomatch/lib/constants.cjs +2 -1
- package/dist/_node_modules/picomatch/lib/constants.cjs.map +1 -1
- package/dist/_node_modules/picomatch/lib/constants.js +1 -1
- package/dist/_node_modules/picomatch/lib/parse.cjs +3 -2
- package/dist/_node_modules/picomatch/lib/parse.cjs.map +1 -1
- package/dist/_node_modules/picomatch/lib/parse.js +2 -2
- package/dist/_node_modules/picomatch/lib/picomatch.cjs +5 -4
- package/dist/_node_modules/picomatch/lib/picomatch.cjs.map +1 -1
- package/dist/_node_modules/picomatch/lib/picomatch.js +4 -4
- package/dist/_node_modules/picomatch/lib/scan.cjs +3 -2
- package/dist/_node_modules/picomatch/lib/scan.cjs.map +1 -1
- package/dist/_node_modules/picomatch/lib/scan.js +2 -2
- package/dist/_node_modules/picomatch/lib/utils.cjs +1 -2
- package/dist/_node_modules/picomatch/lib/utils.cjs.map +1 -1
- package/dist/_node_modules/picomatch/lib/utils.js +1 -4
- package/dist/_node_modules/queue-microtask/index.cjs +2 -1
- package/dist/_node_modules/queue-microtask/index.cjs.map +1 -1
- package/dist/_node_modules/queue-microtask/index.js +1 -1
- package/dist/_node_modules/reusify/reusify.cjs +2 -1
- package/dist/_node_modules/reusify/reusify.cjs.map +1 -1
- package/dist/_node_modules/reusify/reusify.js +1 -1
- package/dist/_node_modules/run-parallel/index.cjs +3 -2
- package/dist/_node_modules/run-parallel/index.cjs.map +1 -1
- package/dist/_node_modules/run-parallel/index.js +2 -2
- package/dist/_node_modules/spdx-correct/index.cjs +3 -2
- package/dist/_node_modules/spdx-correct/index.cjs.map +1 -1
- package/dist/_node_modules/spdx-correct/index.js +2 -2
- package/dist/_node_modules/spdx-expression-parse/index.cjs +4 -3
- package/dist/_node_modules/spdx-expression-parse/index.cjs.map +1 -1
- package/dist/_node_modules/spdx-expression-parse/index.js +3 -3
- package/dist/_node_modules/spdx-expression-parse/parse.cjs +2 -1
- package/dist/_node_modules/spdx-expression-parse/parse.cjs.map +1 -1
- package/dist/_node_modules/spdx-expression-parse/parse.js +1 -1
- package/dist/_node_modules/spdx-expression-parse/scan.cjs +2 -1
- package/dist/_node_modules/spdx-expression-parse/scan.cjs.map +1 -1
- package/dist/_node_modules/spdx-expression-parse/scan.js +1 -1
- package/dist/_node_modules/{is-number → to-regex-range/_node_modules/is-number}/index.cjs +2 -1
- package/dist/_node_modules/to-regex-range/_node_modules/is-number/index.cjs.map +1 -0
- package/dist/_node_modules/{is-number → to-regex-range/_node_modules/is-number}/index.js +1 -1
- package/dist/_node_modules/to-regex-range/_node_modules/is-number/index.js.map +1 -0
- package/dist/_node_modules/to-regex-range/index.cjs +4 -3
- package/dist/_node_modules/to-regex-range/index.cjs.map +1 -1
- package/dist/_node_modules/to-regex-range/index.js +2 -2
- package/dist/_node_modules/validate-npm-package-license/index.cjs +4 -3
- package/dist/_node_modules/validate-npm-package-license/index.cjs.map +1 -1
- package/dist/_node_modules/validate-npm-package-license/index.js +3 -3
- package/dist/_node_modules/yallist/iterator.cjs.map +1 -0
- package/dist/_node_modules/yallist/iterator.js.map +1 -0
- package/dist/_node_modules/{meow/_node_modules/yallist → yallist}/yallist.cjs +2 -1
- package/dist/_node_modules/yallist/yallist.cjs.map +1 -0
- package/dist/_node_modules/{meow/_node_modules/yallist → yallist}/yallist.js +1 -1
- package/dist/_node_modules/yallist/yallist.js.map +1 -0
- package/dist/_node_modules/yargs-parser/build/lib/index.cjs.map +1 -0
- package/dist/_node_modules/yargs-parser/build/lib/index.js.map +1 -0
- package/dist/_node_modules/yargs-parser/build/lib/string-utils.cjs.map +1 -0
- package/dist/_node_modules/yargs-parser/build/lib/string-utils.js.map +1 -0
- package/dist/_node_modules/yargs-parser/build/lib/tokenize-arg-string.cjs.map +1 -0
- package/dist/_node_modules/yargs-parser/build/lib/tokenize-arg-string.js.map +1 -0
- package/dist/_node_modules/yargs-parser/build/lib/yargs-parser-types.cjs.map +1 -0
- package/dist/_node_modules/yargs-parser/build/lib/yargs-parser-types.js.map +1 -0
- package/dist/_node_modules/yargs-parser/build/lib/yargs-parser.cjs.map +1 -0
- package/dist/_node_modules/yargs-parser/build/lib/yargs-parser.js.map +1 -0
- package/dist/_virtual/_commonjsHelpers.cjs +4 -0
- package/dist/_virtual/_commonjsHelpers.cjs.map +1 -1
- package/dist/_virtual/_commonjsHelpers.js +5 -1
- package/dist/_virtual/_commonjsHelpers.js.map +1 -1
- package/dist/_virtual/index.cjs +2 -10
- package/dist/_virtual/index.cjs.map +1 -1
- package/dist/_virtual/index.js +2 -11
- package/dist/_virtual/index.js.map +1 -1
- package/dist/_virtual/index13.cjs +2 -10
- package/dist/_virtual/index13.cjs.map +1 -1
- package/dist/_virtual/index13.js +2 -11
- package/dist/_virtual/index13.js.map +1 -1
- package/dist/_virtual/index14.cjs +2 -10
- package/dist/_virtual/index14.cjs.map +1 -1
- package/dist/_virtual/index14.js +2 -11
- package/dist/_virtual/index14.js.map +1 -1
- package/dist/_virtual/index15.cjs +2 -2
- package/dist/_virtual/index15.js +2 -2
- package/dist/_virtual/index16.cjs +2 -2
- package/dist/_virtual/index16.js +2 -2
- package/dist/_virtual/index17.cjs +2 -2
- package/dist/_virtual/index17.js +2 -2
- package/dist/_virtual/index2.cjs +2 -10
- package/dist/_virtual/index2.cjs.map +1 -1
- package/dist/_virtual/index2.js +2 -11
- package/dist/_virtual/index2.js.map +1 -1
- package/dist/_virtual/index3.cjs +2 -10
- package/dist/_virtual/index3.cjs.map +1 -1
- package/dist/_virtual/index3.js +2 -11
- package/dist/_virtual/index3.js.map +1 -1
- package/dist/_virtual/index4.cjs +2 -10
- package/dist/_virtual/index4.cjs.map +1 -1
- package/dist/_virtual/index4.js +2 -11
- package/dist/_virtual/index4.js.map +1 -1
- package/dist/_virtual/index5.cjs +2 -2
- package/dist/_virtual/index5.js +2 -2
- package/dist/_virtual/index6.cjs +2 -2
- package/dist/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.cjs +2 -10
- package/dist/_virtual/index7.cjs.map +1 -1
- package/dist/_virtual/index7.js +2 -11
- package/dist/_virtual/index7.js.map +1 -1
- package/dist/_virtual/index8.cjs +2 -2
- package/dist/_virtual/index8.js +2 -2
- package/dist/_virtual/index9.cjs +2 -2
- package/dist/_virtual/index9.js +2 -2
- package/dist/_virtual/queue.cjs +1 -9
- package/dist/_virtual/queue.cjs.map +1 -1
- package/dist/_virtual/queue.js +2 -11
- package/dist/_virtual/queue.js.map +1 -1
- package/dist/packages/init/package.json.cjs +32 -32
- package/dist/packages/init/package.json.js +32 -32
- package/package.json +32 -32
- package/dist/_node_modules/fast-glob/_node_modules/glob-parent/index.cjs.map +0 -1
- package/dist/_node_modules/fast-glob/_node_modules/glob-parent/index.js.map +0 -1
- package/dist/_node_modules/is-number/index.cjs.map +0 -1
- package/dist/_node_modules/is-number/index.js.map +0 -1
- package/dist/_node_modules/json-parse-even-better-errors/index.cjs.map +0 -1
- package/dist/_node_modules/json-parse-even-better-errors/index.js.map +0 -1
- package/dist/_node_modules/meow/_node_modules/lru-cache/index.cjs.map +0 -1
- package/dist/_node_modules/meow/_node_modules/lru-cache/index.js.map +0 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/lru-cache/index.cjs.map +0 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/lru-cache/index.js.map +0 -1
- package/dist/_node_modules/meow/_node_modules/yallist/iterator.cjs.map +0 -1
- package/dist/_node_modules/meow/_node_modules/yallist/iterator.js.map +0 -1
- package/dist/_node_modules/meow/_node_modules/yallist/yallist.cjs.map +0 -1
- package/dist/_node_modules/meow/_node_modules/yallist/yallist.js.map +0 -1
- package/dist/_node_modules/meow/_node_modules/yargs-parser/build/lib/index.cjs.map +0 -1
- package/dist/_node_modules/meow/_node_modules/yargs-parser/build/lib/index.js.map +0 -1
- package/dist/_node_modules/meow/_node_modules/yargs-parser/build/lib/string-utils.cjs.map +0 -1
- package/dist/_node_modules/meow/_node_modules/yargs-parser/build/lib/string-utils.js.map +0 -1
- package/dist/_node_modules/meow/_node_modules/yargs-parser/build/lib/tokenize-arg-string.cjs.map +0 -1
- package/dist/_node_modules/meow/_node_modules/yargs-parser/build/lib/tokenize-arg-string.js.map +0 -1
- package/dist/_node_modules/meow/_node_modules/yargs-parser/build/lib/yargs-parser-types.cjs.map +0 -1
- package/dist/_node_modules/meow/_node_modules/yargs-parser/build/lib/yargs-parser-types.js.map +0 -1
- package/dist/_node_modules/meow/_node_modules/yargs-parser/build/lib/yargs-parser.cjs.map +0 -1
- package/dist/_node_modules/meow/_node_modules/yargs-parser/build/lib/yargs-parser.js.map +0 -1
- package/dist/_node_modules/minimist-options/_node_modules/is-plain-obj/index.cjs.map +0 -1
- package/dist/_node_modules/minimist-options/_node_modules/is-plain-obj/index.js.map +0 -1
- package/dist/_node_modules/trim-newlines/index.cjs.map +0 -1
- package/dist/_node_modules/trim-newlines/index.js.map +0 -1
- package/dist/_virtual/index18.cjs +0 -5
- package/dist/_virtual/index18.cjs.map +0 -1
- package/dist/_virtual/index18.js +0 -5
- package/dist/_virtual/index18.js.map +0 -1
- package/dist/packages/init/_node_modules/slash/index.cjs.map +0 -1
- package/dist/packages/init/_node_modules/slash/index.js.map +0 -1
- /package/dist/{packages/init → _node_modules/globby}/_node_modules/slash/index.cjs +0 -0
- /package/dist/{packages/init → _node_modules/globby}/_node_modules/slash/index.js +0 -0
- /package/dist/{packages/init/_node_modules → _node_modules}/globby/ignore.cjs.map +0 -0
- /package/dist/{packages/init/_node_modules → _node_modules}/globby/utilities.cjs +0 -0
- /package/dist/{packages/init/_node_modules → _node_modules}/globby/utilities.cjs.map +0 -0
- /package/dist/{packages/init/_node_modules → _node_modules}/globby/utilities.js +0 -0
- /package/dist/{packages/init/_node_modules → _node_modules}/globby/utilities.js.map +0 -0
- /package/dist/_node_modules/{trim-newlines → meow/_node_modules/trim-newlines}/index.cjs +0 -0
- /package/dist/_node_modules/{trim-newlines → meow/_node_modules/trim-newlines}/index.js +0 -0
- /package/dist/_node_modules/{meow/_node_modules/yallist → yallist}/iterator.cjs +0 -0
- /package/dist/_node_modules/{meow/_node_modules/yallist → yallist}/iterator.js +0 -0
- /package/dist/_node_modules/{meow/_node_modules/yargs-parser → yargs-parser}/build/lib/index.cjs +0 -0
- /package/dist/_node_modules/{meow/_node_modules/yargs-parser → yargs-parser}/build/lib/index.js +0 -0
- /package/dist/_node_modules/{meow/_node_modules/yargs-parser → yargs-parser}/build/lib/string-utils.cjs +0 -0
- /package/dist/_node_modules/{meow/_node_modules/yargs-parser → yargs-parser}/build/lib/string-utils.js +0 -0
- /package/dist/_node_modules/{meow/_node_modules/yargs-parser → yargs-parser}/build/lib/tokenize-arg-string.cjs +0 -0
- /package/dist/_node_modules/{meow/_node_modules/yargs-parser → yargs-parser}/build/lib/tokenize-arg-string.js +0 -0
- /package/dist/_node_modules/{meow/_node_modules/yargs-parser → yargs-parser}/build/lib/yargs-parser-types.cjs +0 -0
- /package/dist/_node_modules/{meow/_node_modules/yargs-parser → yargs-parser}/build/lib/yargs-parser-types.js +0 -0
- /package/dist/_node_modules/{meow/_node_modules/yargs-parser → yargs-parser}/build/lib/yargs-parser.cjs +0 -0
- /package/dist/_node_modules/{meow/_node_modules/yargs-parser → yargs-parser}/build/lib/yargs-parser.js +0 -0
|
@@ -1,124 +1,125 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const index = require("../../../../../_virtual/index9.cjs");
|
|
3
4
|
const gitHostInfo = require("./git-host-info.cjs");
|
|
4
5
|
const gitHost = require("./git-host.cjs");
|
|
5
|
-
const index$1 = require(
|
|
6
|
-
const parseUrl = require("./parse-url.cjs");
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
user = null;
|
|
73
|
-
}
|
|
74
|
-
project = decodeURIComponent(pathname.slice(lastSlash + 1));
|
|
75
|
-
} else {
|
|
76
|
-
project = decodeURIComponent(pathname);
|
|
77
|
-
}
|
|
78
|
-
if (project.endsWith(".git")) {
|
|
79
|
-
project = project.slice(0, -4);
|
|
80
|
-
}
|
|
81
|
-
if (parsed.hash) {
|
|
82
|
-
committish = decodeURIComponent(parsed.hash.slice(1));
|
|
6
|
+
const index$1 = require('./../_node_modules/lru-cache/index.cjs');
|
|
7
|
+
const parseUrl$1 = require("./parse-url.cjs");
|
|
8
|
+
const gitHosts = gitHostInfo.gitHostInfo;
|
|
9
|
+
const GitHost = index.__module.exports = gitHost.gitHost;
|
|
10
|
+
const LRU = index$1.lruCache;
|
|
11
|
+
const parseUrl = parseUrl$1.parseUrl;
|
|
12
|
+
const cache = new LRU({ max: 1e3 });
|
|
13
|
+
const protocols = {
|
|
14
|
+
"git+ssh:": { name: "sshurl" },
|
|
15
|
+
"ssh:": { name: "sshurl" },
|
|
16
|
+
"git+https:": { name: "https", auth: true },
|
|
17
|
+
"git:": { auth: true },
|
|
18
|
+
"http:": { auth: true },
|
|
19
|
+
"https:": { auth: true },
|
|
20
|
+
"git+http:": { auth: true },
|
|
21
|
+
...Object.keys(gitHosts.byShortcut).reduce((acc, key) => {
|
|
22
|
+
acc[key] = { name: gitHosts.byShortcut[key] };
|
|
23
|
+
return acc;
|
|
24
|
+
}, {})
|
|
25
|
+
};
|
|
26
|
+
index.__module.exports.fromUrl = function(giturl, opts) {
|
|
27
|
+
if (typeof giturl !== "string") {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const key = giturl + JSON.stringify(opts || {});
|
|
31
|
+
if (!cache.has(key)) {
|
|
32
|
+
cache.set(key, fromUrl(giturl, opts));
|
|
33
|
+
}
|
|
34
|
+
return cache.get(key);
|
|
35
|
+
};
|
|
36
|
+
index.__module.exports.parseUrl = parseUrl;
|
|
37
|
+
function fromUrl(giturl, opts) {
|
|
38
|
+
if (!giturl) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
const correctedUrl = isGitHubShorthand(giturl) ? `github:${giturl}` : giturl;
|
|
42
|
+
const parsed = parseUrl(correctedUrl, protocols);
|
|
43
|
+
if (!parsed) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
const gitHostShortcut = gitHosts.byShortcut[parsed.protocol];
|
|
47
|
+
const gitHostDomain = gitHosts.byDomain[parsed.hostname.startsWith("www.") ? parsed.hostname.slice(4) : parsed.hostname];
|
|
48
|
+
const gitHostName = gitHostShortcut || gitHostDomain;
|
|
49
|
+
if (!gitHostName) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
const gitHostInfo2 = gitHosts[gitHostShortcut || gitHostDomain];
|
|
53
|
+
let auth = null;
|
|
54
|
+
if (protocols[parsed.protocol] && protocols[parsed.protocol].auth && (parsed.username || parsed.password)) {
|
|
55
|
+
auth = `${parsed.username}${parsed.password ? ":" + parsed.password : ""}`;
|
|
56
|
+
}
|
|
57
|
+
let committish = null;
|
|
58
|
+
let user = null;
|
|
59
|
+
let project = null;
|
|
60
|
+
let defaultRepresentation = null;
|
|
61
|
+
try {
|
|
62
|
+
if (gitHostShortcut) {
|
|
63
|
+
let pathname = parsed.pathname.startsWith("/") ? parsed.pathname.slice(1) : parsed.pathname;
|
|
64
|
+
const firstAt = pathname.indexOf("@");
|
|
65
|
+
if (firstAt > -1) {
|
|
66
|
+
pathname = pathname.slice(firstAt + 1);
|
|
67
|
+
}
|
|
68
|
+
const lastSlash = pathname.lastIndexOf("/");
|
|
69
|
+
if (lastSlash > -1) {
|
|
70
|
+
user = decodeURIComponent(pathname.slice(0, lastSlash));
|
|
71
|
+
if (!user) {
|
|
72
|
+
user = null;
|
|
83
73
|
}
|
|
84
|
-
|
|
74
|
+
project = decodeURIComponent(pathname.slice(lastSlash + 1));
|
|
85
75
|
} else {
|
|
86
|
-
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
const segments = gitHostInfo2.extract(parsed);
|
|
90
|
-
if (!segments) {
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
user = segments.user && decodeURIComponent(segments.user);
|
|
94
|
-
project = decodeURIComponent(segments.project);
|
|
95
|
-
committish = decodeURIComponent(segments.committish);
|
|
96
|
-
defaultRepresentation = protocols[parsed.protocol] && protocols[parsed.protocol].name || parsed.protocol.slice(0, -1);
|
|
76
|
+
project = decodeURIComponent(pathname);
|
|
97
77
|
}
|
|
98
|
-
|
|
99
|
-
|
|
78
|
+
if (project.endsWith(".git")) {
|
|
79
|
+
project = project.slice(0, -4);
|
|
80
|
+
}
|
|
81
|
+
if (parsed.hash) {
|
|
82
|
+
committish = decodeURIComponent(parsed.hash.slice(1));
|
|
83
|
+
}
|
|
84
|
+
defaultRepresentation = "shortcut";
|
|
85
|
+
} else {
|
|
86
|
+
if (!gitHostInfo2.protocols.includes(parsed.protocol)) {
|
|
100
87
|
return;
|
|
101
|
-
} else {
|
|
102
|
-
throw err;
|
|
103
88
|
}
|
|
89
|
+
const segments = gitHostInfo2.extract(parsed);
|
|
90
|
+
if (!segments) {
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
user = segments.user && decodeURIComponent(segments.user);
|
|
94
|
+
project = decodeURIComponent(segments.project);
|
|
95
|
+
committish = decodeURIComponent(segments.committish);
|
|
96
|
+
defaultRepresentation = protocols[parsed.protocol] && protocols[parsed.protocol].name || parsed.protocol.slice(0, -1);
|
|
97
|
+
}
|
|
98
|
+
} catch (err) {
|
|
99
|
+
if (err instanceof URIError) {
|
|
100
|
+
return;
|
|
101
|
+
} else {
|
|
102
|
+
throw err;
|
|
104
103
|
}
|
|
105
|
-
return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts);
|
|
106
104
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
105
|
+
return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts);
|
|
106
|
+
}
|
|
107
|
+
const isGitHubShorthand = (arg) => {
|
|
108
|
+
const firstHash = arg.indexOf("#");
|
|
109
|
+
const firstSlash = arg.indexOf("/");
|
|
110
|
+
const secondSlash = arg.indexOf("/", firstSlash + 1);
|
|
111
|
+
const firstColon = arg.indexOf(":");
|
|
112
|
+
const firstSpace = /\s/.exec(arg);
|
|
113
|
+
const firstAt = arg.indexOf("@");
|
|
114
|
+
const spaceOnlyAfterHash = !firstSpace || firstHash > -1 && firstSpace.index > firstHash;
|
|
115
|
+
const atOnlyAfterHash = firstAt === -1 || firstHash > -1 && firstAt > firstHash;
|
|
116
|
+
const colonOnlyAfterHash = firstColon === -1 || firstHash > -1 && firstColon > firstHash;
|
|
117
|
+
const secondSlashOnlyAfterHash = secondSlash === -1 || firstHash > -1 && secondSlash > firstHash;
|
|
118
|
+
const hasSlash = firstSlash > 0;
|
|
119
|
+
const doesNotEndWithSlash = firstHash > -1 ? arg[firstHash - 1] !== "/" : !arg.endsWith("/");
|
|
120
|
+
const doesNotStartWithDot = !arg.startsWith(".");
|
|
121
|
+
return spaceOnlyAfterHash && hasSlash && doesNotEndWithSlash && doesNotStartWithDot && atOnlyAfterHash && colonOnlyAfterHash && secondSlashOnlyAfterHash;
|
|
122
|
+
};
|
|
123
|
+
var libExports = index.__module.exports;
|
|
124
|
+
exports.libExports = libExports;
|
|
124
125
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../../../../../node_modules/meow/node_modules/hosted-git-info/lib/index.js"],"sourcesContent":["'use strict'\nconst gitHosts = require('./git-host-info.js')\nconst GitHost = module.exports = require('./git-host.js')\nconst LRU = require('lru-cache')\nconst parseUrl = require('./parse-url.js')\n\nconst cache = new LRU({ max: 1000 })\n\nconst protocols = {\n 'git+ssh:': { name: 'sshurl' },\n 'ssh:': { name: 'sshurl' },\n 'git+https:': { name: 'https', auth: true },\n 'git:': { auth: true },\n 'http:': { auth: true },\n 'https:': { auth: true },\n 'git+http:': { auth: true },\n ...Object.keys(gitHosts.byShortcut).reduce((acc, key) => {\n acc[key] = { name: gitHosts.byShortcut[key] }\n return acc\n }, {}),\n}\n\nmodule.exports.fromUrl = function (giturl, opts) {\n if (typeof giturl !== 'string') {\n return\n }\n\n const key = giturl + JSON.stringify(opts || {})\n\n if (!cache.has(key)) {\n cache.set(key, fromUrl(giturl, opts))\n }\n\n return cache.get(key)\n}\n\nmodule.exports.parseUrl = parseUrl\n\nfunction fromUrl (giturl, opts) {\n if (!giturl) {\n return\n }\n\n const correctedUrl = isGitHubShorthand(giturl) ? `github:${giturl}` : giturl\n const parsed = parseUrl(correctedUrl, protocols)\n if (!parsed) {\n return\n }\n\n const gitHostShortcut = gitHosts.byShortcut[parsed.protocol]\n const gitHostDomain = gitHosts.byDomain[parsed.hostname.startsWith('www.')\n ? parsed.hostname.slice(4)\n : parsed.hostname]\n const gitHostName = gitHostShortcut || gitHostDomain\n if (!gitHostName) {\n return\n }\n\n const gitHostInfo = gitHosts[gitHostShortcut || gitHostDomain]\n let auth = null\n if (protocols[parsed.protocol] &&\n protocols[parsed.protocol].auth &&\n (parsed.username || parsed.password)\n ) {\n auth = `${parsed.username}${parsed.password ? ':' + parsed.password : ''}`\n }\n\n let committish = null\n let user = null\n let project = null\n let defaultRepresentation = null\n\n try {\n if (gitHostShortcut) {\n let pathname = parsed.pathname.startsWith('/') ? parsed.pathname.slice(1) : parsed.pathname\n const firstAt = pathname.indexOf('@')\n // we ignore auth for shortcuts, so just trim it out\n if (firstAt > -1) {\n pathname = pathname.slice(firstAt + 1)\n }\n\n const lastSlash = pathname.lastIndexOf('/')\n if (lastSlash > -1) {\n user = decodeURIComponent(pathname.slice(0, lastSlash))\n // we want nulls only, never empty strings\n if (!user) {\n user = null\n }\n project = decodeURIComponent(pathname.slice(lastSlash + 1))\n } else {\n project = decodeURIComponent(pathname)\n }\n\n if (project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (parsed.hash) {\n committish = decodeURIComponent(parsed.hash.slice(1))\n }\n\n defaultRepresentation = 'shortcut'\n } else {\n if (!gitHostInfo.protocols.includes(parsed.protocol)) {\n return\n }\n\n const segments = gitHostInfo.extract(parsed)\n if (!segments) {\n return\n }\n\n user = segments.user && decodeURIComponent(segments.user)\n project = decodeURIComponent(segments.project)\n committish = decodeURIComponent(segments.committish)\n defaultRepresentation = (protocols[parsed.protocol] && protocols[parsed.protocol].name)\n || parsed.protocol.slice(0, -1)\n }\n } catch (err) {\n /* istanbul ignore else */\n if (err instanceof URIError) {\n return\n } else {\n throw err\n }\n }\n\n return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts)\n}\n\n// look for github shorthand inputs, such as npm/cli\nconst isGitHubShorthand = (arg) => {\n // it cannot contain whitespace before the first #\n // it cannot start with a / because that's probably an absolute file path\n // but it must include a slash since repos are username/repository\n // it cannot start with a . because that's probably a relative file path\n // it cannot start with an @ because that's a scoped package if it passes the other tests\n // it cannot contain a : before a # because that tells us that there's a protocol\n // a second / may not exist before a #\n const firstHash = arg.indexOf('#')\n const firstSlash = arg.indexOf('/')\n const secondSlash = arg.indexOf('/', firstSlash + 1)\n const firstColon = arg.indexOf(':')\n const firstSpace = /\\s/.exec(arg)\n const firstAt = arg.indexOf('@')\n\n const spaceOnlyAfterHash = !firstSpace || (firstHash > -1 && firstSpace.index > firstHash)\n const atOnlyAfterHash = firstAt === -1 || (firstHash > -1 && firstAt > firstHash)\n const colonOnlyAfterHash = firstColon === -1 || (firstHash > -1 && firstColon > firstHash)\n const secondSlashOnlyAfterHash = secondSlash === -1 || (firstHash > -1 && secondSlash > firstHash)\n const hasSlash = firstSlash > 0\n // if a # is found, what we really want to know is that the character\n // immediately before # is not a /\n const doesNotEndWithSlash = firstHash > -1 ? arg[firstHash - 1] !== '/' : !arg.endsWith('/')\n const doesNotStartWithDot = !arg.startsWith('.')\n\n return spaceOnlyAfterHash && hasSlash && doesNotEndWithSlash &&\n doesNotStartWithDot && atOnlyAfterHash && colonOnlyAfterHash &&\n secondSlashOnlyAfterHash\n}\n"],"names":["require$$0","
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../../../../node_modules/meow/node_modules/hosted-git-info/lib/index.js"],"sourcesContent":["'use strict'\nconst gitHosts = require('./git-host-info.js')\nconst GitHost = module.exports = require('./git-host.js')\nconst LRU = require('lru-cache')\nconst parseUrl = require('./parse-url.js')\n\nconst cache = new LRU({ max: 1000 })\n\nconst protocols = {\n 'git+ssh:': { name: 'sshurl' },\n 'ssh:': { name: 'sshurl' },\n 'git+https:': { name: 'https', auth: true },\n 'git:': { auth: true },\n 'http:': { auth: true },\n 'https:': { auth: true },\n 'git+http:': { auth: true },\n ...Object.keys(gitHosts.byShortcut).reduce((acc, key) => {\n acc[key] = { name: gitHosts.byShortcut[key] }\n return acc\n }, {}),\n}\n\nmodule.exports.fromUrl = function (giturl, opts) {\n if (typeof giturl !== 'string') {\n return\n }\n\n const key = giturl + JSON.stringify(opts || {})\n\n if (!cache.has(key)) {\n cache.set(key, fromUrl(giturl, opts))\n }\n\n return cache.get(key)\n}\n\nmodule.exports.parseUrl = parseUrl\n\nfunction fromUrl (giturl, opts) {\n if (!giturl) {\n return\n }\n\n const correctedUrl = isGitHubShorthand(giturl) ? `github:${giturl}` : giturl\n const parsed = parseUrl(correctedUrl, protocols)\n if (!parsed) {\n return\n }\n\n const gitHostShortcut = gitHosts.byShortcut[parsed.protocol]\n const gitHostDomain = gitHosts.byDomain[parsed.hostname.startsWith('www.')\n ? parsed.hostname.slice(4)\n : parsed.hostname]\n const gitHostName = gitHostShortcut || gitHostDomain\n if (!gitHostName) {\n return\n }\n\n const gitHostInfo = gitHosts[gitHostShortcut || gitHostDomain]\n let auth = null\n if (protocols[parsed.protocol] &&\n protocols[parsed.protocol].auth &&\n (parsed.username || parsed.password)\n ) {\n auth = `${parsed.username}${parsed.password ? ':' + parsed.password : ''}`\n }\n\n let committish = null\n let user = null\n let project = null\n let defaultRepresentation = null\n\n try {\n if (gitHostShortcut) {\n let pathname = parsed.pathname.startsWith('/') ? parsed.pathname.slice(1) : parsed.pathname\n const firstAt = pathname.indexOf('@')\n // we ignore auth for shortcuts, so just trim it out\n if (firstAt > -1) {\n pathname = pathname.slice(firstAt + 1)\n }\n\n const lastSlash = pathname.lastIndexOf('/')\n if (lastSlash > -1) {\n user = decodeURIComponent(pathname.slice(0, lastSlash))\n // we want nulls only, never empty strings\n if (!user) {\n user = null\n }\n project = decodeURIComponent(pathname.slice(lastSlash + 1))\n } else {\n project = decodeURIComponent(pathname)\n }\n\n if (project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (parsed.hash) {\n committish = decodeURIComponent(parsed.hash.slice(1))\n }\n\n defaultRepresentation = 'shortcut'\n } else {\n if (!gitHostInfo.protocols.includes(parsed.protocol)) {\n return\n }\n\n const segments = gitHostInfo.extract(parsed)\n if (!segments) {\n return\n }\n\n user = segments.user && decodeURIComponent(segments.user)\n project = decodeURIComponent(segments.project)\n committish = decodeURIComponent(segments.committish)\n defaultRepresentation = (protocols[parsed.protocol] && protocols[parsed.protocol].name)\n || parsed.protocol.slice(0, -1)\n }\n } catch (err) {\n /* istanbul ignore else */\n if (err instanceof URIError) {\n return\n } else {\n throw err\n }\n }\n\n return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts)\n}\n\n// look for github shorthand inputs, such as npm/cli\nconst isGitHubShorthand = (arg) => {\n // it cannot contain whitespace before the first #\n // it cannot start with a / because that's probably an absolute file path\n // but it must include a slash since repos are username/repository\n // it cannot start with a . because that's probably a relative file path\n // it cannot start with an @ because that's a scoped package if it passes the other tests\n // it cannot contain a : before a # because that tells us that there's a protocol\n // a second / may not exist before a #\n const firstHash = arg.indexOf('#')\n const firstSlash = arg.indexOf('/')\n const secondSlash = arg.indexOf('/', firstSlash + 1)\n const firstColon = arg.indexOf(':')\n const firstSpace = /\\s/.exec(arg)\n const firstAt = arg.indexOf('@')\n\n const spaceOnlyAfterHash = !firstSpace || (firstHash > -1 && firstSpace.index > firstHash)\n const atOnlyAfterHash = firstAt === -1 || (firstHash > -1 && firstAt > firstHash)\n const colonOnlyAfterHash = firstColon === -1 || (firstHash > -1 && firstColon > firstHash)\n const secondSlashOnlyAfterHash = secondSlash === -1 || (firstHash > -1 && secondSlash > firstHash)\n const hasSlash = firstSlash > 0\n // if a # is found, what we really want to know is that the character\n // immediately before # is not a /\n const doesNotEndWithSlash = firstHash > -1 ? arg[firstHash - 1] !== '/' : !arg.endsWith('/')\n const doesNotStartWithDot = !arg.startsWith('.')\n\n return spaceOnlyAfterHash && hasSlash && doesNotEndWithSlash &&\n doesNotStartWithDot && atOnlyAfterHash && colonOnlyAfterHash &&\n secondSlashOnlyAfterHash\n}\n"],"names":["require$$0","libModule","require$$1","require$$2","require$$3","gitHostInfo"],"mappings":"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","x_google_ignoreList":[0]}
|
|
@@ -1,123 +1,125 @@
|
|
|
1
|
-
import { __module as lib } from "../../../../../_virtual/
|
|
2
|
-
import gitHostInfo from "./git-host-info.js";
|
|
3
|
-
import gitHost from "./git-host.js";
|
|
4
|
-
import lruCache from
|
|
5
|
-
import parseUrl from "./parse-url.js";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
user = null;
|
|
72
|
-
}
|
|
73
|
-
project = decodeURIComponent(pathname.slice(lastSlash + 1));
|
|
74
|
-
} else {
|
|
75
|
-
project = decodeURIComponent(pathname);
|
|
76
|
-
}
|
|
77
|
-
if (project.endsWith(".git")) {
|
|
78
|
-
project = project.slice(0, -4);
|
|
79
|
-
}
|
|
80
|
-
if (parsed.hash) {
|
|
81
|
-
committish = decodeURIComponent(parsed.hash.slice(1));
|
|
1
|
+
import { __module as lib } from "../../../../../_virtual/index9.js";
|
|
2
|
+
import { g as gitHostInfo } from "./git-host-info.js";
|
|
3
|
+
import { g as gitHost } from "./git-host.js";
|
|
4
|
+
import { l as lruCache } from './../_node_modules/lru-cache/index.js';
|
|
5
|
+
import { p as parseUrl$1 } from "./parse-url.js";
|
|
6
|
+
const gitHosts = gitHostInfo;
|
|
7
|
+
const GitHost = lib.exports = gitHost;
|
|
8
|
+
const LRU = lruCache;
|
|
9
|
+
const parseUrl = parseUrl$1;
|
|
10
|
+
const cache = new LRU({ max: 1e3 });
|
|
11
|
+
const protocols = {
|
|
12
|
+
"git+ssh:": { name: "sshurl" },
|
|
13
|
+
"ssh:": { name: "sshurl" },
|
|
14
|
+
"git+https:": { name: "https", auth: true },
|
|
15
|
+
"git:": { auth: true },
|
|
16
|
+
"http:": { auth: true },
|
|
17
|
+
"https:": { auth: true },
|
|
18
|
+
"git+http:": { auth: true },
|
|
19
|
+
...Object.keys(gitHosts.byShortcut).reduce((acc, key) => {
|
|
20
|
+
acc[key] = { name: gitHosts.byShortcut[key] };
|
|
21
|
+
return acc;
|
|
22
|
+
}, {})
|
|
23
|
+
};
|
|
24
|
+
lib.exports.fromUrl = function(giturl, opts) {
|
|
25
|
+
if (typeof giturl !== "string") {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
const key = giturl + JSON.stringify(opts || {});
|
|
29
|
+
if (!cache.has(key)) {
|
|
30
|
+
cache.set(key, fromUrl(giturl, opts));
|
|
31
|
+
}
|
|
32
|
+
return cache.get(key);
|
|
33
|
+
};
|
|
34
|
+
lib.exports.parseUrl = parseUrl;
|
|
35
|
+
function fromUrl(giturl, opts) {
|
|
36
|
+
if (!giturl) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const correctedUrl = isGitHubShorthand(giturl) ? `github:${giturl}` : giturl;
|
|
40
|
+
const parsed = parseUrl(correctedUrl, protocols);
|
|
41
|
+
if (!parsed) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
const gitHostShortcut = gitHosts.byShortcut[parsed.protocol];
|
|
45
|
+
const gitHostDomain = gitHosts.byDomain[parsed.hostname.startsWith("www.") ? parsed.hostname.slice(4) : parsed.hostname];
|
|
46
|
+
const gitHostName = gitHostShortcut || gitHostDomain;
|
|
47
|
+
if (!gitHostName) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
const gitHostInfo2 = gitHosts[gitHostShortcut || gitHostDomain];
|
|
51
|
+
let auth = null;
|
|
52
|
+
if (protocols[parsed.protocol] && protocols[parsed.protocol].auth && (parsed.username || parsed.password)) {
|
|
53
|
+
auth = `${parsed.username}${parsed.password ? ":" + parsed.password : ""}`;
|
|
54
|
+
}
|
|
55
|
+
let committish = null;
|
|
56
|
+
let user = null;
|
|
57
|
+
let project = null;
|
|
58
|
+
let defaultRepresentation = null;
|
|
59
|
+
try {
|
|
60
|
+
if (gitHostShortcut) {
|
|
61
|
+
let pathname = parsed.pathname.startsWith("/") ? parsed.pathname.slice(1) : parsed.pathname;
|
|
62
|
+
const firstAt = pathname.indexOf("@");
|
|
63
|
+
if (firstAt > -1) {
|
|
64
|
+
pathname = pathname.slice(firstAt + 1);
|
|
65
|
+
}
|
|
66
|
+
const lastSlash = pathname.lastIndexOf("/");
|
|
67
|
+
if (lastSlash > -1) {
|
|
68
|
+
user = decodeURIComponent(pathname.slice(0, lastSlash));
|
|
69
|
+
if (!user) {
|
|
70
|
+
user = null;
|
|
82
71
|
}
|
|
83
|
-
|
|
72
|
+
project = decodeURIComponent(pathname.slice(lastSlash + 1));
|
|
84
73
|
} else {
|
|
85
|
-
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
const segments = gitHostInfo2.extract(parsed);
|
|
89
|
-
if (!segments) {
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
user = segments.user && decodeURIComponent(segments.user);
|
|
93
|
-
project = decodeURIComponent(segments.project);
|
|
94
|
-
committish = decodeURIComponent(segments.committish);
|
|
95
|
-
defaultRepresentation = protocols[parsed.protocol] && protocols[parsed.protocol].name || parsed.protocol.slice(0, -1);
|
|
74
|
+
project = decodeURIComponent(pathname);
|
|
96
75
|
}
|
|
97
|
-
|
|
98
|
-
|
|
76
|
+
if (project.endsWith(".git")) {
|
|
77
|
+
project = project.slice(0, -4);
|
|
78
|
+
}
|
|
79
|
+
if (parsed.hash) {
|
|
80
|
+
committish = decodeURIComponent(parsed.hash.slice(1));
|
|
81
|
+
}
|
|
82
|
+
defaultRepresentation = "shortcut";
|
|
83
|
+
} else {
|
|
84
|
+
if (!gitHostInfo2.protocols.includes(parsed.protocol)) {
|
|
99
85
|
return;
|
|
100
|
-
} else {
|
|
101
|
-
throw err;
|
|
102
86
|
}
|
|
87
|
+
const segments = gitHostInfo2.extract(parsed);
|
|
88
|
+
if (!segments) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
user = segments.user && decodeURIComponent(segments.user);
|
|
92
|
+
project = decodeURIComponent(segments.project);
|
|
93
|
+
committish = decodeURIComponent(segments.committish);
|
|
94
|
+
defaultRepresentation = protocols[parsed.protocol] && protocols[parsed.protocol].name || parsed.protocol.slice(0, -1);
|
|
95
|
+
}
|
|
96
|
+
} catch (err) {
|
|
97
|
+
if (err instanceof URIError) {
|
|
98
|
+
return;
|
|
99
|
+
} else {
|
|
100
|
+
throw err;
|
|
103
101
|
}
|
|
104
|
-
return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts);
|
|
105
102
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
103
|
+
return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts);
|
|
104
|
+
}
|
|
105
|
+
const isGitHubShorthand = (arg) => {
|
|
106
|
+
const firstHash = arg.indexOf("#");
|
|
107
|
+
const firstSlash = arg.indexOf("/");
|
|
108
|
+
const secondSlash = arg.indexOf("/", firstSlash + 1);
|
|
109
|
+
const firstColon = arg.indexOf(":");
|
|
110
|
+
const firstSpace = /\s/.exec(arg);
|
|
111
|
+
const firstAt = arg.indexOf("@");
|
|
112
|
+
const spaceOnlyAfterHash = !firstSpace || firstHash > -1 && firstSpace.index > firstHash;
|
|
113
|
+
const atOnlyAfterHash = firstAt === -1 || firstHash > -1 && firstAt > firstHash;
|
|
114
|
+
const colonOnlyAfterHash = firstColon === -1 || firstHash > -1 && firstColon > firstHash;
|
|
115
|
+
const secondSlashOnlyAfterHash = secondSlash === -1 || firstHash > -1 && secondSlash > firstHash;
|
|
116
|
+
const hasSlash = firstSlash > 0;
|
|
117
|
+
const doesNotEndWithSlash = firstHash > -1 ? arg[firstHash - 1] !== "/" : !arg.endsWith("/");
|
|
118
|
+
const doesNotStartWithDot = !arg.startsWith(".");
|
|
119
|
+
return spaceOnlyAfterHash && hasSlash && doesNotEndWithSlash && doesNotStartWithDot && atOnlyAfterHash && colonOnlyAfterHash && secondSlashOnlyAfterHash;
|
|
120
|
+
};
|
|
121
|
+
var libExports = lib.exports;
|
|
122
|
+
export {
|
|
123
|
+
libExports as l
|
|
124
|
+
};
|
|
123
125
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../node_modules/meow/node_modules/hosted-git-info/lib/index.js"],"sourcesContent":["'use strict'\nconst gitHosts = require('./git-host-info.js')\nconst GitHost = module.exports = require('./git-host.js')\nconst LRU = require('lru-cache')\nconst parseUrl = require('./parse-url.js')\n\nconst cache = new LRU({ max: 1000 })\n\nconst protocols = {\n 'git+ssh:': { name: 'sshurl' },\n 'ssh:': { name: 'sshurl' },\n 'git+https:': { name: 'https', auth: true },\n 'git:': { auth: true },\n 'http:': { auth: true },\n 'https:': { auth: true },\n 'git+http:': { auth: true },\n ...Object.keys(gitHosts.byShortcut).reduce((acc, key) => {\n acc[key] = { name: gitHosts.byShortcut[key] }\n return acc\n }, {}),\n}\n\nmodule.exports.fromUrl = function (giturl, opts) {\n if (typeof giturl !== 'string') {\n return\n }\n\n const key = giturl + JSON.stringify(opts || {})\n\n if (!cache.has(key)) {\n cache.set(key, fromUrl(giturl, opts))\n }\n\n return cache.get(key)\n}\n\nmodule.exports.parseUrl = parseUrl\n\nfunction fromUrl (giturl, opts) {\n if (!giturl) {\n return\n }\n\n const correctedUrl = isGitHubShorthand(giturl) ? `github:${giturl}` : giturl\n const parsed = parseUrl(correctedUrl, protocols)\n if (!parsed) {\n return\n }\n\n const gitHostShortcut = gitHosts.byShortcut[parsed.protocol]\n const gitHostDomain = gitHosts.byDomain[parsed.hostname.startsWith('www.')\n ? parsed.hostname.slice(4)\n : parsed.hostname]\n const gitHostName = gitHostShortcut || gitHostDomain\n if (!gitHostName) {\n return\n }\n\n const gitHostInfo = gitHosts[gitHostShortcut || gitHostDomain]\n let auth = null\n if (protocols[parsed.protocol] &&\n protocols[parsed.protocol].auth &&\n (parsed.username || parsed.password)\n ) {\n auth = `${parsed.username}${parsed.password ? ':' + parsed.password : ''}`\n }\n\n let committish = null\n let user = null\n let project = null\n let defaultRepresentation = null\n\n try {\n if (gitHostShortcut) {\n let pathname = parsed.pathname.startsWith('/') ? parsed.pathname.slice(1) : parsed.pathname\n const firstAt = pathname.indexOf('@')\n // we ignore auth for shortcuts, so just trim it out\n if (firstAt > -1) {\n pathname = pathname.slice(firstAt + 1)\n }\n\n const lastSlash = pathname.lastIndexOf('/')\n if (lastSlash > -1) {\n user = decodeURIComponent(pathname.slice(0, lastSlash))\n // we want nulls only, never empty strings\n if (!user) {\n user = null\n }\n project = decodeURIComponent(pathname.slice(lastSlash + 1))\n } else {\n project = decodeURIComponent(pathname)\n }\n\n if (project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (parsed.hash) {\n committish = decodeURIComponent(parsed.hash.slice(1))\n }\n\n defaultRepresentation = 'shortcut'\n } else {\n if (!gitHostInfo.protocols.includes(parsed.protocol)) {\n return\n }\n\n const segments = gitHostInfo.extract(parsed)\n if (!segments) {\n return\n }\n\n user = segments.user && decodeURIComponent(segments.user)\n project = decodeURIComponent(segments.project)\n committish = decodeURIComponent(segments.committish)\n defaultRepresentation = (protocols[parsed.protocol] && protocols[parsed.protocol].name)\n || parsed.protocol.slice(0, -1)\n }\n } catch (err) {\n /* istanbul ignore else */\n if (err instanceof URIError) {\n return\n } else {\n throw err\n }\n }\n\n return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts)\n}\n\n// look for github shorthand inputs, such as npm/cli\nconst isGitHubShorthand = (arg) => {\n // it cannot contain whitespace before the first #\n // it cannot start with a / because that's probably an absolute file path\n // but it must include a slash since repos are username/repository\n // it cannot start with a . because that's probably a relative file path\n // it cannot start with an @ because that's a scoped package if it passes the other tests\n // it cannot contain a : before a # because that tells us that there's a protocol\n // a second / may not exist before a #\n const firstHash = arg.indexOf('#')\n const firstSlash = arg.indexOf('/')\n const secondSlash = arg.indexOf('/', firstSlash + 1)\n const firstColon = arg.indexOf(':')\n const firstSpace = /\\s/.exec(arg)\n const firstAt = arg.indexOf('@')\n\n const spaceOnlyAfterHash = !firstSpace || (firstHash > -1 && firstSpace.index > firstHash)\n const atOnlyAfterHash = firstAt === -1 || (firstHash > -1 && firstAt > firstHash)\n const colonOnlyAfterHash = firstColon === -1 || (firstHash > -1 && firstColon > firstHash)\n const secondSlashOnlyAfterHash = secondSlash === -1 || (firstHash > -1 && secondSlash > firstHash)\n const hasSlash = firstSlash > 0\n // if a # is found, what we really want to know is that the character\n // immediately before # is not a /\n const doesNotEndWithSlash = firstHash > -1 ? arg[firstHash - 1] !== '/' : !arg.endsWith('/')\n const doesNotStartWithDot = !arg.startsWith('.')\n\n return spaceOnlyAfterHash && hasSlash && doesNotEndWithSlash &&\n doesNotStartWithDot && atOnlyAfterHash && colonOnlyAfterHash &&\n secondSlashOnlyAfterHash\n}\n"],"names":["require$$0","require$$1","require$$2","
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../node_modules/meow/node_modules/hosted-git-info/lib/index.js"],"sourcesContent":["'use strict'\nconst gitHosts = require('./git-host-info.js')\nconst GitHost = module.exports = require('./git-host.js')\nconst LRU = require('lru-cache')\nconst parseUrl = require('./parse-url.js')\n\nconst cache = new LRU({ max: 1000 })\n\nconst protocols = {\n 'git+ssh:': { name: 'sshurl' },\n 'ssh:': { name: 'sshurl' },\n 'git+https:': { name: 'https', auth: true },\n 'git:': { auth: true },\n 'http:': { auth: true },\n 'https:': { auth: true },\n 'git+http:': { auth: true },\n ...Object.keys(gitHosts.byShortcut).reduce((acc, key) => {\n acc[key] = { name: gitHosts.byShortcut[key] }\n return acc\n }, {}),\n}\n\nmodule.exports.fromUrl = function (giturl, opts) {\n if (typeof giturl !== 'string') {\n return\n }\n\n const key = giturl + JSON.stringify(opts || {})\n\n if (!cache.has(key)) {\n cache.set(key, fromUrl(giturl, opts))\n }\n\n return cache.get(key)\n}\n\nmodule.exports.parseUrl = parseUrl\n\nfunction fromUrl (giturl, opts) {\n if (!giturl) {\n return\n }\n\n const correctedUrl = isGitHubShorthand(giturl) ? `github:${giturl}` : giturl\n const parsed = parseUrl(correctedUrl, protocols)\n if (!parsed) {\n return\n }\n\n const gitHostShortcut = gitHosts.byShortcut[parsed.protocol]\n const gitHostDomain = gitHosts.byDomain[parsed.hostname.startsWith('www.')\n ? parsed.hostname.slice(4)\n : parsed.hostname]\n const gitHostName = gitHostShortcut || gitHostDomain\n if (!gitHostName) {\n return\n }\n\n const gitHostInfo = gitHosts[gitHostShortcut || gitHostDomain]\n let auth = null\n if (protocols[parsed.protocol] &&\n protocols[parsed.protocol].auth &&\n (parsed.username || parsed.password)\n ) {\n auth = `${parsed.username}${parsed.password ? ':' + parsed.password : ''}`\n }\n\n let committish = null\n let user = null\n let project = null\n let defaultRepresentation = null\n\n try {\n if (gitHostShortcut) {\n let pathname = parsed.pathname.startsWith('/') ? parsed.pathname.slice(1) : parsed.pathname\n const firstAt = pathname.indexOf('@')\n // we ignore auth for shortcuts, so just trim it out\n if (firstAt > -1) {\n pathname = pathname.slice(firstAt + 1)\n }\n\n const lastSlash = pathname.lastIndexOf('/')\n if (lastSlash > -1) {\n user = decodeURIComponent(pathname.slice(0, lastSlash))\n // we want nulls only, never empty strings\n if (!user) {\n user = null\n }\n project = decodeURIComponent(pathname.slice(lastSlash + 1))\n } else {\n project = decodeURIComponent(pathname)\n }\n\n if (project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (parsed.hash) {\n committish = decodeURIComponent(parsed.hash.slice(1))\n }\n\n defaultRepresentation = 'shortcut'\n } else {\n if (!gitHostInfo.protocols.includes(parsed.protocol)) {\n return\n }\n\n const segments = gitHostInfo.extract(parsed)\n if (!segments) {\n return\n }\n\n user = segments.user && decodeURIComponent(segments.user)\n project = decodeURIComponent(segments.project)\n committish = decodeURIComponent(segments.committish)\n defaultRepresentation = (protocols[parsed.protocol] && protocols[parsed.protocol].name)\n || parsed.protocol.slice(0, -1)\n }\n } catch (err) {\n /* istanbul ignore else */\n if (err instanceof URIError) {\n return\n } else {\n throw err\n }\n }\n\n return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts)\n}\n\n// look for github shorthand inputs, such as npm/cli\nconst isGitHubShorthand = (arg) => {\n // it cannot contain whitespace before the first #\n // it cannot start with a / because that's probably an absolute file path\n // but it must include a slash since repos are username/repository\n // it cannot start with a . because that's probably a relative file path\n // it cannot start with an @ because that's a scoped package if it passes the other tests\n // it cannot contain a : before a # because that tells us that there's a protocol\n // a second / may not exist before a #\n const firstHash = arg.indexOf('#')\n const firstSlash = arg.indexOf('/')\n const secondSlash = arg.indexOf('/', firstSlash + 1)\n const firstColon = arg.indexOf(':')\n const firstSpace = /\\s/.exec(arg)\n const firstAt = arg.indexOf('@')\n\n const spaceOnlyAfterHash = !firstSpace || (firstHash > -1 && firstSpace.index > firstHash)\n const atOnlyAfterHash = firstAt === -1 || (firstHash > -1 && firstAt > firstHash)\n const colonOnlyAfterHash = firstColon === -1 || (firstHash > -1 && firstColon > firstHash)\n const secondSlashOnlyAfterHash = secondSlash === -1 || (firstHash > -1 && secondSlash > firstHash)\n const hasSlash = firstSlash > 0\n // if a # is found, what we really want to know is that the character\n // immediately before # is not a /\n const doesNotEndWithSlash = firstHash > -1 ? arg[firstHash - 1] !== '/' : !arg.endsWith('/')\n const doesNotStartWithDot = !arg.startsWith('.')\n\n return spaceOnlyAfterHash && hasSlash && doesNotEndWithSlash &&\n doesNotStartWithDot && atOnlyAfterHash && colonOnlyAfterHash &&\n secondSlashOnlyAfterHash\n}\n"],"names":["require$$0","libModule","require$$1","require$$2","require$$3","gitHostInfo"],"mappings":"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","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
3
|
const require$$0 = require("url");
|
|
3
4
|
const url = require$$0;
|
|
4
5
|
const lastIndexOfBefore = (str, char, beforeChar) => {
|
|
@@ -46,5 +47,5 @@ var parseUrl = (giturl, protocols) => {
|
|
|
46
47
|
const withProtocol = protocols ? correctProtocol(giturl, protocols) : giturl;
|
|
47
48
|
return safeUrl(withProtocol) || safeUrl(correctUrl(withProtocol));
|
|
48
49
|
};
|
|
49
|
-
|
|
50
|
+
exports.parseUrl = parseUrl;
|
|
50
51
|
//# sourceMappingURL=parse-url.cjs.map
|