@emulsify/cli 1.8.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -13
- package/dist/index.js +14 -6
- package/dist/node_modules/.package-lock.json +37 -24
- package/dist/node_modules/@types/node/README.md +5 -6
- package/dist/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/dist/node_modules/@types/node/assert.d.ts +955 -45
- package/dist/node_modules/@types/node/async_hooks.d.ts +391 -87
- package/dist/node_modules/@types/node/buffer.d.ts +2210 -17
- package/dist/node_modules/@types/node/child_process.d.ts +1051 -189
- package/dist/node_modules/@types/node/cluster.d.ts +421 -143
- package/dist/node_modules/@types/node/console.d.ts +359 -49
- package/dist/node_modules/@types/node/constants.d.ts +3 -3
- package/dist/node_modules/@types/node/crypto.d.ts +3528 -291
- package/dist/node_modules/@types/node/dgram.d.ts +446 -30
- package/dist/node_modules/@types/node/diagnostics_channel.d.ts +554 -0
- package/dist/node_modules/@types/node/dns/promises.d.ts +476 -0
- package/dist/node_modules/@types/node/dns.d.ts +588 -240
- package/dist/node_modules/@types/node/dom-events.d.ts +124 -0
- package/dist/node_modules/@types/node/domain.d.ts +159 -16
- package/dist/node_modules/@types/node/events.d.ts +890 -41
- package/dist/node_modules/@types/node/fs/promises.d.ts +980 -369
- package/dist/node_modules/@types/node/fs.d.ts +2599 -869
- package/dist/node_modules/@types/node/globals.d.ts +374 -727
- package/dist/node_modules/@types/node/globals.global.d.ts +1 -1
- package/dist/node_modules/@types/node/http.d.ts +1459 -132
- package/dist/node_modules/@types/node/http2.d.ts +1333 -123
- package/dist/node_modules/@types/node/https.d.ts +289 -13
- package/dist/node_modules/@types/node/index.d.ts +37 -46
- package/dist/node_modules/@types/node/inspector.d.ts +367 -671
- package/dist/node_modules/@types/node/module.d.ts +273 -14
- package/dist/node_modules/@types/node/net.d.ts +741 -66
- package/dist/node_modules/@types/node/os.d.ts +275 -23
- package/dist/node_modules/@types/node/package.json +95 -110
- package/dist/node_modules/@types/node/path.d.ts +27 -4
- package/dist/node_modules/@types/node/perf_hooks.d.ts +756 -125
- package/dist/node_modules/@types/node/process.d.ts +1429 -127
- package/dist/node_modules/@types/node/punycode.d.ts +65 -26
- package/dist/node_modules/@types/node/querystring.d.ts +121 -9
- package/dist/node_modules/@types/node/readline/promises.d.ts +150 -0
- package/dist/node_modules/@types/node/readline.d.ts +405 -49
- package/dist/node_modules/@types/node/repl.d.ts +99 -73
- package/dist/node_modules/@types/node/sea.d.ts +153 -0
- package/dist/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/dist/node_modules/@types/node/stream/promises.d.ts +83 -0
- package/dist/node_modules/@types/node/stream/web.d.ts +367 -0
- package/dist/node_modules/@types/node/stream.d.ts +1462 -273
- package/dist/node_modules/@types/node/string_decoder.d.ts +59 -2
- package/dist/node_modules/@types/node/test.d.ts +1719 -0
- package/dist/node_modules/@types/node/timers/promises.d.ts +97 -0
- package/dist/node_modules/@types/node/timers.d.ts +233 -12
- package/dist/node_modules/@types/node/tls.d.ts +540 -189
- package/dist/node_modules/@types/node/trace_events.d.ts +143 -10
- package/dist/node_modules/@types/node/tty.d.ts +156 -17
- package/dist/node_modules/@types/node/url.d.ts +812 -47
- package/dist/node_modules/@types/node/util.d.ts +2159 -145
- package/dist/node_modules/@types/node/v8.d.ts +693 -74
- package/dist/node_modules/@types/node/vm.d.ts +813 -44
- package/dist/node_modules/@types/node/wasi.d.ts +121 -28
- package/dist/node_modules/@types/node/worker_threads.d.ts +514 -61
- package/dist/node_modules/@types/node/zlib.d.ts +220 -54
- package/dist/node_modules/ajv-formats/node_modules/ajv/README.md +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.d.ts +2 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/index.d.ts +3 -3
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.d.ts +10 -10
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js +5 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/code.ts +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/index.ts +2 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/resolve.ts +2 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/uri.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/index.ts +3 -3
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/json-schema.ts +10 -10
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/index.ts +4 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/package.json +5 -5
- package/dist/node_modules/commander/Readme.md +10 -8
- package/dist/node_modules/commander/esm.mjs +1 -1
- package/dist/node_modules/commander/lib/argument.js +9 -5
- package/dist/node_modules/commander/lib/command.js +406 -196
- package/dist/node_modules/commander/lib/error.js +0 -4
- package/dist/node_modules/commander/lib/help.js +101 -38
- package/dist/node_modules/commander/lib/option.js +11 -8
- package/dist/node_modules/commander/lib/suggestSimilar.js +5 -4
- package/dist/node_modules/commander/package.json +23 -19
- package/dist/node_modules/commander/typings/index.d.ts +110 -40
- package/dist/node_modules/debug/package.json +4 -3
- package/dist/node_modules/debug/src/browser.js +3 -1
- package/dist/node_modules/debug/src/node.js +2 -2
- package/dist/node_modules/fast-uri/.gitattributes +2 -0
- package/dist/node_modules/fast-uri/.github/.stale.yml +21 -0
- package/dist/node_modules/fast-uri/.github/dependabot.yml +13 -0
- package/dist/node_modules/fast-uri/.github/tests_checker.yml +8 -0
- package/dist/node_modules/fast-uri/.github/workflows/ci.yml +23 -0
- package/dist/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +20 -0
- package/dist/node_modules/fast-uri/.taprc +3 -0
- package/dist/node_modules/fast-uri/LICENSE +30 -0
- package/dist/node_modules/fast-uri/README.md +125 -0
- package/dist/node_modules/fast-uri/benchmark.js +105 -0
- package/dist/node_modules/fast-uri/index.js +309 -0
- package/dist/node_modules/fast-uri/lib/schemes.js +188 -0
- package/dist/node_modules/fast-uri/lib/scopedChars.js +30 -0
- package/dist/node_modules/fast-uri/lib/utils.js +242 -0
- package/dist/node_modules/fast-uri/package.json +39 -0
- package/dist/node_modules/fast-uri/test/.gitkeep +0 -0
- package/dist/node_modules/fast-uri/test/ajv.test.js +39 -0
- package/dist/node_modules/fast-uri/test/compatibility.test.js +130 -0
- package/dist/node_modules/fast-uri/test/equal.test.js +104 -0
- package/dist/node_modules/fast-uri/test/parse.test.js +319 -0
- package/dist/node_modules/fast-uri/test/resolve.test.js +76 -0
- package/dist/node_modules/fast-uri/test/serialize.test.js +144 -0
- package/dist/node_modules/fast-uri/test/uri-js.test.js +940 -0
- package/dist/node_modules/fast-uri/test/util.test.js +24 -0
- package/dist/node_modules/fast-uri/types/index.d.ts +53 -0
- package/dist/node_modules/fast-uri/types/index.test-d.ts +17 -0
- package/dist/node_modules/fs-extra/README.md +32 -2
- package/dist/node_modules/fs-extra/lib/copy/copy-sync.js +3 -11
- package/dist/node_modules/fs-extra/lib/copy/copy.js +120 -178
- package/dist/node_modules/fs-extra/lib/copy/index.js +1 -1
- package/dist/node_modules/fs-extra/lib/ensure/file.js +31 -34
- package/dist/node_modules/fs-extra/lib/ensure/link.js +27 -27
- package/dist/node_modules/fs-extra/lib/ensure/symlink-paths.js +57 -55
- package/dist/node_modules/fs-extra/lib/ensure/symlink-type.js +16 -13
- package/dist/node_modules/fs-extra/lib/ensure/symlink.js +29 -44
- package/dist/node_modules/fs-extra/lib/esm.mjs +68 -0
- package/dist/node_modules/fs-extra/lib/fs/index.js +29 -17
- package/dist/node_modules/fs-extra/lib/move/index.js +1 -1
- package/dist/node_modules/fs-extra/lib/move/move-sync.js +2 -1
- package/dist/node_modules/fs-extra/lib/move/move.js +38 -54
- package/dist/node_modules/fs-extra/lib/output-file/index.js +10 -19
- package/dist/node_modules/fs-extra/lib/remove/index.js +2 -7
- package/dist/node_modules/fs-extra/lib/util/stat.js +46 -42
- package/dist/node_modules/fs-extra/lib/util/utimes.js +21 -11
- package/dist/node_modules/fs-extra/package.json +11 -7
- package/dist/node_modules/simple-git/dist/cjs/index.js +4958 -0
- package/dist/node_modules/simple-git/dist/cjs/index.js.map +7 -0
- package/dist/node_modules/simple-git/dist/esm/index.js +4813 -0
- package/dist/node_modules/simple-git/dist/esm/index.js.map +7 -0
- package/dist/node_modules/simple-git/dist/esm/package.json +3 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/api.d.ts +3 -13
- package/dist/node_modules/simple-git/dist/src/lib/args/log-format.d.ts +9 -0
- package/dist/node_modules/simple-git/dist/src/lib/args/pathspec.d.ts +3 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/errors/git-error.d.ts +3 -2
- package/dist/node_modules/simple-git/dist/src/lib/errors/git-plugin-error.d.ts +7 -0
- package/dist/node_modules/simple-git/dist/src/lib/git-factory.d.ts +15 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-branch.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-diff-summary.d.ts +3 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-list-log-summary.d.ts +2 -1
- package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-pull.d.ts +2 -0
- package/dist/node_modules/simple-git/dist/src/lib/plugins/abort-plugin.d.ts +3 -0
- package/dist/node_modules/simple-git/dist/src/lib/plugins/block-unsafe-operations-plugin.d.ts +3 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/completion-detection.plugin.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/plugins/custom-binary.plugin.d.ts +3 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/index.d.ts +3 -0
- package/dist/node_modules/simple-git/dist/src/lib/plugins/plugin-store.d.ts +11 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/progress-monitor-plugin.d.ts +1 -1
- package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/simple-git-plugin.d.ts +10 -0
- package/dist/node_modules/simple-git/dist/src/lib/plugins/suffix-paths.plugin.d.ts +2 -0
- package/dist/node_modules/simple-git/dist/src/lib/plugins/timout-plugin.d.ts +3 -0
- package/dist/node_modules/simple-git/dist/src/lib/responses/BranchSummary.d.ts +14 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/FileStatusSummary.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/responses/PullSummary.d.ts +25 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/StatusSummary.d.ts +2 -1
- package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/git-executor-chain.d.ts +1 -1
- package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/git-executor.d.ts +3 -4
- package/dist/node_modules/simple-git/dist/src/lib/tasks/checkout.d.ts +2 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/clone.d.ts +3 -2
- package/dist/node_modules/simple-git/dist/src/lib/tasks/commit.d.ts +4 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/config.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/count-objects.d.ts +12 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/diff-name-status.d.ts +12 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/diff.d.ts +5 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/fetch.d.ts +2 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/first-commit.d.ts +2 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/log.d.ts +3 -3
- package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/remote.d.ts +3 -3
- package/dist/node_modules/simple-git/dist/src/lib/tasks/show.d.ts +2 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/stash-list.d.ts +4 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/task.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/version.d.ts +9 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/types/index.d.ts +64 -5
- package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/exit-codes.d.ts +1 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/line-parser.d.ts +1 -1
- package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/task-parser.d.ts +2 -2
- package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/util.d.ts +3 -1
- package/dist/node_modules/simple-git/{typings → dist/typings}/errors.d.ts +0 -1
- package/dist/node_modules/simple-git/{typings → dist/typings}/index.d.ts +2 -1
- package/dist/node_modules/simple-git/{typings → dist/typings}/response.d.ts +68 -25
- package/dist/node_modules/simple-git/{typings → dist/typings}/simple-git.d.ts +493 -110
- package/dist/node_modules/simple-git/dist/typings/types.d.ts +23 -0
- package/dist/node_modules/simple-git/package.json +32 -35
- package/dist/node_modules/simple-git/promise.js +14 -4
- package/dist/node_modules/simple-git/readme.md +372 -389
- package/dist/node_modules/undici-types/README.md +6 -0
- package/dist/node_modules/undici-types/agent.d.ts +31 -0
- package/dist/node_modules/undici-types/api.d.ts +43 -0
- package/dist/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/dist/node_modules/undici-types/cache.d.ts +36 -0
- package/dist/node_modules/undici-types/client.d.ts +97 -0
- package/dist/node_modules/undici-types/connector.d.ts +34 -0
- package/dist/node_modules/undici-types/content-type.d.ts +21 -0
- package/dist/node_modules/undici-types/cookies.d.ts +28 -0
- package/dist/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/dist/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/dist/node_modules/undici-types/errors.d.ts +128 -0
- package/dist/node_modules/undici-types/fetch.d.ts +209 -0
- package/dist/node_modules/undici-types/file.d.ts +39 -0
- package/dist/node_modules/undici-types/filereader.d.ts +54 -0
- package/dist/node_modules/undici-types/formdata.d.ts +108 -0
- package/dist/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/dist/node_modules/undici-types/global-origin.d.ts +7 -0
- package/dist/node_modules/undici-types/handlers.d.ts +9 -0
- package/dist/node_modules/undici-types/header.d.ts +4 -0
- package/dist/node_modules/undici-types/index.d.ts +63 -0
- package/dist/node_modules/undici-types/interceptors.d.ts +5 -0
- package/dist/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/dist/node_modules/undici-types/mock-client.d.ts +25 -0
- package/dist/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/dist/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/dist/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/dist/node_modules/undici-types/package.json +55 -0
- package/dist/node_modules/undici-types/patch.d.ts +71 -0
- package/dist/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/dist/node_modules/undici-types/pool.d.ts +28 -0
- package/dist/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/dist/node_modules/undici-types/readable.d.ts +61 -0
- package/dist/node_modules/undici-types/webidl.d.ts +220 -0
- package/dist/node_modules/undici-types/websocket.d.ts +131 -0
- package/dist/package-lock.json +10146 -0
- package/dist/package.json +23 -23
- package/dist/schemas/variant.json +5 -21
- package/package.json +24 -24
- package/dist/node_modules/@types/node/ts4.8/assert.d.ts +0 -130
- package/dist/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -237
- package/dist/node_modules/@types/node/ts4.8/buffer.d.ts +0 -89
- package/dist/node_modules/@types/node/ts4.8/child_process.d.ts +0 -682
- package/dist/node_modules/@types/node/ts4.8/cluster.d.ts +0 -300
- package/dist/node_modules/@types/node/ts4.8/console.d.ts +0 -142
- package/dist/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
- package/dist/node_modules/@types/node/ts4.8/crypto.d.ts +0 -1287
- package/dist/node_modules/@types/node/ts4.8/dgram.d.ts +0 -180
- package/dist/node_modules/@types/node/ts4.8/dns.d.ts +0 -516
- package/dist/node_modules/@types/node/ts4.8/domain.d.ts +0 -27
- package/dist/node_modules/@types/node/ts4.8/events.d.ts +0 -82
- package/dist/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -634
- package/dist/node_modules/@types/node/ts4.8/fs.d.ts +0 -2587
- package/dist/node_modules/@types/node/ts4.8/globals.d.ts +0 -763
- package/dist/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/dist/node_modules/@types/node/ts4.8/http.d.ts +0 -580
- package/dist/node_modules/@types/node/ts4.8/http2.d.ts +0 -1208
- package/dist/node_modules/@types/node/ts4.8/https.d.ts +0 -274
- package/dist/node_modules/@types/node/ts4.8/index.d.ts +0 -53
- package/dist/node_modules/@types/node/ts4.8/inspector.d.ts +0 -3050
- package/dist/node_modules/@types/node/ts4.8/module.d.ts +0 -56
- package/dist/node_modules/@types/node/ts4.8/net.d.ts +0 -324
- package/dist/node_modules/@types/node/ts4.8/os.d.ts +0 -243
- package/dist/node_modules/@types/node/ts4.8/path.d.ts +0 -168
- package/dist/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -274
- package/dist/node_modules/@types/node/ts4.8/process.d.ts +0 -452
- package/dist/node_modules/@types/node/ts4.8/punycode.d.ts +0 -78
- package/dist/node_modules/@types/node/ts4.8/querystring.d.ts +0 -41
- package/dist/node_modules/@types/node/ts4.8/readline.d.ts +0 -184
- package/dist/node_modules/@types/node/ts4.8/repl.d.ts +0 -404
- package/dist/node_modules/@types/node/ts4.8/stream.d.ts +0 -518
- package/dist/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -10
- package/dist/node_modules/@types/node/ts4.8/timers.d.ts +0 -19
- package/dist/node_modules/@types/node/ts4.8/tls.d.ts +0 -866
- package/dist/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -64
- package/dist/node_modules/@types/node/ts4.8/tty.d.ts +0 -69
- package/dist/node_modules/@types/node/ts4.8/url.d.ts +0 -187
- package/dist/node_modules/@types/node/ts4.8/util.d.ts +0 -278
- package/dist/node_modules/@types/node/ts4.8/v8.d.ts +0 -189
- package/dist/node_modules/@types/node/ts4.8/vm.d.ts +0 -155
- package/dist/node_modules/@types/node/ts4.8/wasi.d.ts +0 -88
- package/dist/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -241
- package/dist/node_modules/@types/node/ts4.8/zlib.d.ts +0 -364
- package/dist/node_modules/fs-extra/lib/remove/rimraf.js +0 -302
- package/dist/node_modules/simple-git/CHANGELOG.md +0 -529
- package/dist/node_modules/simple-git/LICENSE +0 -20
- package/dist/node_modules/simple-git/promise.d.ts +0 -46
- package/dist/node_modules/simple-git/src/git.js +0 -700
- package/dist/node_modules/simple-git/src/index.js +0 -7
- package/dist/node_modules/simple-git/src/lib/api.js +0 -26
- package/dist/node_modules/simple-git/src/lib/api.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/errors/git-construct-error.js +0 -21
- package/dist/node_modules/simple-git/src/lib/errors/git-construct-error.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/errors/git-error.js +0 -37
- package/dist/node_modules/simple-git/src/lib/errors/git-error.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/errors/git-plugin-error.d.ts +0 -6
- package/dist/node_modules/simple-git/src/lib/errors/git-plugin-error.js +0 -14
- package/dist/node_modules/simple-git/src/lib/errors/git-plugin-error.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/errors/git-response-error.js +0 -36
- package/dist/node_modules/simple-git/src/lib/errors/git-response-error.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/errors/task-configuration-error.js +0 -19
- package/dist/node_modules/simple-git/src/lib/errors/task-configuration-error.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/git-factory.d.ts +0 -25
- package/dist/node_modules/simple-git/src/lib/git-factory.js +0 -45
- package/dist/node_modules/simple-git/src/lib/git-factory.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/git-logger.js +0 -101
- package/dist/node_modules/simple-git/src/lib/git-logger.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-branch-delete.js +0 -29
- package/dist/node_modules/simple-git/src/lib/parsers/parse-branch-delete.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-branch.js +0 -18
- package/dist/node_modules/simple-git/src/lib/parsers/parse-branch.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-commit.js +0 -53
- package/dist/node_modules/simple-git/src/lib/parsers/parse-commit.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-diff-summary.d.ts +0 -2
- package/dist/node_modules/simple-git/src/lib/parsers/parse-diff-summary.js +0 -74
- package/dist/node_modules/simple-git/src/lib/parsers/parse-diff-summary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-fetch.js +0 -32
- package/dist/node_modules/simple-git/src/lib/parsers/parse-fetch.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-list-log-summary.js +0 -35
- package/dist/node_modules/simple-git/src/lib/parsers/parse-list-log-summary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-merge.js +0 -39
- package/dist/node_modules/simple-git/src/lib/parsers/parse-merge.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-move.js +0 -14
- package/dist/node_modules/simple-git/src/lib/parsers/parse-move.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-pull.js +0 -42
- package/dist/node_modules/simple-git/src/lib/parsers/parse-pull.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-push.js +0 -58
- package/dist/node_modules/simple-git/src/lib/parsers/parse-push.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-remote-messages.js +0 -33
- package/dist/node_modules/simple-git/src/lib/parsers/parse-remote-messages.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-remote-objects.js +0 -41
- package/dist/node_modules/simple-git/src/lib/parsers/parse-remote-objects.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/plugins/command-config-prefixing-plugin.js +0 -15
- package/dist/node_modules/simple-git/src/lib/plugins/command-config-prefixing-plugin.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/plugins/completion-detection.plugin.js +0 -80
- package/dist/node_modules/simple-git/src/lib/plugins/completion-detection.plugin.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/plugins/error-detection.plugin.js +0 -39
- package/dist/node_modules/simple-git/src/lib/plugins/error-detection.plugin.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/plugins/index.js +0 -21
- package/dist/node_modules/simple-git/src/lib/plugins/index.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/plugins/plugin-store.d.ts +0 -6
- package/dist/node_modules/simple-git/src/lib/plugins/plugin-store.js +0 -28
- package/dist/node_modules/simple-git/src/lib/plugins/plugin-store.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/plugins/progress-monitor-plugin.js +0 -45
- package/dist/node_modules/simple-git/src/lib/plugins/progress-monitor-plugin.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/plugins/simple-git-plugin.js +0 -3
- package/dist/node_modules/simple-git/src/lib/plugins/simple-git-plugin.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/plugins/spawn-options-plugin.js +0 -15
- package/dist/node_modules/simple-git/src/lib/plugins/spawn-options-plugin.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/plugins/timout-plugin.d.ts +0 -3
- package/dist/node_modules/simple-git/src/lib/plugins/timout-plugin.js +0 -37
- package/dist/node_modules/simple-git/src/lib/plugins/timout-plugin.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/BranchDeleteSummary.js +0 -31
- package/dist/node_modules/simple-git/src/lib/responses/BranchDeleteSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/BranchSummary.d.ts +0 -10
- package/dist/node_modules/simple-git/src/lib/responses/BranchSummary.js +0 -26
- package/dist/node_modules/simple-git/src/lib/responses/BranchSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/CheckIgnore.js +0 -13
- package/dist/node_modules/simple-git/src/lib/responses/CheckIgnore.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/CleanSummary.js +0 -28
- package/dist/node_modules/simple-git/src/lib/responses/CleanSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/ConfigList.js +0 -89
- package/dist/node_modules/simple-git/src/lib/responses/ConfigList.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/DiffSummary.js +0 -16
- package/dist/node_modules/simple-git/src/lib/responses/DiffSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/FileStatusSummary.js +0 -18
- package/dist/node_modules/simple-git/src/lib/responses/FileStatusSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/GetRemoteSummary.js +0 -30
- package/dist/node_modules/simple-git/src/lib/responses/GetRemoteSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/InitSummary.js +0 -36
- package/dist/node_modules/simple-git/src/lib/responses/InitSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/MergeSummary.js +0 -35
- package/dist/node_modules/simple-git/src/lib/responses/MergeSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/PullSummary.d.ts +0 -12
- package/dist/node_modules/simple-git/src/lib/responses/PullSummary.js +0 -22
- package/dist/node_modules/simple-git/src/lib/responses/PullSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/StatusSummary.js +0 -128
- package/dist/node_modules/simple-git/src/lib/responses/StatusSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/TagList.js +0 -56
- package/dist/node_modules/simple-git/src/lib/responses/TagList.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/runners/git-executor-chain.js +0 -173
- package/dist/node_modules/simple-git/src/lib/runners/git-executor-chain.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/runners/git-executor.js +0 -21
- package/dist/node_modules/simple-git/src/lib/runners/git-executor.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/runners/promise-wrapped.js +0 -133
- package/dist/node_modules/simple-git/src/lib/runners/promise-wrapped.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/runners/scheduler.js +0 -48
- package/dist/node_modules/simple-git/src/lib/runners/scheduler.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/runners/tasks-pending-queue.js +0 -64
- package/dist/node_modules/simple-git/src/lib/runners/tasks-pending-queue.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/simple-git-api.js +0 -80
- package/dist/node_modules/simple-git/src/lib/simple-git-api.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/task-callback.js +0 -39
- package/dist/node_modules/simple-git/src/lib/task-callback.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/apply-patch.js +0 -9
- package/dist/node_modules/simple-git/src/lib/tasks/apply-patch.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/branch.js +0 -76
- package/dist/node_modules/simple-git/src/lib/tasks/branch.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/change-working-directory.js +0 -15
- package/dist/node_modules/simple-git/src/lib/tasks/change-working-directory.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/check-ignore.js +0 -13
- package/dist/node_modules/simple-git/src/lib/tasks/check-ignore.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/check-is-repo.js +0 -61
- package/dist/node_modules/simple-git/src/lib/tasks/check-is-repo.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/clean.js +0 -85
- package/dist/node_modules/simple-git/src/lib/tasks/clean.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/clone.js +0 -22
- package/dist/node_modules/simple-git/src/lib/tasks/clone.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/commit.d.ts +0 -3
- package/dist/node_modules/simple-git/src/lib/tasks/commit.js +0 -16
- package/dist/node_modules/simple-git/src/lib/tasks/commit.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/config.js +0 -73
- package/dist/node_modules/simple-git/src/lib/tasks/config.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/diff.d.ts +0 -3
- package/dist/node_modules/simple-git/src/lib/tasks/diff.js +0 -15
- package/dist/node_modules/simple-git/src/lib/tasks/diff.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/fetch.js +0 -17
- package/dist/node_modules/simple-git/src/lib/tasks/fetch.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/grep.js +0 -76
- package/dist/node_modules/simple-git/src/lib/tasks/grep.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/hash-object.js +0 -16
- package/dist/node_modules/simple-git/src/lib/tasks/hash-object.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/init.js +0 -23
- package/dist/node_modules/simple-git/src/lib/tasks/init.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/log.js +0 -109
- package/dist/node_modules/simple-git/src/lib/tasks/log.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/merge.js +0 -24
- package/dist/node_modules/simple-git/src/lib/tasks/merge.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/move.js +0 -14
- package/dist/node_modules/simple-git/src/lib/tasks/move.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/pull.js +0 -19
- package/dist/node_modules/simple-git/src/lib/tasks/pull.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/push.js +0 -29
- package/dist/node_modules/simple-git/src/lib/tasks/push.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/remote.js +0 -42
- package/dist/node_modules/simple-git/src/lib/tasks/remote.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/reset.js +0 -38
- package/dist/node_modules/simple-git/src/lib/tasks/reset.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/stash-list.d.ts +0 -3
- package/dist/node_modules/simple-git/src/lib/tasks/stash-list.js +0 -16
- package/dist/node_modules/simple-git/src/lib/tasks/stash-list.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/status.js +0 -15
- package/dist/node_modules/simple-git/src/lib/tasks/status.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/sub-module.js +0 -25
- package/dist/node_modules/simple-git/src/lib/tasks/sub-module.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/tag.js +0 -45
- package/dist/node_modules/simple-git/src/lib/tasks/tag.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/task.js +0 -52
- package/dist/node_modules/simple-git/src/lib/tasks/task.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/types/handlers.js +0 -3
- package/dist/node_modules/simple-git/src/lib/types/handlers.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/types/index.js +0 -15
- package/dist/node_modules/simple-git/src/lib/types/index.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/types/tasks.js +0 -3
- package/dist/node_modules/simple-git/src/lib/types/tasks.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/utils/argument-filters.js +0 -47
- package/dist/node_modules/simple-git/src/lib/utils/argument-filters.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/utils/exit-codes.js +0 -14
- package/dist/node_modules/simple-git/src/lib/utils/exit-codes.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/utils/git-output-streams.js +0 -14
- package/dist/node_modules/simple-git/src/lib/utils/git-output-streams.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/utils/index.js +0 -21
- package/dist/node_modules/simple-git/src/lib/utils/index.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/utils/line-parser.js +0 -52
- package/dist/node_modules/simple-git/src/lib/utils/line-parser.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/utils/simple-git-options.js +0 -16
- package/dist/node_modules/simple-git/src/lib/utils/simple-git-options.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/utils/task-options.js +0 -58
- package/dist/node_modules/simple-git/src/lib/utils/task-options.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/utils/task-parser.js +0 -24
- package/dist/node_modules/simple-git/src/lib/utils/task-parser.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/utils/util.js +0 -146
- package/dist/node_modules/simple-git/src/lib/utils/util.js.map +0 -1
- package/dist/node_modules/simple-git/typings/types.d.ts +0 -14
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/errors/git-construct-error.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/errors/git-response-error.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/errors/task-configuration-error.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/git-logger.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-branch-delete.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-commit.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-fetch.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-merge.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-move.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-push.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-remote-messages.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-remote-objects.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/command-config-prefixing-plugin.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/error-detection.plugin.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/spawn-options-plugin.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/BranchDeleteSummary.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/CheckIgnore.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/CleanSummary.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/ConfigList.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/DiffSummary.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/GetRemoteSummary.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/InitSummary.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/MergeSummary.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/TagList.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/promise-wrapped.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/scheduler.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/tasks-pending-queue.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/simple-git-api.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/task-callback.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/apply-patch.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/branch.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/change-working-directory.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/check-ignore.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/check-is-repo.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/clean.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/grep.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/hash-object.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/init.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/merge.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/move.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/pull.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/push.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/reset.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/status.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/sub-module.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/tag.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/types/handlers.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/types/tasks.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/argument-filters.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/git-output-streams.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/index.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/simple-git-options.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/task-options.d.ts +0 -0
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.parseTagList = exports.TagList = void 0;
|
|
4
|
-
class TagList {
|
|
5
|
-
constructor(all, latest) {
|
|
6
|
-
this.all = all;
|
|
7
|
-
this.latest = latest;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
exports.TagList = TagList;
|
|
11
|
-
const parseTagList = function (data, customSort = false) {
|
|
12
|
-
const tags = data
|
|
13
|
-
.split('\n')
|
|
14
|
-
.map(trimmed)
|
|
15
|
-
.filter(Boolean);
|
|
16
|
-
if (!customSort) {
|
|
17
|
-
tags.sort(function (tagA, tagB) {
|
|
18
|
-
const partsA = tagA.split('.');
|
|
19
|
-
const partsB = tagB.split('.');
|
|
20
|
-
if (partsA.length === 1 || partsB.length === 1) {
|
|
21
|
-
return singleSorted(toNumber(partsA[0]), toNumber(partsB[0]));
|
|
22
|
-
}
|
|
23
|
-
for (let i = 0, l = Math.max(partsA.length, partsB.length); i < l; i++) {
|
|
24
|
-
const diff = sorted(toNumber(partsA[i]), toNumber(partsB[i]));
|
|
25
|
-
if (diff) {
|
|
26
|
-
return diff;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return 0;
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
const latest = customSort ? tags[0] : [...tags].reverse().find((tag) => tag.indexOf('.') >= 0);
|
|
33
|
-
return new TagList(tags, latest);
|
|
34
|
-
};
|
|
35
|
-
exports.parseTagList = parseTagList;
|
|
36
|
-
function singleSorted(a, b) {
|
|
37
|
-
const aIsNum = isNaN(a);
|
|
38
|
-
const bIsNum = isNaN(b);
|
|
39
|
-
if (aIsNum !== bIsNum) {
|
|
40
|
-
return aIsNum ? 1 : -1;
|
|
41
|
-
}
|
|
42
|
-
return aIsNum ? sorted(a, b) : 0;
|
|
43
|
-
}
|
|
44
|
-
function sorted(a, b) {
|
|
45
|
-
return a === b ? 0 : a > b ? 1 : -1;
|
|
46
|
-
}
|
|
47
|
-
function trimmed(input) {
|
|
48
|
-
return input.trim();
|
|
49
|
-
}
|
|
50
|
-
function toNumber(input) {
|
|
51
|
-
if (typeof input === 'string') {
|
|
52
|
-
return parseInt(input.replace(/^\D+/g, ''), 10) || 0;
|
|
53
|
-
}
|
|
54
|
-
return 0;
|
|
55
|
-
}
|
|
56
|
-
//# sourceMappingURL=TagList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TagList.js","sourceRoot":"","sources":["TagList.ts"],"names":[],"mappings":";;;AAEA,MAAa,OAAO;IACjB,YACmB,GAAa,EACb,MAA0B;QAD1B,QAAG,GAAH,GAAG,CAAU;QACb,WAAM,GAAN,MAAM,CAAoB;IAE7C,CAAC;CACH;AAND,0BAMC;AAEM,MAAM,YAAY,GAAG,UAAU,IAAY,EAAE,UAAU,GAAG,KAAK;IACnE,MAAM,IAAI,GAAG,IAAI;SACb,KAAK,CAAC,IAAI,CAAC;SACX,GAAG,CAAC,OAAO,CAAC;SACZ,MAAM,CAAC,OAAO,CAAC,CAAC;IAEpB,IAAI,CAAC,UAAU,EAAE;QACd,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,EAAE,IAAI;YAC3B,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC/B,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAE/B,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC7C,OAAO,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CA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K,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACvC,CAAC;AAED,SAAS,OAAO,CAAC,KAAa;IAC3B,OAAO,KAAK,CAAC,IAAI,EAAE,CAAC;AACvB,CAAC;AAED,SAAS,QAAQ,CAAC,KAAyB;IACxC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAC5B,OAAO,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;KACvD;IAED,OAAO,CAAC,CAAC;AACZ,CAAC"}
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.GitExecutorChain = void 0;
|
|
13
|
-
const child_process_1 = require("child_process");
|
|
14
|
-
const git_error_1 = require("../errors/git-error");
|
|
15
|
-
const task_1 = require("../tasks/task");
|
|
16
|
-
const utils_1 = require("../utils");
|
|
17
|
-
const tasks_pending_queue_1 = require("./tasks-pending-queue");
|
|
18
|
-
class GitExecutorChain {
|
|
19
|
-
constructor(_executor, _scheduler, _plugins) {
|
|
20
|
-
this._executor = _executor;
|
|
21
|
-
this._scheduler = _scheduler;
|
|
22
|
-
this._plugins = _plugins;
|
|
23
|
-
this._chain = Promise.resolve();
|
|
24
|
-
this._queue = new tasks_pending_queue_1.TasksPendingQueue();
|
|
25
|
-
}
|
|
26
|
-
get binary() {
|
|
27
|
-
return this._executor.binary;
|
|
28
|
-
}
|
|
29
|
-
get cwd() {
|
|
30
|
-
return this._cwd || this._executor.cwd;
|
|
31
|
-
}
|
|
32
|
-
set cwd(cwd) {
|
|
33
|
-
this._cwd = cwd;
|
|
34
|
-
}
|
|
35
|
-
get env() {
|
|
36
|
-
return this._executor.env;
|
|
37
|
-
}
|
|
38
|
-
get outputHandler() {
|
|
39
|
-
return this._executor.outputHandler;
|
|
40
|
-
}
|
|
41
|
-
chain() {
|
|
42
|
-
return this;
|
|
43
|
-
}
|
|
44
|
-
push(task) {
|
|
45
|
-
this._queue.push(task);
|
|
46
|
-
return this._chain = this._chain.then(() => this.attemptTask(task));
|
|
47
|
-
}
|
|
48
|
-
attemptTask(task) {
|
|
49
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
-
const onScheduleComplete = yield this._scheduler.next();
|
|
51
|
-
const onQueueComplete = () => this._queue.complete(task);
|
|
52
|
-
try {
|
|
53
|
-
const { logger } = this._queue.attempt(task);
|
|
54
|
-
return yield (task_1.isEmptyTask(task)
|
|
55
|
-
? this.attemptEmptyTask(task, logger)
|
|
56
|
-
: this.attemptRemoteTask(task, logger));
|
|
57
|
-
}
|
|
58
|
-
catch (e) {
|
|
59
|
-
throw this.onFatalException(task, e);
|
|
60
|
-
}
|
|
61
|
-
finally {
|
|
62
|
-
onQueueComplete();
|
|
63
|
-
onScheduleComplete();
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
onFatalException(task, e) {
|
|
68
|
-
const gitError = (e instanceof git_error_1.GitError) ? Object.assign(e, { task }) : new git_error_1.GitError(task, e && String(e));
|
|
69
|
-
this._chain = Promise.resolve();
|
|
70
|
-
this._queue.fatal(gitError);
|
|
71
|
-
return gitError;
|
|
72
|
-
}
|
|
73
|
-
attemptRemoteTask(task, logger) {
|
|
74
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
-
const args = this._plugins.exec('spawn.args', [...task.commands], pluginContext(task, task.commands));
|
|
76
|
-
const raw = yield this.gitResponse(task, this.binary, args, this.outputHandler, logger.step('SPAWN'));
|
|
77
|
-
const outputStreams = yield this.handleTaskData(task, args, raw, logger.step('HANDLE'));
|
|
78
|
-
logger(`passing response to task's parser as a %s`, task.format);
|
|
79
|
-
if (task_1.isBufferTask(task)) {
|
|
80
|
-
return utils_1.callTaskParser(task.parser, outputStreams);
|
|
81
|
-
}
|
|
82
|
-
return utils_1.callTaskParser(task.parser, outputStreams.asStrings());
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
attemptEmptyTask(task, logger) {
|
|
86
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
87
|
-
logger(`empty task bypassing child process to call to task's parser`);
|
|
88
|
-
return task.parser(this);
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
handleTaskData(task, args, result, logger) {
|
|
92
|
-
const { exitCode, rejection, stdOut, stdErr } = result;
|
|
93
|
-
return new Promise((done, fail) => {
|
|
94
|
-
logger(`Preparing to handle process response exitCode=%d stdOut=`, exitCode);
|
|
95
|
-
const { error } = this._plugins.exec('task.error', { error: rejection }, Object.assign(Object.assign({}, pluginContext(task, args)), result));
|
|
96
|
-
if (error && task.onError) {
|
|
97
|
-
logger.info(`exitCode=%s handling with custom error handler`);
|
|
98
|
-
return task.onError(result, error, (newStdOut) => {
|
|
99
|
-
logger.info(`custom error handler treated as success`);
|
|
100
|
-
logger(`custom error returned a %s`, utils_1.objectToString(newStdOut));
|
|
101
|
-
done(new utils_1.GitOutputStreams(Array.isArray(newStdOut) ? Buffer.concat(newStdOut) : newStdOut, Buffer.concat(stdErr)));
|
|
102
|
-
}, fail);
|
|
103
|
-
}
|
|
104
|
-
if (error) {
|
|
105
|
-
logger.info(`handling as error: exitCode=%s stdErr=%s rejection=%o`, exitCode, stdErr.length, rejection);
|
|
106
|
-
return fail(error);
|
|
107
|
-
}
|
|
108
|
-
logger.info(`retrieving task output complete`);
|
|
109
|
-
done(new utils_1.GitOutputStreams(Buffer.concat(stdOut), Buffer.concat(stdErr)));
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
gitResponse(task, command, args, outputHandler, logger) {
|
|
113
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
-
const outputLogger = logger.sibling('output');
|
|
115
|
-
const spawnOptions = this._plugins.exec('spawn.options', {
|
|
116
|
-
cwd: this.cwd,
|
|
117
|
-
env: this.env,
|
|
118
|
-
windowsHide: true,
|
|
119
|
-
}, pluginContext(task, task.commands));
|
|
120
|
-
return new Promise((done) => {
|
|
121
|
-
const stdOut = [];
|
|
122
|
-
const stdErr = [];
|
|
123
|
-
let rejection;
|
|
124
|
-
logger.info(`%s %o`, command, args);
|
|
125
|
-
logger('%O', spawnOptions);
|
|
126
|
-
const spawned = child_process_1.spawn(command, args, spawnOptions);
|
|
127
|
-
spawned.stdout.on('data', onDataReceived(stdOut, 'stdOut', logger, outputLogger.step('stdOut')));
|
|
128
|
-
spawned.stderr.on('data', onDataReceived(stdErr, 'stdErr', logger, outputLogger.step('stdErr')));
|
|
129
|
-
spawned.on('error', onErrorReceived(stdErr, logger));
|
|
130
|
-
if (outputHandler) {
|
|
131
|
-
logger(`Passing child process stdOut/stdErr to custom outputHandler`);
|
|
132
|
-
outputHandler(command, spawned.stdout, spawned.stderr, [...args]);
|
|
133
|
-
}
|
|
134
|
-
this._plugins.exec('spawn.after', undefined, Object.assign(Object.assign({}, pluginContext(task, args)), { spawned, close(exitCode, reason) {
|
|
135
|
-
done({
|
|
136
|
-
stdOut,
|
|
137
|
-
stdErr,
|
|
138
|
-
exitCode,
|
|
139
|
-
rejection: rejection || reason,
|
|
140
|
-
});
|
|
141
|
-
},
|
|
142
|
-
kill(reason) {
|
|
143
|
-
if (spawned.killed) {
|
|
144
|
-
return;
|
|
145
|
-
}
|
|
146
|
-
rejection = reason;
|
|
147
|
-
spawned.kill('SIGINT');
|
|
148
|
-
} }));
|
|
149
|
-
});
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
exports.GitExecutorChain = GitExecutorChain;
|
|
154
|
-
function pluginContext(task, commands) {
|
|
155
|
-
return {
|
|
156
|
-
method: utils_1.first(task.commands) || '',
|
|
157
|
-
commands,
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
function onErrorReceived(target, logger) {
|
|
161
|
-
return (err) => {
|
|
162
|
-
logger(`[ERROR] child process exception %o`, err);
|
|
163
|
-
target.push(Buffer.from(String(err.stack), 'ascii'));
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
function onDataReceived(target, name, logger, output) {
|
|
167
|
-
return (buffer) => {
|
|
168
|
-
logger(`%s received %L bytes`, name, buffer);
|
|
169
|
-
output(`%B`, buffer);
|
|
170
|
-
target.push(buffer);
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
//# sourceMappingURL=git-executor-chain.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"git-executor-chain.js","sourceRoot":"","sources":["git-executor-chain.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAAoD;AACpD,mDAA+C;AAG/C,wCAAsE;AAEtE,oCAAmF;AAEnF,+DAA0D;AAE1D,MAAa,gBAAgB;IA0B1B,YACW,SAA4B,EAC5B,UAAqB,EACrB,QAAqB;QAFrB,cAAS,GAAT,SAAS,CAAmB;QAC5B,eAAU,GAAV,UAAU,CAAW;QACrB,aAAQ,GAAR,QAAQ,CAAa;QA3BxB,WAAM,GAAiB,OAAO,CAAC,OAAO,EAAE,CAAC;QACzC,WAAM,GAAG,IAAI,uCAAiB,EAAE,CAAC;IA4BzC,CAAC;IAzBD,IAAW,MAAM;QACd,OAAO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Q,CAAC,IAAI,EAAE;QAClC,QAAQ;KACV,CAAA;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,MAAgB,EAAE,MAAoB;IAC5D,OAAO,CAAC,GAAU,EAAE,EAAE;QACnB,MAAM,CAAC,oCAAoC,EAAE,GAAG,CAAC,CAAC;QAClD,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;IACxD,CAAC,CAAA;AACJ,CAAC;AAED,SAAS,cAAc,CAAC,MAAgB,EAAE,IAAY,EAAE,MAAoB,EAAE,MAAoB;IAC/F,OAAO,CAAC,MAAc,EAAE,EAAE;QACvB,MAAM,CAAC,sBAAsB,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;QAC7C,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACrB,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IACtB,CAAC,CAAA;AACJ,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GitExecutor = void 0;
|
|
4
|
-
const git_executor_chain_1 = require("./git-executor-chain");
|
|
5
|
-
class GitExecutor {
|
|
6
|
-
constructor(binary = 'git', cwd, _scheduler, _plugins) {
|
|
7
|
-
this.binary = binary;
|
|
8
|
-
this.cwd = cwd;
|
|
9
|
-
this._scheduler = _scheduler;
|
|
10
|
-
this._plugins = _plugins;
|
|
11
|
-
this._chain = new git_executor_chain_1.GitExecutorChain(this, this._scheduler, this._plugins);
|
|
12
|
-
}
|
|
13
|
-
chain() {
|
|
14
|
-
return new git_executor_chain_1.GitExecutorChain(this, this._scheduler, this._plugins);
|
|
15
|
-
}
|
|
16
|
-
push(task) {
|
|
17
|
-
return this._chain.push(task);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.GitExecutor = GitExecutor;
|
|
21
|
-
//# sourceMappingURL=git-executor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"git-executor.js","sourceRoot":"","sources":["git-executor.ts"],"names":[],"mappings":";;;AAGA,6DAAwD;AAGxD,MAAa,WAAW;IAOrB,YACU,SAAiB,KAAK,EACtB,GAAW,EACV,UAAqB,EACrB,QAAqB;QAHtB,WAAM,GAAN,MAAM,CAAgB;QACtB,QAAG,GAAH,GAAG,CAAQ;QACV,eAAU,GAAV,UAAU,CAAW;QACrB,aAAQ,GAAR,QAAQ,CAAa;QATxB,WAAM,GAAG,IAAI,qCAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAW5E,CAAC;IAED,KAAK;QACF,OAAO,IAAI,qCAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACrE,CAAC;IAED,IAAI,CAAI,IAAsB;QAC3B,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;CAEH;AAvBD,kCAuBC"}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.gitP = void 0;
|
|
4
|
-
const git_response_error_1 = require("../errors/git-response-error");
|
|
5
|
-
const git_factory_1 = require("../git-factory");
|
|
6
|
-
const functionNamesBuilderApi = [
|
|
7
|
-
'customBinary', 'env', 'outputHandler', 'silent',
|
|
8
|
-
];
|
|
9
|
-
const functionNamesPromiseApi = [
|
|
10
|
-
'add',
|
|
11
|
-
'addAnnotatedTag',
|
|
12
|
-
'addConfig',
|
|
13
|
-
'addRemote',
|
|
14
|
-
'addTag',
|
|
15
|
-
'applyPatch',
|
|
16
|
-
'binaryCatFile',
|
|
17
|
-
'branch',
|
|
18
|
-
'branchLocal',
|
|
19
|
-
'catFile',
|
|
20
|
-
'checkIgnore',
|
|
21
|
-
'checkIsRepo',
|
|
22
|
-
'checkout',
|
|
23
|
-
'checkoutBranch',
|
|
24
|
-
'checkoutLatestTag',
|
|
25
|
-
'checkoutLocalBranch',
|
|
26
|
-
'clean',
|
|
27
|
-
'clone',
|
|
28
|
-
'commit',
|
|
29
|
-
'cwd',
|
|
30
|
-
'deleteLocalBranch',
|
|
31
|
-
'deleteLocalBranches',
|
|
32
|
-
'diff',
|
|
33
|
-
'diffSummary',
|
|
34
|
-
'exec',
|
|
35
|
-
'fetch',
|
|
36
|
-
'getRemotes',
|
|
37
|
-
'init',
|
|
38
|
-
'listConfig',
|
|
39
|
-
'listRemote',
|
|
40
|
-
'log',
|
|
41
|
-
'merge',
|
|
42
|
-
'mergeFromTo',
|
|
43
|
-
'mirror',
|
|
44
|
-
'mv',
|
|
45
|
-
'pull',
|
|
46
|
-
'push',
|
|
47
|
-
'pushTags',
|
|
48
|
-
'raw',
|
|
49
|
-
'rebase',
|
|
50
|
-
'remote',
|
|
51
|
-
'removeRemote',
|
|
52
|
-
'reset',
|
|
53
|
-
'revert',
|
|
54
|
-
'revparse',
|
|
55
|
-
'rm',
|
|
56
|
-
'rmKeepLocal',
|
|
57
|
-
'show',
|
|
58
|
-
'stash',
|
|
59
|
-
'stashList',
|
|
60
|
-
'status',
|
|
61
|
-
'subModule',
|
|
62
|
-
'submoduleAdd',
|
|
63
|
-
'submoduleInit',
|
|
64
|
-
'submoduleUpdate',
|
|
65
|
-
'tag',
|
|
66
|
-
'tags',
|
|
67
|
-
'updateServerInfo'
|
|
68
|
-
];
|
|
69
|
-
function gitP(...args) {
|
|
70
|
-
let git;
|
|
71
|
-
let chain = Promise.resolve();
|
|
72
|
-
try {
|
|
73
|
-
git = git_factory_1.gitInstanceFactory(...args);
|
|
74
|
-
}
|
|
75
|
-
catch (e) {
|
|
76
|
-
chain = Promise.reject(e);
|
|
77
|
-
}
|
|
78
|
-
function builderReturn() {
|
|
79
|
-
return promiseApi;
|
|
80
|
-
}
|
|
81
|
-
function chainReturn() {
|
|
82
|
-
return chain;
|
|
83
|
-
}
|
|
84
|
-
const promiseApi = [...functionNamesBuilderApi, ...functionNamesPromiseApi].reduce((api, name) => {
|
|
85
|
-
const isAsync = functionNamesPromiseApi.includes(name);
|
|
86
|
-
const valid = isAsync ? asyncWrapper(name, git) : syncWrapper(name, git, api);
|
|
87
|
-
const alternative = isAsync ? chainReturn : builderReturn;
|
|
88
|
-
Object.defineProperty(api, name, {
|
|
89
|
-
enumerable: false,
|
|
90
|
-
configurable: false,
|
|
91
|
-
value: git ? valid : alternative,
|
|
92
|
-
});
|
|
93
|
-
return api;
|
|
94
|
-
}, {});
|
|
95
|
-
return promiseApi;
|
|
96
|
-
function asyncWrapper(fn, git) {
|
|
97
|
-
return function (...args) {
|
|
98
|
-
if (typeof args[args.length] === 'function') {
|
|
99
|
-
throw new TypeError('Promise interface requires that handlers are not supplied inline, ' +
|
|
100
|
-
'trailing function not allowed in call to ' + fn);
|
|
101
|
-
}
|
|
102
|
-
return chain.then(function () {
|
|
103
|
-
return new Promise(function (resolve, reject) {
|
|
104
|
-
const callback = (err, result) => {
|
|
105
|
-
if (err) {
|
|
106
|
-
return reject(toError(err));
|
|
107
|
-
}
|
|
108
|
-
resolve(result);
|
|
109
|
-
};
|
|
110
|
-
args.push(callback);
|
|
111
|
-
git[fn].apply(git, args);
|
|
112
|
-
});
|
|
113
|
-
});
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
function syncWrapper(fn, git, api) {
|
|
117
|
-
return (...args) => {
|
|
118
|
-
git[fn](...args);
|
|
119
|
-
return api;
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
exports.gitP = gitP;
|
|
124
|
-
function toError(error) {
|
|
125
|
-
if (error instanceof Error) {
|
|
126
|
-
return error;
|
|
127
|
-
}
|
|
128
|
-
if (typeof error === 'string') {
|
|
129
|
-
return new Error(error);
|
|
130
|
-
}
|
|
131
|
-
return new git_response_error_1.GitResponseError(error);
|
|
132
|
-
}
|
|
133
|
-
//# sourceMappingURL=promise-wrapped.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"promise-wrapped.js","sourceRoot":"","sources":["promise-wrapped.ts"],"names":[],"mappings":";;;AAEA,qEAAgE;AAChE,gDAAoD;AAGpD,MAAM,uBAAuB,GAAG;IAC7B,cAAc,EAAE,KAAK,EAAE,eAAe,EAAE,QAAQ;CAClD,CAAC;AAEF,MAAM,uBAAuB,GAAG;IAC7B,KAAK;IACL,iBAAiB;IACjB,WAAW;IACX,WAAW;IACX,QAAQ;IACR,YAAY;IACZ,eAAe;IACf,QAAQ;IACR,aAAa;IACb,SAAS;IACT,aAAa;IACb,aAAa;IACb,UAAU;IACV,gBAAgB;IAChB,mBAAmB;IACnB,qBAAqB;IACrB,OAAO;IACP,OAAO;IACP,QAAQ;IACR,KAAK;IACL,mBAAmB;IACnB,qBAAqB;IACrB,MAAM;IACN,aAAa;IACb,MAAM;IACN,OAAO;IACP,YAAY;IACZ,MAAM;IACN,YAAY;IACZ,YAAY;IACZ,KAAK;IACL,OAAO;IACP,aAAa;IACb,QAAQ;IACR,IAAI;IACJ,MAAM;IACN,MAAM;IACN,UAAU;IACV,KAAK;IACL,QAAQ;IACR,QAAQ;IACR,cAAc;IACd,OAAO;IACP,QAAQ;IACR,UAAU;IACV,IAAI;IACJ,aAAa;IACb,MAAM;IACN,OAAO;IACP,WAAW;IACX,QAAQ;IACR,WAAW;IACX,cAAc;IACd,eAAe;IACf,iBAAiB;IACjB,KAAK;IACL,MAAM;IACN,kBAAkB;CACpB,CAAC;AAEF,SAAgB,IAAI,CAAC,GAAG,IAAuF;IAE5G,IAAI,GAAQ,CAAC;IAEb,IAAI,KAAK,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAE9B,IAAI;QACD,GAAG,GAAG,gCAAkB,CAAC,GAAG,IAAI,CAAC,CAAC;KACpC;IAAC,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oBACzC,MAAM,QAAQ,GAA0B,CAAC,GAAiB,EAAE,MAAY,EAAE,EAAE;wBACzE,IAAI,GAAG,EAAE;4BACN,OAAO,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;yBAC9B;wBAED,OAAO,CAAC,MAAM,CAAC,CAAC;oBACnB,CAAC,CAAC;oBACF,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;oBAEpB,GAAG,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;gBAC5B,CAAC,CAAC,CAAC;YACN,CAAC,CAAC,CAAC;QACN,CAAC,CAAC;IACL,CAAC;IAED,SAAS,WAAW,CAAC,EAAU,EAAE,GAAQ,EAAE,GAAc;QACtD,OAAO,CAAC,GAAG,IAAW,EAAE,EAAE;YACvB,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;YAEjB,OAAO,GAAG,CAAC;QACd,CAAC,CAAC;IACL,CAAC;AACJ,CAAC;AArED,oBAqEC;AAED,SAAS,OAAO,CAAC,KAA2B;IAEzC,IAAI,KAAK,YAAY,KAAK,EAAE;QACzB,OAAO,KAAK,CAAC;KACf;IAED,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAC5B,OAAO,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC;KAC1B;IAED,OAAO,IAAI,qCAAgB,CAAC,KAAK,CAAC,CAAC;AACtC,CAAC"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Scheduler = void 0;
|
|
4
|
-
const utils_1 = require("../utils");
|
|
5
|
-
const promise_deferred_1 = require("@kwsites/promise-deferred");
|
|
6
|
-
const git_logger_1 = require("../git-logger");
|
|
7
|
-
const createScheduledTask = (() => {
|
|
8
|
-
let id = 0;
|
|
9
|
-
return () => {
|
|
10
|
-
id++;
|
|
11
|
-
const { promise, done } = promise_deferred_1.createDeferred();
|
|
12
|
-
return {
|
|
13
|
-
promise,
|
|
14
|
-
done,
|
|
15
|
-
id,
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
})();
|
|
19
|
-
class Scheduler {
|
|
20
|
-
constructor(concurrency = 2) {
|
|
21
|
-
this.concurrency = concurrency;
|
|
22
|
-
this.logger = git_logger_1.createLogger('', 'scheduler');
|
|
23
|
-
this.pending = [];
|
|
24
|
-
this.running = [];
|
|
25
|
-
this.logger(`Constructed, concurrency=%s`, concurrency);
|
|
26
|
-
}
|
|
27
|
-
schedule() {
|
|
28
|
-
if (!this.pending.length || this.running.length >= this.concurrency) {
|
|
29
|
-
this.logger(`Schedule attempt ignored, pending=%s running=%s concurrency=%s`, this.pending.length, this.running.length, this.concurrency);
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
const task = utils_1.append(this.running, this.pending.shift());
|
|
33
|
-
this.logger(`Attempting id=%s`, task.id);
|
|
34
|
-
task.done(() => {
|
|
35
|
-
this.logger(`Completing id=`, task.id);
|
|
36
|
-
utils_1.remove(this.running, task);
|
|
37
|
-
this.schedule();
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
next() {
|
|
41
|
-
const { promise, id } = utils_1.append(this.pending, createScheduledTask());
|
|
42
|
-
this.logger(`Scheduling id=%s`, id);
|
|
43
|
-
this.schedule();
|
|
44
|
-
return promise;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
exports.Scheduler = Scheduler;
|
|
48
|
-
//# sourceMappingURL=scheduler.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scheduler.js","sourceRoot":"","sources":["scheduler.ts"],"names":[],"mappings":";;;AAAA,oCAA0C;AAC1C,gEAA4E;AAC5E,8CAA6C;AAK7C,MAAM,mBAAmB,GAAwB,CAAC,GAAG,EAAE;IACpD,IAAI,EAAE,GAAG,CAAC,CAAC;IACX,OAAO,GAAG,EAAE;QACT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AAE,EAAE,EAAC,GAAG,cAAM,CAAC,IAAI,CAAC,OAAO,EAAE,mBAAmB,EAAE,CAAC,CAAC;QAClE,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;QAEpC,IAAI,CAAC,QAAQ,EAAE,CAAC;QAEhB,OAAO,OAAO,CAAC;IAClB,CAAC;CACH;AAhCD,8BAgCC"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TasksPendingQueue = void 0;
|
|
4
|
-
const git_error_1 = require("../errors/git-error");
|
|
5
|
-
const git_logger_1 = require("../git-logger");
|
|
6
|
-
class TasksPendingQueue {
|
|
7
|
-
constructor(logLabel = 'GitExecutor') {
|
|
8
|
-
this.logLabel = logLabel;
|
|
9
|
-
this._queue = new Map();
|
|
10
|
-
}
|
|
11
|
-
withProgress(task) {
|
|
12
|
-
return this._queue.get(task);
|
|
13
|
-
}
|
|
14
|
-
createProgress(task) {
|
|
15
|
-
const name = TasksPendingQueue.getName(task.commands[0]);
|
|
16
|
-
const logger = git_logger_1.createLogger(this.logLabel, name);
|
|
17
|
-
return {
|
|
18
|
-
task,
|
|
19
|
-
logger,
|
|
20
|
-
name,
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
push(task) {
|
|
24
|
-
const progress = this.createProgress(task);
|
|
25
|
-
progress.logger('Adding task to the queue, commands = %o', task.commands);
|
|
26
|
-
this._queue.set(task, progress);
|
|
27
|
-
return progress;
|
|
28
|
-
}
|
|
29
|
-
fatal(err) {
|
|
30
|
-
for (const [task, { logger }] of Array.from(this._queue.entries())) {
|
|
31
|
-
if (task === err.task) {
|
|
32
|
-
logger.info(`Failed %o`, err);
|
|
33
|
-
logger(`Fatal exception, any as-yet un-started tasks run through this executor will not be attempted`);
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
logger.info(`A fatal exception occurred in a previous task, the queue has been purged: %o`, err.message);
|
|
37
|
-
}
|
|
38
|
-
this.complete(task);
|
|
39
|
-
}
|
|
40
|
-
if (this._queue.size !== 0) {
|
|
41
|
-
throw new Error(`Queue size should be zero after fatal: ${this._queue.size}`);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
complete(task) {
|
|
45
|
-
const progress = this.withProgress(task);
|
|
46
|
-
if (progress) {
|
|
47
|
-
this._queue.delete(task);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
attempt(task) {
|
|
51
|
-
const progress = this.withProgress(task);
|
|
52
|
-
if (!progress) {
|
|
53
|
-
throw new git_error_1.GitError(undefined, 'TasksPendingQueue: attempt called for an unknown task');
|
|
54
|
-
}
|
|
55
|
-
progress.logger('Starting task');
|
|
56
|
-
return progress;
|
|
57
|
-
}
|
|
58
|
-
static getName(name = 'empty') {
|
|
59
|
-
return `task:${name}:${++TasksPendingQueue.counter}`;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
exports.TasksPendingQueue = TasksPendingQueue;
|
|
63
|
-
TasksPendingQueue.counter = 0;
|
|
64
|
-
//# sourceMappingURL=tasks-pending-queue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tasks-pending-queue.js","sourceRoot":"","sources":["tasks-pending-queue.ts"],"names":[],"mappings":";;;AACA,mDAA+C;AAC/C,8CAA2D;AAU3D,MAAa,iBAAiB;IAI3B,YAAoB,WAAW,aAAa;QAAxB,aAAQ,GAAR,QAAQ,CAAgB;QAFpC,WAAM,GAA0C,IAAI,GAAG,EAAE,CAAC;IAGlE,CAAC;IAEO,YAAY,CAAC,IAAsB;QACxC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC;IAEO,cAAc,CAAE,IAAsB;QAC3C,MAAM,IAAI,GAAG,iBAAiB,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;Q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AAC;SAC3B;IACJ,CAAC;IAED,OAAO,CAAC,IAAsB;QAC3B,MAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,QAAQ,EAAE;YACZ,MAAM,IAAI,oBAAQ,CAAC,SAAS,EAAE,uDAAuD,CAAC,CAAC;SACzF;QACD,QAAQ,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;QAEjC,OAAO,QAAQ,CAAC;IACnB,CAAC;IAED,MAAM,CAAC,OAAO,CAAE,IAAI,GAAG,OAAO;QAC3B,OAAO,QAAQ,IAAI,IAAI,EAAE,iBAAiB,CAAC,OAAO,EAAE,CAAC;IACxD,CAAC;;AAnEJ,8CAsEC;AADiB,yBAAO,GAAG,CAAC,CAAC"}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SimpleGitApi = void 0;
|
|
4
|
-
const task_callback_1 = require("./task-callback");
|
|
5
|
-
const change_working_directory_1 = require("./tasks/change-working-directory");
|
|
6
|
-
const config_1 = require("./tasks/config");
|
|
7
|
-
const grep_1 = require("./tasks/grep");
|
|
8
|
-
const hash_object_1 = require("./tasks/hash-object");
|
|
9
|
-
const init_1 = require("./tasks/init");
|
|
10
|
-
const log_1 = require("./tasks/log");
|
|
11
|
-
const merge_1 = require("./tasks/merge");
|
|
12
|
-
const push_1 = require("./tasks/push");
|
|
13
|
-
const status_1 = require("./tasks/status");
|
|
14
|
-
const task_1 = require("./tasks/task");
|
|
15
|
-
const utils_1 = require("./utils");
|
|
16
|
-
class SimpleGitApi {
|
|
17
|
-
constructor(_executor) {
|
|
18
|
-
this._executor = _executor;
|
|
19
|
-
}
|
|
20
|
-
_runTask(task, then) {
|
|
21
|
-
const chain = this._executor.chain();
|
|
22
|
-
const promise = chain.push(task);
|
|
23
|
-
if (then) {
|
|
24
|
-
task_callback_1.taskCallback(task, promise, then);
|
|
25
|
-
}
|
|
26
|
-
return Object.create(this, {
|
|
27
|
-
then: { value: promise.then.bind(promise) },
|
|
28
|
-
catch: { value: promise.catch.bind(promise) },
|
|
29
|
-
_executor: { value: chain },
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
add(files) {
|
|
33
|
-
return this._runTask(task_1.straightThroughStringTask(['add', ...utils_1.asArray(files)]), utils_1.trailingFunctionArgument(arguments));
|
|
34
|
-
}
|
|
35
|
-
cwd(directory) {
|
|
36
|
-
const next = utils_1.trailingFunctionArgument(arguments);
|
|
37
|
-
if (typeof directory === 'string') {
|
|
38
|
-
return this._runTask(change_working_directory_1.changeWorkingDirectoryTask(directory, this._executor), next);
|
|
39
|
-
}
|
|
40
|
-
if (typeof (directory === null || directory === void 0 ? void 0 : directory.path) === 'string') {
|
|
41
|
-
return this._runTask(change_working_directory_1.changeWorkingDirectoryTask(directory.path, directory.root && this._executor || undefined), next);
|
|
42
|
-
}
|
|
43
|
-
return this._runTask(task_1.configurationErrorTask('Git.cwd: workingDirectory must be supplied as a string'), next);
|
|
44
|
-
}
|
|
45
|
-
hashObject(path, write) {
|
|
46
|
-
return this._runTask(hash_object_1.hashObjectTask(path, write === true), utils_1.trailingFunctionArgument(arguments));
|
|
47
|
-
}
|
|
48
|
-
init(bare) {
|
|
49
|
-
return this._runTask(init_1.initTask(bare === true, this._executor.cwd, utils_1.getTrailingOptions(arguments)), utils_1.trailingFunctionArgument(arguments));
|
|
50
|
-
}
|
|
51
|
-
merge() {
|
|
52
|
-
return this._runTask(merge_1.mergeTask(utils_1.getTrailingOptions(arguments)), utils_1.trailingFunctionArgument(arguments));
|
|
53
|
-
}
|
|
54
|
-
mergeFromTo(remote, branch) {
|
|
55
|
-
if (!(utils_1.filterString(remote) && utils_1.filterString(branch))) {
|
|
56
|
-
return this._runTask(task_1.configurationErrorTask(`Git.mergeFromTo requires that the 'remote' and 'branch' arguments are supplied as strings`));
|
|
57
|
-
}
|
|
58
|
-
return this._runTask(merge_1.mergeTask([remote, branch, ...utils_1.getTrailingOptions(arguments)]), utils_1.trailingFunctionArgument(arguments, false));
|
|
59
|
-
}
|
|
60
|
-
outputHandler(handler) {
|
|
61
|
-
this._executor.outputHandler = handler;
|
|
62
|
-
return this;
|
|
63
|
-
}
|
|
64
|
-
push() {
|
|
65
|
-
const task = push_1.pushTask({
|
|
66
|
-
remote: utils_1.filterType(arguments[0], utils_1.filterString),
|
|
67
|
-
branch: utils_1.filterType(arguments[1], utils_1.filterString),
|
|
68
|
-
}, utils_1.getTrailingOptions(arguments));
|
|
69
|
-
return this._runTask(task, utils_1.trailingFunctionArgument(arguments));
|
|
70
|
-
}
|
|
71
|
-
stash() {
|
|
72
|
-
return this._runTask(task_1.straightThroughStringTask(['stash', ...utils_1.getTrailingOptions(arguments)]), utils_1.trailingFunctionArgument(arguments));
|
|
73
|
-
}
|
|
74
|
-
status() {
|
|
75
|
-
return this._runTask(status_1.statusTask(utils_1.getTrailingOptions(arguments)), utils_1.trailingFunctionArgument(arguments));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
exports.SimpleGitApi = SimpleGitApi;
|
|
79
|
-
Object.assign(SimpleGitApi.prototype, config_1.default(), grep_1.default(), log_1.default());
|
|
80
|
-
//# sourceMappingURL=simple-git-api.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"simple-git-api.js","sourceRoot":"","sources":["simple-git-api.ts"],"names":[],"mappings":";;;AACA,mDAA+C;AAC/C,+EAA8E;AAC9E,2CAAoC;AACpC,uCAAgC;AAChC,qDAAqD;AACrD,uCAAwC;AACxC,qCAA8B;AAC9B,yCAA0C;AAC1C,uCAAwC;AACxC,2CAA4C;AAC5C,uCAAiF;AAEjF,mCAA0G;AAE1G,MAAa,YAAY;IAEtB,YAAoB,SAA4B;QAA5B,cAAS,GAAT,SAAS,CAAmB;IAChD,CAAC;IAES,QAAQ,CAAI,IAAsB,EAAE,IAA+B;QAC1E,MAAM,KAAK,GAAG,IA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