@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.
Files changed (525) hide show
  1. package/README.md +20 -13
  2. package/dist/index.js +14 -6
  3. package/dist/node_modules/.package-lock.json +37 -24
  4. package/dist/node_modules/@types/node/README.md +5 -6
  5. package/dist/node_modules/@types/node/assert/strict.d.ts +8 -0
  6. package/dist/node_modules/@types/node/assert.d.ts +955 -45
  7. package/dist/node_modules/@types/node/async_hooks.d.ts +391 -87
  8. package/dist/node_modules/@types/node/buffer.d.ts +2210 -17
  9. package/dist/node_modules/@types/node/child_process.d.ts +1051 -189
  10. package/dist/node_modules/@types/node/cluster.d.ts +421 -143
  11. package/dist/node_modules/@types/node/console.d.ts +359 -49
  12. package/dist/node_modules/@types/node/constants.d.ts +3 -3
  13. package/dist/node_modules/@types/node/crypto.d.ts +3528 -291
  14. package/dist/node_modules/@types/node/dgram.d.ts +446 -30
  15. package/dist/node_modules/@types/node/diagnostics_channel.d.ts +554 -0
  16. package/dist/node_modules/@types/node/dns/promises.d.ts +476 -0
  17. package/dist/node_modules/@types/node/dns.d.ts +588 -240
  18. package/dist/node_modules/@types/node/dom-events.d.ts +124 -0
  19. package/dist/node_modules/@types/node/domain.d.ts +159 -16
  20. package/dist/node_modules/@types/node/events.d.ts +890 -41
  21. package/dist/node_modules/@types/node/fs/promises.d.ts +980 -369
  22. package/dist/node_modules/@types/node/fs.d.ts +2599 -869
  23. package/dist/node_modules/@types/node/globals.d.ts +374 -727
  24. package/dist/node_modules/@types/node/globals.global.d.ts +1 -1
  25. package/dist/node_modules/@types/node/http.d.ts +1459 -132
  26. package/dist/node_modules/@types/node/http2.d.ts +1333 -123
  27. package/dist/node_modules/@types/node/https.d.ts +289 -13
  28. package/dist/node_modules/@types/node/index.d.ts +37 -46
  29. package/dist/node_modules/@types/node/inspector.d.ts +367 -671
  30. package/dist/node_modules/@types/node/module.d.ts +273 -14
  31. package/dist/node_modules/@types/node/net.d.ts +741 -66
  32. package/dist/node_modules/@types/node/os.d.ts +275 -23
  33. package/dist/node_modules/@types/node/package.json +95 -110
  34. package/dist/node_modules/@types/node/path.d.ts +27 -4
  35. package/dist/node_modules/@types/node/perf_hooks.d.ts +756 -125
  36. package/dist/node_modules/@types/node/process.d.ts +1429 -127
  37. package/dist/node_modules/@types/node/punycode.d.ts +65 -26
  38. package/dist/node_modules/@types/node/querystring.d.ts +121 -9
  39. package/dist/node_modules/@types/node/readline/promises.d.ts +150 -0
  40. package/dist/node_modules/@types/node/readline.d.ts +405 -49
  41. package/dist/node_modules/@types/node/repl.d.ts +99 -73
  42. package/dist/node_modules/@types/node/sea.d.ts +153 -0
  43. package/dist/node_modules/@types/node/stream/consumers.d.ts +12 -0
  44. package/dist/node_modules/@types/node/stream/promises.d.ts +83 -0
  45. package/dist/node_modules/@types/node/stream/web.d.ts +367 -0
  46. package/dist/node_modules/@types/node/stream.d.ts +1462 -273
  47. package/dist/node_modules/@types/node/string_decoder.d.ts +59 -2
  48. package/dist/node_modules/@types/node/test.d.ts +1719 -0
  49. package/dist/node_modules/@types/node/timers/promises.d.ts +97 -0
  50. package/dist/node_modules/@types/node/timers.d.ts +233 -12
  51. package/dist/node_modules/@types/node/tls.d.ts +540 -189
  52. package/dist/node_modules/@types/node/trace_events.d.ts +143 -10
  53. package/dist/node_modules/@types/node/tty.d.ts +156 -17
  54. package/dist/node_modules/@types/node/url.d.ts +812 -47
  55. package/dist/node_modules/@types/node/util.d.ts +2159 -145
  56. package/dist/node_modules/@types/node/v8.d.ts +693 -74
  57. package/dist/node_modules/@types/node/vm.d.ts +813 -44
  58. package/dist/node_modules/@types/node/wasi.d.ts +121 -28
  59. package/dist/node_modules/@types/node/worker_threads.d.ts +514 -61
  60. package/dist/node_modules/@types/node/zlib.d.ts +220 -54
  61. package/dist/node_modules/ajv-formats/node_modules/ajv/README.md +1 -1
  62. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js +1 -0
  63. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js.map +1 -1
  64. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js.map +1 -1
  65. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.d.ts +2 -2
  66. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js.map +1 -1
  67. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.d.ts +1 -1
  68. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js +1 -1
  69. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js.map +1 -1
  70. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/index.d.ts +3 -3
  71. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.d.ts +10 -10
  72. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js +5 -1
  73. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -1
  74. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/code.ts +1 -0
  75. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/index.ts +2 -2
  76. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/resolve.ts +2 -2
  77. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/uri.ts +1 -1
  78. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/index.ts +3 -3
  79. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/json-schema.ts +10 -10
  80. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/index.ts +4 -1
  81. package/dist/node_modules/ajv-formats/node_modules/ajv/package.json +5 -5
  82. package/dist/node_modules/commander/Readme.md +10 -8
  83. package/dist/node_modules/commander/esm.mjs +1 -1
  84. package/dist/node_modules/commander/lib/argument.js +9 -5
  85. package/dist/node_modules/commander/lib/command.js +406 -196
  86. package/dist/node_modules/commander/lib/error.js +0 -4
  87. package/dist/node_modules/commander/lib/help.js +101 -38
  88. package/dist/node_modules/commander/lib/option.js +11 -8
  89. package/dist/node_modules/commander/lib/suggestSimilar.js +5 -4
  90. package/dist/node_modules/commander/package.json +23 -19
  91. package/dist/node_modules/commander/typings/index.d.ts +110 -40
  92. package/dist/node_modules/debug/package.json +4 -3
  93. package/dist/node_modules/debug/src/browser.js +3 -1
  94. package/dist/node_modules/debug/src/node.js +2 -2
  95. package/dist/node_modules/fast-uri/.gitattributes +2 -0
  96. package/dist/node_modules/fast-uri/.github/.stale.yml +21 -0
  97. package/dist/node_modules/fast-uri/.github/dependabot.yml +13 -0
  98. package/dist/node_modules/fast-uri/.github/tests_checker.yml +8 -0
  99. package/dist/node_modules/fast-uri/.github/workflows/ci.yml +23 -0
  100. package/dist/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +20 -0
  101. package/dist/node_modules/fast-uri/.taprc +3 -0
  102. package/dist/node_modules/fast-uri/LICENSE +30 -0
  103. package/dist/node_modules/fast-uri/README.md +125 -0
  104. package/dist/node_modules/fast-uri/benchmark.js +105 -0
  105. package/dist/node_modules/fast-uri/index.js +309 -0
  106. package/dist/node_modules/fast-uri/lib/schemes.js +188 -0
  107. package/dist/node_modules/fast-uri/lib/scopedChars.js +30 -0
  108. package/dist/node_modules/fast-uri/lib/utils.js +242 -0
  109. package/dist/node_modules/fast-uri/package.json +39 -0
  110. package/dist/node_modules/fast-uri/test/.gitkeep +0 -0
  111. package/dist/node_modules/fast-uri/test/ajv.test.js +39 -0
  112. package/dist/node_modules/fast-uri/test/compatibility.test.js +130 -0
  113. package/dist/node_modules/fast-uri/test/equal.test.js +104 -0
  114. package/dist/node_modules/fast-uri/test/parse.test.js +319 -0
  115. package/dist/node_modules/fast-uri/test/resolve.test.js +76 -0
  116. package/dist/node_modules/fast-uri/test/serialize.test.js +144 -0
  117. package/dist/node_modules/fast-uri/test/uri-js.test.js +940 -0
  118. package/dist/node_modules/fast-uri/test/util.test.js +24 -0
  119. package/dist/node_modules/fast-uri/types/index.d.ts +53 -0
  120. package/dist/node_modules/fast-uri/types/index.test-d.ts +17 -0
  121. package/dist/node_modules/fs-extra/README.md +32 -2
  122. package/dist/node_modules/fs-extra/lib/copy/copy-sync.js +3 -11
  123. package/dist/node_modules/fs-extra/lib/copy/copy.js +120 -178
  124. package/dist/node_modules/fs-extra/lib/copy/index.js +1 -1
  125. package/dist/node_modules/fs-extra/lib/ensure/file.js +31 -34
  126. package/dist/node_modules/fs-extra/lib/ensure/link.js +27 -27
  127. package/dist/node_modules/fs-extra/lib/ensure/symlink-paths.js +57 -55
  128. package/dist/node_modules/fs-extra/lib/ensure/symlink-type.js +16 -13
  129. package/dist/node_modules/fs-extra/lib/ensure/symlink.js +29 -44
  130. package/dist/node_modules/fs-extra/lib/esm.mjs +68 -0
  131. package/dist/node_modules/fs-extra/lib/fs/index.js +29 -17
  132. package/dist/node_modules/fs-extra/lib/move/index.js +1 -1
  133. package/dist/node_modules/fs-extra/lib/move/move-sync.js +2 -1
  134. package/dist/node_modules/fs-extra/lib/move/move.js +38 -54
  135. package/dist/node_modules/fs-extra/lib/output-file/index.js +10 -19
  136. package/dist/node_modules/fs-extra/lib/remove/index.js +2 -7
  137. package/dist/node_modules/fs-extra/lib/util/stat.js +46 -42
  138. package/dist/node_modules/fs-extra/lib/util/utimes.js +21 -11
  139. package/dist/node_modules/fs-extra/package.json +11 -7
  140. package/dist/node_modules/simple-git/dist/cjs/index.js +4958 -0
  141. package/dist/node_modules/simple-git/dist/cjs/index.js.map +7 -0
  142. package/dist/node_modules/simple-git/dist/esm/index.js +4813 -0
  143. package/dist/node_modules/simple-git/dist/esm/index.js.map +7 -0
  144. package/dist/node_modules/simple-git/dist/esm/package.json +3 -0
  145. package/dist/node_modules/simple-git/{src → dist/src}/lib/api.d.ts +3 -13
  146. package/dist/node_modules/simple-git/dist/src/lib/args/log-format.d.ts +9 -0
  147. package/dist/node_modules/simple-git/dist/src/lib/args/pathspec.d.ts +3 -0
  148. package/dist/node_modules/simple-git/{src → dist/src}/lib/errors/git-error.d.ts +3 -2
  149. package/dist/node_modules/simple-git/dist/src/lib/errors/git-plugin-error.d.ts +7 -0
  150. package/dist/node_modules/simple-git/dist/src/lib/git-factory.d.ts +15 -0
  151. package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-branch.d.ts +1 -1
  152. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-diff-summary.d.ts +3 -0
  153. package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-list-log-summary.d.ts +2 -1
  154. package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-pull.d.ts +2 -0
  155. package/dist/node_modules/simple-git/dist/src/lib/plugins/abort-plugin.d.ts +3 -0
  156. package/dist/node_modules/simple-git/dist/src/lib/plugins/block-unsafe-operations-plugin.d.ts +3 -0
  157. package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/completion-detection.plugin.d.ts +1 -1
  158. package/dist/node_modules/simple-git/dist/src/lib/plugins/custom-binary.plugin.d.ts +3 -0
  159. package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/index.d.ts +3 -0
  160. package/dist/node_modules/simple-git/dist/src/lib/plugins/plugin-store.d.ts +11 -0
  161. package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/progress-monitor-plugin.d.ts +1 -1
  162. package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/simple-git-plugin.d.ts +10 -0
  163. package/dist/node_modules/simple-git/dist/src/lib/plugins/suffix-paths.plugin.d.ts +2 -0
  164. package/dist/node_modules/simple-git/dist/src/lib/plugins/timout-plugin.d.ts +3 -0
  165. package/dist/node_modules/simple-git/dist/src/lib/responses/BranchSummary.d.ts +14 -0
  166. package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/FileStatusSummary.d.ts +1 -1
  167. package/dist/node_modules/simple-git/dist/src/lib/responses/PullSummary.d.ts +25 -0
  168. package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/StatusSummary.d.ts +2 -1
  169. package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/git-executor-chain.d.ts +1 -1
  170. package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/git-executor.d.ts +3 -4
  171. package/dist/node_modules/simple-git/dist/src/lib/tasks/checkout.d.ts +2 -0
  172. package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/clone.d.ts +3 -2
  173. package/dist/node_modules/simple-git/dist/src/lib/tasks/commit.d.ts +4 -0
  174. package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/config.d.ts +1 -1
  175. package/dist/node_modules/simple-git/dist/src/lib/tasks/count-objects.d.ts +12 -0
  176. package/dist/node_modules/simple-git/dist/src/lib/tasks/diff-name-status.d.ts +12 -0
  177. package/dist/node_modules/simple-git/dist/src/lib/tasks/diff.d.ts +5 -0
  178. package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/fetch.d.ts +2 -1
  179. package/dist/node_modules/simple-git/dist/src/lib/tasks/first-commit.d.ts +2 -0
  180. package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/log.d.ts +3 -3
  181. package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/remote.d.ts +3 -3
  182. package/dist/node_modules/simple-git/dist/src/lib/tasks/show.d.ts +2 -0
  183. package/dist/node_modules/simple-git/dist/src/lib/tasks/stash-list.d.ts +4 -0
  184. package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/task.d.ts +1 -1
  185. package/dist/node_modules/simple-git/dist/src/lib/tasks/version.d.ts +9 -0
  186. package/dist/node_modules/simple-git/{src → dist/src}/lib/types/index.d.ts +64 -5
  187. package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/exit-codes.d.ts +1 -0
  188. package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/line-parser.d.ts +1 -1
  189. package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/task-parser.d.ts +2 -2
  190. package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/util.d.ts +3 -1
  191. package/dist/node_modules/simple-git/{typings → dist/typings}/errors.d.ts +0 -1
  192. package/dist/node_modules/simple-git/{typings → dist/typings}/index.d.ts +2 -1
  193. package/dist/node_modules/simple-git/{typings → dist/typings}/response.d.ts +68 -25
  194. package/dist/node_modules/simple-git/{typings → dist/typings}/simple-git.d.ts +493 -110
  195. package/dist/node_modules/simple-git/dist/typings/types.d.ts +23 -0
  196. package/dist/node_modules/simple-git/package.json +32 -35
  197. package/dist/node_modules/simple-git/promise.js +14 -4
  198. package/dist/node_modules/simple-git/readme.md +372 -389
  199. package/dist/node_modules/undici-types/README.md +6 -0
  200. package/dist/node_modules/undici-types/agent.d.ts +31 -0
  201. package/dist/node_modules/undici-types/api.d.ts +43 -0
  202. package/dist/node_modules/undici-types/balanced-pool.d.ts +18 -0
  203. package/dist/node_modules/undici-types/cache.d.ts +36 -0
  204. package/dist/node_modules/undici-types/client.d.ts +97 -0
  205. package/dist/node_modules/undici-types/connector.d.ts +34 -0
  206. package/dist/node_modules/undici-types/content-type.d.ts +21 -0
  207. package/dist/node_modules/undici-types/cookies.d.ts +28 -0
  208. package/dist/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
  209. package/dist/node_modules/undici-types/dispatcher.d.ts +241 -0
  210. package/dist/node_modules/undici-types/errors.d.ts +128 -0
  211. package/dist/node_modules/undici-types/fetch.d.ts +209 -0
  212. package/dist/node_modules/undici-types/file.d.ts +39 -0
  213. package/dist/node_modules/undici-types/filereader.d.ts +54 -0
  214. package/dist/node_modules/undici-types/formdata.d.ts +108 -0
  215. package/dist/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  216. package/dist/node_modules/undici-types/global-origin.d.ts +7 -0
  217. package/dist/node_modules/undici-types/handlers.d.ts +9 -0
  218. package/dist/node_modules/undici-types/header.d.ts +4 -0
  219. package/dist/node_modules/undici-types/index.d.ts +63 -0
  220. package/dist/node_modules/undici-types/interceptors.d.ts +5 -0
  221. package/dist/node_modules/undici-types/mock-agent.d.ts +50 -0
  222. package/dist/node_modules/undici-types/mock-client.d.ts +25 -0
  223. package/dist/node_modules/undici-types/mock-errors.d.ts +12 -0
  224. package/dist/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  225. package/dist/node_modules/undici-types/mock-pool.d.ts +25 -0
  226. package/dist/node_modules/undici-types/package.json +55 -0
  227. package/dist/node_modules/undici-types/patch.d.ts +71 -0
  228. package/dist/node_modules/undici-types/pool-stats.d.ts +19 -0
  229. package/dist/node_modules/undici-types/pool.d.ts +28 -0
  230. package/dist/node_modules/undici-types/proxy-agent.d.ts +30 -0
  231. package/dist/node_modules/undici-types/readable.d.ts +61 -0
  232. package/dist/node_modules/undici-types/webidl.d.ts +220 -0
  233. package/dist/node_modules/undici-types/websocket.d.ts +131 -0
  234. package/dist/package-lock.json +10146 -0
  235. package/dist/package.json +23 -23
  236. package/dist/schemas/variant.json +5 -21
  237. package/package.json +24 -24
  238. package/dist/node_modules/@types/node/ts4.8/assert.d.ts +0 -130
  239. package/dist/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -237
  240. package/dist/node_modules/@types/node/ts4.8/buffer.d.ts +0 -89
  241. package/dist/node_modules/@types/node/ts4.8/child_process.d.ts +0 -682
  242. package/dist/node_modules/@types/node/ts4.8/cluster.d.ts +0 -300
  243. package/dist/node_modules/@types/node/ts4.8/console.d.ts +0 -142
  244. package/dist/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
  245. package/dist/node_modules/@types/node/ts4.8/crypto.d.ts +0 -1287
  246. package/dist/node_modules/@types/node/ts4.8/dgram.d.ts +0 -180
  247. package/dist/node_modules/@types/node/ts4.8/dns.d.ts +0 -516
  248. package/dist/node_modules/@types/node/ts4.8/domain.d.ts +0 -27
  249. package/dist/node_modules/@types/node/ts4.8/events.d.ts +0 -82
  250. package/dist/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -634
  251. package/dist/node_modules/@types/node/ts4.8/fs.d.ts +0 -2587
  252. package/dist/node_modules/@types/node/ts4.8/globals.d.ts +0 -763
  253. package/dist/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  254. package/dist/node_modules/@types/node/ts4.8/http.d.ts +0 -580
  255. package/dist/node_modules/@types/node/ts4.8/http2.d.ts +0 -1208
  256. package/dist/node_modules/@types/node/ts4.8/https.d.ts +0 -274
  257. package/dist/node_modules/@types/node/ts4.8/index.d.ts +0 -53
  258. package/dist/node_modules/@types/node/ts4.8/inspector.d.ts +0 -3050
  259. package/dist/node_modules/@types/node/ts4.8/module.d.ts +0 -56
  260. package/dist/node_modules/@types/node/ts4.8/net.d.ts +0 -324
  261. package/dist/node_modules/@types/node/ts4.8/os.d.ts +0 -243
  262. package/dist/node_modules/@types/node/ts4.8/path.d.ts +0 -168
  263. package/dist/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -274
  264. package/dist/node_modules/@types/node/ts4.8/process.d.ts +0 -452
  265. package/dist/node_modules/@types/node/ts4.8/punycode.d.ts +0 -78
  266. package/dist/node_modules/@types/node/ts4.8/querystring.d.ts +0 -41
  267. package/dist/node_modules/@types/node/ts4.8/readline.d.ts +0 -184
  268. package/dist/node_modules/@types/node/ts4.8/repl.d.ts +0 -404
  269. package/dist/node_modules/@types/node/ts4.8/stream.d.ts +0 -518
  270. package/dist/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -10
  271. package/dist/node_modules/@types/node/ts4.8/timers.d.ts +0 -19
  272. package/dist/node_modules/@types/node/ts4.8/tls.d.ts +0 -866
  273. package/dist/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -64
  274. package/dist/node_modules/@types/node/ts4.8/tty.d.ts +0 -69
  275. package/dist/node_modules/@types/node/ts4.8/url.d.ts +0 -187
  276. package/dist/node_modules/@types/node/ts4.8/util.d.ts +0 -278
  277. package/dist/node_modules/@types/node/ts4.8/v8.d.ts +0 -189
  278. package/dist/node_modules/@types/node/ts4.8/vm.d.ts +0 -155
  279. package/dist/node_modules/@types/node/ts4.8/wasi.d.ts +0 -88
  280. package/dist/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -241
  281. package/dist/node_modules/@types/node/ts4.8/zlib.d.ts +0 -364
  282. package/dist/node_modules/fs-extra/lib/remove/rimraf.js +0 -302
  283. package/dist/node_modules/simple-git/CHANGELOG.md +0 -529
  284. package/dist/node_modules/simple-git/LICENSE +0 -20
  285. package/dist/node_modules/simple-git/promise.d.ts +0 -46
  286. package/dist/node_modules/simple-git/src/git.js +0 -700
  287. package/dist/node_modules/simple-git/src/index.js +0 -7
  288. package/dist/node_modules/simple-git/src/lib/api.js +0 -26
  289. package/dist/node_modules/simple-git/src/lib/api.js.map +0 -1
  290. package/dist/node_modules/simple-git/src/lib/errors/git-construct-error.js +0 -21
  291. package/dist/node_modules/simple-git/src/lib/errors/git-construct-error.js.map +0 -1
  292. package/dist/node_modules/simple-git/src/lib/errors/git-error.js +0 -37
  293. package/dist/node_modules/simple-git/src/lib/errors/git-error.js.map +0 -1
  294. package/dist/node_modules/simple-git/src/lib/errors/git-plugin-error.d.ts +0 -6
  295. package/dist/node_modules/simple-git/src/lib/errors/git-plugin-error.js +0 -14
  296. package/dist/node_modules/simple-git/src/lib/errors/git-plugin-error.js.map +0 -1
  297. package/dist/node_modules/simple-git/src/lib/errors/git-response-error.js +0 -36
  298. package/dist/node_modules/simple-git/src/lib/errors/git-response-error.js.map +0 -1
  299. package/dist/node_modules/simple-git/src/lib/errors/task-configuration-error.js +0 -19
  300. package/dist/node_modules/simple-git/src/lib/errors/task-configuration-error.js.map +0 -1
  301. package/dist/node_modules/simple-git/src/lib/git-factory.d.ts +0 -25
  302. package/dist/node_modules/simple-git/src/lib/git-factory.js +0 -45
  303. package/dist/node_modules/simple-git/src/lib/git-factory.js.map +0 -1
  304. package/dist/node_modules/simple-git/src/lib/git-logger.js +0 -101
  305. package/dist/node_modules/simple-git/src/lib/git-logger.js.map +0 -1
  306. package/dist/node_modules/simple-git/src/lib/parsers/parse-branch-delete.js +0 -29
  307. package/dist/node_modules/simple-git/src/lib/parsers/parse-branch-delete.js.map +0 -1
  308. package/dist/node_modules/simple-git/src/lib/parsers/parse-branch.js +0 -18
  309. package/dist/node_modules/simple-git/src/lib/parsers/parse-branch.js.map +0 -1
  310. package/dist/node_modules/simple-git/src/lib/parsers/parse-commit.js +0 -53
  311. package/dist/node_modules/simple-git/src/lib/parsers/parse-commit.js.map +0 -1
  312. package/dist/node_modules/simple-git/src/lib/parsers/parse-diff-summary.d.ts +0 -2
  313. package/dist/node_modules/simple-git/src/lib/parsers/parse-diff-summary.js +0 -74
  314. package/dist/node_modules/simple-git/src/lib/parsers/parse-diff-summary.js.map +0 -1
  315. package/dist/node_modules/simple-git/src/lib/parsers/parse-fetch.js +0 -32
  316. package/dist/node_modules/simple-git/src/lib/parsers/parse-fetch.js.map +0 -1
  317. package/dist/node_modules/simple-git/src/lib/parsers/parse-list-log-summary.js +0 -35
  318. package/dist/node_modules/simple-git/src/lib/parsers/parse-list-log-summary.js.map +0 -1
  319. package/dist/node_modules/simple-git/src/lib/parsers/parse-merge.js +0 -39
  320. package/dist/node_modules/simple-git/src/lib/parsers/parse-merge.js.map +0 -1
  321. package/dist/node_modules/simple-git/src/lib/parsers/parse-move.js +0 -14
  322. package/dist/node_modules/simple-git/src/lib/parsers/parse-move.js.map +0 -1
  323. package/dist/node_modules/simple-git/src/lib/parsers/parse-pull.js +0 -42
  324. package/dist/node_modules/simple-git/src/lib/parsers/parse-pull.js.map +0 -1
  325. package/dist/node_modules/simple-git/src/lib/parsers/parse-push.js +0 -58
  326. package/dist/node_modules/simple-git/src/lib/parsers/parse-push.js.map +0 -1
  327. package/dist/node_modules/simple-git/src/lib/parsers/parse-remote-messages.js +0 -33
  328. package/dist/node_modules/simple-git/src/lib/parsers/parse-remote-messages.js.map +0 -1
  329. package/dist/node_modules/simple-git/src/lib/parsers/parse-remote-objects.js +0 -41
  330. package/dist/node_modules/simple-git/src/lib/parsers/parse-remote-objects.js.map +0 -1
  331. package/dist/node_modules/simple-git/src/lib/plugins/command-config-prefixing-plugin.js +0 -15
  332. package/dist/node_modules/simple-git/src/lib/plugins/command-config-prefixing-plugin.js.map +0 -1
  333. package/dist/node_modules/simple-git/src/lib/plugins/completion-detection.plugin.js +0 -80
  334. package/dist/node_modules/simple-git/src/lib/plugins/completion-detection.plugin.js.map +0 -1
  335. package/dist/node_modules/simple-git/src/lib/plugins/error-detection.plugin.js +0 -39
  336. package/dist/node_modules/simple-git/src/lib/plugins/error-detection.plugin.js.map +0 -1
  337. package/dist/node_modules/simple-git/src/lib/plugins/index.js +0 -21
  338. package/dist/node_modules/simple-git/src/lib/plugins/index.js.map +0 -1
  339. package/dist/node_modules/simple-git/src/lib/plugins/plugin-store.d.ts +0 -6
  340. package/dist/node_modules/simple-git/src/lib/plugins/plugin-store.js +0 -28
  341. package/dist/node_modules/simple-git/src/lib/plugins/plugin-store.js.map +0 -1
  342. package/dist/node_modules/simple-git/src/lib/plugins/progress-monitor-plugin.js +0 -45
  343. package/dist/node_modules/simple-git/src/lib/plugins/progress-monitor-plugin.js.map +0 -1
  344. package/dist/node_modules/simple-git/src/lib/plugins/simple-git-plugin.js +0 -3
  345. package/dist/node_modules/simple-git/src/lib/plugins/simple-git-plugin.js.map +0 -1
  346. package/dist/node_modules/simple-git/src/lib/plugins/spawn-options-plugin.js +0 -15
  347. package/dist/node_modules/simple-git/src/lib/plugins/spawn-options-plugin.js.map +0 -1
  348. package/dist/node_modules/simple-git/src/lib/plugins/timout-plugin.d.ts +0 -3
  349. package/dist/node_modules/simple-git/src/lib/plugins/timout-plugin.js +0 -37
  350. package/dist/node_modules/simple-git/src/lib/plugins/timout-plugin.js.map +0 -1
  351. package/dist/node_modules/simple-git/src/lib/responses/BranchDeleteSummary.js +0 -31
  352. package/dist/node_modules/simple-git/src/lib/responses/BranchDeleteSummary.js.map +0 -1
  353. package/dist/node_modules/simple-git/src/lib/responses/BranchSummary.d.ts +0 -10
  354. package/dist/node_modules/simple-git/src/lib/responses/BranchSummary.js +0 -26
  355. package/dist/node_modules/simple-git/src/lib/responses/BranchSummary.js.map +0 -1
  356. package/dist/node_modules/simple-git/src/lib/responses/CheckIgnore.js +0 -13
  357. package/dist/node_modules/simple-git/src/lib/responses/CheckIgnore.js.map +0 -1
  358. package/dist/node_modules/simple-git/src/lib/responses/CleanSummary.js +0 -28
  359. package/dist/node_modules/simple-git/src/lib/responses/CleanSummary.js.map +0 -1
  360. package/dist/node_modules/simple-git/src/lib/responses/ConfigList.js +0 -89
  361. package/dist/node_modules/simple-git/src/lib/responses/ConfigList.js.map +0 -1
  362. package/dist/node_modules/simple-git/src/lib/responses/DiffSummary.js +0 -16
  363. package/dist/node_modules/simple-git/src/lib/responses/DiffSummary.js.map +0 -1
  364. package/dist/node_modules/simple-git/src/lib/responses/FileStatusSummary.js +0 -18
  365. package/dist/node_modules/simple-git/src/lib/responses/FileStatusSummary.js.map +0 -1
  366. package/dist/node_modules/simple-git/src/lib/responses/GetRemoteSummary.js +0 -30
  367. package/dist/node_modules/simple-git/src/lib/responses/GetRemoteSummary.js.map +0 -1
  368. package/dist/node_modules/simple-git/src/lib/responses/InitSummary.js +0 -36
  369. package/dist/node_modules/simple-git/src/lib/responses/InitSummary.js.map +0 -1
  370. package/dist/node_modules/simple-git/src/lib/responses/MergeSummary.js +0 -35
  371. package/dist/node_modules/simple-git/src/lib/responses/MergeSummary.js.map +0 -1
  372. package/dist/node_modules/simple-git/src/lib/responses/PullSummary.d.ts +0 -12
  373. package/dist/node_modules/simple-git/src/lib/responses/PullSummary.js +0 -22
  374. package/dist/node_modules/simple-git/src/lib/responses/PullSummary.js.map +0 -1
  375. package/dist/node_modules/simple-git/src/lib/responses/StatusSummary.js +0 -128
  376. package/dist/node_modules/simple-git/src/lib/responses/StatusSummary.js.map +0 -1
  377. package/dist/node_modules/simple-git/src/lib/responses/TagList.js +0 -56
  378. package/dist/node_modules/simple-git/src/lib/responses/TagList.js.map +0 -1
  379. package/dist/node_modules/simple-git/src/lib/runners/git-executor-chain.js +0 -173
  380. package/dist/node_modules/simple-git/src/lib/runners/git-executor-chain.js.map +0 -1
  381. package/dist/node_modules/simple-git/src/lib/runners/git-executor.js +0 -21
  382. package/dist/node_modules/simple-git/src/lib/runners/git-executor.js.map +0 -1
  383. package/dist/node_modules/simple-git/src/lib/runners/promise-wrapped.js +0 -133
  384. package/dist/node_modules/simple-git/src/lib/runners/promise-wrapped.js.map +0 -1
  385. package/dist/node_modules/simple-git/src/lib/runners/scheduler.js +0 -48
  386. package/dist/node_modules/simple-git/src/lib/runners/scheduler.js.map +0 -1
  387. package/dist/node_modules/simple-git/src/lib/runners/tasks-pending-queue.js +0 -64
  388. package/dist/node_modules/simple-git/src/lib/runners/tasks-pending-queue.js.map +0 -1
  389. package/dist/node_modules/simple-git/src/lib/simple-git-api.js +0 -80
  390. package/dist/node_modules/simple-git/src/lib/simple-git-api.js.map +0 -1
  391. package/dist/node_modules/simple-git/src/lib/task-callback.js +0 -39
  392. package/dist/node_modules/simple-git/src/lib/task-callback.js.map +0 -1
  393. package/dist/node_modules/simple-git/src/lib/tasks/apply-patch.js +0 -9
  394. package/dist/node_modules/simple-git/src/lib/tasks/apply-patch.js.map +0 -1
  395. package/dist/node_modules/simple-git/src/lib/tasks/branch.js +0 -76
  396. package/dist/node_modules/simple-git/src/lib/tasks/branch.js.map +0 -1
  397. package/dist/node_modules/simple-git/src/lib/tasks/change-working-directory.js +0 -15
  398. package/dist/node_modules/simple-git/src/lib/tasks/change-working-directory.js.map +0 -1
  399. package/dist/node_modules/simple-git/src/lib/tasks/check-ignore.js +0 -13
  400. package/dist/node_modules/simple-git/src/lib/tasks/check-ignore.js.map +0 -1
  401. package/dist/node_modules/simple-git/src/lib/tasks/check-is-repo.js +0 -61
  402. package/dist/node_modules/simple-git/src/lib/tasks/check-is-repo.js.map +0 -1
  403. package/dist/node_modules/simple-git/src/lib/tasks/clean.js +0 -85
  404. package/dist/node_modules/simple-git/src/lib/tasks/clean.js.map +0 -1
  405. package/dist/node_modules/simple-git/src/lib/tasks/clone.js +0 -22
  406. package/dist/node_modules/simple-git/src/lib/tasks/clone.js.map +0 -1
  407. package/dist/node_modules/simple-git/src/lib/tasks/commit.d.ts +0 -3
  408. package/dist/node_modules/simple-git/src/lib/tasks/commit.js +0 -16
  409. package/dist/node_modules/simple-git/src/lib/tasks/commit.js.map +0 -1
  410. package/dist/node_modules/simple-git/src/lib/tasks/config.js +0 -73
  411. package/dist/node_modules/simple-git/src/lib/tasks/config.js.map +0 -1
  412. package/dist/node_modules/simple-git/src/lib/tasks/diff.d.ts +0 -3
  413. package/dist/node_modules/simple-git/src/lib/tasks/diff.js +0 -15
  414. package/dist/node_modules/simple-git/src/lib/tasks/diff.js.map +0 -1
  415. package/dist/node_modules/simple-git/src/lib/tasks/fetch.js +0 -17
  416. package/dist/node_modules/simple-git/src/lib/tasks/fetch.js.map +0 -1
  417. package/dist/node_modules/simple-git/src/lib/tasks/grep.js +0 -76
  418. package/dist/node_modules/simple-git/src/lib/tasks/grep.js.map +0 -1
  419. package/dist/node_modules/simple-git/src/lib/tasks/hash-object.js +0 -16
  420. package/dist/node_modules/simple-git/src/lib/tasks/hash-object.js.map +0 -1
  421. package/dist/node_modules/simple-git/src/lib/tasks/init.js +0 -23
  422. package/dist/node_modules/simple-git/src/lib/tasks/init.js.map +0 -1
  423. package/dist/node_modules/simple-git/src/lib/tasks/log.js +0 -109
  424. package/dist/node_modules/simple-git/src/lib/tasks/log.js.map +0 -1
  425. package/dist/node_modules/simple-git/src/lib/tasks/merge.js +0 -24
  426. package/dist/node_modules/simple-git/src/lib/tasks/merge.js.map +0 -1
  427. package/dist/node_modules/simple-git/src/lib/tasks/move.js +0 -14
  428. package/dist/node_modules/simple-git/src/lib/tasks/move.js.map +0 -1
  429. package/dist/node_modules/simple-git/src/lib/tasks/pull.js +0 -19
  430. package/dist/node_modules/simple-git/src/lib/tasks/pull.js.map +0 -1
  431. package/dist/node_modules/simple-git/src/lib/tasks/push.js +0 -29
  432. package/dist/node_modules/simple-git/src/lib/tasks/push.js.map +0 -1
  433. package/dist/node_modules/simple-git/src/lib/tasks/remote.js +0 -42
  434. package/dist/node_modules/simple-git/src/lib/tasks/remote.js.map +0 -1
  435. package/dist/node_modules/simple-git/src/lib/tasks/reset.js +0 -38
  436. package/dist/node_modules/simple-git/src/lib/tasks/reset.js.map +0 -1
  437. package/dist/node_modules/simple-git/src/lib/tasks/stash-list.d.ts +0 -3
  438. package/dist/node_modules/simple-git/src/lib/tasks/stash-list.js +0 -16
  439. package/dist/node_modules/simple-git/src/lib/tasks/stash-list.js.map +0 -1
  440. package/dist/node_modules/simple-git/src/lib/tasks/status.js +0 -15
  441. package/dist/node_modules/simple-git/src/lib/tasks/status.js.map +0 -1
  442. package/dist/node_modules/simple-git/src/lib/tasks/sub-module.js +0 -25
  443. package/dist/node_modules/simple-git/src/lib/tasks/sub-module.js.map +0 -1
  444. package/dist/node_modules/simple-git/src/lib/tasks/tag.js +0 -45
  445. package/dist/node_modules/simple-git/src/lib/tasks/tag.js.map +0 -1
  446. package/dist/node_modules/simple-git/src/lib/tasks/task.js +0 -52
  447. package/dist/node_modules/simple-git/src/lib/tasks/task.js.map +0 -1
  448. package/dist/node_modules/simple-git/src/lib/types/handlers.js +0 -3
  449. package/dist/node_modules/simple-git/src/lib/types/handlers.js.map +0 -1
  450. package/dist/node_modules/simple-git/src/lib/types/index.js +0 -15
  451. package/dist/node_modules/simple-git/src/lib/types/index.js.map +0 -1
  452. package/dist/node_modules/simple-git/src/lib/types/tasks.js +0 -3
  453. package/dist/node_modules/simple-git/src/lib/types/tasks.js.map +0 -1
  454. package/dist/node_modules/simple-git/src/lib/utils/argument-filters.js +0 -47
  455. package/dist/node_modules/simple-git/src/lib/utils/argument-filters.js.map +0 -1
  456. package/dist/node_modules/simple-git/src/lib/utils/exit-codes.js +0 -14
  457. package/dist/node_modules/simple-git/src/lib/utils/exit-codes.js.map +0 -1
  458. package/dist/node_modules/simple-git/src/lib/utils/git-output-streams.js +0 -14
  459. package/dist/node_modules/simple-git/src/lib/utils/git-output-streams.js.map +0 -1
  460. package/dist/node_modules/simple-git/src/lib/utils/index.js +0 -21
  461. package/dist/node_modules/simple-git/src/lib/utils/index.js.map +0 -1
  462. package/dist/node_modules/simple-git/src/lib/utils/line-parser.js +0 -52
  463. package/dist/node_modules/simple-git/src/lib/utils/line-parser.js.map +0 -1
  464. package/dist/node_modules/simple-git/src/lib/utils/simple-git-options.js +0 -16
  465. package/dist/node_modules/simple-git/src/lib/utils/simple-git-options.js.map +0 -1
  466. package/dist/node_modules/simple-git/src/lib/utils/task-options.js +0 -58
  467. package/dist/node_modules/simple-git/src/lib/utils/task-options.js.map +0 -1
  468. package/dist/node_modules/simple-git/src/lib/utils/task-parser.js +0 -24
  469. package/dist/node_modules/simple-git/src/lib/utils/task-parser.js.map +0 -1
  470. package/dist/node_modules/simple-git/src/lib/utils/util.js +0 -146
  471. package/dist/node_modules/simple-git/src/lib/utils/util.js.map +0 -1
  472. package/dist/node_modules/simple-git/typings/types.d.ts +0 -14
  473. /package/dist/node_modules/simple-git/{src → dist/src}/lib/errors/git-construct-error.d.ts +0 -0
  474. /package/dist/node_modules/simple-git/{src → dist/src}/lib/errors/git-response-error.d.ts +0 -0
  475. /package/dist/node_modules/simple-git/{src → dist/src}/lib/errors/task-configuration-error.d.ts +0 -0
  476. /package/dist/node_modules/simple-git/{src → dist/src}/lib/git-logger.d.ts +0 -0
  477. /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-branch-delete.d.ts +0 -0
  478. /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-commit.d.ts +0 -0
  479. /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-fetch.d.ts +0 -0
  480. /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-merge.d.ts +0 -0
  481. /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-move.d.ts +0 -0
  482. /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-push.d.ts +0 -0
  483. /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-remote-messages.d.ts +0 -0
  484. /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-remote-objects.d.ts +0 -0
  485. /package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/command-config-prefixing-plugin.d.ts +0 -0
  486. /package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/error-detection.plugin.d.ts +0 -0
  487. /package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/spawn-options-plugin.d.ts +0 -0
  488. /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/BranchDeleteSummary.d.ts +0 -0
  489. /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/CheckIgnore.d.ts +0 -0
  490. /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/CleanSummary.d.ts +0 -0
  491. /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/ConfigList.d.ts +0 -0
  492. /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/DiffSummary.d.ts +0 -0
  493. /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/GetRemoteSummary.d.ts +0 -0
  494. /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/InitSummary.d.ts +0 -0
  495. /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/MergeSummary.d.ts +0 -0
  496. /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/TagList.d.ts +0 -0
  497. /package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/promise-wrapped.d.ts +0 -0
  498. /package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/scheduler.d.ts +0 -0
  499. /package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/tasks-pending-queue.d.ts +0 -0
  500. /package/dist/node_modules/simple-git/{src → dist/src}/lib/simple-git-api.d.ts +0 -0
  501. /package/dist/node_modules/simple-git/{src → dist/src}/lib/task-callback.d.ts +0 -0
  502. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/apply-patch.d.ts +0 -0
  503. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/branch.d.ts +0 -0
  504. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/change-working-directory.d.ts +0 -0
  505. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/check-ignore.d.ts +0 -0
  506. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/check-is-repo.d.ts +0 -0
  507. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/clean.d.ts +0 -0
  508. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/grep.d.ts +0 -0
  509. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/hash-object.d.ts +0 -0
  510. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/init.d.ts +0 -0
  511. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/merge.d.ts +0 -0
  512. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/move.d.ts +0 -0
  513. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/pull.d.ts +0 -0
  514. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/push.d.ts +0 -0
  515. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/reset.d.ts +0 -0
  516. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/status.d.ts +0 -0
  517. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/sub-module.d.ts +0 -0
  518. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/tag.d.ts +0 -0
  519. /package/dist/node_modules/simple-git/{src → dist/src}/lib/types/handlers.d.ts +0 -0
  520. /package/dist/node_modules/simple-git/{src → dist/src}/lib/types/tasks.d.ts +0 -0
  521. /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/argument-filters.d.ts +0 -0
  522. /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/git-output-streams.d.ts +0 -0
  523. /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/index.d.ts +0 -0
  524. /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/simple-git-options.d.ts +0 -0
  525. /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/task-options.d.ts +0 -0
