@slicemachine/init 2.10.34-beta.1 → 2.10.34-beta.11
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.map +1 -1
- package/dist/SliceMachineInitProcess.js.map +1 -1
- package/dist/_node_modules/@babel/code-frame/lib/index.cjs +2 -2
- package/dist/_node_modules/@babel/code-frame/lib/index.cjs.map +1 -1
- package/dist/_node_modules/@babel/code-frame/lib/index.js +2 -2
- package/dist/_node_modules/@babel/code-frame/lib/index.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.js +1 -1
- package/dist/_node_modules/@babel/highlight/lib/index.cjs +3 -3
- package/dist/_node_modules/@babel/highlight/lib/index.js +3 -3
- package/dist/_node_modules/@nodelib/fs.scandir/out/constants.cjs.map +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/constants.js.map +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/async.cjs +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/async.js +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/sync.cjs +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/sync.cjs.map +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/sync.js +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/sync.js.map +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/settings.cjs +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/settings.js +1 -1
- package/dist/_node_modules/@nodelib/fs.stat/out/index.cjs +1 -1
- package/dist/_node_modules/@nodelib/fs.stat/out/index.js +1 -1
- package/dist/_node_modules/@nodelib/fs.stat/out/providers/sync.cjs.map +1 -1
- package/dist/_node_modules/@nodelib/fs.stat/out/providers/sync.js.map +1 -1
- package/dist/_node_modules/@nodelib/fs.walk/out/index.cjs +1 -1
- package/dist/_node_modules/@nodelib/fs.walk/out/index.js +1 -1
- package/dist/_node_modules/@nodelib/fs.walk/out/readers/sync.cjs.map +1 -1
- package/dist/_node_modules/@nodelib/fs.walk/out/readers/sync.js.map +1 -1
- package/dist/_node_modules/braces/lib/compile.cjs.map +1 -1
- package/dist/_node_modules/braces/lib/compile.js.map +1 -1
- package/dist/_node_modules/braces/lib/expand.cjs.map +1 -1
- package/dist/_node_modules/braces/lib/expand.js.map +1 -1
- package/dist/_node_modules/braces/lib/parse.cjs.map +1 -1
- package/dist/_node_modules/braces/lib/parse.js.map +1 -1
- package/dist/_node_modules/camelcase-keys/index.cjs.map +1 -1
- package/dist/_node_modules/camelcase-keys/index.js.map +1 -1
- package/dist/_node_modules/cross-spawn/index.cjs +1 -1
- package/dist/_node_modules/cross-spawn/index.js +1 -1
- package/dist/_node_modules/cross-spawn/lib/enoent.cjs.map +1 -1
- package/dist/_node_modules/cross-spawn/lib/enoent.js.map +1 -1
- package/dist/_node_modules/cross-spawn/lib/parse.cjs.map +1 -1
- package/dist/_node_modules/cross-spawn/lib/parse.js.map +1 -1
- package/dist/_node_modules/cross-spawn/lib/util/escape.cjs.map +1 -1
- package/dist/_node_modules/cross-spawn/lib/util/escape.js.map +1 -1
- package/dist/_node_modules/cross-spawn/lib/util/readShebang.cjs.map +1 -1
- package/dist/_node_modules/cross-spawn/lib/util/readShebang.js.map +1 -1
- package/dist/_node_modules/cross-spawn/lib/util/resolveCommand.cjs.map +1 -1
- package/dist/_node_modules/cross-spawn/lib/util/resolveCommand.js.map +1 -1
- package/dist/_node_modules/decamelize/index.cjs.map +1 -1
- package/dist/_node_modules/decamelize/index.js.map +1 -1
- package/dist/_node_modules/dir-glob/index.cjs.map +1 -1
- package/dist/_node_modules/dir-glob/index.js.map +1 -1
- package/dist/_node_modules/execa/index.cjs +2 -2
- package/dist/_node_modules/execa/index.cjs.map +1 -1
- package/dist/_node_modules/execa/index.js +2 -2
- package/dist/_node_modules/execa/index.js.map +1 -1
- package/dist/_node_modules/execa/lib/command.cjs.map +1 -1
- package/dist/_node_modules/execa/lib/command.js.map +1 -1
- package/dist/_node_modules/execa/lib/error.cjs.map +1 -1
- package/dist/_node_modules/execa/lib/error.js.map +1 -1
- package/dist/_node_modules/execa/lib/kill.cjs.map +1 -1
- package/dist/_node_modules/execa/lib/kill.js.map +1 -1
- package/dist/_node_modules/execa/lib/promise.cjs +2 -2
- package/dist/_node_modules/execa/lib/promise.cjs.map +1 -1
- package/dist/_node_modules/execa/lib/promise.js +2 -2
- package/dist/_node_modules/execa/lib/promise.js.map +1 -1
- package/dist/_node_modules/execa/lib/stdio.cjs.map +1 -1
- package/dist/_node_modules/execa/lib/stdio.js.map +1 -1
- package/dist/_node_modules/execa/lib/stream.cjs.map +1 -1
- package/dist/_node_modules/execa/lib/stream.js.map +1 -1
- package/dist/_node_modules/execa/lib/verbose.cjs.map +1 -1
- package/dist/_node_modules/execa/lib/verbose.js.map +1 -1
- package/dist/_node_modules/fast-glob/out/readers/async.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/readers/async.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/readers/stream.cjs +2 -2
- package/dist/_node_modules/fast-glob/out/readers/stream.js +2 -2
- package/dist/_node_modules/fast-glob/out/readers/sync.cjs +2 -2
- package/dist/_node_modules/fast-glob/out/readers/sync.cjs.map +1 -1
- package/dist/_node_modules/fast-glob/out/readers/sync.js +2 -2
- package/dist/_node_modules/fast-glob/out/readers/sync.js.map +1 -1
- package/dist/_node_modules/fast-glob/out/settings.cjs.map +1 -1
- package/dist/_node_modules/fast-glob/out/settings.js.map +1 -1
- package/dist/_node_modules/fill-range/index.cjs.map +1 -1
- package/dist/_node_modules/fill-range/index.js.map +1 -1
- package/dist/_node_modules/get-stream/index.cjs +1 -1
- package/dist/_node_modules/get-stream/index.cjs.map +1 -1
- package/dist/_node_modules/get-stream/index.js +1 -1
- package/dist/_node_modules/get-stream/index.js.map +1 -1
- package/dist/_node_modules/globby/ignore.cjs.map +1 -1
- package/dist/_node_modules/globby/ignore.js.map +1 -1
- package/dist/_node_modules/globby/index.cjs.map +1 -1
- package/dist/_node_modules/globby/index.js.map +1 -1
- package/dist/_node_modules/hard-rejection/index.cjs.map +1 -1
- package/dist/_node_modules/hard-rejection/index.js.map +1 -1
- package/dist/_node_modules/human-signals/build/src/realtime.cjs.map +1 -1
- package/dist/_node_modules/human-signals/build/src/realtime.js.map +1 -1
- package/dist/_node_modules/ignore/index.cjs.map +1 -1
- package/dist/_node_modules/ignore/index.js.map +1 -1
- package/dist/_node_modules/isexe/index.cjs.map +1 -1
- package/dist/_node_modules/isexe/index.js.map +1 -1
- package/dist/_node_modules/js-tokens/index.cjs +1 -1
- package/dist/_node_modules/js-tokens/index.js +1 -1
- package/dist/_node_modules/json-parse-even-better-errors/index.cjs.map +1 -1
- package/dist/_node_modules/json-parse-even-better-errors/index.js.map +1 -1
- package/dist/_node_modules/kind-of/index.cjs.map +1 -1
- package/dist/_node_modules/kind-of/index.js.map +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/locate-path/index.cjs.map +1 -0
- package/dist/_node_modules/locate-path/index.js.map +1 -0
- package/dist/_node_modules/map-obj/index.cjs +1 -1
- package/dist/_node_modules/map-obj/index.cjs.map +1 -1
- package/dist/_node_modules/map-obj/index.js +1 -1
- package/dist/_node_modules/map-obj/index.js.map +1 -1
- package/dist/_node_modules/meow/_node_modules/find-up/index.cjs +1 -1
- package/dist/_node_modules/meow/_node_modules/find-up/index.js +1 -1
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/_node_modules/lru-cache/index.cjs.map +1 -1
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/_node_modules/lru-cache/index.js.map +1 -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.map +1 -1
- 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.map +1 -1
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/index.cjs +1 -1
- 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 +1 -1
- 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.map +1 -1
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/parse-url.js.map +1 -1
- package/dist/_node_modules/meow/index.cjs.map +1 -1
- package/dist/_node_modules/meow/index.js.map +1 -1
- package/dist/_node_modules/micromatch/_node_modules/picomatch/index.cjs.map +1 -0
- package/dist/_node_modules/micromatch/_node_modules/picomatch/index.js.map +1 -0
- package/dist/_node_modules/micromatch/_node_modules/picomatch/lib/constants.cjs.map +1 -0
- package/dist/_node_modules/micromatch/_node_modules/picomatch/lib/constants.js.map +1 -0
- package/dist/_node_modules/{picomatch → micromatch/_node_modules/picomatch}/lib/parse.cjs +1 -1
- package/dist/_node_modules/micromatch/_node_modules/picomatch/lib/parse.cjs.map +1 -0
- package/dist/_node_modules/{picomatch → micromatch/_node_modules/picomatch}/lib/parse.js +1 -1
- package/dist/_node_modules/micromatch/_node_modules/picomatch/lib/parse.js.map +1 -0
- package/dist/_node_modules/{picomatch → micromatch/_node_modules/picomatch}/lib/picomatch.cjs +1 -1
- package/dist/_node_modules/micromatch/_node_modules/picomatch/lib/picomatch.cjs.map +1 -0
- package/dist/_node_modules/{picomatch → micromatch/_node_modules/picomatch}/lib/picomatch.js +1 -1
- package/dist/_node_modules/micromatch/_node_modules/picomatch/lib/picomatch.js.map +1 -0
- package/dist/_node_modules/{picomatch → micromatch/_node_modules/picomatch}/lib/scan.cjs +1 -1
- package/dist/_node_modules/micromatch/_node_modules/picomatch/lib/scan.cjs.map +1 -0
- package/dist/_node_modules/{picomatch → micromatch/_node_modules/picomatch}/lib/scan.js +1 -1
- package/dist/_node_modules/micromatch/_node_modules/picomatch/lib/scan.js.map +1 -0
- package/dist/_node_modules/{picomatch → micromatch/_node_modules/picomatch}/lib/utils.cjs +1 -1
- package/dist/_node_modules/micromatch/_node_modules/picomatch/lib/utils.cjs.map +1 -0
- package/dist/_node_modules/{picomatch → micromatch/_node_modules/picomatch}/lib/utils.js +1 -1
- package/dist/_node_modules/micromatch/_node_modules/picomatch/lib/utils.js.map +1 -0
- package/dist/_node_modules/micromatch/index.cjs +2 -2
- package/dist/_node_modules/micromatch/index.cjs.map +1 -1
- package/dist/_node_modules/micromatch/index.js +2 -2
- package/dist/_node_modules/micromatch/index.js.map +1 -1
- package/dist/_node_modules/mimic-fn/index.cjs.map +1 -1
- package/dist/_node_modules/mimic-fn/index.js.map +1 -1
- package/dist/_node_modules/minimist-options/index.cjs.map +1 -1
- package/dist/_node_modules/minimist-options/index.js.map +1 -1
- package/dist/_node_modules/npm-run-path/_node_modules/path-key/index.cjs.map +1 -0
- package/dist/_node_modules/npm-run-path/_node_modules/path-key/index.js.map +1 -0
- package/dist/_node_modules/{execa/_node_modules/npm-run-path → npm-run-path}/index.cjs +1 -1
- package/dist/_node_modules/npm-run-path/index.cjs.map +1 -0
- package/dist/_node_modules/{execa/_node_modules/npm-run-path → npm-run-path}/index.js +1 -1
- package/dist/_node_modules/npm-run-path/index.js.map +1 -0
- package/dist/_node_modules/{execa/_node_modules/onetime → onetime}/index.cjs +1 -1
- package/dist/_node_modules/onetime/index.cjs.map +1 -0
- package/dist/_node_modules/{execa/_node_modules/onetime → onetime}/index.js +1 -1
- package/dist/_node_modules/onetime/index.js.map +1 -0
- package/dist/_node_modules/p-limit/index.cjs.map +1 -1
- package/dist/_node_modules/p-limit/index.js.map +1 -1
- package/dist/_node_modules/parse-json/index.cjs +2 -2
- package/dist/_node_modules/parse-json/index.cjs.map +1 -1
- package/dist/_node_modules/parse-json/index.js +2 -2
- package/dist/_node_modules/parse-json/index.js.map +1 -1
- package/dist/_node_modules/path-key/index.cjs +1 -1
- package/dist/_node_modules/path-key/index.js +1 -1
- package/dist/_node_modules/path-type/index.cjs.map +1 -1
- package/dist/_node_modules/path-type/index.js.map +1 -1
- package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.cjs.map +1 -1
- package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.js.map +1 -1
- package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.cjs.map +1 -1
- package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.js.map +1 -1
- package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/index.cjs +1 -1
- package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/index.cjs.map +1 -1
- package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/index.js +1 -1
- package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/index.js.map +1 -1
- package/dist/_node_modules/redent/_node_modules/indent-string/index.cjs.map +1 -1
- package/dist/_node_modules/redent/_node_modules/indent-string/index.js.map +1 -1
- package/dist/_node_modules/redent/_node_modules/strip-indent/index.cjs.map +1 -1
- package/dist/_node_modules/redent/_node_modules/strip-indent/index.js.map +1 -1
- package/dist/_node_modules/shebang-command/index.cjs.map +1 -1
- package/dist/_node_modules/shebang-command/index.js.map +1 -1
- package/dist/_node_modules/signal-exit/index.cjs +1 -1
- package/dist/_node_modules/signal-exit/index.cjs.map +1 -1
- package/dist/_node_modules/signal-exit/index.js +1 -1
- package/dist/_node_modules/signal-exit/index.js.map +1 -1
- package/dist/_node_modules/spdx-correct/index.cjs.map +1 -1
- package/dist/_node_modules/spdx-correct/index.js.map +1 -1
- package/dist/_node_modules/to-regex-range/index.cjs.map +1 -1
- package/dist/_node_modules/to-regex-range/index.js.map +1 -1
- package/dist/_node_modules/validate-npm-package-license/index.cjs.map +1 -1
- package/dist/_node_modules/validate-npm-package-license/index.js.map +1 -1
- package/dist/_node_modules/which/which.cjs.map +1 -1
- package/dist/_node_modules/which/which.js.map +1 -1
- package/dist/_node_modules/yallist/yallist.cjs.map +1 -1
- package/dist/_node_modules/yallist/yallist.js.map +1 -1
- package/dist/_node_modules/yargs-parser/build/lib/index.cjs.map +1 -1
- package/dist/_node_modules/yargs-parser/build/lib/index.js.map +1 -1
- package/dist/_node_modules/yargs-parser/build/lib/string-utils.cjs.map +1 -1
- package/dist/_node_modules/yargs-parser/build/lib/string-utils.js.map +1 -1
- package/dist/_node_modules/yargs-parser/build/lib/yargs-parser.cjs.map +1 -1
- package/dist/_node_modules/yargs-parser/build/lib/yargs-parser.js.map +1 -1
- package/dist/_virtual/index10.cjs +2 -2
- package/dist/_virtual/index10.js +2 -2
- package/dist/_virtual/index11.cjs +2 -2
- package/dist/_virtual/index11.js +2 -2
- package/dist/_virtual/index12.cjs +2 -2
- package/dist/_virtual/index12.js +2 -2
- package/dist/_virtual/index13.cjs +2 -2
- package/dist/_virtual/index13.js +2 -2
- 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/index18.cjs +2 -2
- package/dist/_virtual/index18.js +2 -2
- package/dist/_virtual/index19.cjs +2 -2
- package/dist/_virtual/index19.js +2 -2
- package/dist/_virtual/index3.cjs +2 -2
- package/dist/_virtual/index3.js +2 -2
- package/dist/_virtual/index7.cjs +2 -2
- package/dist/_virtual/index7.js +2 -2
- 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/cli.cjs +2 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/constants.cjs.map +1 -1
- package/dist/constants.js.map +1 -1
- package/dist/lib/checkIsSentryEnabled.cjs.map +1 -1
- package/dist/lib/checkIsSentryEnabled.js.map +1 -1
- package/dist/lib/framework.cjs.map +1 -1
- package/dist/lib/framework.js.map +1 -1
- package/dist/lib/getExecuteCommand.cjs.map +1 -1
- package/dist/lib/getExecuteCommand.js.map +1 -1
- package/dist/lib/getRunScriptCommand.cjs.map +1 -1
- package/dist/lib/getRunScriptCommand.js.map +1 -1
- package/dist/lib/repositoryDomain.cjs.map +1 -1
- package/dist/lib/repositoryDomain.js.map +1 -1
- package/dist/lib/starters.cjs.map +1 -1
- package/dist/lib/starters.js.map +1 -1
- package/dist/lib/updateSentryContext.cjs.map +1 -1
- package/dist/lib/updateSentryContext.js.map +1 -1
- package/dist/packages/init/package.json.cjs +2 -2
- package/dist/packages/init/package.json.js +2 -2
- package/package.json +4 -4
- package/dist/_node_modules/execa/_node_modules/npm-run-path/index.cjs.map +0 -1
- package/dist/_node_modules/execa/_node_modules/npm-run-path/index.js.map +0 -1
- package/dist/_node_modules/execa/_node_modules/onetime/index.cjs.map +0 -1
- package/dist/_node_modules/execa/_node_modules/onetime/index.js.map +0 -1
- package/dist/_node_modules/execa/_node_modules/path-key/index.cjs.map +0 -1
- package/dist/_node_modules/execa/_node_modules/path-key/index.js.map +0 -1
- package/dist/_node_modules/meow/_node_modules/locate-path/index.cjs.map +0 -1
- package/dist/_node_modules/meow/_node_modules/locate-path/index.js.map +0 -1
- package/dist/_node_modules/picomatch/index.cjs.map +0 -1
- package/dist/_node_modules/picomatch/index.js.map +0 -1
- package/dist/_node_modules/picomatch/lib/constants.cjs.map +0 -1
- package/dist/_node_modules/picomatch/lib/constants.js.map +0 -1
- package/dist/_node_modules/picomatch/lib/parse.cjs.map +0 -1
- package/dist/_node_modules/picomatch/lib/parse.js.map +0 -1
- package/dist/_node_modules/picomatch/lib/picomatch.cjs.map +0 -1
- package/dist/_node_modules/picomatch/lib/picomatch.js.map +0 -1
- package/dist/_node_modules/picomatch/lib/scan.cjs.map +0 -1
- package/dist/_node_modules/picomatch/lib/scan.js.map +0 -1
- package/dist/_node_modules/picomatch/lib/utils.cjs.map +0 -1
- package/dist/_node_modules/picomatch/lib/utils.js.map +0 -1
- /package/dist/_node_modules/{meow/_node_modules/locate-path → locate-path}/index.cjs +0 -0
- /package/dist/_node_modules/{meow/_node_modules/locate-path → locate-path}/index.js +0 -0
- /package/dist/_node_modules/{picomatch → micromatch/_node_modules/picomatch}/index.cjs +0 -0
- /package/dist/_node_modules/{picomatch → micromatch/_node_modules/picomatch}/index.js +0 -0
- /package/dist/_node_modules/{picomatch → micromatch/_node_modules/picomatch}/lib/constants.cjs +0 -0
- /package/dist/_node_modules/{picomatch → micromatch/_node_modules/picomatch}/lib/constants.js +0 -0
- /package/dist/_node_modules/{execa → npm-run-path}/_node_modules/path-key/index.cjs +0 -0
- /package/dist/_node_modules/{execa → npm-run-path}/_node_modules/path-key/index.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-host-info.cjs","sources":["../../../../../../../node_modules/read-pkg/node_modules/hosted-git-info/git-host-info.js"],"sourcesContent":["'use strict'\nconst maybeJoin = (...args) => args.every(arg => arg) ? args.join('') : ''\nconst maybeEncode = (arg) => arg ? encodeURIComponent(arg) : ''\n\nconst defaults = {\n sshtemplate: ({ domain, user, project, committish }) => `git@${domain}:${user}/${project}.git${maybeJoin('#', committish)}`,\n sshurltemplate: ({ domain, user, project, committish }) => `git+ssh://git@${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n browsetemplate: ({ domain, user, project, committish, treepath }) => `https://${domain}/${user}/${project}${maybeJoin('/', treepath, '/', maybeEncode(committish))}`,\n browsefiletemplate: ({ domain, user, project, committish, treepath, path, fragment, hashformat }) => `https://${domain}/${user}/${project}/${treepath}/${maybeEncode(committish || 'master')}/${path}${maybeJoin('#', hashformat(fragment || ''))}`,\n docstemplate: ({ domain, user, project, treepath, committish }) => `https://${domain}/${user}/${project}${maybeJoin('/', treepath, '/', maybeEncode(committish))}#readme`,\n httpstemplate: ({ auth, domain, user, project, committish }) => `git+https://${maybeJoin(auth, '@')}${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n filetemplate: ({ domain, user, project, committish, path }) => `https://${domain}/${user}/${project}/raw/${maybeEncode(committish) || 'master'}/${path}`,\n shortcuttemplate: ({ type, user, project, committish }) => `${type}:${user}/${project}${maybeJoin('#', committish)}`,\n pathtemplate: ({ user, project, committish }) => `${user}/${project}${maybeJoin('#', committish)}`,\n bugstemplate: ({ domain, user, project }) => `https://${domain}/${user}/${project}/issues`,\n hashformat: formatHashFragment\n}\n\nconst gitHosts = {}\ngitHosts.github = Object.assign({}, defaults, {\n // First two are insecure and generally shouldn't be used any more, but\n // they are still supported.\n protocols: ['git:', 'http:', 'git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'github.com',\n treepath: 'tree',\n filetemplate: ({ auth, user, project, committish, path }) => `https://${maybeJoin(auth, '@')}raw.githubusercontent.com/${user}/${project}/${maybeEncode(committish) || 'master'}/${path}`,\n gittemplate: ({ auth, domain, user, project, committish }) => `git://${maybeJoin(auth, '@')}${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ domain, user, project, committish }) => `https://codeload.${domain}/${user}/${project}/tar.gz/${maybeEncode(committish) || 'master'}`,\n extract: (url) => {\n let [, user, project, type, committish] = url.pathname.split('/', 5)\n if (type && type !== 'tree') {\n return\n }\n\n if (!type) {\n committish = url.hash.slice(1)\n }\n\n if (project && project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (!user || !project) {\n return\n }\n\n return { user, project, committish }\n }\n})\n\ngitHosts.bitbucket = Object.assign({}, defaults, {\n protocols: ['git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'bitbucket.org',\n treepath: 'src',\n tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/get/${maybeEncode(committish) || 'master'}.tar.gz`,\n extract: (url) => {\n let [, user, project, aux] = url.pathname.split('/', 4)\n if (['get'].includes(aux)) {\n return\n }\n\n if (project && project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (!user || !project) {\n return\n }\n\n return { user, project, committish: url.hash.slice(1) }\n }\n})\n\ngitHosts.gitlab = Object.assign({}, defaults, {\n protocols: ['git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'gitlab.com',\n treepath: 'tree',\n httpstemplate: ({ auth, domain, user, project, committish }) => `git+https://${maybeJoin(auth, '@')}${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/repository/archive.tar.gz?ref=${maybeEncode(committish) || 'master'}`,\n extract: (url) => {\n const path = url.pathname.slice(1)\n if (path.includes('/-/') || path.includes('/archive.tar.gz')) {\n return\n }\n\n const segments = path.split('/')\n let project = segments.pop()\n if (project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n const user = segments.join('/')\n if (!user || !project) {\n return\n }\n\n return { user, project, committish: url.hash.slice(1) }\n }\n})\n\ngitHosts.gist = Object.assign({}, defaults, {\n protocols: ['git:', 'git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'gist.github.com',\n sshtemplate: ({ domain, project, committish }) => `git@${domain}:${project}.git${maybeJoin('#', committish)}`,\n sshurltemplate: ({ domain, project, committish }) => `git+ssh://git@${domain}/${project}.git${maybeJoin('#', committish)}`,\n browsetemplate: ({ domain, project, committish }) => `https://${domain}/${project}${maybeJoin('/', maybeEncode(committish))}`,\n browsefiletemplate: ({ domain, project, committish, path, hashformat }) => `https://${domain}/${project}${maybeJoin('/', maybeEncode(committish))}${maybeJoin('#', hashformat(path))}`,\n docstemplate: ({ domain, project, committish }) => `https://${domain}/${project}${maybeJoin('/', maybeEncode(committish))}`,\n httpstemplate: ({ domain, project, committish }) => `git+https://${domain}/${project}.git${maybeJoin('#', committish)}`,\n filetemplate: ({ user, project, committish, path }) => `https://gist.githubusercontent.com/${user}/${project}/raw${maybeJoin('/', maybeEncode(committish))}/${path}`,\n shortcuttemplate: ({ type, project, committish }) => `${type}:${project}${maybeJoin('#', committish)}`,\n pathtemplate: ({ project, committish }) => `${project}${maybeJoin('#', committish)}`,\n bugstemplate: ({ domain, project }) => `https://${domain}/${project}`,\n gittemplate: ({ domain, project, committish }) => `git://${domain}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ project, committish }) => `https://codeload.github.com/gist/${project}/tar.gz/${maybeEncode(committish) || 'master'}`,\n extract: (url) => {\n let [, user, project, aux] = url.pathname.split('/', 4)\n if (aux === 'raw') {\n return\n }\n\n if (!project) {\n if (!user) {\n return\n }\n\n project = user\n user = null\n }\n\n if (project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n return { user, project, committish: url.hash.slice(1) }\n },\n hashformat: function (fragment) {\n return fragment && 'file-' + formatHashFragment(fragment)\n }\n})\n\ngitHosts.sourcehut = Object.assign({}, defaults, {\n protocols: ['git+ssh:', 'https:'],\n domain: 'git.sr.ht',\n treepath: 'tree',\n browsefiletemplate: ({ domain, user, project, committish, treepath, path, fragment, hashformat }) => `https://${domain}/${user}/${project}/${treepath}/${maybeEncode(committish || 'main')}/${path}${maybeJoin('#', hashformat(fragment || ''))}`,\n filetemplate: ({ domain, user, project, committish, path }) => `https://${domain}/${user}/${project}/blob/${maybeEncode(committish) || 'main'}/${path}`,\n httpstemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/archive/${maybeEncode(committish) || 'main'}.tar.gz`,\n bugstemplate: ({ domain, user, project }) => `https://todo.sr.ht/${user}/${project}`,\n docstemplate: ({ domain, user, project, treepath, committish }) => `https://${domain}/${user}/${project}${maybeJoin('/', treepath, '/', maybeEncode(committish))}#readme`,\n extract: (url) => {\n let [, user, project, aux] = url.pathname.split('/', 4)\n\n // tarball url\n if (['archive'].includes(aux)) {\n return\n }\n\n if (project && project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (!user || !project) {\n return\n }\n\n return { user, project, committish: url.hash.slice(1) }\n }\n})\n\nconst names = Object.keys(gitHosts)\ngitHosts.byShortcut = {}\ngitHosts.byDomain = {}\nfor (const name of names) {\n gitHosts.byShortcut[`${name}:`] = name\n gitHosts.byDomain[gitHosts[name].domain] = name\n}\n\nfunction formatHashFragment (fragment) {\n return fragment.toLowerCase().replace(/^\\W+|\\/|\\W+$/g, '').replace(/\\W+/g, '-')\n}\n\nmodule.exports = gitHosts\n"],"names":[],"mappings":";;AACA,MAAM,YAAY,IAAI,SAAS,KAAK,MAAM,SAAO,GAAG,IAAI,KAAK,KAAK,EAAE,IAAI;AACxE,MAAM,cAAc,CAAC,QAAQ,MAAM,mBAAmB,GAAG,IAAI;AAE7D,MAAM,WAAW;AAAA,EACf,aAAa,CAAC,EAAE,QAAQ,MAAM,SAAS,WAAU,MAAO,OAAO,UAAU,QAAQ,cAAc,UAAU,KAAK,UAAU;AAAA,EACxH,gBAAgB,CAAC,EAAE,QAAQ,MAAM,SAAS,WAAU,MAAO,iBAAiB,UAAU,QAAQ,cAAc,UAAU,KAAK,UAAU;AAAA,EACrI,gBAAgB,CAAC,EAAE,QAAQ,MAAM,SAAS,YAAY,SAAU,MAAK,WAAW,UAAU,QAAQ,UAAU,UAAU,KAAK,UAAU,KAAK,YAAY,UAAU,CAAC;AAAA,EACjK,oBAAoB,CAAC,EAAE,QAAQ,MAAM,SAAS,YAAY,UAAU,MAAM,UAAU,WAAY,MAAK,WAAW,UAAU,QAAQ,WAAW,YAAY,YAAY,cAAc,QAAQ,KAAK,OAAO,UAAU,KAAK,WAAW,YAAY,EAAE,CAAC;AAAA,EAChP,cAAc,CAAC,EAAE,QAAQ,MAAM,SAAS,U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K,MAAM,CAAC,EAAG;AAAA,EACxD;AACH,CAAC;AAED,MAAM,QAAQ,OAAO,KAAK,QAAQ;AAClC,SAAS,aAAa,CAAE;AACxB,SAAS,WAAW,CAAE;AACtB,WAAW,QAAQ,OAAO;AACxB,WAAS,WAAW,GAAG,OAAO,IAAI;AAClC,WAAS,SAAS,SAAS,IAAI,EAAE,MAAM,IAAI;AAC7C;AAEA,SAAS,mBAAoB,UAAU;AACrC,SAAO,SAAS,YAAa,EAAC,QAAQ,iBAAiB,EAAE,EAAE,QAAQ,QAAQ,GAAG;AAChF;AAEA,IAAA,cAAiB;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"git-host-info.cjs","sources":["../../../../../../../node_modules/read-pkg/node_modules/hosted-git-info/git-host-info.js"],"sourcesContent":["'use strict'\nconst maybeJoin = (...args) => args.every(arg => arg) ? args.join('') : ''\nconst maybeEncode = (arg) => arg ? encodeURIComponent(arg) : ''\n\nconst defaults = {\n sshtemplate: ({ domain, user, project, committish }) => `git@${domain}:${user}/${project}.git${maybeJoin('#', committish)}`,\n sshurltemplate: ({ domain, user, project, committish }) => `git+ssh://git@${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n browsetemplate: ({ domain, user, project, committish, treepath }) => `https://${domain}/${user}/${project}${maybeJoin('/', treepath, '/', maybeEncode(committish))}`,\n browsefiletemplate: ({ domain, user, project, committish, treepath, path, fragment, hashformat }) => `https://${domain}/${user}/${project}/${treepath}/${maybeEncode(committish || 'master')}/${path}${maybeJoin('#', hashformat(fragment || ''))}`,\n docstemplate: ({ domain, user, project, treepath, committish }) => `https://${domain}/${user}/${project}${maybeJoin('/', treepath, '/', maybeEncode(committish))}#readme`,\n httpstemplate: ({ auth, domain, user, project, committish }) => `git+https://${maybeJoin(auth, '@')}${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n filetemplate: ({ domain, user, project, committish, path }) => `https://${domain}/${user}/${project}/raw/${maybeEncode(committish) || 'master'}/${path}`,\n shortcuttemplate: ({ type, user, project, committish }) => `${type}:${user}/${project}${maybeJoin('#', committish)}`,\n pathtemplate: ({ user, project, committish }) => `${user}/${project}${maybeJoin('#', committish)}`,\n bugstemplate: ({ domain, user, project }) => `https://${domain}/${user}/${project}/issues`,\n hashformat: formatHashFragment\n}\n\nconst gitHosts = {}\ngitHosts.github = Object.assign({}, defaults, {\n // First two are insecure and generally shouldn't be used any more, but\n // they are still supported.\n protocols: ['git:', 'http:', 'git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'github.com',\n treepath: 'tree',\n filetemplate: ({ auth, user, project, committish, path }) => `https://${maybeJoin(auth, '@')}raw.githubusercontent.com/${user}/${project}/${maybeEncode(committish) || 'master'}/${path}`,\n gittemplate: ({ auth, domain, user, project, committish }) => `git://${maybeJoin(auth, '@')}${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ domain, user, project, committish }) => `https://codeload.${domain}/${user}/${project}/tar.gz/${maybeEncode(committish) || 'master'}`,\n extract: (url) => {\n let [, user, project, type, committish] = url.pathname.split('/', 5)\n if (type && type !== 'tree') {\n return\n }\n\n if (!type) {\n committish = url.hash.slice(1)\n }\n\n if (project && project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (!user || !project) {\n return\n }\n\n return { user, project, committish }\n }\n})\n\ngitHosts.bitbucket = Object.assign({}, defaults, {\n protocols: ['git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'bitbucket.org',\n treepath: 'src',\n tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/get/${maybeEncode(committish) || 'master'}.tar.gz`,\n extract: (url) => {\n let [, user, project, aux] = url.pathname.split('/', 4)\n if (['get'].includes(aux)) {\n return\n }\n\n if (project && project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (!user || !project) {\n return\n }\n\n return { user, project, committish: url.hash.slice(1) }\n }\n})\n\ngitHosts.gitlab = Object.assign({}, defaults, {\n protocols: ['git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'gitlab.com',\n treepath: 'tree',\n httpstemplate: ({ auth, domain, user, project, committish }) => `git+https://${maybeJoin(auth, '@')}${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/repository/archive.tar.gz?ref=${maybeEncode(committish) || 'master'}`,\n extract: (url) => {\n const path = url.pathname.slice(1)\n if (path.includes('/-/') || path.includes('/archive.tar.gz')) {\n return\n }\n\n const segments = path.split('/')\n let project = segments.pop()\n if (project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n const user = segments.join('/')\n if (!user || !project) {\n return\n }\n\n return { user, project, committish: url.hash.slice(1) }\n }\n})\n\ngitHosts.gist = Object.assign({}, defaults, {\n protocols: ['git:', 'git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'gist.github.com',\n sshtemplate: ({ domain, project, committish }) => `git@${domain}:${project}.git${maybeJoin('#', committish)}`,\n sshurltemplate: ({ domain, project, committish }) => `git+ssh://git@${domain}/${project}.git${maybeJoin('#', committish)}`,\n browsetemplate: ({ domain, project, committish }) => `https://${domain}/${project}${maybeJoin('/', maybeEncode(committish))}`,\n browsefiletemplate: ({ domain, project, committish, path, hashformat }) => `https://${domain}/${project}${maybeJoin('/', maybeEncode(committish))}${maybeJoin('#', hashformat(path))}`,\n docstemplate: ({ domain, project, committish }) => `https://${domain}/${project}${maybeJoin('/', maybeEncode(committish))}`,\n httpstemplate: ({ domain, project, committish }) => `git+https://${domain}/${project}.git${maybeJoin('#', committish)}`,\n filetemplate: ({ user, project, committish, path }) => `https://gist.githubusercontent.com/${user}/${project}/raw${maybeJoin('/', maybeEncode(committish))}/${path}`,\n shortcuttemplate: ({ type, project, committish }) => `${type}:${project}${maybeJoin('#', committish)}`,\n pathtemplate: ({ project, committish }) => `${project}${maybeJoin('#', committish)}`,\n bugstemplate: ({ domain, project }) => `https://${domain}/${project}`,\n gittemplate: ({ domain, project, committish }) => `git://${domain}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ project, committish }) => `https://codeload.github.com/gist/${project}/tar.gz/${maybeEncode(committish) || 'master'}`,\n extract: (url) => {\n let [, user, project, aux] = url.pathname.split('/', 4)\n if (aux === 'raw') {\n return\n }\n\n if (!project) {\n if (!user) {\n return\n }\n\n project = user\n user = null\n }\n\n if (project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n return { user, project, committish: url.hash.slice(1) }\n },\n hashformat: function (fragment) {\n return fragment && 'file-' + formatHashFragment(fragment)\n }\n})\n\ngitHosts.sourcehut = Object.assign({}, defaults, {\n protocols: ['git+ssh:', 'https:'],\n domain: 'git.sr.ht',\n treepath: 'tree',\n browsefiletemplate: ({ domain, user, project, committish, treepath, path, fragment, hashformat }) => `https://${domain}/${user}/${project}/${treepath}/${maybeEncode(committish || 'main')}/${path}${maybeJoin('#', hashformat(fragment || ''))}`,\n filetemplate: ({ domain, user, project, committish, path }) => `https://${domain}/${user}/${project}/blob/${maybeEncode(committish) || 'main'}/${path}`,\n httpstemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/archive/${maybeEncode(committish) || 'main'}.tar.gz`,\n bugstemplate: ({ domain, user, project }) => `https://todo.sr.ht/${user}/${project}`,\n docstemplate: ({ domain, user, project, treepath, committish }) => `https://${domain}/${user}/${project}${maybeJoin('/', treepath, '/', maybeEncode(committish))}#readme`,\n extract: (url) => {\n let [, user, project, aux] = url.pathname.split('/', 4)\n\n // tarball url\n if (['archive'].includes(aux)) {\n return\n }\n\n if (project && project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (!user || !project) {\n return\n }\n\n return { user, project, committish: url.hash.slice(1) }\n }\n})\n\nconst names = Object.keys(gitHosts)\ngitHosts.byShortcut = {}\ngitHosts.byDomain = {}\nfor (const name of names) {\n gitHosts.byShortcut[`${name}:`] = name\n gitHosts.byDomain[gitHosts[name].domain] = name\n}\n\nfunction formatHashFragment (fragment) {\n return fragment.toLowerCase().replace(/^\\W+|\\/|\\W+$/g, '').replace(/\\W+/g, '-')\n}\n\nmodule.exports = gitHosts\n"],"names":[],"mappings":";;AACA,MAAM,YAAY,IAAI,SAAS,KAAK,MAAM,SAAO,GAAG,IAAI,KAAK,KAAK,EAAE,IAAI;AACxE,MAAM,cAAc,CAAC,QAAQ,MAAM,mBAAmB,GAAG,IAAI;AAE7D,MAAM,WAAW;AAAA,EACf,aAAa,CAAC,EAAE,QAAQ,MAAM,SAAS,WAAU,MAAO,OAAO,MAAM,IAAI,IAAI,IAAI,OAAO,OAAO,UAAU,KAAK,UAAU,CAAC;AAAA,EACzH,gBAAgB,CAAC,EAAE,QAAQ,MAAM,SAAS,WAAU,MAAO,iBAAiB,MAAM,IAAI,IAAI,IAAI,OAAO,OAAO,UAAU,KAAK,UAAU,CAAC;AAAA,EACtI,gBAAgB,CAAC,EAAE,QAAQ,MAAM,SAAS,YAAY,SAAU,MAAK,WAAW,MAAM,IAAI,IAAI,IAAI,OAAO,GAAG,UAAU,KAAK,UAAU,KAAK,YAAY,UAAU,CAAC,CAAC;AAAA,EAClK,oBAAoB,CAAC,EAAE,QAAQ,MAAM,SAAS,YAAY,UAAU,MAAM,UAAU,WAAY,MAAK,WAAW,MAAM,IAAI,IAAI,IAAI,OAAO,IAAI,QAAQ,IAAI,YAAY,cAAc,QAAQ,CAAC,IAAI,IAAI,GAAG,UAAU,KAAK,WAAW,YAAY,EAAE,CAAC,CAAC;AAAA,EACjP,cAAc,CAAC,EAAE,QAAQ,MAAM,SAAS,UAAU,iBAAiB,WAAW,MAAM,IAAI,IAAI,IAAI,OAAO,GAAG,UAAU,KAAK,UAAU,KAAK,YAAY,UAAU,CAAC,CAAC;AAAA,EAChK,eAAe,CAAC,EAAE,MAAM,QAAQ,MAAM,SAAS,iBAAiB,eAAe,UAAU,MAAM,GAAG,CAAC,GAAG,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,IAAI,OAAO,GAAG,UAAU,KAAK,UAAU,KAAK,YAAY,UAAU,CAAC,CAAC;AAAA,EAChK,SAAS,CAAC,QAAQ;AAChB,QAAI,CAAG,EAAA,MAAM,SAAS,GAAG,IAAI,IAAI,SAAS,MAAM,KAAK,CAAC;AAGtD,QAAI,CAAC,SAAS,EAAE,SAAS,GAAG,GAAG;AAC7B;AAAA,IACD;AAED,QAAI,WAAW,QAAQ,SAAS,MAAM,GAAG;AACvC,gBAAU,QAAQ,MAAM,GAAG,EAAE;AAAA,IAC9B;AAED,QAAI,CAAC,QAAQ,CAAC,SAAS;AACrB;AAAA,IACD;AAED,WAAO,EAAE,MAAM,SAAS,YAAY,IAAI,KAAK,MAAM,CAAC,EAAG;AAAA,EACxD;AACH,CAAC;AAED,MAAM,QAAQ,OAAO,KAAK,QAAQ;AAClC,SAAS,aAAa,CAAE;AACxB,SAAS,WAAW,CAAE;AACtB,WAAW,QAAQ,OAAO;AACxB,WAAS,WAAW,GAAG,IAAI,GAAG,IAAI;AAClC,WAAS,SAAS,SAAS,IAAI,EAAE,MAAM,IAAI;AAC7C;AAEA,SAAS,mBAAoB,UAAU;AACrC,SAAO,SAAS,YAAa,EAAC,QAAQ,iBAAiB,EAAE,EAAE,QAAQ,QAAQ,GAAG;AAChF;AAEA,IAAA,cAAiB;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-host-info.js","sources":["../../../../../../../node_modules/read-pkg/node_modules/hosted-git-info/git-host-info.js"],"sourcesContent":["'use strict'\nconst maybeJoin = (...args) => args.every(arg => arg) ? args.join('') : ''\nconst maybeEncode = (arg) => arg ? encodeURIComponent(arg) : ''\n\nconst defaults = {\n sshtemplate: ({ domain, user, project, committish }) => `git@${domain}:${user}/${project}.git${maybeJoin('#', committish)}`,\n sshurltemplate: ({ domain, user, project, committish }) => `git+ssh://git@${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n browsetemplate: ({ domain, user, project, committish, treepath }) => `https://${domain}/${user}/${project}${maybeJoin('/', treepath, '/', maybeEncode(committish))}`,\n browsefiletemplate: ({ domain, user, project, committish, treepath, path, fragment, hashformat }) => `https://${domain}/${user}/${project}/${treepath}/${maybeEncode(committish || 'master')}/${path}${maybeJoin('#', hashformat(fragment || ''))}`,\n docstemplate: ({ domain, user, project, treepath, committish }) => `https://${domain}/${user}/${project}${maybeJoin('/', treepath, '/', maybeEncode(committish))}#readme`,\n httpstemplate: ({ auth, domain, user, project, committish }) => `git+https://${maybeJoin(auth, '@')}${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n filetemplate: ({ domain, user, project, committish, path }) => `https://${domain}/${user}/${project}/raw/${maybeEncode(committish) || 'master'}/${path}`,\n shortcuttemplate: ({ type, user, project, committish }) => `${type}:${user}/${project}${maybeJoin('#', committish)}`,\n pathtemplate: ({ user, project, committish }) => `${user}/${project}${maybeJoin('#', committish)}`,\n bugstemplate: ({ domain, user, project }) => `https://${domain}/${user}/${project}/issues`,\n hashformat: formatHashFragment\n}\n\nconst gitHosts = {}\ngitHosts.github = Object.assign({}, defaults, {\n // First two are insecure and generally shouldn't be used any more, but\n // they are still supported.\n protocols: ['git:', 'http:', 'git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'github.com',\n treepath: 'tree',\n filetemplate: ({ auth, user, project, committish, path }) => `https://${maybeJoin(auth, '@')}raw.githubusercontent.com/${user}/${project}/${maybeEncode(committish) || 'master'}/${path}`,\n gittemplate: ({ auth, domain, user, project, committish }) => `git://${maybeJoin(auth, '@')}${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ domain, user, project, committish }) => `https://codeload.${domain}/${user}/${project}/tar.gz/${maybeEncode(committish) || 'master'}`,\n extract: (url) => {\n let [, user, project, type, committish] = url.pathname.split('/', 5)\n if (type && type !== 'tree') {\n return\n }\n\n if (!type) {\n committish = url.hash.slice(1)\n }\n\n if (project && project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (!user || !project) {\n return\n }\n\n return { user, project, committish }\n }\n})\n\ngitHosts.bitbucket = Object.assign({}, defaults, {\n protocols: ['git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'bitbucket.org',\n treepath: 'src',\n tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/get/${maybeEncode(committish) || 'master'}.tar.gz`,\n extract: (url) => {\n let [, user, project, aux] = url.pathname.split('/', 4)\n if (['get'].includes(aux)) {\n return\n }\n\n if (project && project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (!user || !project) {\n return\n }\n\n return { user, project, committish: url.hash.slice(1) }\n }\n})\n\ngitHosts.gitlab = Object.assign({}, defaults, {\n protocols: ['git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'gitlab.com',\n treepath: 'tree',\n httpstemplate: ({ auth, domain, user, project, committish }) => `git+https://${maybeJoin(auth, '@')}${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/repository/archive.tar.gz?ref=${maybeEncode(committish) || 'master'}`,\n extract: (url) => {\n const path = url.pathname.slice(1)\n if (path.includes('/-/') || path.includes('/archive.tar.gz')) {\n return\n }\n\n const segments = path.split('/')\n let project = segments.pop()\n if (project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n const user = segments.join('/')\n if (!user || !project) {\n return\n }\n\n return { user, project, committish: url.hash.slice(1) }\n }\n})\n\ngitHosts.gist = Object.assign({}, defaults, {\n protocols: ['git:', 'git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'gist.github.com',\n sshtemplate: ({ domain, project, committish }) => `git@${domain}:${project}.git${maybeJoin('#', committish)}`,\n sshurltemplate: ({ domain, project, committish }) => `git+ssh://git@${domain}/${project}.git${maybeJoin('#', committish)}`,\n browsetemplate: ({ domain, project, committish }) => `https://${domain}/${project}${maybeJoin('/', maybeEncode(committish))}`,\n browsefiletemplate: ({ domain, project, committish, path, hashformat }) => `https://${domain}/${project}${maybeJoin('/', maybeEncode(committish))}${maybeJoin('#', hashformat(path))}`,\n docstemplate: ({ domain, project, committish }) => `https://${domain}/${project}${maybeJoin('/', maybeEncode(committish))}`,\n httpstemplate: ({ domain, project, committish }) => `git+https://${domain}/${project}.git${maybeJoin('#', committish)}`,\n filetemplate: ({ user, project, committish, path }) => `https://gist.githubusercontent.com/${user}/${project}/raw${maybeJoin('/', maybeEncode(committish))}/${path}`,\n shortcuttemplate: ({ type, project, committish }) => `${type}:${project}${maybeJoin('#', committish)}`,\n pathtemplate: ({ project, committish }) => `${project}${maybeJoin('#', committish)}`,\n bugstemplate: ({ domain, project }) => `https://${domain}/${project}`,\n gittemplate: ({ domain, project, committish }) => `git://${domain}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ project, committish }) => `https://codeload.github.com/gist/${project}/tar.gz/${maybeEncode(committish) || 'master'}`,\n extract: (url) => {\n let [, user, project, aux] = url.pathname.split('/', 4)\n if (aux === 'raw') {\n return\n }\n\n if (!project) {\n if (!user) {\n return\n }\n\n project = user\n user = null\n }\n\n if (project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n return { user, project, committish: url.hash.slice(1) }\n },\n hashformat: function (fragment) {\n return fragment && 'file-' + formatHashFragment(fragment)\n }\n})\n\ngitHosts.sourcehut = Object.assign({}, defaults, {\n protocols: ['git+ssh:', 'https:'],\n domain: 'git.sr.ht',\n treepath: 'tree',\n browsefiletemplate: ({ domain, user, project, committish, treepath, path, fragment, hashformat }) => `https://${domain}/${user}/${project}/${treepath}/${maybeEncode(committish || 'main')}/${path}${maybeJoin('#', hashformat(fragment || ''))}`,\n filetemplate: ({ domain, user, project, committish, path }) => `https://${domain}/${user}/${project}/blob/${maybeEncode(committish) || 'main'}/${path}`,\n httpstemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/archive/${maybeEncode(committish) || 'main'}.tar.gz`,\n bugstemplate: ({ domain, user, project }) => `https://todo.sr.ht/${user}/${project}`,\n docstemplate: ({ domain, user, project, treepath, committish }) => `https://${domain}/${user}/${project}${maybeJoin('/', treepath, '/', maybeEncode(committish))}#readme`,\n extract: (url) => {\n let [, user, project, aux] = url.pathname.split('/', 4)\n\n // tarball url\n if (['archive'].includes(aux)) {\n return\n }\n\n if (project && project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (!user || !project) {\n return\n }\n\n return { user, project, committish: url.hash.slice(1) }\n }\n})\n\nconst names = Object.keys(gitHosts)\ngitHosts.byShortcut = {}\ngitHosts.byDomain = {}\nfor (const name of names) {\n gitHosts.byShortcut[`${name}:`] = name\n gitHosts.byDomain[gitHosts[name].domain] = name\n}\n\nfunction formatHashFragment (fragment) {\n return fragment.toLowerCase().replace(/^\\W+|\\/|\\W+$/g, '').replace(/\\W+/g, '-')\n}\n\nmodule.exports = gitHosts\n"],"names":[],"mappings":"AACA,MAAM,YAAY,IAAI,SAAS,KAAK,MAAM,SAAO,GAAG,IAAI,KAAK,KAAK,EAAE,IAAI;AACxE,MAAM,cAAc,CAAC,QAAQ,MAAM,mBAAmB,GAAG,IAAI;AAE7D,MAAM,WAAW;AAAA,EACf,aAAa,CAAC,EAAE,QAAQ,MAAM,SAAS,WAAU,MAAO,OAAO,UAAU,QAAQ,cAAc,UAAU,KAAK,UAAU;AAAA,EACxH,gBAAgB,CAAC,EAAE,QAAQ,MAAM,SAAS,WAAU,MAAO,iBAAiB,UAAU,QAAQ,cAAc,UAAU,KAAK,UAAU;AAAA,EACrI,gBAAgB,CAAC,EAAE,QAAQ,MAAM,SAAS,YAAY,SAAU,MAAK,WAAW,UAAU,QAAQ,UAAU,UAAU,KAAK,UAAU,KAAK,YAAY,UAAU,CAAC;AAAA,EACjK,oBAAoB,CAAC,EAAE,QAAQ,MAAM,SAAS,YAAY,UAAU,MAAM,UAAU,WAAY,MAAK,WAA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C,gBAAU,QAAQ,MAAM,GAAG,EAAE;AAAA,IAC9B;AAED,QAAI,CAAC,QAAQ,CAAC,SAAS;AACrB;AAAA,IACD;AAED,WAAO,EAAE,MAAM,SAAS,YAAY,IAAI,KAAK,MAAM,CAAC,EAAG;AAAA,EACxD;AACH,CAAC;AAED,MAAM,QAAQ,OAAO,KAAK,QAAQ;AAClC,SAAS,aAAa,CAAE;AACxB,SAAS,WAAW,CAAE;AACtB,WAAW,QAAQ,OAAO;AACxB,WAAS,WAAW,GAAG,OAAO,IAAI;AAClC,WAAS,SAAS,SAAS,IAAI,EAAE,MAAM,IAAI;AAC7C;AAEA,SAAS,mBAAoB,UAAU;AACrC,SAAO,SAAS,YAAa,EAAC,QAAQ,iBAAiB,EAAE,EAAE,QAAQ,QAAQ,GAAG;AAChF;AAEA,IAAA,cAAiB;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"git-host-info.js","sources":["../../../../../../../node_modules/read-pkg/node_modules/hosted-git-info/git-host-info.js"],"sourcesContent":["'use strict'\nconst maybeJoin = (...args) => args.every(arg => arg) ? args.join('') : ''\nconst maybeEncode = (arg) => arg ? encodeURIComponent(arg) : ''\n\nconst defaults = {\n sshtemplate: ({ domain, user, project, committish }) => `git@${domain}:${user}/${project}.git${maybeJoin('#', committish)}`,\n sshurltemplate: ({ domain, user, project, committish }) => `git+ssh://git@${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n browsetemplate: ({ domain, user, project, committish, treepath }) => `https://${domain}/${user}/${project}${maybeJoin('/', treepath, '/', maybeEncode(committish))}`,\n browsefiletemplate: ({ domain, user, project, committish, treepath, path, fragment, hashformat }) => `https://${domain}/${user}/${project}/${treepath}/${maybeEncode(committish || 'master')}/${path}${maybeJoin('#', hashformat(fragment || ''))}`,\n docstemplate: ({ domain, user, project, treepath, committish }) => `https://${domain}/${user}/${project}${maybeJoin('/', treepath, '/', maybeEncode(committish))}#readme`,\n httpstemplate: ({ auth, domain, user, project, committish }) => `git+https://${maybeJoin(auth, '@')}${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n filetemplate: ({ domain, user, project, committish, path }) => `https://${domain}/${user}/${project}/raw/${maybeEncode(committish) || 'master'}/${path}`,\n shortcuttemplate: ({ type, user, project, committish }) => `${type}:${user}/${project}${maybeJoin('#', committish)}`,\n pathtemplate: ({ user, project, committish }) => `${user}/${project}${maybeJoin('#', committish)}`,\n bugstemplate: ({ domain, user, project }) => `https://${domain}/${user}/${project}/issues`,\n hashformat: formatHashFragment\n}\n\nconst gitHosts = {}\ngitHosts.github = Object.assign({}, defaults, {\n // First two are insecure and generally shouldn't be used any more, but\n // they are still supported.\n protocols: ['git:', 'http:', 'git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'github.com',\n treepath: 'tree',\n filetemplate: ({ auth, user, project, committish, path }) => `https://${maybeJoin(auth, '@')}raw.githubusercontent.com/${user}/${project}/${maybeEncode(committish) || 'master'}/${path}`,\n gittemplate: ({ auth, domain, user, project, committish }) => `git://${maybeJoin(auth, '@')}${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ domain, user, project, committish }) => `https://codeload.${domain}/${user}/${project}/tar.gz/${maybeEncode(committish) || 'master'}`,\n extract: (url) => {\n let [, user, project, type, committish] = url.pathname.split('/', 5)\n if (type && type !== 'tree') {\n return\n }\n\n if (!type) {\n committish = url.hash.slice(1)\n }\n\n if (project && project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (!user || !project) {\n return\n }\n\n return { user, project, committish }\n }\n})\n\ngitHosts.bitbucket = Object.assign({}, defaults, {\n protocols: ['git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'bitbucket.org',\n treepath: 'src',\n tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/get/${maybeEncode(committish) || 'master'}.tar.gz`,\n extract: (url) => {\n let [, user, project, aux] = url.pathname.split('/', 4)\n if (['get'].includes(aux)) {\n return\n }\n\n if (project && project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (!user || !project) {\n return\n }\n\n return { user, project, committish: url.hash.slice(1) }\n }\n})\n\ngitHosts.gitlab = Object.assign({}, defaults, {\n protocols: ['git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'gitlab.com',\n treepath: 'tree',\n httpstemplate: ({ auth, domain, user, project, committish }) => `git+https://${maybeJoin(auth, '@')}${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/repository/archive.tar.gz?ref=${maybeEncode(committish) || 'master'}`,\n extract: (url) => {\n const path = url.pathname.slice(1)\n if (path.includes('/-/') || path.includes('/archive.tar.gz')) {\n return\n }\n\n const segments = path.split('/')\n let project = segments.pop()\n if (project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n const user = segments.join('/')\n if (!user || !project) {\n return\n }\n\n return { user, project, committish: url.hash.slice(1) }\n }\n})\n\ngitHosts.gist = Object.assign({}, defaults, {\n protocols: ['git:', 'git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'gist.github.com',\n sshtemplate: ({ domain, project, committish }) => `git@${domain}:${project}.git${maybeJoin('#', committish)}`,\n sshurltemplate: ({ domain, project, committish }) => `git+ssh://git@${domain}/${project}.git${maybeJoin('#', committish)}`,\n browsetemplate: ({ domain, project, committish }) => `https://${domain}/${project}${maybeJoin('/', maybeEncode(committish))}`,\n browsefiletemplate: ({ domain, project, committish, path, hashformat }) => `https://${domain}/${project}${maybeJoin('/', maybeEncode(committish))}${maybeJoin('#', hashformat(path))}`,\n docstemplate: ({ domain, project, committish }) => `https://${domain}/${project}${maybeJoin('/', maybeEncode(committish))}`,\n httpstemplate: ({ domain, project, committish }) => `git+https://${domain}/${project}.git${maybeJoin('#', committish)}`,\n filetemplate: ({ user, project, committish, path }) => `https://gist.githubusercontent.com/${user}/${project}/raw${maybeJoin('/', maybeEncode(committish))}/${path}`,\n shortcuttemplate: ({ type, project, committish }) => `${type}:${project}${maybeJoin('#', committish)}`,\n pathtemplate: ({ project, committish }) => `${project}${maybeJoin('#', committish)}`,\n bugstemplate: ({ domain, project }) => `https://${domain}/${project}`,\n gittemplate: ({ domain, project, committish }) => `git://${domain}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ project, committish }) => `https://codeload.github.com/gist/${project}/tar.gz/${maybeEncode(committish) || 'master'}`,\n extract: (url) => {\n let [, user, project, aux] = url.pathname.split('/', 4)\n if (aux === 'raw') {\n return\n }\n\n if (!project) {\n if (!user) {\n return\n }\n\n project = user\n user = null\n }\n\n if (project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n return { user, project, committish: url.hash.slice(1) }\n },\n hashformat: function (fragment) {\n return fragment && 'file-' + formatHashFragment(fragment)\n }\n})\n\ngitHosts.sourcehut = Object.assign({}, defaults, {\n protocols: ['git+ssh:', 'https:'],\n domain: 'git.sr.ht',\n treepath: 'tree',\n browsefiletemplate: ({ domain, user, project, committish, treepath, path, fragment, hashformat }) => `https://${domain}/${user}/${project}/${treepath}/${maybeEncode(committish || 'main')}/${path}${maybeJoin('#', hashformat(fragment || ''))}`,\n filetemplate: ({ domain, user, project, committish, path }) => `https://${domain}/${user}/${project}/blob/${maybeEncode(committish) || 'main'}/${path}`,\n httpstemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/archive/${maybeEncode(committish) || 'main'}.tar.gz`,\n bugstemplate: ({ domain, user, project }) => `https://todo.sr.ht/${user}/${project}`,\n docstemplate: ({ domain, user, project, treepath, committish }) => `https://${domain}/${user}/${project}${maybeJoin('/', treepath, '/', maybeEncode(committish))}#readme`,\n extract: (url) => {\n let [, user, project, aux] = url.pathname.split('/', 4)\n\n // tarball url\n if (['archive'].includes(aux)) {\n return\n }\n\n if (project && project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (!user || !project) {\n return\n }\n\n return { user, project, committish: url.hash.slice(1) }\n }\n})\n\nconst names = Object.keys(gitHosts)\ngitHosts.byShortcut = {}\ngitHosts.byDomain = {}\nfor (const name of names) {\n gitHosts.byShortcut[`${name}:`] = name\n gitHosts.byDomain[gitHosts[name].domain] = name\n}\n\nfunction formatHashFragment (fragment) {\n return fragment.toLowerCase().replace(/^\\W+|\\/|\\W+$/g, '').replace(/\\W+/g, '-')\n}\n\nmodule.exports = gitHosts\n"],"names":[],"mappings":"AACA,MAAM,YAAY,IAAI,SAAS,KAAK,MAAM,SAAO,GAAG,IAAI,KAAK,KAAK,EAAE,IAAI;AACxE,MAAM,cAAc,CAAC,QAAQ,MAAM,mBAAmB,GAAG,IAAI;AAE7D,MAAM,WAAW;AAAA,EACf,aAAa,CAAC,EAAE,QAAQ,MAAM,SAAS,WAAU,MAAO,OAAO,MAAM,IAAI,IAAI,IAAI,OAAO,OAAO,UAAU,KAAK,UAAU,CAAC;AAAA,EACzH,gBAAgB,CAAC,EAAE,QAAQ,MAAM,SAAS,WAAU,MAAO,iBAAiB,MAAM,IAAI,IAAI,IAAI,OAAO,OAAO,UAAU,KAAK,UAAU,CAAC;AAAA,EACtI,gBAAgB,CAAC,EAAE,QAAQ,MAAM,SAAS,YAAY,SAAU,MAAK,WAAW,MAAM,IAAI,IAAI,IAAI,OAAO,GAAG,UAAU,KAAK,UAAU,KAAK,YAAY,UAAU,CAAC,CAAC;AAAA,EAClK,oBAAoB,CAAC,EAAE,QAAQ,MAAM,SAAS,YAAY,UAAU,MAAM,UAAU,WAAY,MAAK,WAAW,MAAM,IAAI,IAAI,IAAI,OAAO,IAAI,QAAQ,IAAI,YAAY,cAAc,QAAQ,CAAC,IAAI,IAAI,GAAG,UAAU,KAAK,WAAW,YAAY,EAAE,CAAC,CAAC;AAAA,EACjP,cAAc,CAAC,EAAE,QAAQ,MAAM,SAAS,UAAU,iBAAiB,WAAW,MAAM,IAAI,IAAI,IAAI,OAAO,GAAG,UAAU,K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E,QAAQ,MAAM,QAAO,MAAO,sBAAsB,IAAI,IAAI,OAAO;AAAA,EAClF,cAAc,CAAC,EAAE,QAAQ,MAAM,SAAS,UAAU,iBAAiB,WAAW,MAAM,IAAI,IAAI,IAAI,OAAO,GAAG,UAAU,KAAK,UAAU,KAAK,YAAY,UAAU,CAAC,CAAC;AAAA,EAChK,SAAS,CAAC,QAAQ;AAChB,QAAI,CAAG,EAAA,MAAM,SAAS,GAAG,IAAI,IAAI,SAAS,MAAM,KAAK,CAAC;AAGtD,QAAI,CAAC,SAAS,EAAE,SAAS,GAAG,GAAG;AAC7B;AAAA,IACD;AAED,QAAI,WAAW,QAAQ,SAAS,MAAM,GAAG;AACvC,gBAAU,QAAQ,MAAM,GAAG,EAAE;AAAA,IAC9B;AAED,QAAI,CAAC,QAAQ,CAAC,SAAS;AACrB;AAAA,IACD;AAED,WAAO,EAAE,MAAM,SAAS,YAAY,IAAI,KAAK,MAAM,CAAC,EAAG;AAAA,EACxD;AACH,CAAC;AAED,MAAM,QAAQ,OAAO,KAAK,QAAQ;AAClC,SAAS,aAAa,CAAE;AACxB,SAAS,WAAW,CAAE;AACtB,WAAW,QAAQ,OAAO;AACxB,WAAS,WAAW,GAAG,IAAI,GAAG,IAAI;AAClC,WAAS,SAAS,SAAS,IAAI,EAAE,MAAM,IAAI;AAC7C;AAEA,SAAS,mBAAoB,UAAU;AACrC,SAAO,SAAS,YAAa,EAAC,QAAQ,iBAAiB,EAAE,EAAE,QAAQ,QAAQ,GAAG;AAChF;AAEA,IAAA,cAAiB;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-host.cjs","sources":["../../../../../../../node_modules/read-pkg/node_modules/hosted-git-info/git-host.js"],"sourcesContent":["'use strict'\nconst gitHosts = require('./git-host-info.js')\n\nclass GitHost {\n constructor (type, user, auth, project, committish, defaultRepresentation, opts = {}) {\n Object.assign(this, gitHosts[type])\n this.type = type\n this.user = user\n this.auth = auth\n this.project = project\n this.committish = committish\n this.default = defaultRepresentation\n this.opts = opts\n }\n\n hash () {\n return this.committish ? `#${this.committish}` : ''\n }\n\n ssh (opts) {\n return this._fill(this.sshtemplate, opts)\n }\n\n _fill (template, opts) {\n if (typeof template === 'function') {\n const options = { ...this, ...this.opts, ...opts }\n\n // the path should always be set so we don't end up with 'undefined' in urls\n if (!options.path) {\n options.path = ''\n }\n\n // template functions will insert the leading slash themselves\n if (options.path.startsWith('/')) {\n options.path = options.path.slice(1)\n }\n\n if (options.noCommittish) {\n options.committish = null\n }\n\n const result = template(options)\n return options.noGitPlus && result.startsWith('git+') ? result.slice(4) : result\n }\n\n return null\n }\n\n sshurl (opts) {\n return this._fill(this.sshurltemplate, opts)\n }\n\n browse (path, fragment, opts) {\n // not a string, treat path as opts\n if (typeof path !== 'string') {\n return this._fill(this.browsetemplate, path)\n }\n\n if (typeof fragment !== 'string') {\n opts = fragment\n fragment = null\n }\n return this._fill(this.browsefiletemplate, { ...opts, fragment, path })\n }\n\n docs (opts) {\n return this._fill(this.docstemplate, opts)\n }\n\n bugs (opts) {\n return this._fill(this.bugstemplate, opts)\n }\n\n https (opts) {\n return this._fill(this.httpstemplate, opts)\n }\n\n git (opts) {\n return this._fill(this.gittemplate, opts)\n }\n\n shortcut (opts) {\n return this._fill(this.shortcuttemplate, opts)\n }\n\n path (opts) {\n return this._fill(this.pathtemplate, opts)\n }\n\n tarball (opts) {\n return this._fill(this.tarballtemplate, { ...opts, noCommittish: false })\n }\n\n file (path, opts) {\n return this._fill(this.filetemplate, { ...opts, path })\n }\n\n getDefaultRepresentation () {\n return this.default\n }\n\n toString (opts) {\n if (this.default && typeof this[this.default] === 'function') {\n return this[this.default](opts)\n }\n\n return this.sshurl(opts)\n }\n}\nmodule.exports = GitHost\n"],"names":["require$$0"],"mappings":";;;AACA,MAAM,WAAWA,YAA6B;AAE9C,MAAM,QAAQ;AAAA,EACZ,YAAa,MAAM,MAAM,MAAM,SAAS,YAAY,uBAAuB,OAAO,IAAI;AACpF,WAAO,OAAO,MAAM,SAAS,IAAI,CAAC;AAClC,SAAK,OAAO;AACZ,SAAK,OAAO;AACZ,SAAK,OAAO;AACZ,SAAK,UAAU;AACf,SAAK,aAAa;AAClB,SAAK,UAAU;AACf,SAAK,OAAO;AAAA,EACb;AAAA,EAED,OAAQ;AACN,WAAO,KAAK,aAAa,IAAI,KAAK,
|
|
1
|
+
{"version":3,"file":"git-host.cjs","sources":["../../../../../../../node_modules/read-pkg/node_modules/hosted-git-info/git-host.js"],"sourcesContent":["'use strict'\nconst gitHosts = require('./git-host-info.js')\n\nclass GitHost {\n constructor (type, user, auth, project, committish, defaultRepresentation, opts = {}) {\n Object.assign(this, gitHosts[type])\n this.type = type\n this.user = user\n this.auth = auth\n this.project = project\n this.committish = committish\n this.default = defaultRepresentation\n this.opts = opts\n }\n\n hash () {\n return this.committish ? `#${this.committish}` : ''\n }\n\n ssh (opts) {\n return this._fill(this.sshtemplate, opts)\n }\n\n _fill (template, opts) {\n if (typeof template === 'function') {\n const options = { ...this, ...this.opts, ...opts }\n\n // the path should always be set so we don't end up with 'undefined' in urls\n if (!options.path) {\n options.path = ''\n }\n\n // template functions will insert the leading slash themselves\n if (options.path.startsWith('/')) {\n options.path = options.path.slice(1)\n }\n\n if (options.noCommittish) {\n options.committish = null\n }\n\n const result = template(options)\n return options.noGitPlus && result.startsWith('git+') ? result.slice(4) : result\n }\n\n return null\n }\n\n sshurl (opts) {\n return this._fill(this.sshurltemplate, opts)\n }\n\n browse (path, fragment, opts) {\n // not a string, treat path as opts\n if (typeof path !== 'string') {\n return this._fill(this.browsetemplate, path)\n }\n\n if (typeof fragment !== 'string') {\n opts = fragment\n fragment = null\n }\n return this._fill(this.browsefiletemplate, { ...opts, fragment, path })\n }\n\n docs (opts) {\n return this._fill(this.docstemplate, opts)\n }\n\n bugs (opts) {\n return this._fill(this.bugstemplate, opts)\n }\n\n https (opts) {\n return this._fill(this.httpstemplate, opts)\n }\n\n git (opts) {\n return this._fill(this.gittemplate, opts)\n }\n\n shortcut (opts) {\n return this._fill(this.shortcuttemplate, opts)\n }\n\n path (opts) {\n return this._fill(this.pathtemplate, opts)\n }\n\n tarball (opts) {\n return this._fill(this.tarballtemplate, { ...opts, noCommittish: false })\n }\n\n file (path, opts) {\n return this._fill(this.filetemplate, { ...opts, path })\n }\n\n getDefaultRepresentation () {\n return this.default\n }\n\n toString (opts) {\n if (this.default && typeof this[this.default] === 'function') {\n return this[this.default](opts)\n }\n\n return this.sshurl(opts)\n }\n}\nmodule.exports = GitHost\n"],"names":["require$$0"],"mappings":";;;AACA,MAAM,WAAWA,YAA6B;AAE9C,MAAM,QAAQ;AAAA,EACZ,YAAa,MAAM,MAAM,MAAM,SAAS,YAAY,uBAAuB,OAAO,IAAI;AACpF,WAAO,OAAO,MAAM,SAAS,IAAI,CAAC;AAClC,SAAK,OAAO;AACZ,SAAK,OAAO;AACZ,SAAK,OAAO;AACZ,SAAK,UAAU;AACf,SAAK,aAAa;AAClB,SAAK,UAAU;AACf,SAAK,OAAO;AAAA,EACb;AAAA,EAED,OAAQ;AACN,WAAO,KAAK,aAAa,IAAI,KAAK,UAAU,KAAK;AAAA,EAClD;AAAA,EAED,IAAK,MAAM;AACT,WAAO,KAAK,MAAM,KAAK,aAAa,IAAI;AAAA,EACzC;AAAA,EAED,MAAO,UAAU,MAAM;AACrB,QAAI,OAAO,aAAa,YAAY;AAClC,YAAM,UAAU,EAAE,GAAG,MAAM,GAAG,KAAK,MAAM,GAAG,KAAM;AAGlD,UAAI,CAAC,QAAQ,MAAM;AACjB,gBAAQ,OAAO;AAAA,MAChB;AAGD,UAAI,QAAQ,KAAK,WAAW,GAAG,GAAG;AAChC,gBAAQ,OAAO,QAAQ,KAAK,MAAM,CAAC;AAAA,MACpC;AAED,UAAI,QAAQ,cAAc;AACxB,gBAAQ,aAAa;AAAA,MACtB;AAED,YAAM,SAAS,SAAS,OAAO;AAC/B,aAAO,QAAQ,aAAa,OAAO,WAAW,MAAM,IA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KAAK,OAAO,EAAE,IAAI;AAAA,IAC/B;AAED,WAAO,KAAK,OAAO,IAAI;AAAA,EACxB;AACH;AACA,IAAA,UAAiB;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-host.js","sources":["../../../../../../../node_modules/read-pkg/node_modules/hosted-git-info/git-host.js"],"sourcesContent":["'use strict'\nconst gitHosts = require('./git-host-info.js')\n\nclass GitHost {\n constructor (type, user, auth, project, committish, defaultRepresentation, opts = {}) {\n Object.assign(this, gitHosts[type])\n this.type = type\n this.user = user\n this.auth = auth\n this.project = project\n this.committish = committish\n this.default = defaultRepresentation\n this.opts = opts\n }\n\n hash () {\n return this.committish ? `#${this.committish}` : ''\n }\n\n ssh (opts) {\n return this._fill(this.sshtemplate, opts)\n }\n\n _fill (template, opts) {\n if (typeof template === 'function') {\n const options = { ...this, ...this.opts, ...opts }\n\n // the path should always be set so we don't end up with 'undefined' in urls\n if (!options.path) {\n options.path = ''\n }\n\n // template functions will insert the leading slash themselves\n if (options.path.startsWith('/')) {\n options.path = options.path.slice(1)\n }\n\n if (options.noCommittish) {\n options.committish = null\n }\n\n const result = template(options)\n return options.noGitPlus && result.startsWith('git+') ? result.slice(4) : result\n }\n\n return null\n }\n\n sshurl (opts) {\n return this._fill(this.sshurltemplate, opts)\n }\n\n browse (path, fragment, opts) {\n // not a string, treat path as opts\n if (typeof path !== 'string') {\n return this._fill(this.browsetemplate, path)\n }\n\n if (typeof fragment !== 'string') {\n opts = fragment\n fragment = null\n }\n return this._fill(this.browsefiletemplate, { ...opts, fragment, path })\n }\n\n docs (opts) {\n return this._fill(this.docstemplate, opts)\n }\n\n bugs (opts) {\n return this._fill(this.bugstemplate, opts)\n }\n\n https (opts) {\n return this._fill(this.httpstemplate, opts)\n }\n\n git (opts) {\n return this._fill(this.gittemplate, opts)\n }\n\n shortcut (opts) {\n return this._fill(this.shortcuttemplate, opts)\n }\n\n path (opts) {\n return this._fill(this.pathtemplate, opts)\n }\n\n tarball (opts) {\n return this._fill(this.tarballtemplate, { ...opts, noCommittish: false })\n }\n\n file (path, opts) {\n return this._fill(this.filetemplate, { ...opts, path })\n }\n\n getDefaultRepresentation () {\n return this.default\n }\n\n toString (opts) {\n if (this.default && typeof this[this.default] === 'function') {\n return this[this.default](opts)\n }\n\n return this.sshurl(opts)\n }\n}\nmodule.exports = GitHost\n"],"names":["require$$0"],"mappings":";AACA,MAAM,WAAWA;AAEjB,MAAM,QAAQ;AAAA,EACZ,YAAa,MAAM,MAAM,MAAM,SAAS,YAAY,uBAAuB,OAAO,IAAI;AACpF,WAAO,OAAO,MAAM,SAAS,IAAI,CAAC;AAClC,SAAK,OAAO;AACZ,SAAK,OAAO;AACZ,SAAK,OAAO;AACZ,SAAK,UAAU;AACf,SAAK,aAAa;AAClB,SAAK,UAAU;AACf,SAAK,OAAO;AAAA,EACb;AAAA,EAED,OAAQ;AACN,WAAO,KAAK,aAAa,IAAI,KAAK,
|
|
1
|
+
{"version":3,"file":"git-host.js","sources":["../../../../../../../node_modules/read-pkg/node_modules/hosted-git-info/git-host.js"],"sourcesContent":["'use strict'\nconst gitHosts = require('./git-host-info.js')\n\nclass GitHost {\n constructor (type, user, auth, project, committish, defaultRepresentation, opts = {}) {\n Object.assign(this, gitHosts[type])\n this.type = type\n this.user = user\n this.auth = auth\n this.project = project\n this.committish = committish\n this.default = defaultRepresentation\n this.opts = opts\n }\n\n hash () {\n return this.committish ? `#${this.committish}` : ''\n }\n\n ssh (opts) {\n return this._fill(this.sshtemplate, opts)\n }\n\n _fill (template, opts) {\n if (typeof template === 'function') {\n const options = { ...this, ...this.opts, ...opts }\n\n // the path should always be set so we don't end up with 'undefined' in urls\n if (!options.path) {\n options.path = ''\n }\n\n // template functions will insert the leading slash themselves\n if (options.path.startsWith('/')) {\n options.path = options.path.slice(1)\n }\n\n if (options.noCommittish) {\n options.committish = null\n }\n\n const result = template(options)\n return options.noGitPlus && result.startsWith('git+') ? result.slice(4) : result\n }\n\n return null\n }\n\n sshurl (opts) {\n return this._fill(this.sshurltemplate, opts)\n }\n\n browse (path, fragment, opts) {\n // not a string, treat path as opts\n if (typeof path !== 'string') {\n return this._fill(this.browsetemplate, path)\n }\n\n if (typeof fragment !== 'string') {\n opts = fragment\n fragment = null\n }\n return this._fill(this.browsefiletemplate, { ...opts, fragment, path })\n }\n\n docs (opts) {\n return this._fill(this.docstemplate, opts)\n }\n\n bugs (opts) {\n return this._fill(this.bugstemplate, opts)\n }\n\n https (opts) {\n return this._fill(this.httpstemplate, opts)\n }\n\n git (opts) {\n return this._fill(this.gittemplate, opts)\n }\n\n shortcut (opts) {\n return this._fill(this.shortcuttemplate, opts)\n }\n\n path (opts) {\n return this._fill(this.pathtemplate, opts)\n }\n\n tarball (opts) {\n return this._fill(this.tarballtemplate, { ...opts, noCommittish: false })\n }\n\n file (path, opts) {\n return this._fill(this.filetemplate, { ...opts, path })\n }\n\n getDefaultRepresentation () {\n return this.default\n }\n\n toString (opts) {\n if (this.default && typeof this[this.default] === 'function') {\n return this[this.default](opts)\n }\n\n return this.sshurl(opts)\n }\n}\nmodule.exports = GitHost\n"],"names":["require$$0"],"mappings":";AACA,MAAM,WAAWA;AAEjB,MAAM,QAAQ;AAAA,EACZ,YAAa,MAAM,MAAM,MAAM,SAAS,YAAY,uBAAuB,OAAO,IAAI;AACpF,WAAO,OAAO,MAAM,SAAS,IAAI,CAAC;AAClC,SAAK,OAAO;AACZ,SAAK,OAAO;AACZ,SAAK,OAAO;AACZ,SAAK,UAAU;AACf,SAAK,aAAa;AAClB,SAAK,UAAU;AACf,SAAK,OAAO;AAAA,EACb;AAAA,EAED,OAAQ;AACN,WAAO,KAAK,aAAa,IAAI,KAAK,UAAU,KAAK;AAAA,EAClD;AAAA,EAED,IAAK,MAAM;AACT,WAAO,KAAK,MAAM,KAAK,aAAa,IAAI;AAAA,EACzC;AAAA,EAED,MAAO,UAAU,MAAM;AACrB,QAAI,OAAO,aAAa,YAAY;AAClC,YAAM,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AAA,EAED,QAAS,MAAM;AACb,WAAO,KAAK,MAAM,KAAK,iBAAiB,EAAE,GAAG,MAAM,cAAc,OAAO;AAAA,EACzE;AAAA,EAED,KAAM,MAAM,MAAM;AAChB,WAAO,KAAK,MAAM,KAAK,cAAc,EAAE,GAAG,MAAM,MAAM;AAAA,EACvD;AAAA,EAED,2BAA4B;AAC1B,WAAO,KAAK;AAAA,EACb;AAAA,EAED,SAAU,MAAM;AACd,QAAI,KAAK,WAAW,OAAO,KAAK,KAAK,OAAO,MAAM,YAAY;AAC5D,aAAO,KAAK,KAAK,OAAO,EAAE,IAAI;AAAA,IAC/B;AAED,WAAO,KAAK,OAAO,IAAI;AAAA,EACxB;AACH;AACA,IAAA,UAAiB;","x_google_ignoreList":[0]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("../../../../_virtual/
|
|
3
|
+
const index = require("../../../../_virtual/index19.cjs");
|
|
4
4
|
const require$$0 = require("url");
|
|
5
5
|
const gitHostInfo = require("./git-host-info.cjs");
|
|
6
6
|
const gitHost = require("./git-host.cjs");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../../../../node_modules/read-pkg/node_modules/hosted-git-info/index.js"],"sourcesContent":["'use strict'\nconst url = require('url')\nconst gitHosts = require('./git-host-info.js')\nconst GitHost = module.exports = require('./git-host.js')\nconst LRU = require('lru-cache')\nconst cache = new LRU({ max: 1000 })\n\nconst protocolToRepresentationMap = {\n 'git+ssh:': 'sshurl',\n 'git+https:': 'https',\n 'ssh:': 'sshurl',\n 'git:': 'git'\n}\n\nfunction protocolToRepresentation (protocol) {\n return protocolToRepresentationMap[protocol] || protocol.slice(0, -1)\n}\n\nconst authProtocols = {\n 'git:': true,\n 'https:': true,\n 'git+https:': true,\n 'http:': true,\n 'git+http:': true\n}\n\nconst knownProtocols = Object.keys(gitHosts.byShortcut).concat(['http:', 'https:', 'git:', 'git+ssh:', 'git+https:', 'ssh:'])\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\nfunction fromUrl (giturl, opts) {\n if (!giturl) {\n return\n }\n\n const url = isGitHubShorthand(giturl) ? 'github:' + giturl : correctProtocol(giturl)\n const parsed = parseGitUrl(url)\n if (!parsed) {\n return parsed\n }\n\n const gitHostShortcut = gitHosts.byShortcut[parsed.protocol]\n const gitHostDomain = gitHosts.byDomain[parsed.hostname.startsWith('www.') ? parsed.hostname.slice(4) : 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 (authProtocols[parsed.protocol] && (parsed.username || parsed.password)) {\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 = protocolToRepresentation(parsed.protocol)\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// accepts input like git:github.com:user/repo and inserts the // after the first :\nconst correctProtocol = (arg) => {\n const firstColon = arg.indexOf(':')\n const proto = arg.slice(0, firstColon + 1)\n if (knownProtocols.includes(proto)) {\n return arg\n }\n\n const firstAt = arg.indexOf('@')\n if (firstAt > -1) {\n if (firstAt > firstColon) {\n return `git+ssh://${arg}`\n } else {\n return arg\n }\n }\n\n const doubleSlash = arg.indexOf('//')\n if (doubleSlash === firstColon + 1) {\n return arg\n }\n\n return arg.slice(0, firstColon + 1) + '//' + arg.slice(firstColon + 1)\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 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 && doesNotStartWithDot && atOnlyAfterHash && colonOnlyAfterHash && secondSlashOnlyAfterHash\n}\n\n// attempt to correct an scp style url so that it will parse with `new URL()`\nconst correctUrl = (giturl) => {\n const firstAt = giturl.indexOf('@')\n const lastHash = giturl.lastIndexOf('#')\n let firstColon = giturl.indexOf(':')\n let lastColon = giturl.lastIndexOf(':', lastHash > -1 ? lastHash : Infinity)\n\n let corrected\n if (lastColon > firstAt) {\n // the last : comes after the first @ (or there is no @)\n // like it would in:\n // proto://hostname.com:user/repo\n // username@hostname.com:user/repo\n // :password@hostname.com:user/repo\n // username:password@hostname.com:user/repo\n // proto://username@hostname.com:user/repo\n // proto://:password@hostname.com:user/repo\n // proto://username:password@hostname.com:user/repo\n // then we replace the last : with a / to create a valid path\n corrected = giturl.slice(0, lastColon) + '/' + giturl.slice(lastColon + 1)\n // // and we find our new : positions\n firstColon = corrected.indexOf(':')\n lastColon = corrected.lastIndexOf(':')\n }\n\n if (firstColon === -1 && giturl.indexOf('//') === -1) {\n // we have no : at all\n // as it would be in:\n // username@hostname.com/user/repo\n // then we prepend a protocol\n corrected = `git+ssh://${corrected}`\n }\n\n return corrected\n}\n\n// try to parse the url as its given to us, if that throws\n// then we try to clean the url and parse that result instead\n// THIS FUNCTION SHOULD NEVER THROW\nconst parseGitUrl = (giturl) => {\n let result\n try {\n result = new url.URL(giturl)\n } catch (err) {}\n\n if (result) {\n return result\n }\n\n const correctedUrl = correctUrl(giturl)\n try {\n result = new url.URL(correctedUrl)\n } catch (err) {}\n\n return result\n}\n"],"names":["require$$1","hostedGitInfoModule","require$$2","require$$3","url","gitHostInfo"],"mappings":";;;;;;;AACA,MAAM,MAAM;AACZ,MAAM,WAAWA,YAA6B;AAC9C,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AAY,MAAM,cAAc;AACxF,QAAM,WAAW,aAAa;AAE9B,QAAM,sBAAsB,YAAY,KAAK,IAAI,YAAY,CAAC,MAAM,MAAM,CAAC,IAAI,SAAS,GAAG;AAC3F,QAAM,sBAAsB,CAAC,IAAI,WAAW,GAAG;AAE/C,SAAO,sBAAsB,YAAY,uBAAuB,uBAAuB,mBAAmB,sBAAsB;AAClI;AAGA,MAAM,aAAa,CAAC,WAAW;AAC7B,QAAM,UAAU,OAAO,QAAQ,GAAG;AAClC,QAAM,WAAW,OAAO,YAAY,GAAG;AACvC,MAAI,aAAa,OAAO,QAAQ,GAAG;AACnC,MAAI,YAAY,OAAO,YAAY,KAAK,WAAW,KAAK,WAAW,QAAQ;AAE3E,MAAI;AACJ,MAAI,YAAY,SAAS;AAWvB,gBAAY,OAAO,MAAM,GAAG,SAAS,IAAI,MAAM,OAAO,MAAM,YAAY,CAAC;AAEzE,iBAAa,UAAU,QAAQ,GAAG;AAClC,gBAAY,UAAU,YAAY,GAAG;AAAA,EACtC;AAED,MAAI,eAAe,MAAM,OAAO,QAAQ,IAAI,MAAM,IAAI;AAKpD,gBAAY,aAAa;AAAA,EAC1B;AAED,SAAO;AACT;AAKA,MAAM,cAAc,CAAC,WAAW;AAC9B,MAAI;AACJ,MAAI;AACF,aAAS,IAAI,IAAI,IAAI,MAAM;AAAA,EAC/B,SAAW,KAAP;AAAA,EAAc;AAEhB,MAAI,QAAQ;AACV,WAAO;AAAA,EACR;AAED,QAAM,eAAe,WAAW,MAAM;AACtC,MAAI;AACF,aAAS,IAAI,IAAI,IAAI,YAAY;AAAA,EACrC,SAAW,KAAP;AAAA,EAAc;AAEhB,SAAO;AACT;;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../../../node_modules/read-pkg/node_modules/hosted-git-info/index.js"],"sourcesContent":["'use strict'\nconst url = require('url')\nconst gitHosts = require('./git-host-info.js')\nconst GitHost = module.exports = require('./git-host.js')\nconst LRU = require('lru-cache')\nconst cache = new LRU({ max: 1000 })\n\nconst protocolToRepresentationMap = {\n 'git+ssh:': 'sshurl',\n 'git+https:': 'https',\n 'ssh:': 'sshurl',\n 'git:': 'git'\n}\n\nfunction protocolToRepresentation (protocol) {\n return protocolToRepresentationMap[protocol] || protocol.slice(0, -1)\n}\n\nconst authProtocols = {\n 'git:': true,\n 'https:': true,\n 'git+https:': true,\n 'http:': true,\n 'git+http:': true\n}\n\nconst knownProtocols = Object.keys(gitHosts.byShortcut).concat(['http:', 'https:', 'git:', 'git+ssh:', 'git+https:', 'ssh:'])\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\nfunction fromUrl (giturl, opts) {\n if (!giturl) {\n return\n }\n\n const url = isGitHubShorthand(giturl) ? 'github:' + giturl : correctProtocol(giturl)\n const parsed = parseGitUrl(url)\n if (!parsed) {\n return parsed\n }\n\n const gitHostShortcut = gitHosts.byShortcut[parsed.protocol]\n const gitHostDomain = gitHosts.byDomain[parsed.hostname.startsWith('www.') ? parsed.hostname.slice(4) : 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 (authProtocols[parsed.protocol] && (parsed.username || parsed.password)) {\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 = protocolToRepresentation(parsed.protocol)\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// accepts input like git:github.com:user/repo and inserts the // after the first :\nconst correctProtocol = (arg) => {\n const firstColon = arg.indexOf(':')\n const proto = arg.slice(0, firstColon + 1)\n if (knownProtocols.includes(proto)) {\n return arg\n }\n\n const firstAt = arg.indexOf('@')\n if (firstAt > -1) {\n if (firstAt > firstColon) {\n return `git+ssh://${arg}`\n } else {\n return arg\n }\n }\n\n const doubleSlash = arg.indexOf('//')\n if (doubleSlash === firstColon + 1) {\n return arg\n }\n\n return arg.slice(0, firstColon + 1) + '//' + arg.slice(firstColon + 1)\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 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 && doesNotStartWithDot && atOnlyAfterHash && colonOnlyAfterHash && secondSlashOnlyAfterHash\n}\n\n// attempt to correct an scp style url so that it will parse with `new URL()`\nconst correctUrl = (giturl) => {\n const firstAt = giturl.indexOf('@')\n const lastHash = giturl.lastIndexOf('#')\n let firstColon = giturl.indexOf(':')\n let lastColon = giturl.lastIndexOf(':', lastHash > -1 ? lastHash : Infinity)\n\n let corrected\n if (lastColon > firstAt) {\n // the last : comes after the first @ (or there is no @)\n // like it would in:\n // proto://hostname.com:user/repo\n // username@hostname.com:user/repo\n // :password@hostname.com:user/repo\n // username:password@hostname.com:user/repo\n // proto://username@hostname.com:user/repo\n // proto://:password@hostname.com:user/repo\n // proto://username:password@hostname.com:user/repo\n // then we replace the last : with a / to create a valid path\n corrected = giturl.slice(0, lastColon) + '/' + giturl.slice(lastColon + 1)\n // // and we find our new : positions\n firstColon = corrected.indexOf(':')\n lastColon = corrected.lastIndexOf(':')\n }\n\n if (firstColon === -1 && giturl.indexOf('//') === -1) {\n // we have no : at all\n // as it would be in:\n // username@hostname.com/user/repo\n // then we prepend a protocol\n corrected = `git+ssh://${corrected}`\n }\n\n return corrected\n}\n\n// try to parse the url as its given to us, if that throws\n// then we try to clean the url and parse that result instead\n// THIS FUNCTION SHOULD NEVER THROW\nconst parseGitUrl = (giturl) => {\n let result\n try {\n result = new url.URL(giturl)\n } catch (err) {}\n\n if (result) {\n return result\n }\n\n const correctedUrl = correctUrl(giturl)\n try {\n result = new url.URL(correctedUrl)\n } catch (err) {}\n\n return result\n}\n"],"names":["require$$1","hostedGitInfoModule","require$$2","require$$3","url","gitHostInfo"],"mappings":";;;;;;;AACA,MAAM,MAAM;AACZ,MAAM,WAAWA,YAA6B;AAC9C,MAAM,UAAUC,MAAAA,SAAc,UAAGC,QAAwB;AACzD,MAAM,MAAMC,QAAoB;AAChC,MAAM,QAAQ,IAAI,IAAI,EAAE,KAAK,IAAI,CAAE;AAEnC,MAAM,8BAA8B;AAAA,EAClC,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,QAAQ;AAAA,EACR,QAAQ;AACV;AAEA,SAAS,yBAA0B,UAAU;AAC3C,SAAO,4BAA4B,QAAQ,KAAK,SAAS,MAAM,GAAG,EAAE;AACtE;AAEA,MAAM,gBAAgB;AAAA,EACpB,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,cAAc;AAAA,EACd,SAAS;AAAA,EACT,aAAa;AACf;AAEA,MAAM,iBAAiB,OAAO,KAAK,SAAS,UAAU,EAAE,OAAO,CAAC,SAAS,UAAU,QAAQ,YAAY,cAAc,MAAM,CAAC;AAE5HF,MAAA,SAAA,QAAA,UAAyB,SAAU,QAAQ,MAAM;AAC/C,MAAI,OAAO,WAAW,UAAU;AAC9B;AAAA,EACD;AAED,QAAM,MAAM,SAAS,KAAK,UAAU,QAAQ,CAAA,CAAE;AAE9C,MAAI,CAAC,MAAM,IAAI,GAAG,GAAG;AACnB,UAAM,IAAI,KAAK,QAAQ,QAAQ,IAAI,CAAC;AAAA,EACrC;AAED,SAAO,MAAM,IAAI,GAAG;AACtB;AAEA,SAAS,QAAS,QAAQ,MAAM;AAC9B,MAAI,CAAC,QAAQ;AACX;AAAA,EACD;AAED,QAAMG,OAAM,kBAAkB,MAAM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AAED,QAAM,eAAe,WAAW,MAAM;AACtC,MAAI;AACF,aAAS,IAAI,IAAI,IAAI,YAAY;AAAA,EACrC,SAAW,KAAK;AAAA,EAAE;AAEhB,SAAO;AACT;;;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as hostedGitInfo } from "../../../../_virtual/
|
|
1
|
+
import { __module as hostedGitInfo } from "../../../../_virtual/index19.js";
|
|
2
2
|
import require$$0 from "url";
|
|
3
3
|
import { g as gitHostInfo } from "./git-host-info.js";
|
|
4
4
|
import { g as gitHost } from "./git-host.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/read-pkg/node_modules/hosted-git-info/index.js"],"sourcesContent":["'use strict'\nconst url = require('url')\nconst gitHosts = require('./git-host-info.js')\nconst GitHost = module.exports = require('./git-host.js')\nconst LRU = require('lru-cache')\nconst cache = new LRU({ max: 1000 })\n\nconst protocolToRepresentationMap = {\n 'git+ssh:': 'sshurl',\n 'git+https:': 'https',\n 'ssh:': 'sshurl',\n 'git:': 'git'\n}\n\nfunction protocolToRepresentation (protocol) {\n return protocolToRepresentationMap[protocol] || protocol.slice(0, -1)\n}\n\nconst authProtocols = {\n 'git:': true,\n 'https:': true,\n 'git+https:': true,\n 'http:': true,\n 'git+http:': true\n}\n\nconst knownProtocols = Object.keys(gitHosts.byShortcut).concat(['http:', 'https:', 'git:', 'git+ssh:', 'git+https:', 'ssh:'])\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\nfunction fromUrl (giturl, opts) {\n if (!giturl) {\n return\n }\n\n const url = isGitHubShorthand(giturl) ? 'github:' + giturl : correctProtocol(giturl)\n const parsed = parseGitUrl(url)\n if (!parsed) {\n return parsed\n }\n\n const gitHostShortcut = gitHosts.byShortcut[parsed.protocol]\n const gitHostDomain = gitHosts.byDomain[parsed.hostname.startsWith('www.') ? parsed.hostname.slice(4) : 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 (authProtocols[parsed.protocol] && (parsed.username || parsed.password)) {\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 = protocolToRepresentation(parsed.protocol)\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// accepts input like git:github.com:user/repo and inserts the // after the first :\nconst correctProtocol = (arg) => {\n const firstColon = arg.indexOf(':')\n const proto = arg.slice(0, firstColon + 1)\n if (knownProtocols.includes(proto)) {\n return arg\n }\n\n const firstAt = arg.indexOf('@')\n if (firstAt > -1) {\n if (firstAt > firstColon) {\n return `git+ssh://${arg}`\n } else {\n return arg\n }\n }\n\n const doubleSlash = arg.indexOf('//')\n if (doubleSlash === firstColon + 1) {\n return arg\n }\n\n return arg.slice(0, firstColon + 1) + '//' + arg.slice(firstColon + 1)\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 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 && doesNotStartWithDot && atOnlyAfterHash && colonOnlyAfterHash && secondSlashOnlyAfterHash\n}\n\n// attempt to correct an scp style url so that it will parse with `new URL()`\nconst correctUrl = (giturl) => {\n const firstAt = giturl.indexOf('@')\n const lastHash = giturl.lastIndexOf('#')\n let firstColon = giturl.indexOf(':')\n let lastColon = giturl.lastIndexOf(':', lastHash > -1 ? lastHash : Infinity)\n\n let corrected\n if (lastColon > firstAt) {\n // the last : comes after the first @ (or there is no @)\n // like it would in:\n // proto://hostname.com:user/repo\n // username@hostname.com:user/repo\n // :password@hostname.com:user/repo\n // username:password@hostname.com:user/repo\n // proto://username@hostname.com:user/repo\n // proto://:password@hostname.com:user/repo\n // proto://username:password@hostname.com:user/repo\n // then we replace the last : with a / to create a valid path\n corrected = giturl.slice(0, lastColon) + '/' + giturl.slice(lastColon + 1)\n // // and we find our new : positions\n firstColon = corrected.indexOf(':')\n lastColon = corrected.lastIndexOf(':')\n }\n\n if (firstColon === -1 && giturl.indexOf('//') === -1) {\n // we have no : at all\n // as it would be in:\n // username@hostname.com/user/repo\n // then we prepend a protocol\n corrected = `git+ssh://${corrected}`\n }\n\n return corrected\n}\n\n// try to parse the url as its given to us, if that throws\n// then we try to clean the url and parse that result instead\n// THIS FUNCTION SHOULD NEVER THROW\nconst parseGitUrl = (giturl) => {\n let result\n try {\n result = new url.URL(giturl)\n } catch (err) {}\n\n if (result) {\n return result\n }\n\n const correctedUrl = correctUrl(giturl)\n try {\n result = new url.URL(correctedUrl)\n } catch (err) {}\n\n return result\n}\n"],"names":["require$$1","hostedGitInfoModule","require$$2","require$$3","url","gitHostInfo"],"mappings":";;;;;AACA,MAAM,MAAM;AACZ,MAAM,WAAWA;AACjB,MAAM,UAAUC,cAAc,UAAGC;AACjC,MAAM,MAAMC;AACZ,MAAM,QAAQ,IAAI,IAAI,EAAE,KAAK,IAAI,CAAE;AAEnC,MAAM,8BAA8B;AAAA,EAClC,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,QAAQ;AAAA,EACR,QAAQ;AACV;AAEA,SAAS,yBAA0B,UAAU;AAC3C,SAAO,4BAA4B,QAAQ,KAAK,SAAS,MAAM,GAAG,EAAE;AACtE;AAEA,MAAM,gBAAgB;AAAA,EACpB,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,cAAc;AAAA,EACd,SAA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,YAAY,KAAK,WAAW,KAAK,WAAW,QAAQ;AAE3E,MAAI;AACJ,MAAI,YAAY,SAAS;AAWvB,gBAAY,OAAO,MAAM,GAAG,SAAS,IAAI,MAAM,OAAO,MAAM,YAAY,CAAC;AAEzE,iBAAa,UAAU,QAAQ,GAAG;AAClC,gBAAY,UAAU,YAAY,GAAG;AAAA,EACtC;AAED,MAAI,eAAe,MAAM,OAAO,QAAQ,IAAI,MAAM,IAAI;AAKpD,gBAAY,aAAa;AAAA,EAC1B;AAED,SAAO;AACT;AAKA,MAAM,cAAc,CAAC,WAAW;AAC9B,MAAI;AACJ,MAAI;AACF,aAAS,IAAI,IAAI,IAAI,MAAM;AAAA,EAC/B,SAAW,KAAP;AAAA,EAAc;AAEhB,MAAI,QAAQ;AACV,WAAO;AAAA,EACR;AAED,QAAM,eAAe,WAAW,MAAM;AACtC,MAAI;AACF,aAAS,IAAI,IAAI,IAAI,YAAY;AAAA,EACrC,SAAW,KAAP;AAAA,EAAc;AAEhB,SAAO;AACT;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/read-pkg/node_modules/hosted-git-info/index.js"],"sourcesContent":["'use strict'\nconst url = require('url')\nconst gitHosts = require('./git-host-info.js')\nconst GitHost = module.exports = require('./git-host.js')\nconst LRU = require('lru-cache')\nconst cache = new LRU({ max: 1000 })\n\nconst protocolToRepresentationMap = {\n 'git+ssh:': 'sshurl',\n 'git+https:': 'https',\n 'ssh:': 'sshurl',\n 'git:': 'git'\n}\n\nfunction protocolToRepresentation (protocol) {\n return protocolToRepresentationMap[protocol] || protocol.slice(0, -1)\n}\n\nconst authProtocols = {\n 'git:': true,\n 'https:': true,\n 'git+https:': true,\n 'http:': true,\n 'git+http:': true\n}\n\nconst knownProtocols = Object.keys(gitHosts.byShortcut).concat(['http:', 'https:', 'git:', 'git+ssh:', 'git+https:', 'ssh:'])\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\nfunction fromUrl (giturl, opts) {\n if (!giturl) {\n return\n }\n\n const url = isGitHubShorthand(giturl) ? 'github:' + giturl : correctProtocol(giturl)\n const parsed = parseGitUrl(url)\n if (!parsed) {\n return parsed\n }\n\n const gitHostShortcut = gitHosts.byShortcut[parsed.protocol]\n const gitHostDomain = gitHosts.byDomain[parsed.hostname.startsWith('www.') ? parsed.hostname.slice(4) : 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 (authProtocols[parsed.protocol] && (parsed.username || parsed.password)) {\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 = protocolToRepresentation(parsed.protocol)\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// accepts input like git:github.com:user/repo and inserts the // after the first :\nconst correctProtocol = (arg) => {\n const firstColon = arg.indexOf(':')\n const proto = arg.slice(0, firstColon + 1)\n if (knownProtocols.includes(proto)) {\n return arg\n }\n\n const firstAt = arg.indexOf('@')\n if (firstAt > -1) {\n if (firstAt > firstColon) {\n return `git+ssh://${arg}`\n } else {\n return arg\n }\n }\n\n const doubleSlash = arg.indexOf('//')\n if (doubleSlash === firstColon + 1) {\n return arg\n }\n\n return arg.slice(0, firstColon + 1) + '//' + arg.slice(firstColon + 1)\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 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 && doesNotStartWithDot && atOnlyAfterHash && colonOnlyAfterHash && secondSlashOnlyAfterHash\n}\n\n// attempt to correct an scp style url so that it will parse with `new URL()`\nconst correctUrl = (giturl) => {\n const firstAt = giturl.indexOf('@')\n const lastHash = giturl.lastIndexOf('#')\n let firstColon = giturl.indexOf(':')\n let lastColon = giturl.lastIndexOf(':', lastHash > -1 ? lastHash : Infinity)\n\n let corrected\n if (lastColon > firstAt) {\n // the last : comes after the first @ (or there is no @)\n // like it would in:\n // proto://hostname.com:user/repo\n // username@hostname.com:user/repo\n // :password@hostname.com:user/repo\n // username:password@hostname.com:user/repo\n // proto://username@hostname.com:user/repo\n // proto://:password@hostname.com:user/repo\n // proto://username:password@hostname.com:user/repo\n // then we replace the last : with a / to create a valid path\n corrected = giturl.slice(0, lastColon) + '/' + giturl.slice(lastColon + 1)\n // // and we find our new : positions\n firstColon = corrected.indexOf(':')\n lastColon = corrected.lastIndexOf(':')\n }\n\n if (firstColon === -1 && giturl.indexOf('//') === -1) {\n // we have no : at all\n // as it would be in:\n // username@hostname.com/user/repo\n // then we prepend a protocol\n corrected = `git+ssh://${corrected}`\n }\n\n return corrected\n}\n\n// try to parse the url as its given to us, if that throws\n// then we try to clean the url and parse that result instead\n// THIS FUNCTION SHOULD NEVER THROW\nconst parseGitUrl = (giturl) => {\n let result\n try {\n result = new url.URL(giturl)\n } catch (err) {}\n\n if (result) {\n return result\n }\n\n const correctedUrl = correctUrl(giturl)\n try {\n result = new url.URL(correctedUrl)\n } catch (err) {}\n\n return result\n}\n"],"names":["require$$1","hostedGitInfoModule","require$$2","require$$3","url","gitHostInfo"],"mappings":";;;;;AACA,MAAM,MAAM;AACZ,MAAM,WAAWA;AACjB,MAAM,UAAUC,cAAc,UAAGC;AACjC,MAAM,MAAMC;AACZ,MAAM,QAAQ,IAAI,IAAI,EAAE,KAAK,IAAI,CAAE;AAEnC,MAAM,8BAA8B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AAC3F,QAAM,sBAAsB,CAAC,IAAI,WAAW,GAAG;AAE/C,SAAO,sBAAsB,YAAY,uBAAuB,uBAAuB,mBAAmB,sBAAsB;AAClI;AAGA,MAAM,aAAa,CAAC,WAAW;AAC7B,QAAM,UAAU,OAAO,QAAQ,GAAG;AAClC,QAAM,WAAW,OAAO,YAAY,GAAG;AACvC,MAAI,aAAa,OAAO,QAAQ,GAAG;AACnC,MAAI,YAAY,OAAO,YAAY,KAAK,WAAW,KAAK,WAAW,QAAQ;AAE3E,MAAI;AACJ,MAAI,YAAY,SAAS;AAWvB,gBAAY,OAAO,MAAM,GAAG,SAAS,IAAI,MAAM,OAAO,MAAM,YAAY,CAAC;AAEzE,iBAAa,UAAU,QAAQ,GAAG;AAClC,gBAAY,UAAU,YAAY,GAAG;AAAA,EACtC;AAED,MAAI,eAAe,MAAM,OAAO,QAAQ,IAAI,MAAM,IAAI;AAKpD,gBAAY,aAAa,SAAS;AAAA,EACnC;AAED,SAAO;AACT;AAKA,MAAM,cAAc,CAAC,WAAW;AAC9B,MAAI;AACJ,MAAI;AACF,aAAS,IAAI,IAAI,IAAI,MAAM;AAAA,EAC/B,SAAW,KAAK;AAAA,EAAE;AAEhB,MAAI,QAAQ;AACV,WAAO;AAAA,EACR;AAED,QAAM,eAAe,WAAW,MAAM;AACtC,MAAI;AACF,aAAS,IAAI,IAAI,IAAI,YAAY;AAAA,EACrC,SAAW,KAAK;AAAA,EAAE;AAEhB,SAAO;AACT;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../../../../node_modules/redent/node_modules/indent-string/index.js"],"sourcesContent":["export default function indentString(string, count = 1, options = {}) {\n\tconst {\n\t\tindent = ' ',\n\t\tincludeEmptyLines = false\n\t} = options;\n\n\tif (typeof string !== 'string') {\n\t\tthrow new TypeError(\n\t\t\t`Expected \\`input\\` to be a \\`string\\`, got \\`${typeof string}\\``\n\t\t);\n\t}\n\n\tif (typeof count !== 'number') {\n\t\tthrow new TypeError(\n\t\t\t`Expected \\`count\\` to be a \\`number\\`, got \\`${typeof count}\\``\n\t\t);\n\t}\n\n\tif (count < 0) {\n\t\tthrow new RangeError(\n\t\t\t`Expected \\`count\\` to be at least 0, got \\`${count}\\``\n\t\t);\n\t}\n\n\tif (typeof indent !== 'string') {\n\t\tthrow new TypeError(\n\t\t\t`Expected \\`options.indent\\` to be a \\`string\\`, got \\`${typeof indent}\\``\n\t\t);\n\t}\n\n\tif (count === 0) {\n\t\treturn string;\n\t}\n\n\tconst regex = includeEmptyLines ? /^/gm : /^(?!\\s*$)/gm;\n\n\treturn string.replace(regex, indent.repeat(count));\n}\n"],"names":[],"mappings":";AAAe,SAAS,aAAa,QAAQ,QAAQ,GAAG,UAAU,CAAA,GAAI;AACrE,QAAM;AAAA,IACL,SAAS;AAAA,IACT,oBAAoB;AAAA,EACpB,IAAG;AAEJ,MAAI,OAAO,WAAW,UAAU;AAC/B,UAAM,IAAI;AAAA,MACT,gDAAgD,OAAO;AAAA,
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../../../node_modules/redent/node_modules/indent-string/index.js"],"sourcesContent":["export default function indentString(string, count = 1, options = {}) {\n\tconst {\n\t\tindent = ' ',\n\t\tincludeEmptyLines = false\n\t} = options;\n\n\tif (typeof string !== 'string') {\n\t\tthrow new TypeError(\n\t\t\t`Expected \\`input\\` to be a \\`string\\`, got \\`${typeof string}\\``\n\t\t);\n\t}\n\n\tif (typeof count !== 'number') {\n\t\tthrow new TypeError(\n\t\t\t`Expected \\`count\\` to be a \\`number\\`, got \\`${typeof count}\\``\n\t\t);\n\t}\n\n\tif (count < 0) {\n\t\tthrow new RangeError(\n\t\t\t`Expected \\`count\\` to be at least 0, got \\`${count}\\``\n\t\t);\n\t}\n\n\tif (typeof indent !== 'string') {\n\t\tthrow new TypeError(\n\t\t\t`Expected \\`options.indent\\` to be a \\`string\\`, got \\`${typeof indent}\\``\n\t\t);\n\t}\n\n\tif (count === 0) {\n\t\treturn string;\n\t}\n\n\tconst regex = includeEmptyLines ? /^/gm : /^(?!\\s*$)/gm;\n\n\treturn string.replace(regex, indent.repeat(count));\n}\n"],"names":[],"mappings":";AAAe,SAAS,aAAa,QAAQ,QAAQ,GAAG,UAAU,CAAA,GAAI;AACrE,QAAM;AAAA,IACL,SAAS;AAAA,IACT,oBAAoB;AAAA,EACpB,IAAG;AAEJ,MAAI,OAAO,WAAW,UAAU;AAC/B,UAAM,IAAI;AAAA,MACT,gDAAgD,OAAO,MAAM;AAAA,IAChE;AAAA,EACE;AAED,MAAI,OAAO,UAAU,UAAU;AAC9B,UAAM,IAAI;AAAA,MACT,gDAAgD,OAAO,KAAK;AAAA,IAC/D;AAAA,EACE;AAED,MAAI,QAAQ,GAAG;AACd,UAAM,IAAI;AAAA,MACT,8CAA8C,KAAK;AAAA,IACtD;AAAA,EACE;AAED,MAAI,OAAO,WAAW,UAAU;AAC/B,UAAM,IAAI;AAAA,MACT,yDAAyD,OAAO,MAAM;AAAA,IACzE;AAAA,EACE;AAED,MAAI,UAAU,GAAG;AAChB,WAAO;AAAA,EACP;AAED,QAAM,QAAQ,oBAAoB,QAAQ;AAE1C,SAAO,OAAO,QAAQ,OAAO,OAAO,OAAO,KAAK,CAAC;AAClD;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/redent/node_modules/indent-string/index.js"],"sourcesContent":["export default function indentString(string, count = 1, options = {}) {\n\tconst {\n\t\tindent = ' ',\n\t\tincludeEmptyLines = false\n\t} = options;\n\n\tif (typeof string !== 'string') {\n\t\tthrow new TypeError(\n\t\t\t`Expected \\`input\\` to be a \\`string\\`, got \\`${typeof string}\\``\n\t\t);\n\t}\n\n\tif (typeof count !== 'number') {\n\t\tthrow new TypeError(\n\t\t\t`Expected \\`count\\` to be a \\`number\\`, got \\`${typeof count}\\``\n\t\t);\n\t}\n\n\tif (count < 0) {\n\t\tthrow new RangeError(\n\t\t\t`Expected \\`count\\` to be at least 0, got \\`${count}\\``\n\t\t);\n\t}\n\n\tif (typeof indent !== 'string') {\n\t\tthrow new TypeError(\n\t\t\t`Expected \\`options.indent\\` to be a \\`string\\`, got \\`${typeof indent}\\``\n\t\t);\n\t}\n\n\tif (count === 0) {\n\t\treturn string;\n\t}\n\n\tconst regex = includeEmptyLines ? /^/gm : /^(?!\\s*$)/gm;\n\n\treturn string.replace(regex, indent.repeat(count));\n}\n"],"names":[],"mappings":"AAAe,SAAS,aAAa,QAAQ,QAAQ,GAAG,UAAU,CAAA,GAAI;AACrE,QAAM;AAAA,IACL,SAAS;AAAA,IACT,oBAAoB;AAAA,EACpB,IAAG;AAEJ,MAAI,OAAO,WAAW,UAAU;AAC/B,UAAM,IAAI;AAAA,MACT,gDAAgD,OAAO;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/redent/node_modules/indent-string/index.js"],"sourcesContent":["export default function indentString(string, count = 1, options = {}) {\n\tconst {\n\t\tindent = ' ',\n\t\tincludeEmptyLines = false\n\t} = options;\n\n\tif (typeof string !== 'string') {\n\t\tthrow new TypeError(\n\t\t\t`Expected \\`input\\` to be a \\`string\\`, got \\`${typeof string}\\``\n\t\t);\n\t}\n\n\tif (typeof count !== 'number') {\n\t\tthrow new TypeError(\n\t\t\t`Expected \\`count\\` to be a \\`number\\`, got \\`${typeof count}\\``\n\t\t);\n\t}\n\n\tif (count < 0) {\n\t\tthrow new RangeError(\n\t\t\t`Expected \\`count\\` to be at least 0, got \\`${count}\\``\n\t\t);\n\t}\n\n\tif (typeof indent !== 'string') {\n\t\tthrow new TypeError(\n\t\t\t`Expected \\`options.indent\\` to be a \\`string\\`, got \\`${typeof indent}\\``\n\t\t);\n\t}\n\n\tif (count === 0) {\n\t\treturn string;\n\t}\n\n\tconst regex = includeEmptyLines ? /^/gm : /^(?!\\s*$)/gm;\n\n\treturn string.replace(regex, indent.repeat(count));\n}\n"],"names":[],"mappings":"AAAe,SAAS,aAAa,QAAQ,QAAQ,GAAG,UAAU,CAAA,GAAI;AACrE,QAAM;AAAA,IACL,SAAS;AAAA,IACT,oBAAoB;AAAA,EACpB,IAAG;AAEJ,MAAI,OAAO,WAAW,UAAU;AAC/B,UAAM,IAAI;AAAA,MACT,gDAAgD,OAAO,MAAM;AAAA,IAChE;AAAA,EACE;AAED,MAAI,OAAO,UAAU,UAAU;AAC9B,UAAM,IAAI;AAAA,MACT,gDAAgD,OAAO,KAAK;AAAA,IAC/D;AAAA,EACE;AAED,MAAI,QAAQ,GAAG;AACd,UAAM,IAAI;AAAA,MACT,8CAA8C,KAAK;AAAA,IACtD;AAAA,EACE;AAED,MAAI,OAAO,WAAW,UAAU;AAC/B,UAAM,IAAI;AAAA,MACT,yDAAyD,OAAO,MAAM;AAAA,IACzE;AAAA,EACE;AAED,MAAI,UAAU,GAAG;AAChB,WAAO;AAAA,EACP;AAED,QAAM,QAAQ,oBAAoB,QAAQ;AAE1C,SAAO,OAAO,QAAQ,OAAO,OAAO,OAAO,KAAK,CAAC;AAClD;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../../../../node_modules/redent/node_modules/strip-indent/index.js"],"sourcesContent":["import minIndent from 'min-indent';\n\nexport default function stripIndent(string) {\n\tconst indent = minIndent(string);\n\n\tif (indent === 0) {\n\t\treturn string;\n\t}\n\n\tconst regex = new RegExp(`^[ \\\\t]{${indent}}`, 'gm');\n\n\treturn string.replace(regex, '');\n}\n"],"names":["minIndent"],"mappings":";;AAEe,SAAS,YAAY,QAAQ;AAC3C,QAAM,SAASA,MAAU,MAAM;AAE/B,MAAI,WAAW,GAAG;AACjB,WAAO;AAAA,EACP;AAED,QAAM,QAAQ,IAAI,OAAO,WAAW,
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../../../node_modules/redent/node_modules/strip-indent/index.js"],"sourcesContent":["import minIndent from 'min-indent';\n\nexport default function stripIndent(string) {\n\tconst indent = minIndent(string);\n\n\tif (indent === 0) {\n\t\treturn string;\n\t}\n\n\tconst regex = new RegExp(`^[ \\\\t]{${indent}}`, 'gm');\n\n\treturn string.replace(regex, '');\n}\n"],"names":["minIndent"],"mappings":";;AAEe,SAAS,YAAY,QAAQ;AAC3C,QAAM,SAASA,MAAU,MAAM;AAE/B,MAAI,WAAW,GAAG;AACjB,WAAO;AAAA,EACP;AAED,QAAM,QAAQ,IAAI,OAAO,WAAW,MAAM,KAAK,IAAI;AAEnD,SAAO,OAAO,QAAQ,OAAO,EAAE;AAChC;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/redent/node_modules/strip-indent/index.js"],"sourcesContent":["import minIndent from 'min-indent';\n\nexport default function stripIndent(string) {\n\tconst indent = minIndent(string);\n\n\tif (indent === 0) {\n\t\treturn string;\n\t}\n\n\tconst regex = new RegExp(`^[ \\\\t]{${indent}}`, 'gm');\n\n\treturn string.replace(regex, '');\n}\n"],"names":[],"mappings":";AAEe,SAAS,YAAY,QAAQ;AAC3C,QAAM,SAAS,UAAU,MAAM;AAE/B,MAAI,WAAW,GAAG;AACjB,WAAO;AAAA,EACP;AAED,QAAM,QAAQ,IAAI,OAAO,WAAW,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/redent/node_modules/strip-indent/index.js"],"sourcesContent":["import minIndent from 'min-indent';\n\nexport default function stripIndent(string) {\n\tconst indent = minIndent(string);\n\n\tif (indent === 0) {\n\t\treturn string;\n\t}\n\n\tconst regex = new RegExp(`^[ \\\\t]{${indent}}`, 'gm');\n\n\treturn string.replace(regex, '');\n}\n"],"names":[],"mappings":";AAEe,SAAS,YAAY,QAAQ;AAC3C,QAAM,SAAS,UAAU,MAAM;AAE/B,MAAI,WAAW,GAAG;AACjB,WAAO;AAAA,EACP;AAED,QAAM,QAAQ,IAAI,OAAO,WAAW,MAAM,KAAK,IAAI;AAEnD,SAAO,OAAO,QAAQ,OAAO,EAAE;AAChC;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../../node_modules/shebang-command/index.js"],"sourcesContent":["'use strict';\nconst shebangRegex = require('shebang-regex');\n\nmodule.exports = (string = '') => {\n\tconst match = string.match(shebangRegex);\n\n\tif (!match) {\n\t\treturn null;\n\t}\n\n\tconst [path, argument] = match[0].replace(/#! ?/, '').split(' ');\n\tconst binary = path.split('/').pop();\n\n\tif (binary === 'env') {\n\t\treturn argument;\n\t}\n\n\treturn argument ? `${binary} ${argument}` : binary;\n};\n"],"names":["require$$0"],"mappings":";;;AACA,MAAM,eAAeA,MAAAA;AAErB,IAAA,iBAAiB,CAAC,SAAS,OAAO;AACjC,QAAM,QAAQ,OAAO,MAAM,YAAY;AAEvC,MAAI,CAAC,OAAO;AACX,WAAO;AAAA,EACP;AAED,QAAM,CAAC,MAAM,QAAQ,IAAI,MAAM,CAAC,EAAE,QAAQ,QAAQ,EAAE,EAAE,MAAM,GAAG;AAC/D,QAAM,SAAS,KAAK,MAAM,GAAG,EAAE,IAAG;AAElC,MAAI,WAAW,OAAO;AACrB,WAAO;AAAA,EACP;AAED,SAAO,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../node_modules/shebang-command/index.js"],"sourcesContent":["'use strict';\nconst shebangRegex = require('shebang-regex');\n\nmodule.exports = (string = '') => {\n\tconst match = string.match(shebangRegex);\n\n\tif (!match) {\n\t\treturn null;\n\t}\n\n\tconst [path, argument] = match[0].replace(/#! ?/, '').split(' ');\n\tconst binary = path.split('/').pop();\n\n\tif (binary === 'env') {\n\t\treturn argument;\n\t}\n\n\treturn argument ? `${binary} ${argument}` : binary;\n};\n"],"names":["require$$0"],"mappings":";;;AACA,MAAM,eAAeA,MAAAA;AAErB,IAAA,iBAAiB,CAAC,SAAS,OAAO;AACjC,QAAM,QAAQ,OAAO,MAAM,YAAY;AAEvC,MAAI,CAAC,OAAO;AACX,WAAO;AAAA,EACP;AAED,QAAM,CAAC,MAAM,QAAQ,IAAI,MAAM,CAAC,EAAE,QAAQ,QAAQ,EAAE,EAAE,MAAM,GAAG;AAC/D,QAAM,SAAS,KAAK,MAAM,GAAG,EAAE,IAAG;AAElC,MAAI,WAAW,OAAO;AACrB,WAAO;AAAA,EACP;AAED,SAAO,WAAW,GAAG,MAAM,IAAI,QAAQ,KAAK;AAC7C;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../node_modules/shebang-command/index.js"],"sourcesContent":["'use strict';\nconst shebangRegex = require('shebang-regex');\n\nmodule.exports = (string = '') => {\n\tconst match = string.match(shebangRegex);\n\n\tif (!match) {\n\t\treturn null;\n\t}\n\n\tconst [path, argument] = match[0].replace(/#! ?/, '').split(' ');\n\tconst binary = path.split('/').pop();\n\n\tif (binary === 'env') {\n\t\treturn argument;\n\t}\n\n\treturn argument ? `${binary} ${argument}` : binary;\n};\n"],"names":["require$$0"],"mappings":";AACA,MAAM,eAAeA;AAErB,IAAA,iBAAiB,CAAC,SAAS,OAAO;AACjC,QAAM,QAAQ,OAAO,MAAM,YAAY;AAEvC,MAAI,CAAC,OAAO;AACX,WAAO;AAAA,EACP;AAED,QAAM,CAAC,MAAM,QAAQ,IAAI,MAAM,CAAC,EAAE,QAAQ,QAAQ,EAAE,EAAE,MAAM,GAAG;AAC/D,QAAM,SAAS,KAAK,MAAM,GAAG,EAAE,IAAG;AAElC,MAAI,WAAW,OAAO;AACrB,WAAO;AAAA,EACP;AAED,SAAO,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/shebang-command/index.js"],"sourcesContent":["'use strict';\nconst shebangRegex = require('shebang-regex');\n\nmodule.exports = (string = '') => {\n\tconst match = string.match(shebangRegex);\n\n\tif (!match) {\n\t\treturn null;\n\t}\n\n\tconst [path, argument] = match[0].replace(/#! ?/, '').split(' ');\n\tconst binary = path.split('/').pop();\n\n\tif (binary === 'env') {\n\t\treturn argument;\n\t}\n\n\treturn argument ? `${binary} ${argument}` : binary;\n};\n"],"names":["require$$0"],"mappings":";AACA,MAAM,eAAeA;AAErB,IAAA,iBAAiB,CAAC,SAAS,OAAO;AACjC,QAAM,QAAQ,OAAO,MAAM,YAAY;AAEvC,MAAI,CAAC,OAAO;AACX,WAAO;AAAA,EACP;AAED,QAAM,CAAC,MAAM,QAAQ,IAAI,MAAM,CAAC,EAAE,QAAQ,QAAQ,EAAE,EAAE,MAAM,GAAG;AAC/D,QAAM,SAAS,KAAK,MAAM,GAAG,EAAE,IAAG;AAElC,MAAI,WAAW,OAAO;AACrB,WAAO;AAAA,EACP;AAED,SAAO,WAAW,GAAG,MAAM,IAAI,QAAQ,KAAK;AAC7C;","x_google_ignoreList":[0]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const _commonjsHelpers = require("../../_virtual/_commonjsHelpers.cjs");
|
|
3
|
-
const index = require("../../_virtual/
|
|
3
|
+
const index = require("../../_virtual/index8.cjs");
|
|
4
4
|
const require$$0 = require("assert");
|
|
5
5
|
const signals$1 = require("./signals.cjs");
|
|
6
6
|
const require$$2 = require("events");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../../node_modules/signal-exit/index.js"],"sourcesContent":["// Note: since nyc uses this module to output coverage, any lines\n// that are in the direct sync flow of nyc's outputCoverage are\n// ignored, since we can never get coverage for them.\n// grab a reference to node's real process object right away\nvar process = global.process\n\nconst processOk = function (process) {\n return process &&\n typeof process === 'object' &&\n typeof process.removeListener === 'function' &&\n typeof process.emit === 'function' &&\n typeof process.reallyExit === 'function' &&\n typeof process.listeners === 'function' &&\n typeof process.kill === 'function' &&\n typeof process.pid === 'number' &&\n typeof process.on === 'function'\n}\n\n// some kind of non-node environment, just no-op\n/* istanbul ignore if */\nif (!processOk(process)) {\n module.exports = function () {\n return function () {}\n }\n} else {\n var assert = require('assert')\n var signals = require('./signals.js')\n var isWin = /^win/i.test(process.platform)\n\n var EE = require('events')\n /* istanbul ignore if */\n if (typeof EE !== 'function') {\n EE = EE.EventEmitter\n }\n\n var emitter\n if (process.__signal_exit_emitter__) {\n emitter = process.__signal_exit_emitter__\n } else {\n emitter = process.__signal_exit_emitter__ = new EE()\n emitter.count = 0\n emitter.emitted = {}\n }\n\n // Because this emitter is a global, we have to check to see if a\n // previous version of this library failed to enable infinite listeners.\n // I know what you're about to say. But literally everything about\n // signal-exit is a compromise with evil. Get used to it.\n if (!emitter.infinite) {\n emitter.setMaxListeners(Infinity)\n emitter.infinite = true\n }\n\n module.exports = function (cb, opts) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return function () {}\n }\n assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')\n\n if (loaded === false) {\n load()\n }\n\n var ev = 'exit'\n if (opts && opts.alwaysLast) {\n ev = 'afterexit'\n }\n\n var remove = function () {\n emitter.removeListener(ev, cb)\n if (emitter.listeners('exit').length === 0 &&\n emitter.listeners('afterexit').length === 0) {\n unload()\n }\n }\n emitter.on(ev, cb)\n\n return remove\n }\n\n var unload = function unload () {\n if (!loaded || !processOk(global.process)) {\n return\n }\n loaded = false\n\n signals.forEach(function (sig) {\n try {\n process.removeListener(sig, sigListeners[sig])\n } catch (er) {}\n })\n process.emit = originalProcessEmit\n process.reallyExit = originalProcessReallyExit\n emitter.count -= 1\n }\n module.exports.unload = unload\n\n var emit = function emit (event, code, signal) {\n /* istanbul ignore if */\n if (emitter.emitted[event]) {\n return\n }\n emitter.emitted[event] = true\n emitter.emit(event, code, signal)\n }\n\n // { <signal>: <listener fn>, ... }\n var sigListeners = {}\n signals.forEach(function (sig) {\n sigListeners[sig] = function listener () {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n // If there are no other listeners, an exit is coming!\n // Simplest way: remove us and then re-send the signal.\n // We know that this will kill the process, so we can\n // safely emit now.\n var listeners = process.listeners(sig)\n if (listeners.length === emitter.count) {\n unload()\n emit('exit', null, sig)\n /* istanbul ignore next */\n emit('afterexit', null, sig)\n /* istanbul ignore next */\n if (isWin && sig === 'SIGHUP') {\n // \"SIGHUP\" throws an `ENOSYS` error on Windows,\n // so use a supported signal instead\n sig = 'SIGINT'\n }\n /* istanbul ignore next */\n process.kill(process.pid, sig)\n }\n }\n })\n\n module.exports.signals = function () {\n return signals\n }\n\n var loaded = false\n\n var load = function load () {\n if (loaded || !processOk(global.process)) {\n return\n }\n loaded = true\n\n // This is the number of onSignalExit's that are in play.\n // It's important so that we can count the correct number of\n // listeners on signals, and don't wait for the other one to\n // handle it instead of us.\n emitter.count += 1\n\n signals = signals.filter(function (sig) {\n try {\n process.on(sig, sigListeners[sig])\n return true\n } catch (er) {\n return false\n }\n })\n\n process.emit = processEmit\n process.reallyExit = processReallyExit\n }\n module.exports.load = load\n\n var originalProcessReallyExit = process.reallyExit\n var processReallyExit = function processReallyExit (code) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n process.exitCode = code || /* istanbul ignore next */ 0\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n originalProcessReallyExit.call(process, process.exitCode)\n }\n\n var originalProcessEmit = process.emit\n var processEmit = function processEmit (ev, arg) {\n if (ev === 'exit' && processOk(global.process)) {\n /* istanbul ignore else */\n if (arg !== undefined) {\n process.exitCode = arg\n }\n var ret = originalProcessEmit.apply(this, arguments)\n /* istanbul ignore next */\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n return ret\n } else {\n return originalProcessEmit.apply(this, arguments)\n }\n }\n}\n"],"names":["global","process","signalExitModule","require$$1","unload","emit","load","processReallyExit","processEmit"],"mappings":";;;;;;AAIA,IAAI,UAAUA,iBAAM,eAAC;AAErB,MAA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,WAAW,GAAG;AAC/C,eAAQ;AAAA,MACT;AAAA,IACF;AACD,YAAQ,GAAG,IAAI,EAAE;AAEjB,WAAO;AAAA,EACR;AAED,MAAI,SAAS,SAASI,UAAU;AAC9B,QAAI,CAAC,UAAU,CAAC,UAAUJ,iBAAM,eAAC,OAAO,GAAG;AACzC;AAAA,IACD;AACD,aAAS;AAET,YAAQ,QAAQ,SAAU,KAAK;AAC7B,UAAI;AACF,gBAAQ,eAAe,KAAK,aAAa,GAAG,CAAC;AAAA,MACrD,SAAe,
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../node_modules/signal-exit/index.js"],"sourcesContent":["// Note: since nyc uses this module to output coverage, any lines\n// that are in the direct sync flow of nyc's outputCoverage are\n// ignored, since we can never get coverage for them.\n// grab a reference to node's real process object right away\nvar process = global.process\n\nconst processOk = function (process) {\n return process &&\n typeof process === 'object' &&\n typeof process.removeListener === 'function' &&\n typeof process.emit === 'function' &&\n typeof process.reallyExit === 'function' &&\n typeof process.listeners === 'function' &&\n typeof process.kill === 'function' &&\n typeof process.pid === 'number' &&\n typeof process.on === 'function'\n}\n\n// some kind of non-node environment, just no-op\n/* istanbul ignore if */\nif (!processOk(process)) {\n module.exports = function () {\n return function () {}\n }\n} else {\n var assert = require('assert')\n var signals = require('./signals.js')\n var isWin = /^win/i.test(process.platform)\n\n var EE = require('events')\n /* istanbul ignore if */\n if (typeof EE !== 'function') {\n EE = EE.EventEmitter\n }\n\n var emitter\n if (process.__signal_exit_emitter__) {\n emitter = process.__signal_exit_emitter__\n } else {\n emitter = process.__signal_exit_emitter__ = new EE()\n emitter.count = 0\n emitter.emitted = {}\n }\n\n // Because this emitter is a global, we have to check to see if a\n // previous version of this library failed to enable infinite listeners.\n // I know what you're about to say. But literally everything about\n // signal-exit is a compromise with evil. Get used to it.\n if (!emitter.infinite) {\n emitter.setMaxListeners(Infinity)\n emitter.infinite = true\n }\n\n module.exports = function (cb, opts) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return function () {}\n }\n assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')\n\n if (loaded === false) {\n load()\n }\n\n var ev = 'exit'\n if (opts && opts.alwaysLast) {\n ev = 'afterexit'\n }\n\n var remove = function () {\n emitter.removeListener(ev, cb)\n if (emitter.listeners('exit').length === 0 &&\n emitter.listeners('afterexit').length === 0) {\n unload()\n }\n }\n emitter.on(ev, cb)\n\n return remove\n }\n\n var unload = function unload () {\n if (!loaded || !processOk(global.process)) {\n return\n }\n loaded = false\n\n signals.forEach(function (sig) {\n try {\n process.removeListener(sig, sigListeners[sig])\n } catch (er) {}\n })\n process.emit = originalProcessEmit\n process.reallyExit = originalProcessReallyExit\n emitter.count -= 1\n }\n module.exports.unload = unload\n\n var emit = function emit (event, code, signal) {\n /* istanbul ignore if */\n if (emitter.emitted[event]) {\n return\n }\n emitter.emitted[event] = true\n emitter.emit(event, code, signal)\n }\n\n // { <signal>: <listener fn>, ... }\n var sigListeners = {}\n signals.forEach(function (sig) {\n sigListeners[sig] = function listener () {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n // If there are no other listeners, an exit is coming!\n // Simplest way: remove us and then re-send the signal.\n // We know that this will kill the process, so we can\n // safely emit now.\n var listeners = process.listeners(sig)\n if (listeners.length === emitter.count) {\n unload()\n emit('exit', null, sig)\n /* istanbul ignore next */\n emit('afterexit', null, sig)\n /* istanbul ignore next */\n if (isWin && sig === 'SIGHUP') {\n // \"SIGHUP\" throws an `ENOSYS` error on Windows,\n // so use a supported signal instead\n sig = 'SIGINT'\n }\n /* istanbul ignore next */\n process.kill(process.pid, sig)\n }\n }\n })\n\n module.exports.signals = function () {\n return signals\n }\n\n var loaded = false\n\n var load = function load () {\n if (loaded || !processOk(global.process)) {\n return\n }\n loaded = true\n\n // This is the number of onSignalExit's that are in play.\n // It's important so that we can count the correct number of\n // listeners on signals, and don't wait for the other one to\n // handle it instead of us.\n emitter.count += 1\n\n signals = signals.filter(function (sig) {\n try {\n process.on(sig, sigListeners[sig])\n return true\n } catch (er) {\n return false\n }\n })\n\n process.emit = processEmit\n process.reallyExit = processReallyExit\n }\n module.exports.load = load\n\n var originalProcessReallyExit = process.reallyExit\n var processReallyExit = function processReallyExit (code) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n process.exitCode = code || /* istanbul ignore next */ 0\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n originalProcessReallyExit.call(process, process.exitCode)\n }\n\n var originalProcessEmit = process.emit\n var processEmit = function processEmit (ev, arg) {\n if (ev === 'exit' && processOk(global.process)) {\n /* istanbul ignore else */\n if (arg !== undefined) {\n process.exitCode = arg\n }\n var ret = originalProcessEmit.apply(this, arguments)\n /* istanbul ignore next */\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n return ret\n } else {\n return originalProcessEmit.apply(this, arguments)\n }\n }\n}\n"],"names":["global","process","signalExitModule","require$$1","unload","emit","load","processReallyExit","processEmit"],"mappings":";;;;;;AAIA,IAAI,UAAUA,iBAAM,eAAC;AAErB,MAAM,YAAY,SAAUC,UAAS;AACnC,SAAOA,YACL,OAAOA,aAAY,YACnB,OAAOA,SAAQ,mBAAmB,cAClC,OAAOA,SAAQ,SAAS,cACxB,OAAOA,SAAQ,eAAe,cAC9B,OAAOA,SAAQ,cAAc,cAC7B,OAAOA,SAAQ,SAAS,cACxB,OAAOA,SAAQ,QAAQ,YACvB,OAAOA,SAAQ,OAAO;AAC1B;AAIA,IAAI,CAAC,UAAU,OAAO,GAAG;AACvBC,QAAA,SAAA,UAAiB,WAAY;AAC3B,WAAO,WAAY;AAAA,IAAE;AAAA,EACtB;AACH,OAAO;AACL,MAAI,SAAS;AACb,MAAI,UAAUC,UAAAA,UAAuB;AACrC,MAAI,QAAQ,QAAQ,KAAK,QAAQ,QAAQ;AAEzC,MAAI,KAAK;AAET,MAAI,OAAO,O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U,IAAI;AAEnC,SAAK,aAAa,QAAQ,UAAU,IAAI;AAExC,8BAA0B,KAAK,SAAS,QAAQ,QAAQ;AAAA,EACzD;AAED,MAAI,sBAAsB,QAAQ;AAClC,MAAI,cAAc,SAASQ,aAAa,IAAI,KAAK;AAC/C,QAAI,OAAO,UAAU,UAAUR,iBAAM,eAAC,OAAO,GAAG;AAE9C,UAAI,QAAQ,QAAW;AACrB,gBAAQ,WAAW;AAAA,MACpB;AACD,UAAI,MAAM,oBAAoB,MAAM,MAAM,SAAS;AAEnD,WAAK,QAAQ,QAAQ,UAAU,IAAI;AAEnC,WAAK,aAAa,QAAQ,UAAU,IAAI;AAExC,aAAO;AAAA,IACb,OAAW;AACL,aAAO,oBAAoB,MAAM,MAAM,SAAS;AAAA,IACjD;AAAA,EACF;AACH;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { commonjsGlobal, getDefaultExportFromCjs } from "../../_virtual/_commonjsHelpers.js";
|
|
2
|
-
import { __module as signalExit } from "../../_virtual/
|
|
2
|
+
import { __module as signalExit } from "../../_virtual/index8.js";
|
|
3
3
|
import require$$0 from "assert";
|
|
4
4
|
import { __require as requireSignals } from "./signals.js";
|
|
5
5
|
import require$$2 from "events";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../node_modules/signal-exit/index.js"],"sourcesContent":["// Note: since nyc uses this module to output coverage, any lines\n// that are in the direct sync flow of nyc's outputCoverage are\n// ignored, since we can never get coverage for them.\n// grab a reference to node's real process object right away\nvar process = global.process\n\nconst processOk = function (process) {\n return process &&\n typeof process === 'object' &&\n typeof process.removeListener === 'function' &&\n typeof process.emit === 'function' &&\n typeof process.reallyExit === 'function' &&\n typeof process.listeners === 'function' &&\n typeof process.kill === 'function' &&\n typeof process.pid === 'number' &&\n typeof process.on === 'function'\n}\n\n// some kind of non-node environment, just no-op\n/* istanbul ignore if */\nif (!processOk(process)) {\n module.exports = function () {\n return function () {}\n }\n} else {\n var assert = require('assert')\n var signals = require('./signals.js')\n var isWin = /^win/i.test(process.platform)\n\n var EE = require('events')\n /* istanbul ignore if */\n if (typeof EE !== 'function') {\n EE = EE.EventEmitter\n }\n\n var emitter\n if (process.__signal_exit_emitter__) {\n emitter = process.__signal_exit_emitter__\n } else {\n emitter = process.__signal_exit_emitter__ = new EE()\n emitter.count = 0\n emitter.emitted = {}\n }\n\n // Because this emitter is a global, we have to check to see if a\n // previous version of this library failed to enable infinite listeners.\n // I know what you're about to say. But literally everything about\n // signal-exit is a compromise with evil. Get used to it.\n if (!emitter.infinite) {\n emitter.setMaxListeners(Infinity)\n emitter.infinite = true\n }\n\n module.exports = function (cb, opts) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return function () {}\n }\n assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')\n\n if (loaded === false) {\n load()\n }\n\n var ev = 'exit'\n if (opts && opts.alwaysLast) {\n ev = 'afterexit'\n }\n\n var remove = function () {\n emitter.removeListener(ev, cb)\n if (emitter.listeners('exit').length === 0 &&\n emitter.listeners('afterexit').length === 0) {\n unload()\n }\n }\n emitter.on(ev, cb)\n\n return remove\n }\n\n var unload = function unload () {\n if (!loaded || !processOk(global.process)) {\n return\n }\n loaded = false\n\n signals.forEach(function (sig) {\n try {\n process.removeListener(sig, sigListeners[sig])\n } catch (er) {}\n })\n process.emit = originalProcessEmit\n process.reallyExit = originalProcessReallyExit\n emitter.count -= 1\n }\n module.exports.unload = unload\n\n var emit = function emit (event, code, signal) {\n /* istanbul ignore if */\n if (emitter.emitted[event]) {\n return\n }\n emitter.emitted[event] = true\n emitter.emit(event, code, signal)\n }\n\n // { <signal>: <listener fn>, ... }\n var sigListeners = {}\n signals.forEach(function (sig) {\n sigListeners[sig] = function listener () {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n // If there are no other listeners, an exit is coming!\n // Simplest way: remove us and then re-send the signal.\n // We know that this will kill the process, so we can\n // safely emit now.\n var listeners = process.listeners(sig)\n if (listeners.length === emitter.count) {\n unload()\n emit('exit', null, sig)\n /* istanbul ignore next */\n emit('afterexit', null, sig)\n /* istanbul ignore next */\n if (isWin && sig === 'SIGHUP') {\n // \"SIGHUP\" throws an `ENOSYS` error on Windows,\n // so use a supported signal instead\n sig = 'SIGINT'\n }\n /* istanbul ignore next */\n process.kill(process.pid, sig)\n }\n }\n })\n\n module.exports.signals = function () {\n return signals\n }\n\n var loaded = false\n\n var load = function load () {\n if (loaded || !processOk(global.process)) {\n return\n }\n loaded = true\n\n // This is the number of onSignalExit's that are in play.\n // It's important so that we can count the correct number of\n // listeners on signals, and don't wait for the other one to\n // handle it instead of us.\n emitter.count += 1\n\n signals = signals.filter(function (sig) {\n try {\n process.on(sig, sigListeners[sig])\n return true\n } catch (er) {\n return false\n }\n })\n\n process.emit = processEmit\n process.reallyExit = processReallyExit\n }\n module.exports.load = load\n\n var originalProcessReallyExit = process.reallyExit\n var processReallyExit = function processReallyExit (code) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n process.exitCode = code || /* istanbul ignore next */ 0\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n originalProcessReallyExit.call(process, process.exitCode)\n }\n\n var originalProcessEmit = process.emit\n var processEmit = function processEmit (ev, arg) {\n if (ev === 'exit' && processOk(global.process)) {\n /* istanbul ignore else */\n if (arg !== undefined) {\n process.exitCode = arg\n }\n var ret = originalProcessEmit.apply(this, arguments)\n /* istanbul ignore next */\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n return ret\n } else {\n return originalProcessEmit.apply(this, arguments)\n }\n }\n}\n"],"names":["global","process","signalExitModule","require$$1","unload","emit","load","processReallyExit","processEmit"],"mappings":";;;;;AAIA,IAAI,UAAUA,eAAO;AAErB,MAAM,YAAY,SAAUC,UAAS;AACnC,SAAOA,YACL,OAAO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,IAAI,EAAE;AAEjB,WAAO;AAAA,EACR;AAED,MAAI,SAAS,SAASI,UAAU;AAC9B,QAAI,CAAC,UAAU,CAAC,UAAUJ,eAAO,OAAO,GAAG;AACzC;AAAA,IACD;AACD,aAAS;AAET,YAAQ,QAAQ,SAAU,KAAK;AAC7B,UAAI;AACF,gBAAQ,eAAe,KAAK,aAAa,GAAG,CAAC;AAAA,MACrD,SAAe,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/signal-exit/index.js"],"sourcesContent":["// Note: since nyc uses this module to output coverage, any lines\n// that are in the direct sync flow of nyc's outputCoverage are\n// ignored, since we can never get coverage for them.\n// grab a reference to node's real process object right away\nvar process = global.process\n\nconst processOk = function (process) {\n return process &&\n typeof process === 'object' &&\n typeof process.removeListener === 'function' &&\n typeof process.emit === 'function' &&\n typeof process.reallyExit === 'function' &&\n typeof process.listeners === 'function' &&\n typeof process.kill === 'function' &&\n typeof process.pid === 'number' &&\n typeof process.on === 'function'\n}\n\n// some kind of non-node environment, just no-op\n/* istanbul ignore if */\nif (!processOk(process)) {\n module.exports = function () {\n return function () {}\n }\n} else {\n var assert = require('assert')\n var signals = require('./signals.js')\n var isWin = /^win/i.test(process.platform)\n\n var EE = require('events')\n /* istanbul ignore if */\n if (typeof EE !== 'function') {\n EE = EE.EventEmitter\n }\n\n var emitter\n if (process.__signal_exit_emitter__) {\n emitter = process.__signal_exit_emitter__\n } else {\n emitter = process.__signal_exit_emitter__ = new EE()\n emitter.count = 0\n emitter.emitted = {}\n }\n\n // Because this emitter is a global, we have to check to see if a\n // previous version of this library failed to enable infinite listeners.\n // I know what you're about to say. But literally everything about\n // signal-exit is a compromise with evil. Get used to it.\n if (!emitter.infinite) {\n emitter.setMaxListeners(Infinity)\n emitter.infinite = true\n }\n\n module.exports = function (cb, opts) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return function () {}\n }\n assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')\n\n if (loaded === false) {\n load()\n }\n\n var ev = 'exit'\n if (opts && opts.alwaysLast) {\n ev = 'afterexit'\n }\n\n var remove = function () {\n emitter.removeListener(ev, cb)\n if (emitter.listeners('exit').length === 0 &&\n emitter.listeners('afterexit').length === 0) {\n unload()\n }\n }\n emitter.on(ev, cb)\n\n return remove\n }\n\n var unload = function unload () {\n if (!loaded || !processOk(global.process)) {\n return\n }\n loaded = false\n\n signals.forEach(function (sig) {\n try {\n process.removeListener(sig, sigListeners[sig])\n } catch (er) {}\n })\n process.emit = originalProcessEmit\n process.reallyExit = originalProcessReallyExit\n emitter.count -= 1\n }\n module.exports.unload = unload\n\n var emit = function emit (event, code, signal) {\n /* istanbul ignore if */\n if (emitter.emitted[event]) {\n return\n }\n emitter.emitted[event] = true\n emitter.emit(event, code, signal)\n }\n\n // { <signal>: <listener fn>, ... }\n var sigListeners = {}\n signals.forEach(function (sig) {\n sigListeners[sig] = function listener () {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n // If there are no other listeners, an exit is coming!\n // Simplest way: remove us and then re-send the signal.\n // We know that this will kill the process, so we can\n // safely emit now.\n var listeners = process.listeners(sig)\n if (listeners.length === emitter.count) {\n unload()\n emit('exit', null, sig)\n /* istanbul ignore next */\n emit('afterexit', null, sig)\n /* istanbul ignore next */\n if (isWin && sig === 'SIGHUP') {\n // \"SIGHUP\" throws an `ENOSYS` error on Windows,\n // so use a supported signal instead\n sig = 'SIGINT'\n }\n /* istanbul ignore next */\n process.kill(process.pid, sig)\n }\n }\n })\n\n module.exports.signals = function () {\n return signals\n }\n\n var loaded = false\n\n var load = function load () {\n if (loaded || !processOk(global.process)) {\n return\n }\n loaded = true\n\n // This is the number of onSignalExit's that are in play.\n // It's important so that we can count the correct number of\n // listeners on signals, and don't wait for the other one to\n // handle it instead of us.\n emitter.count += 1\n\n signals = signals.filter(function (sig) {\n try {\n process.on(sig, sigListeners[sig])\n return true\n } catch (er) {\n return false\n }\n })\n\n process.emit = processEmit\n process.reallyExit = processReallyExit\n }\n module.exports.load = load\n\n var originalProcessReallyExit = process.reallyExit\n var processReallyExit = function processReallyExit (code) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n process.exitCode = code || /* istanbul ignore next */ 0\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n originalProcessReallyExit.call(process, process.exitCode)\n }\n\n var originalProcessEmit = process.emit\n var processEmit = function processEmit (ev, arg) {\n if (ev === 'exit' && processOk(global.process)) {\n /* istanbul ignore else */\n if (arg !== undefined) {\n process.exitCode = arg\n }\n var ret = originalProcessEmit.apply(this, arguments)\n /* istanbul ignore next */\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n return ret\n } else {\n return originalProcessEmit.apply(this, arguments)\n }\n }\n}\n"],"names":["global","process","signalExitModule","require$$1","unload","emit","load","processReallyExit","processEmit"],"mappings":";;;;;AAIA,IAAI,UAAUA,eAAO;AAErB,MAAM,YAAY,SAAUC,UAAS;AACnC,SAAOA,YACL,OAAOA,aAAY,YACnB,OAAOA,SAAQ,mBAAmB,cAClC,OAAOA,SAAQ,SAAS,cACxB,OAAOA,SAAQ,eAAe,cAC9B,OAAOA,SAAQ,cAAc,cAC7B,OAAOA,SAAQ,SAAS,cACxB,OAAOA,SAAQ,QAAQ,YACvB,OAAOA,SAAQ,OAAO;AAC1B;AAIA,IAAI,CAAC,UAAU,OAAO,GAAG;AACvBC,aAAA,UAAiB,WAAY;AAC3B,WAAO,WAAY;AAAA,IAAE;AAAA,EACtB;AACH,OAAO;AACL,MAAI,SAAS;AACb,MAAI,UAAUC,eAAuB;AACrC,MAAI,QAAQ,QAAQ,KAAK,QAAQ,QAAQ;AAEzC,MAAI,KAAK;AAET,MAAI,OAAO,OAAO,YAAY;AAC5B,SAAK,GAAG;AAAA,EACT;AAED,MAAI;AACJ,MAAI,QAAQ,yBAAyB;AACnC,cAAU,QAAQ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