@@ -1,364 +0,0 @@
1
- declare module "zlib" {
2
- import * as stream from "stream";
3
-
4
- interface ZlibOptions {
5
- /**
6
- * @default constants.Z_NO_FLUSH
7
- */
8
- flush?: number | undefined;
9
- /**
10
- * @default constants.Z_FINISH
11
- */
12
- finishFlush?: number | undefined;
13
- /**
14
- * @default 16*1024
15
- */
16
- chunkSize?: number | undefined;
17
- windowBits?: number | undefined;
18
- level?: number | undefined; // compression only
19
- memLevel?: number | undefined; // compression only
20
- strategy?: number | undefined; // compression only
21
- dictionary?: NodeJS.ArrayBufferView | ArrayBuffer | undefined; // deflate/inflate only, empty dictionary by default
22
- info?: boolean | undefined;
23
- maxOutputLength?: number | undefined;
24
- }
25
-
26
- interface BrotliOptions {
27
- /**
28
- * @default constants.BROTLI_OPERATION_PROCESS
29
- */
30
- flush?: number | undefined;
31
- /**
32
- * @default constants.BROTLI_OPERATION_FINISH
33
- */
34
- finishFlush?: number | undefined;
35
- /**
36
- * @default 16*1024
37
- */
38
- chunkSize?: number | undefined;
39
- params?: {
40
- /**
41
- * Each key is a `constants.BROTLI_*` constant.
42
- */
43
- [key: number]: boolean | number;
44
- } | undefined;
45
- maxOutputLength?: number | undefined;
46
- }
47
-
48
- interface Zlib {
49
- /** @deprecated Use bytesWritten instead. */
50
- readonly bytesRead: number;
51
- readonly bytesWritten: number;
52
- shell?: boolean | string | undefined;
53
- close(callback?: () => void): void;
54
- flush(kind?: number, callback?: () => void): void;
55
- flush(callback?: () => void): void;
56
- }
57
-
58
- interface ZlibParams {
59
- params(level: number, strategy: number, callback: () => void): void;
60
- }
61
-
62
- interface ZlibReset {
63
- reset(): void;
64
- }
65
-
66
- interface BrotliCompress extends stream.Transform, Zlib {}
67
- interface BrotliDecompress extends stream.Transform, Zlib {}
68
- interface Gzip extends stream.Transform, Zlib {}
69
- interface Gunzip extends stream.Transform, Zlib {}
70
- interface Deflate extends stream.Transform, Zlib, ZlibReset, ZlibParams {}
71
- interface Inflate extends stream.Transform, Zlib, ZlibReset {}
72
- interface DeflateRaw extends stream.Transform, Zlib, ZlibReset, ZlibParams {}
73
- interface InflateRaw extends stream.Transform, Zlib, ZlibReset {}
74
- interface Unzip extends stream.Transform, Zlib {}
75
-
76
- function createBrotliCompress(options?: BrotliOptions): BrotliCompress;
77
- function createBrotliDecompress(options?: BrotliOptions): BrotliDecompress;
78
- function createGzip(options?: ZlibOptions): Gzip;
79
- function createGunzip(options?: ZlibOptions): Gunzip;
80
- function createDeflate(options?: ZlibOptions): Deflate;
81
- function createInflate(options?: ZlibOptions): Inflate;
82
- function createDeflateRaw(options?: ZlibOptions): DeflateRaw;
83
- function createInflateRaw(options?: ZlibOptions): InflateRaw;
84
- function createUnzip(options?: ZlibOptions): Unzip;
85
-
86
- type InputType = string | ArrayBuffer | NodeJS.ArrayBufferView;
87
-
88
- type CompressCallback = (error: Error | null, result: Buffer) => void;
89
-
90
- function brotliCompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
91
- function brotliCompress(buf: InputType, callback: CompressCallback): void;
92
- namespace brotliCompress {
93
- function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<Buffer>;
94
- }
95
-
96
- function brotliCompressSync(buf: InputType, options?: BrotliOptions): Buffer;
97
-
98
- function brotliDecompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
99
- function brotliDecompress(buf: InputType, callback: CompressCallback): void;
100
- namespace brotliDecompress {
101
- function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<Buffer>;
102
- }
103
-
104
- function brotliDecompressSync(buf: InputType, options?: BrotliOptions): Buffer;
105
-
106
- function deflate(buf: InputType, callback: CompressCallback): void;
107
- function deflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
108
- namespace deflate {
109
- function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
110
- }
111
-
112
- function deflateSync(buf: InputType, options?: ZlibOptions): Buffer;
113
-
114
- function deflateRaw(buf: InputType, callback: CompressCallback): void;
115
- function deflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
116
- namespace deflateRaw {
117
- function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
118
- }
119
-
120
- function deflateRawSync(buf: InputType, options?: ZlibOptions): Buffer;
121
-
122
- function gzip(buf: InputType, callback: CompressCallback): void;
123
- function gzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
124
- namespace gzip {
125
- function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
126
- }
127
-
128
- function gzipSync(buf: InputType, options?: ZlibOptions): Buffer;
129
-
130
- function gunzip(buf: InputType, callback: CompressCallback): void;
131
- function gunzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
132
- namespace gunzip {
133
- function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
134
- }
135
-
136
- function gunzipSync(buf: InputType, options?: ZlibOptions): Buffer;
137
-
138
- function inflate(buf: InputType, callback: CompressCallback): void;
139
- function inflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
140
- namespace inflate {
141
- function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
142
- }
143
-
144
- function inflateSync(buf: InputType, options?: ZlibOptions): Buffer;
145
-
146
- function inflateRaw(buf: InputType, callback: CompressCallback): void;
147
- function inflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
148
- namespace inflateRaw {
149
- function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
150
- }
151
-
152
- function inflateRawSync(buf: InputType, options?: ZlibOptions): Buffer;
153
-
154
- function unzip(buf: InputType, callback: CompressCallback): void;
155
- function unzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
156
- namespace unzip {
157
- function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
158
- }
159
-
160
- function unzipSync(buf: InputType, options?: ZlibOptions): Buffer;
161
-
162
- namespace constants {
163
- const BROTLI_DECODE: number;
164
- const BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: number;
165
- const BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: number;
166
- const BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: number;
167
- const BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: number;
168
- const BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: number;
169
- const BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: number;
170
- const BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: number;
171
- const BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: number;
172
- const BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: number;
173
- const BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: number;
174
- const BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: number;
175
- const BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: number;
176
- const BROTLI_DECODER_ERROR_FORMAT_DISTANCE: number;
177
- const BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: number;
178
- const BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: number;
179
- const BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: number;
180
- const BROTLI_DECODER_ERROR_FORMAT_PADDING_1: number;
181
- const BROTLI_DECODER_ERROR_FORMAT_PADDING_2: number;
182
- const BROTLI_DECODER_ERROR_FORMAT_RESERVED: number;
183
- const BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: number;
184
- const BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: number;
185
- const BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: number;
186
- const BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: number;
187
- const BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: number;
188
- const BROTLI_DECODER_ERROR_UNREACHABLE: number;
189
- const BROTLI_DECODER_NEEDS_MORE_INPUT: number;
190
- const BROTLI_DECODER_NEEDS_MORE_OUTPUT: number;
191
- const BROTLI_DECODER_NO_ERROR: number;
192
- const BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: number;
193
- const BROTLI_DECODER_PARAM_LARGE_WINDOW: number;
194
- const BROTLI_DECODER_RESULT_ERROR: number;
195
- const BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: number;
196
- const BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: number;
197
- const BROTLI_DECODER_RESULT_SUCCESS: number;
198
- const BROTLI_DECODER_SUCCESS: number;
199
-
200
- const BROTLI_DEFAULT_MODE: number;
201
- const BROTLI_DEFAULT_QUALITY: number;
202
- const BROTLI_DEFAULT_WINDOW: number;
203
- const BROTLI_ENCODE: number;
204
- const BROTLI_LARGE_MAX_WINDOW_BITS: number;
205
- const BROTLI_MAX_INPUT_BLOCK_BITS: number;
206
- const BROTLI_MAX_QUALITY: number;
207
- const BROTLI_MAX_WINDOW_BITS: number;
208
- const BROTLI_MIN_INPUT_BLOCK_BITS: number;
209
- const BROTLI_MIN_QUALITY: number;
210
- const BROTLI_MIN_WINDOW_BITS: number;
211
-
212
- const BROTLI_MODE_FONT: number;
213
- const BROTLI_MODE_GENERIC: number;
214
- const BROTLI_MODE_TEXT: number;
215
-
216
- const BROTLI_OPERATION_EMIT_METADATA: number;
217
- const BROTLI_OPERATION_FINISH: number;
218
- const BROTLI_OPERATION_FLUSH: number;
219
- const BROTLI_OPERATION_PROCESS: number;
220
-
221
- const BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: number;
222
- const BROTLI_PARAM_LARGE_WINDOW: number;
223
- const BROTLI_PARAM_LGBLOCK: number;
224
- const BROTLI_PARAM_LGWIN: number;
225
- const BROTLI_PARAM_MODE: number;
226
- const BROTLI_PARAM_NDIRECT: number;
227
- const BROTLI_PARAM_NPOSTFIX: number;
228
- const BROTLI_PARAM_QUALITY: number;
229
- const BROTLI_PARAM_SIZE_HINT: number;
230
-
231
- const DEFLATE: number;
232
- const DEFLATERAW: number;
233
- const GUNZIP: number;
234
- const GZIP: number;
235
- const INFLATE: number;
236
- const INFLATERAW: number;
237
- const UNZIP: number;
238
-
239
- // Allowed flush values.
240
- const Z_NO_FLUSH: number;
241
- const Z_PARTIAL_FLUSH: number;
242
- const Z_SYNC_FLUSH: number;
243
- const Z_FULL_FLUSH: number;
244
- const Z_FINISH: number;
245
- const Z_BLOCK: number;
246
- const Z_TREES: number;
247
-
248
- // Return codes for the compression/decompression functions.
249
- // Negative values are errors, positive values are used for special but normal events.
250
- const Z_OK: number;
251
- const Z_STREAM_END: number;
252
- const Z_NEED_DICT: number;
253
- const Z_ERRNO: number;
254
- const Z_STREAM_ERROR: number;
255
- const Z_DATA_ERROR: number;
256
- const Z_MEM_ERROR: number;
257
- const Z_BUF_ERROR: number;
258
- const Z_VERSION_ERROR: number;
259
-
260
- // Compression levels.
261
- const Z_NO_COMPRESSION: number;
262
- const Z_BEST_SPEED: number;
263
- const Z_BEST_COMPRESSION: number;
264
- const Z_DEFAULT_COMPRESSION: number;
265
-
266
- // Compression strategy.
267
- const Z_FILTERED: number;
268
- const Z_HUFFMAN_ONLY: number;
269
- const Z_RLE: number;
270
- const Z_FIXED: number;
271
- const Z_DEFAULT_STRATEGY: number;
272
-
273
- const Z_DEFAULT_WINDOWBITS: number;
274
- const Z_MIN_WINDOWBITS: number;
275
- const Z_MAX_WINDOWBITS: number;
276
-
277
- const Z_MIN_CHUNK: number;
278
- const Z_MAX_CHUNK: number;
279
- const Z_DEFAULT_CHUNK: number;
280
-
281
- const Z_MIN_MEMLEVEL: number;
282
- const Z_MAX_MEMLEVEL: number;
283
- const Z_DEFAULT_MEMLEVEL: number;
284
-
285
- const Z_MIN_LEVEL: number;
286
- const Z_MAX_LEVEL: number;
287
- const Z_DEFAULT_LEVEL: number;
288
-
289
- const ZLIB_VERNUM: number;
290
- }
291
-
292
- // Allowed flush values.
293
- /** @deprecated Use `constants.Z_NO_FLUSH` */
294
- const Z_NO_FLUSH: number;
295
- /** @deprecated Use `constants.Z_PARTIAL_FLUSH` */
296
- const Z_PARTIAL_FLUSH: number;
297
- /** @deprecated Use `constants.Z_SYNC_FLUSH` */
298
- const Z_SYNC_FLUSH: number;
299
- /** @deprecated Use `constants.Z_FULL_FLUSH` */
300
- const Z_FULL_FLUSH: number;
301
- /** @deprecated Use `constants.Z_FINISH` */
302
- const Z_FINISH: number;
303
- /** @deprecated Use `constants.Z_BLOCK` */
304
- const Z_BLOCK: number;
305
- /** @deprecated Use `constants.Z_TREES` */
306
- const Z_TREES: number;
307
-
308
- // Return codes for the compression/decompression functions.
309
- // Negative values are errors, positive values are used for special but normal events.
310
- /** @deprecated Use `constants.Z_OK` */
311
- const Z_OK: number;
312
- /** @deprecated Use `constants.Z_STREAM_END` */
313
- const Z_STREAM_END: number;
314
- /** @deprecated Use `constants.Z_NEED_DICT` */
315
- const Z_NEED_DICT: number;
316
- /** @deprecated Use `constants.Z_ERRNO` */
317
- const Z_ERRNO: number;
318
- /** @deprecated Use `constants.Z_STREAM_ERROR` */
319
- const Z_STREAM_ERROR: number;
320
- /** @deprecated Use `constants.Z_DATA_ERROR` */
321
- const Z_DATA_ERROR: number;
322
- /** @deprecated Use `constants.Z_MEM_ERROR` */
323
- const Z_MEM_ERROR: number;
324
- /** @deprecated Use `constants.Z_BUF_ERROR` */
325
- const Z_BUF_ERROR: number;
326
- /** @deprecated Use `constants.Z_VERSION_ERROR` */
327
- const Z_VERSION_ERROR: number;
328
-
329
- // Compression levels.
330
- /** @deprecated Use `constants.Z_NO_COMPRESSION` */
331
- const Z_NO_COMPRESSION: number;
332
- /** @deprecated Use `constants.Z_BEST_SPEED` */
333
- const Z_BEST_SPEED: number;
334
- /** @deprecated Use `constants.Z_BEST_COMPRESSION` */
335
- const Z_BEST_COMPRESSION: number;
336
- /** @deprecated Use `constants.Z_DEFAULT_COMPRESSION` */
337
- const Z_DEFAULT_COMPRESSION: number;
338
-
339
- // Compression strategy.
340
- /** @deprecated Use `constants.Z_FILTERED` */
341
- const Z_FILTERED: number;
342
- /** @deprecated Use `constants.Z_HUFFMAN_ONLY` */
343
- const Z_HUFFMAN_ONLY: number;
344
- /** @deprecated Use `constants.Z_RLE` */
345
- const Z_RLE: number;
346
- /** @deprecated Use `constants.Z_FIXED` */
347
- const Z_FIXED: number;
348
- /** @deprecated Use `constants.Z_DEFAULT_STRATEGY` */
349
- const Z_DEFAULT_STRATEGY: number;
350
-
351
- /** @deprecated */
352
- const Z_BINARY: number;
353
- /** @deprecated */
354
- const Z_TEXT: number;
355
- /** @deprecated */
356
- const Z_ASCII: number;
357
- /** @deprecated */
358
- const Z_UNKNOWN: number;
359
- /** @deprecated */
360
- const Z_DEFLATED: number;
361
- }
362
- declare module "node:zlib" {
363
- export * from "zlib";
364
- }
@@ -1,302 +0,0 @@
1
- 'use strict'
2
-
3
- const fs = require('graceful-fs')
4
- const path = require('path')
5
- const assert = require('assert')
6
-
7
- const isWindows = (process.platform === 'win32')
8
-
9
- function defaults (options) {
10
- const methods = [
11
- 'unlink',
12
- 'chmod',
13
- 'stat',
14
- 'lstat',
15
- 'rmdir',
16
- 'readdir'
17
- ]
18
- methods.forEach(m => {
19
- options[m] = options[m] || fs[m]
20
- m = m + 'Sync'
21
- options[m] = options[m] || fs[m]
22
- })
23
-
24
- options.maxBusyTries = options.maxBusyTries || 3
25
- }
26
-
27
- function rimraf (p, options, cb) {
28
- let busyTries = 0
29
-
30
- if (typeof options === 'function') {
31
- cb = options
32
- options = {}
33
- }
34
-
35
- assert(p, 'rimraf: missing path')
36
- assert.strictEqual(typeof p, 'string', 'rimraf: path should be a string')
37
- assert.strictEqual(typeof cb, 'function', 'rimraf: callback function required')
38
- assert(options, 'rimraf: invalid options argument provided')
39
- assert.strictEqual(typeof options, 'object', 'rimraf: options should be object')
40
-
41
- defaults(options)
42
-
43
- rimraf_(p, options, function CB (er) {
44
- if (er) {
45
- if ((er.code === 'EBUSY' || er.code === 'ENOTEMPTY' || er.code === 'EPERM') &&
46
- busyTries < options.maxBusyTries) {
47
- busyTries++
48
- const time = busyTries * 100
49
- // try again, with the same exact callback as this one.
50
- return setTimeout(() => rimraf_(p, options, CB), time)
51
- }
52
-
53
- // already gone
54
- if (er.code === 'ENOENT') er = null
55
- }
56
-
57
- cb(er)
58
- })
59
- }
60
-
61
- // Two possible strategies.
62
- // 1. Assume it's a file. unlink it, then do the dir stuff on EPERM or EISDIR
63
- // 2. Assume it's a directory. readdir, then do the file stuff on ENOTDIR
64
- //
65
- // Both result in an extra syscall when you guess wrong. However, there
66
- // are likely far more normal files in the world than directories. This
67
- // is based on the assumption that a the average number of files per
68
- // directory is >= 1.
69
- //
70
- // If anyone ever complains about this, then I guess the strategy could
71
- // be made configurable somehow. But until then, YAGNI.
72
- function rimraf_ (p, options, cb) {
73
- assert(p)
74
- assert(options)
75
- assert(typeof cb === 'function')
76
-
77
- // sunos lets the root user unlink directories, which is... weird.
78
- // so we have to lstat here and make sure it's not a dir.
79
- options.lstat(p, (er, st) => {
80
- if (er && er.code === 'ENOENT') {
81
- return cb(null)
82
- }
83
-
84
- // Windows can EPERM on stat. Life is suffering.
85
- if (er && er.code === 'EPERM' && isWindows) {
86
- return fixWinEPERM(p, options, er, cb)
87
- }
88
-
89
- if (st && st.isDirectory()) {
90
- return rmdir(p, options, er, cb)
91
- }
92
-
93
- options.unlink(p, er => {
94
- if (er) {
95
- if (er.code === 'ENOENT') {
96
- return cb(null)
97
- }
98
- if (er.code === 'EPERM') {
99
- return (isWindows)
100
- ? fixWinEPERM(p, options, er, cb)
101
- : rmdir(p, options, er, cb)
102
- }
103
- if (er.code === 'EISDIR') {
104
- return rmdir(p, options, er, cb)
105
- }
106
- }
107
- return cb(er)
108
- })
109
- })
110
- }
111
-
112
- function fixWinEPERM (p, options, er, cb) {
113
- assert(p)
114
- assert(options)
115
- assert(typeof cb === 'function')
116
-
117
- options.chmod(p, 0o666, er2 => {
118
- if (er2) {
119
- cb(er2.code === 'ENOENT' ? null : er)
120
- } else {
121
- options.stat(p, (er3, stats) => {
122
- if (er3) {
123
- cb(er3.code === 'ENOENT' ? null : er)
124
- } else if (stats.isDirectory()) {
125
- rmdir(p, options, er, cb)
126
- } else {
127
- options.unlink(p, cb)
128
- }
129
- })
130
- }
131
- })
132
- }
133
-
134
- function fixWinEPERMSync (p, options, er) {
135
- let stats
136
-
137
- assert(p)
138
- assert(options)
139
-
140
- try {
141
- options.chmodSync(p, 0o666)
142
- } catch (er2) {
143
- if (er2.code === 'ENOENT') {
144
- return
145
- } else {
146
- throw er
147
- }
148
- }
149
-
150
- try {
151
- stats = options.statSync(p)
152
- } catch (er3) {
153
- if (er3.code === 'ENOENT') {
154
- return
155
- } else {
156
- throw er
157
- }
158
- }
159
-
160
- if (stats.isDirectory()) {
161
- rmdirSync(p, options, er)
162
- } else {
163
- options.unlinkSync(p)
164
- }
165
- }
166
-
167
- function rmdir (p, options, originalEr, cb) {
168
- assert(p)
169
- assert(options)
170
- assert(typeof cb === 'function')
171
-
172
- // try to rmdir first, and only readdir on ENOTEMPTY or EEXIST (SunOS)
173
- // if we guessed wrong, and it's not a directory, then
174
- // raise the original error.
175
- options.rmdir(p, er => {
176
- if (er && (er.code === 'ENOTEMPTY' || er.code === 'EEXIST' || er.code === 'EPERM')) {
177
- rmkids(p, options, cb)
178
- } else if (er && er.code === 'ENOTDIR') {
179
- cb(originalEr)
180
- } else {
181
- cb(er)
182
- }
183
- })
184
- }
185
-
186
- function rmkids (p, options, cb) {
187
- assert(p)
188
- assert(options)
189
- assert(typeof cb === 'function')
190
-
191
- options.readdir(p, (er, files) => {
192
- if (er) return cb(er)
193
-
194
- let n = files.length
195
- let errState
196
-
197
- if (n === 0) return options.rmdir(p, cb)
198
-
199
- files.forEach(f => {
200
- rimraf(path.join(p, f), options, er => {
201
- if (errState) {
202
- return
203
- }
204
- if (er) return cb(errState = er)
205
- if (--n === 0) {
206
- options.rmdir(p, cb)
207
- }
208
- })
209
- })
210
- })
211
- }
212
-
213
- // this looks simpler, and is strictly *faster*, but will
214
- // tie up the JavaScript thread and fail on excessively
215
- // deep directory trees.
216
- function rimrafSync (p, options) {
217
- let st
218
-
219
- options = options || {}
220
- defaults(options)
221
-
222
- assert(p, 'rimraf: missing path')
223
- assert.strictEqual(typeof p, 'string', 'rimraf: path should be a string')
224
- assert(options, 'rimraf: missing options')
225
- assert.strictEqual(typeof options, 'object', 'rimraf: options should be object')
226
-
227
- try {
228
- st = options.lstatSync(p)
229
- } catch (er) {
230
- if (er.code === 'ENOENT') {
231
- return
232
- }
233
-
234
- // Windows can EPERM on stat. Life is suffering.
235
- if (er.code === 'EPERM' && isWindows) {
236
- fixWinEPERMSync(p, options, er)
237
- }
238
- }
239
-
240
- try {
241
- // sunos lets the root user unlink directories, which is... weird.
242
- if (st && st.isDirectory()) {
243
- rmdirSync(p, options, null)
244
- } else {
245
- options.unlinkSync(p)
246
- }
247
- } catch (er) {
248
- if (er.code === 'ENOENT') {
249
- return
250
- } else if (er.code === 'EPERM') {
251
- return isWindows ? fixWinEPERMSync(p, options, er) : rmdirSync(p, options, er)
252
- } else if (er.code !== 'EISDIR') {
253
- throw er
254
- }
255
- rmdirSync(p, options, er)
256
- }
257
- }
258
-
259
- function rmdirSync (p, options, originalEr) {
260
- assert(p)
261
- assert(options)
262
-
263
- try {
264
- options.rmdirSync(p)
265
- } catch (er) {
266
- if (er.code === 'ENOTDIR') {
267
- throw originalEr
268
- } else if (er.code === 'ENOTEMPTY' || er.code === 'EEXIST' || er.code === 'EPERM') {
269
- rmkidsSync(p, options)
270
- } else if (er.code !== 'ENOENT') {
271
- throw er
272
- }
273
- }
274
- }
275
-
276
- function rmkidsSync (p, options) {
277
- assert(p)
278
- assert(options)
279
- options.readdirSync(p).forEach(f => rimrafSync(path.join(p, f), options))
280
-
281
- if (isWindows) {
282
- // We only end up here once we got ENOTEMPTY at least once, and
283
- // at this point, we are guaranteed to have removed all the kids.
284
- // So, we know that it won't be ENOENT or ENOTDIR or anything else.
285
- // try really hard to delete stuff on windows, because it has a
286
- // PROFOUNDLY annoying habit of not closing handles promptly when
287
- // files are deleted, resulting in spurious ENOTEMPTY errors.
288
- const startTime = Date.now()
289
- do {
290
- try {
291
- const ret = options.rmdirSync(p, options)
292
- return ret
293
- } catch {}
294
- } while (Date.now() - startTime < 500) // give up after 500ms
295
- } else {
296
- const ret = options.rmdirSync(p, options)
297
- return ret
298
- }
299
- }
300
-
301
- module.exports = rimraf
302
- rimraf.sync = rimrafSync