backport 6.1.4 → 6.3.0-beta

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 (291) hide show
  1. package/README.md +53 -42
  2. package/dist/{main.d.ts → backportRun.d.ts} +3 -3
  3. package/dist/{main.js → backportRun.js} +24 -9
  4. package/dist/entrypoint.cli.js +3 -5
  5. package/dist/entrypoint.module.d.ts +4 -3
  6. package/dist/entrypoint.module.js +9 -7
  7. package/dist/options/ConfigOptions.d.ts +6 -0
  8. package/dist/options/cliArgs.d.ts +17 -13
  9. package/dist/options/cliArgs.js +25 -6
  10. package/dist/options/config/config.d.ts +12 -1
  11. package/dist/options/config/config.js +8 -7
  12. package/dist/options/config/globalConfig.d.ts +2 -2
  13. package/dist/options/config/globalConfig.js +18 -16
  14. package/dist/options/config/projectConfig.d.ts +3 -1
  15. package/dist/options/config/projectConfig.js +5 -2
  16. package/dist/options/config/readConfigFile.d.ts +28 -22
  17. package/dist/options/config/readConfigFile.js +2 -2
  18. package/dist/options/options.d.ts +19 -37
  19. package/dist/options/options.js +44 -31
  20. package/dist/runSequentially.d.ts +0 -1
  21. package/dist/runSequentially.js +0 -1
  22. package/dist/scripts/postinstall.js +3 -3
  23. package/dist/services/HandledError.d.ts +6 -4
  24. package/dist/services/HandledError.js +18 -3
  25. package/dist/services/child-process-promisified.d.ts +3 -1
  26. package/dist/services/env.d.ts +5 -4
  27. package/dist/services/env.js +13 -11
  28. package/dist/services/git.d.ts +22 -9
  29. package/dist/services/git.js +66 -54
  30. package/dist/services/github/commitFormatters.d.ts +0 -1
  31. package/dist/services/github/commitFormatters.js +1 -8
  32. package/dist/services/github/v3/createPullRequest.js +16 -10
  33. package/dist/services/github/v3/createStatusComment.d.ts +1 -1
  34. package/dist/services/github/v3/createStatusComment.js +34 -18
  35. package/dist/services/github/v3/getGithubV3ErrorMessage.d.ts +2 -1
  36. package/dist/services/github/v4/FetchPullRequestId.d.ts +0 -7
  37. package/dist/services/github/v4/apiRequestV4.d.ts +21 -17
  38. package/dist/services/github/v4/apiRequestV4.js +38 -28
  39. package/dist/services/github/v4/disablePullRequestAutoMerge.d.ts +0 -7
  40. package/dist/services/github/v4/enablePullRequestAutoMerge.d.ts +0 -7
  41. package/dist/services/github/v4/fetchCommits/fetchCommitBySha.js +3 -3
  42. package/dist/services/github/v4/fetchCommits/fetchCommitsByAuthor.js +2 -2
  43. package/dist/services/github/v4/fetchCommits/fetchPullRequestBySearchQuery.d.ts +1 -8
  44. package/dist/services/github/v4/fetchExistingPullRequest.d.ts +0 -4
  45. package/dist/services/github/v4/fetchExistingPullRequest.js +1 -2
  46. package/dist/services/github/v4/fetchPullRequestAutoMergeMethod.d.ts +0 -9
  47. package/dist/services/github/v4/{fetchProjectConfig.d.ts → fetchRemoteProjectConfig.d.ts} +1 -1
  48. package/dist/services/github/v4/{fetchProjectConfig.js → fetchRemoteProjectConfig.js} +3 -3
  49. package/dist/services/github/v4/getOptionsFromGithub/getOptionsFromGithub.d.ts +7 -1
  50. package/dist/services/github/v4/getOptionsFromGithub/getOptionsFromGithub.js +38 -39
  51. package/dist/services/github/v4/getOptionsFromGithub/query.d.ts +2 -1
  52. package/dist/services/github/v4/getRepoOwnerAndNameFromGitRemotes.d.ts +29 -0
  53. package/dist/services/github/v4/getRepoOwnerAndNameFromGitRemotes.js +56 -0
  54. package/dist/services/github/v4/throwOnInvalidAccessToken.d.ts +4 -5
  55. package/dist/services/github/v4/throwOnInvalidAccessToken.js +10 -7
  56. package/dist/services/logger.d.ts +9 -4
  57. package/dist/services/logger.js +40 -37
  58. package/dist/services/prompts.js +12 -10
  59. package/dist/services/sourceCommit/getExpectedTargetPullRequests.js +1 -1
  60. package/dist/services/sourceCommit/getMockSourceCommit.js +6 -6
  61. package/dist/services/sourceCommit/parseSourceCommit.d.ts +18 -10
  62. package/dist/services/sourceCommit/parseSourceCommit.js +20 -14
  63. package/dist/ui/cherrypickAndCreateTargetPullRequest.d.ts +0 -1
  64. package/dist/ui/cherrypickAndCreateTargetPullRequest.js +13 -14
  65. package/dist/ui/getCommits.js +8 -14
  66. package/dist/ui/getCommitsWithoutBackports.js +6 -6
  67. package/dist/ui/getTargetBranches.js +1 -1
  68. package/dist/ui/maybeSetupRepo.js +24 -10
  69. package/dist/utils/maybe.d.ts +1 -0
  70. package/dist/utils/maybe.js +7 -0
  71. package/dist/utils/packageVersion.d.ts +1 -0
  72. package/dist/{types/PromiseReturnType.js → utils/packageVersion.js} +2 -0
  73. package/dist/utils/redact.d.ts +1 -0
  74. package/dist/utils/redact.js +7 -0
  75. package/package.json +24 -20
  76. package/yarn.lock +160 -237
  77. package/dist/entrypoint.module.private.test.d.ts +0 -1
  78. package/dist/entrypoint.module.private.test.js +0 -37
  79. package/dist/index.d.ts +0 -783
  80. package/dist/index.js +0 -8001
  81. package/dist/ink.d.ts +0 -1
  82. package/dist/ink.js +0 -49
  83. package/dist/options/cliArgs.test.d.ts +0 -1
  84. package/dist/options/cliArgs.test.js +0 -152
  85. package/dist/options/config/config.test.d.ts +0 -1
  86. package/dist/options/config/config.test.js +0 -22
  87. package/dist/options/config/getOptionsFromGit.d.ts +0 -4
  88. package/dist/options/config/getOptionsFromGit.js +0 -8
  89. package/dist/options/config/globalConfig.test.d.ts +0 -1
  90. package/dist/options/config/globalConfig.test.js +0 -74
  91. package/dist/options/config/projectConfig.test.d.ts +0 -1
  92. package/dist/options/config/projectConfig.test.js +0 -99
  93. package/dist/options/getValidatedOptions.d.ts +0 -49
  94. package/dist/options/getValidatedOptions.js +0 -45
  95. package/dist/options/getValidatedOptions.test.d.ts +0 -1
  96. package/dist/options/getValidatedOptions.test.js +0 -97
  97. package/dist/options/options.test.d.ts +0 -1
  98. package/dist/options/options.test.js +0 -335
  99. package/dist/options/parseRequiredOptions.d.ts +0 -71
  100. package/dist/options/parseRequiredOptions.js +0 -68
  101. package/dist/options/parseRequiredOptions.test.d.ts +0 -1
  102. package/dist/options/parseRequiredOptions.test.js +0 -122
  103. package/dist/runSequentially.test.d.ts +0 -1
  104. package/dist/runSequentially.test.js +0 -199
  105. package/dist/runWithOptions.d.ts +0 -9
  106. package/dist/runWithOptions.js +0 -43
  107. package/dist/runWithOptions.test.d.ts +0 -1
  108. package/dist/runWithOptions.test.js +0 -304
  109. package/dist/scripts/generate-gql.d.ts +0 -1
  110. package/dist/scripts/generate-gql.js +0 -15
  111. package/dist/scripts/postinstall.test.d.ts +0 -1
  112. package/dist/scripts/postinstall.test.js +0 -53
  113. package/dist/services/env.test.d.ts +0 -1
  114. package/dist/services/env.test.js +0 -27
  115. package/dist/services/fs-promisified.d.ts +0 -6
  116. package/dist/services/fs-promisified.js +0 -12
  117. package/dist/services/getExpectedTarget.d.ts +0 -9
  118. package/dist/services/getExpectedTarget.js +0 -77
  119. package/dist/services/getExpectedTargetPullRequests.d.ts +0 -9
  120. package/dist/services/getExpectedTargetPullRequests.js +0 -77
  121. package/dist/services/git.integration.test.d.ts +0 -1
  122. package/dist/services/git.integration.test.js +0 -168
  123. package/dist/services/git.test.d.ts +0 -1
  124. package/dist/services/git.test.js +0 -503
  125. package/dist/services/github/commitFormatters.test.d.ts +0 -1
  126. package/dist/services/github/commitFormatters.test.js +0 -11
  127. package/dist/services/github/v3/addAssigneesToPullRequest.test.d.ts +0 -1
  128. package/dist/services/github/v3/addAssigneesToPullRequest.test.js +0 -27
  129. package/dist/services/github/v3/createPullRequest.test.d.ts +0 -1
  130. package/dist/services/github/v3/createPullRequest.test.js +0 -110
  131. package/dist/services/github/v3/createStatusComment.test.d.ts +0 -1
  132. package/dist/services/github/v3/createStatusComment.test.js +0 -291
  133. package/dist/services/github/v4/apiRequestV4.test.d.ts +0 -1
  134. package/dist/services/github/v4/apiRequestV4.test.js +0 -82
  135. package/dist/services/github/v4/enablePullRequestAutoMerge.private.test.d.ts +0 -1
  136. package/dist/services/github/v4/enablePullRequestAutoMerge.private.test.js +0 -112
  137. package/dist/services/github/v4/fetchAuthorId.private.test.d.ts +0 -1
  138. package/dist/services/github/v4/fetchAuthorId.private.test.js +0 -28
  139. package/dist/services/github/v4/fetchCommitByPullNumber.d.ts +0 -5
  140. package/dist/services/github/v4/fetchCommitByPullNumber.js +0 -86
  141. package/dist/services/github/v4/fetchCommitByPullNumber.private.test.d.ts +0 -1
  142. package/dist/services/github/v4/fetchCommitByPullNumber.private.test.js +0 -57
  143. package/dist/services/github/v4/fetchCommitBySha.d.ts +0 -5
  144. package/dist/services/github/v4/fetchCommitBySha.js +0 -95
  145. package/dist/services/github/v4/fetchCommitBySha.private.test.d.ts +0 -1
  146. package/dist/services/github/v4/fetchCommitBySha.private.test.js +0 -50
  147. package/dist/services/github/v4/fetchCommits/allFetchers.private.test.d.ts +0 -1
  148. package/dist/services/github/v4/fetchCommits/allFetchers.private.test.js +0 -78
  149. package/dist/services/github/v4/fetchCommits/fetchCommitByPullNumber.private.test.d.ts +0 -1
  150. package/dist/services/github/v4/fetchCommits/fetchCommitByPullNumber.private.test.js +0 -134
  151. package/dist/services/github/v4/fetchCommits/fetchCommitBySha.private.test.d.ts +0 -1
  152. package/dist/services/github/v4/fetchCommits/fetchCommitBySha.private.test.js +0 -115
  153. package/dist/services/github/v4/fetchCommits/fetchCommitsByAuthor.private.test.d.ts +0 -1
  154. package/dist/services/github/v4/fetchCommits/fetchCommitsByAuthor.private.test.js +0 -200
  155. package/dist/services/github/v4/fetchCommits/fetchCommitsByAuthor.test.d.ts +0 -1
  156. package/dist/services/github/v4/fetchCommits/fetchCommitsByAuthor.test.js +0 -131
  157. package/dist/services/github/v4/fetchCommits/fetchCommitsInDateRange.d.ts +0 -28
  158. package/dist/services/github/v4/fetchCommits/fetchCommitsInDateRange.js +0 -52
  159. package/dist/services/github/v4/fetchCommits/fetchProjectConfig.d.ts +0 -3
  160. package/dist/services/github/v4/fetchCommits/fetchProjectConfig.js +0 -55
  161. package/dist/services/github/v4/fetchCommits/fetchPullRequestBySearchQuery.private.test.d.ts +0 -1
  162. package/dist/services/github/v4/fetchCommits/fetchPullRequestBySearchQuery.private.test.js +0 -85
  163. package/dist/services/github/v4/fetchCommits/fetchPullRequestBySearchQuery.test.d.ts +0 -1
  164. package/dist/services/github/v4/fetchCommits/fetchPullRequestBySearchQuery.test.js +0 -252
  165. package/dist/services/github/v4/fetchCommitsByAuthor.d.ts +0 -28
  166. package/dist/services/github/v4/fetchCommitsByAuthor.js +0 -161
  167. package/dist/services/github/v4/fetchCommitsByAuthor.private.test.d.ts +0 -1
  168. package/dist/services/github/v4/fetchCommitsByAuthor.private.test.js +0 -115
  169. package/dist/services/github/v4/fetchCommitsByAuthor.test.d.ts +0 -1
  170. package/dist/services/github/v4/fetchCommitsByAuthor.test.js +0 -272
  171. package/dist/services/github/v4/fetchDefaultBranch.d.ts +0 -9
  172. package/dist/services/github/v4/fetchDefaultBranch.js +0 -24
  173. package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/fetchDefaultRepoBranchAndPerformStartupChecks.d.ts +0 -4
  174. package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/fetchDefaultRepoBranchAndPerformStartupChecks.js +0 -52
  175. package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/fetchDefaultRepoBranchAndPerformStartupChecks.private.test.d.ts +0 -1
  176. package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/fetchDefaultRepoBranchAndPerformStartupChecks.private.test.js +0 -32
  177. package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/index.d.ts +0 -4
  178. package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/index.js +0 -72
  179. package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/index.private.test.d.ts +0 -1
  180. package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/index.private.test.js +0 -34
  181. package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/query.d.ts +0 -40
  182. package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/query.js +0 -72
  183. package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks.d.ts +0 -17
  184. package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks.js +0 -69
  185. package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks.private.test.d.ts +0 -1
  186. package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks.private.test.js +0 -32
  187. package/dist/services/github/v4/fetchExistingPullRequest.private.test.d.ts +0 -1
  188. package/dist/services/github/v4/fetchExistingPullRequest.private.test.js +0 -47
  189. package/dist/services/github/v4/fetchMergedPullRequests.d.ts +0 -37
  190. package/dist/services/github/v4/fetchMergedPullRequests.js +0 -37
  191. package/dist/services/github/v4/fetchMergedPullRequests.private.test.d.ts +0 -1
  192. package/dist/services/github/v4/fetchMergedPullRequests.private.test.js +0 -59
  193. package/dist/services/github/v4/fetchMergedPullRequests.test.d.ts +0 -1
  194. package/dist/services/github/v4/fetchMergedPullRequests.test.js +0 -22
  195. package/dist/services/github/v4/fetchProjectConfig.private.test.d.ts +0 -1
  196. package/dist/services/github/v4/fetchProjectConfig.private.test.js +0 -52
  197. package/dist/services/github/v4/fetchProjectConfig.test.d.ts +0 -1
  198. package/dist/services/github/v4/fetchProjectConfig.test.js +0 -37
  199. package/dist/services/github/v4/fetchPullRequestBySearchQuery.d.ts +0 -9
  200. package/dist/services/github/v4/fetchPullRequestBySearchQuery.js +0 -92
  201. package/dist/services/github/v4/fetchPullRequestBySearchQuery.private.test.d.ts +0 -1
  202. package/dist/services/github/v4/fetchPullRequestBySearchQuery.private.test.js +0 -66
  203. package/dist/services/github/v4/fetchPullRequestBySearchQuery.test.d.ts +0 -1
  204. package/dist/services/github/v4/fetchPullRequestBySearchQuery.test.js +0 -242
  205. package/dist/services/github/v4/getExistingTargetPullRequests.d.ts +0 -7
  206. package/dist/services/github/v4/getExistingTargetPullRequests.js +0 -45
  207. package/dist/services/github/v4/getOptionsFromGithub/getOptionsFromGithub.private.test.d.ts +0 -1
  208. package/dist/services/github/v4/getOptionsFromGithub/getOptionsFromGithub.private.test.js +0 -130
  209. package/dist/services/github/v4/getOptionsFromGithub/index.d.ts +0 -63
  210. package/dist/services/github/v4/getOptionsFromGithub/index.js +0 -139
  211. package/dist/services/github/v4/getOptionsFromGithub/index.private.test.d.ts +0 -1
  212. package/dist/services/github/v4/getOptionsFromGithub/index.private.test.js +0 -147
  213. package/dist/services/github/v4/getTargetBranchesFromLabels.d.ts +0 -5
  214. package/dist/services/github/v4/getTargetBranchesFromLabels.js +0 -20
  215. package/dist/services/github/v4/getTargetBranchesFromLabels.test.d.ts +0 -1
  216. package/dist/services/github/v4/getTargetBranchesFromLabels.test.js +0 -201
  217. package/dist/services/github/v4/mocks/commitsByAuthorMock.d.ts +0 -2
  218. package/dist/services/github/v4/mocks/commitsByAuthorMock.js +0 -154
  219. package/dist/services/github/v4/mocks/fetchPullRequestBySearchQueryMock.d.ts +0 -2
  220. package/dist/services/github/v4/mocks/fetchPullRequestBySearchQueryMock.js +0 -843
  221. package/dist/services/github/v4/mocks/getCommitsByAuthorMock.d.ts +0 -2
  222. package/dist/services/github/v4/mocks/getCommitsByAuthorMock.js +0 -73
  223. package/dist/services/github/v4/mocks/getPullRequestNodeMock.d.ts +0 -12
  224. package/dist/services/github/v4/mocks/getPullRequestNodeMock.js +0 -44
  225. package/dist/services/github/v4/throwOnInvalidAccessToken.test.d.ts +0 -1
  226. package/dist/services/github/v4/throwOnInvalidAccessToken.test.js +0 -87
  227. package/dist/services/prompt.test.d.ts +0 -1
  228. package/dist/services/prompt.test.js +0 -87
  229. package/dist/services/sourceCommit/getExpectedTargetPullRequests.test.d.ts +0 -1
  230. package/dist/services/sourceCommit/getExpectedTargetPullRequests.test.js +0 -433
  231. package/dist/services/sourceCommit/getTargetBranchesFromLabels.d.ts +0 -5
  232. package/dist/services/sourceCommit/getTargetBranchesFromLabels.js +0 -20
  233. package/dist/services/sourceCommit/getTargetBranchesFromLabels.test.d.ts +0 -1
  234. package/dist/services/sourceCommit/getTargetBranchesFromLabels.test.js +0 -201
  235. package/dist/services/sourceCommit/parseSourceCommit.test.d.ts +0 -1
  236. package/dist/services/sourceCommit/parseSourceCommit.test.js +0 -237
  237. package/dist/services/sourceCommit/sourceCommit.d.ts +0 -78
  238. package/dist/services/sourceCommit/sourceCommit.js +0 -86
  239. package/dist/services/sourceCommit/sourceCommit.test.d.ts +0 -1
  240. package/dist/services/sourceCommit/sourceCommit.test.js +0 -287
  241. package/dist/services/sourceCommit.d.ts +0 -78
  242. package/dist/services/sourceCommit.js +0 -86
  243. package/dist/services/sourceCommit.test.d.ts +0 -1
  244. package/dist/services/sourceCommit.test.js +0 -280
  245. package/dist/test/ExecError.d.ts +0 -16
  246. package/dist/test/ExecError.js +0 -15
  247. package/dist/test/inquirer.private.test.d.ts +0 -1
  248. package/dist/test/inquirer.private.test.js +0 -168
  249. package/dist/test/integration/createSpies.d.ts +0 -17
  250. package/dist/test/integration/createSpies.js +0 -85
  251. package/dist/test/integration/envConstants.d.ts +0 -5
  252. package/dist/test/integration/envConstants.js +0 -9
  253. package/dist/test/integration/helpers.d.ts +0 -7
  254. package/dist/test/integration/helpers.js +0 -31
  255. package/dist/test/integration/integration.private.test.d.ts +0 -1
  256. package/dist/test/integration/integration.private.test.js +0 -327
  257. package/dist/test/integration/integration.test.d.ts +0 -1
  258. package/dist/test/integration/integration.test.js +0 -214
  259. package/dist/test/mockConfigFiles.d.ts +0 -5
  260. package/dist/test/mockConfigFiles.js +0 -37
  261. package/dist/test/nockHelpers.d.ts +0 -16
  262. package/dist/test/nockHelpers.js +0 -32
  263. package/dist/test/private/getDevAccessToken.d.ts +0 -1
  264. package/dist/test/private/getDevAccessToken.js +0 -24
  265. package/dist/test/setupFiles/automatic-mocks.d.ts +0 -0
  266. package/dist/test/setupFiles/automatic-mocks.js +0 -43
  267. package/dist/types/Commit.d.ts +0 -85
  268. package/dist/types/Commit.js +0 -139
  269. package/dist/types/PromiseReturnType.d.ts +0 -1
  270. package/dist/types/commitNode.d.ts +0 -89
  271. package/dist/types/commitNode.js +0 -139
  272. package/dist/types/commitNode.test.d.ts +0 -1
  273. package/dist/types/commitNode.test.js +0 -255
  274. package/dist/types/commitWithAssociatedPullRequests.d.ts +0 -86
  275. package/dist/types/commitWithAssociatedPullRequests.js +0 -145
  276. package/dist/ui/cherrypickAndCreatePullRequest.test.d.ts +0 -1
  277. package/dist/ui/cherrypickAndCreatePullRequest.test.js +0 -617
  278. package/dist/ui/cherrypickAndCreateTargetPullRequest.test.d.ts +0 -1
  279. package/dist/ui/cherrypickAndCreateTargetPullRequest.test.js +0 -432
  280. package/dist/ui/getCommitsWithoutBackports.test.d.ts +0 -1
  281. package/dist/ui/getCommitsWithoutBackports.test.js +0 -259
  282. package/dist/ui/getTargetBranches.test.d.ts +0 -1
  283. package/dist/ui/getTargetBranches.test.js +0 -180
  284. package/dist/ui/getTargetBranchesFromLabels.d.ts +0 -6
  285. package/dist/ui/getTargetBranchesFromLabels.js +0 -40
  286. package/dist/ui/getTargetBranchesFromLabels.test.d.ts +0 -1
  287. package/dist/ui/getTargetBranchesFromLabels.test.js +0 -288
  288. package/dist/ui/maybeSetupRepo.test.d.ts +0 -1
  289. package/dist/ui/maybeSetupRepo.test.js +0 -74
  290. package/dist/utils/excludeUndefined.test.d.ts +0 -1
  291. package/dist/utils/excludeUndefined.test.js +0 -24
@@ -1,12 +1,20 @@
1
1
  import { ValidConfigOptions } from '../../options/options';
2
2
  import { ExpectedTargetPullRequest } from './getExpectedTargetPullRequests';
3
3
  export interface Commit {
4
- committedDate: string;
4
+ sourceCommit: {
5
+ committedDate: string;
6
+ message: string;
7
+ sha: string;
8
+ };
9
+ sourcePullRequest?: {
10
+ number: number;
11
+ url: string;
12
+ mergeCommit: {
13
+ message: string;
14
+ sha: string;
15
+ };
16
+ };
5
17
  sourceBranch: string;
6
- sha: string;
7
- originalMessage: string;
8
- pullNumber?: number;
9
- pullUrl?: string;
10
18
  expectedTargetPullRequests: ExpectedTargetPullRequest[];
11
19
  }
12
20
  export interface SourcePullRequestNode {
@@ -18,8 +26,8 @@ export interface SourcePullRequestNode {
18
26
  name: string;
19
27
  }[];
20
28
  };
21
- sourceMergeCommit: {
22
- oid: string;
29
+ mergeCommit: {
30
+ sha: string;
23
31
  message: string;
24
32
  };
25
33
  timelineItems: {
@@ -37,7 +45,7 @@ export interface TimelinePullRequestEdge {
37
45
  baseRefName: string;
38
46
  number: number;
39
47
  targetMergeCommit: {
40
- oid: string;
48
+ sha: string;
41
49
  message: string;
42
50
  } | null;
43
51
  repository: {
@@ -51,7 +59,7 @@ export interface TimelinePullRequestEdge {
51
59
  node: {
52
60
  targetCommit: {
53
61
  message: string;
54
- oid: string;
62
+ sha: string;
55
63
  };
56
64
  };
57
65
  }>;
@@ -73,7 +81,7 @@ export declare type SourceCommitWithTargetPullRequest = {
73
81
  login: string;
74
82
  };
75
83
  };
76
- oid: string;
84
+ sha: string;
77
85
  message: string;
78
86
  committedDate: string;
79
87
  associatedPullRequests: {
@@ -2,24 +2,30 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sourceCommitWithTargetPullRequestFragment = exports.parseSourceCommit = void 0;
4
4
  const lodash_1 = require("lodash");
5
- const commitFormatters_1 = require("../github/commitFormatters");
6
5
  const getExpectedTargetPullRequests_1 = require("./getExpectedTargetPullRequests");
7
6
  function parseSourceCommit({ sourceCommit, options, }) {
8
7
  const sourcePullRequest = sourceCommit.associatedPullRequests.edges?.[0]?.node;
9
8
  // use info from associated pull request if available. Fall back to commit info
10
- const commitMessage = sourcePullRequest?.sourceMergeCommit.message ?? sourceCommit.message;
11
- const commitSha = sourcePullRequest?.sourceMergeCommit.oid ?? sourceCommit.oid;
12
- const pullNumber = sourcePullRequest?.number ?? (0, commitFormatters_1.extractPullNumber)(commitMessage);
13
9
  const sourceBranch = sourcePullRequest?.baseRefName ?? options.sourceBranch;
14
10
  const branchLabelMapping = getBranchLabelMappingForCommit(sourceCommit, options.branchLabelMapping, options.historicalBranchLabelMappings);
15
11
  const expectedTargetPullRequests = (0, getExpectedTargetPullRequests_1.getExpectedTargetPullRequests)(sourceCommit, branchLabelMapping);
16
12
  return {
17
- committedDate: sourceCommit.committedDate,
13
+ sourceCommit: {
14
+ committedDate: sourceCommit.committedDate,
15
+ message: sourceCommit.message,
16
+ sha: sourceCommit.sha,
17
+ },
18
+ sourcePullRequest: sourcePullRequest
19
+ ? {
20
+ number: sourcePullRequest.number,
21
+ url: sourcePullRequest.url,
22
+ mergeCommit: {
23
+ message: sourcePullRequest.mergeCommit.message,
24
+ sha: sourcePullRequest.mergeCommit.sha,
25
+ },
26
+ }
27
+ : undefined,
18
28
  sourceBranch,
19
- sha: commitSha,
20
- originalMessage: commitMessage,
21
- pullNumber,
22
- pullUrl: sourcePullRequest?.url,
23
29
  expectedTargetPullRequests,
24
30
  };
25
31
  }
@@ -34,7 +40,7 @@ exports.sourceCommitWithTargetPullRequestFragment = {
34
40
  login
35
41
  }
36
42
  }
37
- oid
43
+ sha: oid
38
44
  message
39
45
  committedDate
40
46
 
@@ -52,8 +58,8 @@ exports.sourceCommitWithTargetPullRequestFragment = {
52
58
  baseRefName
53
59
 
54
60
  # source merge commit (the commit that actually went into the source branch)
55
- sourceMergeCommit: mergeCommit {
56
- oid
61
+ mergeCommit {
62
+ sha: oid
57
63
  message
58
64
  }
59
65
 
@@ -69,7 +75,7 @@ exports.sourceCommitWithTargetPullRequestFragment = {
69
75
  ... on PullRequest {
70
76
  # target merge commit: the backport commit that was merged into the target branch
71
77
  targetMergeCommit: mergeCommit {
72
- oid
78
+ sha: oid
73
79
  message
74
80
  }
75
81
  repository {
@@ -88,7 +94,7 @@ exports.sourceCommitWithTargetPullRequestFragment = {
88
94
  node {
89
95
  targetCommit: commit {
90
96
  message
91
- oid
97
+ sha: oid
92
98
  }
93
99
  }
94
100
  }
@@ -9,4 +9,3 @@ export declare function cherrypickAndCreateTargetPullRequest({ options, commits,
9
9
  number: number;
10
10
  didUpdate: boolean;
11
11
  }>;
12
- export declare function getBackportBranchName(targetBranch: string, commits: Commit[]): string;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.getBackportBranchName = exports.cherrypickAndCreateTargetPullRequest = void 0;
6
+ exports.cherrypickAndCreateTargetPullRequest = void 0;
7
7
  const chalk_1 = __importDefault(require("chalk"));
8
8
  const lodash_1 = require("lodash");
9
9
  const ora = require("ora");
@@ -62,8 +62,8 @@ async function cherrypickAndCreateTargetPullRequest({ options, commits, targetBr
62
62
  // add labels to source pull requests
63
63
  if (options.sourcePRLabels.length > 0) {
64
64
  const promises = commits.map((commit) => {
65
- if (commit.pullNumber) {
66
- return (0, addLabelsToPullRequest_1.addLabelsToPullRequest)(options, commit.pullNumber, options.sourcePRLabels);
65
+ if (commit.sourcePullRequest) {
66
+ return (0, addLabelsToPullRequest_1.addLabelsToPullRequest)(options, commit.sourcePullRequest.number, options.sourcePRLabels);
67
67
  }
68
68
  });
69
69
  await Promise.all(promises);
@@ -93,16 +93,15 @@ async function backportViaFilesystem({ options, prPayload, commits, targetBranch
93
93
  */
94
94
  function getBackportBranchName(targetBranch, commits) {
95
95
  const refValues = commits
96
- .map((commit) => commit.pullNumber
97
- ? `pr-${commit.pullNumber}`
98
- : `commit-${(0, commitFormatters_1.getShortSha)(commit.sha)}`)
96
+ .map((commit) => commit.sourcePullRequest
97
+ ? `pr-${commit.sourcePullRequest.number}`
98
+ : `commit-${(0, commitFormatters_1.getShortSha)(commit.sourceCommit.sha)}`)
99
99
  .join('_')
100
100
  .slice(0, 200);
101
101
  return `backport/${targetBranch}/${refValues}`;
102
102
  }
103
- exports.getBackportBranchName = getBackportBranchName;
104
103
  async function waitForCherrypick(options, commit, targetBranch) {
105
- const spinnerText = `Cherry-picking: ${chalk_1.default.greenBright((0, commitFormatters_1.getFirstLine)(commit.originalMessage))}`;
104
+ const spinnerText = `Cherry-picking: ${chalk_1.default.greenBright((0, commitFormatters_1.getFirstLine)(commit.sourceCommit.message))}`;
106
105
  const mergedTargetPullRequest = commit.expectedTargetPullRequests.find((pr) => pr.state === 'MERGED' && pr.branch === targetBranch);
107
106
  const cherrypickSpinner = ora(spinnerText).start();
108
107
  let conflictingFiles;
@@ -110,7 +109,7 @@ async function waitForCherrypick(options, commit, targetBranch) {
110
109
  let needsResolving;
111
110
  try {
112
111
  await (0, git_1.fetchBranch)(options, commit.sourceBranch);
113
- ({ conflictingFiles, unstagedFiles, needsResolving } = await (0, git_1.cherrypick)(options, commit.sha, mergedTargetPullRequest));
112
+ ({ conflictingFiles, unstagedFiles, needsResolving } = await (0, git_1.cherrypick)(options, commit.sourceCommit.sha, mergedTargetPullRequest));
114
113
  // no conflicts encountered
115
114
  if (!needsResolving) {
116
115
  cherrypickSpinner.succeed();
@@ -147,14 +146,14 @@ async function waitForCherrypick(options, commit, targetBranch) {
147
146
  conflictingFiles: conflictingFiles.map((f) => f.relative).slice(0, 50),
148
147
  });
149
148
  if (options.ci) {
150
- throw new HandledError_1.HandledError(`Commit could not be cherrypicked due to conflicts`, {
151
- type: 'merge-conflict-due-to-missing-backports',
149
+ throw new HandledError_1.HandledError({
150
+ code: 'merge-conflict-exception',
152
151
  commitsWithoutBackports,
153
152
  });
154
153
  }
155
154
  (0, logger_1.consoleLog)(chalk_1.default.bold('\nThe commit could not be backported due to conflicts\n'));
156
155
  if (commitsWithoutBackports.length > 0) {
157
- (0, logger_1.consoleLog)(chalk_1.default.italic(`Hint: Before fixing the conflicts manually you should consider backporting the following commits to "${targetBranch}":`));
156
+ (0, logger_1.consoleLog)(chalk_1.default.italic(`Hint: Before fixing the conflicts manually you should consider backporting the following pull requests to "${targetBranch}":`));
158
157
  (0, logger_1.consoleLog)(`${commitsWithoutBackports.map((c) => c.formatted).join('\n')}\n\n`);
159
158
  }
160
159
  /*
@@ -162,7 +161,7 @@ async function waitForCherrypick(options, commit, targetBranch) {
162
161
  */
163
162
  if (options.editor) {
164
163
  const repoPath = (0, env_1.getRepoPath)(options);
165
- await (0, child_process_promisified_1.exec)(`${options.editor} ${repoPath}`, {});
164
+ await (0, child_process_promisified_1.exec)(`${options.editor} ${repoPath}`, { cwd: options.cwd });
166
165
  }
167
166
  // list files with conflict markers + unstaged files and require user to resolve them
168
167
  await listConflictingAndUnstagedFiles({
@@ -208,7 +207,7 @@ ${unstagedSection}
208
207
 
209
208
  Press ENTER when the conflicts are resolved and files are staged`);
210
209
  if (!res) {
211
- throw new HandledError_1.HandledError('Aborted');
210
+ throw new HandledError_1.HandledError({ code: 'abort-exception' });
212
211
  }
213
212
  const MAX_RETRIES = 100;
214
213
  if (retries++ > MAX_RETRIES) {
@@ -25,7 +25,7 @@ async function getCommits(options) {
25
25
  if (options.sha) {
26
26
  spinner.text = `Loading commit "${(0, commitFormatters_1.getShortSha)(options.sha)}"`;
27
27
  const commit = await (0, fetchCommitBySha_1.fetchCommitBySha)({ ...options, sha: options.sha });
28
- spinner.stopAndPersist(getOraPersistsOption('Select commit', commit.originalMessage));
28
+ spinner.stopAndPersist(getOraPersistsOption('Select commit', commit.sourceCommit.message));
29
29
  return [commit];
30
30
  }
31
31
  if (options.pullNumber) {
@@ -35,24 +35,18 @@ async function getCommits(options) {
35
35
  pullNumber: options.pullNumber, // must extract pullNumber to satisfy the ts gods
36
36
  });
37
37
  // add styles to make it look like a prompt question
38
- spinner.stopAndPersist(getOraPersistsOption('Select pull request', (0, commitFormatters_1.getFirstLine)(commit.originalMessage)));
38
+ spinner.stopAndPersist(getOraPersistsOption('Select pull request', (0, commitFormatters_1.getFirstLine)(commit.sourceCommit.message)));
39
39
  return [commit];
40
40
  }
41
41
  if (options.ci) {
42
42
  throw new HandledError_1.HandledError('When "--ci" flag is enabled either `--sha` or `--pr` must be specified');
43
43
  }
44
- if (options.prFilter) {
45
- spinner.text = 'Loading pull requests...';
46
- const commitChoices = await (0, fetchPullRequestBySearchQuery_1.fetchPullRequestBySearchQuery)(options);
47
- spinner.stop();
48
- return (0, prompts_1.promptForCommits)({
49
- commitChoices,
50
- isMultipleChoice: options.multipleCommits,
51
- showDetails: options.details,
52
- });
53
- }
54
- spinner.text = `Loading commits from branch "${options.sourceBranch}"...`;
55
- const commitChoices = await (0, fetchCommitsByAuthor_1.fetchCommitsByAuthor)(options);
44
+ spinner.text = options.prFilter
45
+ ? 'Loading pull requests...'
46
+ : `Loading commits from branch "${options.sourceBranch}"...`;
47
+ const commitChoices = options.prFilter
48
+ ? await (0, fetchPullRequestBySearchQuery_1.fetchPullRequestBySearchQuery)(options)
49
+ : await (0, fetchCommitsByAuthor_1.fetchCommitsByAuthor)(options);
56
50
  spinner.stop();
57
51
  return (0, prompts_1.promptForCommits)({
58
52
  commitChoices,
@@ -22,21 +22,21 @@ conflictingFiles, }) {
22
22
  ...options,
23
23
  author: null,
24
24
  dateSince: null,
25
- dateUntil: commit.committedDate,
25
+ dateUntil: commit.sourceCommit.committedDate,
26
26
  commitPaths: conflictingFiles,
27
27
  });
28
28
  const promises = await Promise.all(commitsInConflictingPaths
29
29
  .filter((c) => {
30
30
  // exclude the commit we are currently trying to backport
31
- if (c.sha === commit.sha) {
31
+ if (c.sourceCommit.sha === commit.sourceCommit.sha) {
32
32
  return false;
33
33
  }
34
34
  // exclude commits that are newer than the commit we are trying to backport
35
- if (c.committedDate > commit.committedDate) {
35
+ if (c.sourceCommit.committedDate > commit.sourceCommit.committedDate) {
36
36
  return false;
37
37
  }
38
38
  // only consider commits that have an associated pull request
39
- if (!c.pullUrl) {
39
+ if (!c.sourcePullRequest?.url) {
40
40
  return false;
41
41
  }
42
42
  // only include commit if it has an unmerged PR for the given target branch
@@ -60,8 +60,8 @@ conflictingFiles, }) {
60
60
  // get pull request for the target branch (if it exists)
61
61
  const pendingBackportPr = c.expectedTargetPullRequests.find((pr) => pr.branch === targetBranch && pr.state === 'OPEN');
62
62
  const formatted = pendingBackportPr
63
- ? ` - ${(0, commitFormatters_1.getFirstLine)(c.originalMessage)} ${chalk_1.default.gray('(backport pending)')}\n ${pendingBackportPr.url}`
64
- : ` - ${(0, commitFormatters_1.getFirstLine)(c.originalMessage)} ${chalk_1.default.red('(backport missing)')}\n ${c.pullUrl}`;
63
+ ? ` - ${(0, commitFormatters_1.getFirstLine)(c.sourceCommit.message)} ${chalk_1.default.gray('(backport pending)')}\n ${pendingBackportPr.url}`
64
+ : ` - ${(0, commitFormatters_1.getFirstLine)(c.sourceCommit.message)} ${chalk_1.default.red('(backport missing)')}\n ${c.sourcePullRequest?.url}`;
65
65
  return { formatted, commit: c };
66
66
  });
67
67
  }
@@ -18,7 +18,7 @@ function getTargetBranches(options, commits) {
18
18
  // automatically backport to specified target branches
19
19
  if (options.ci) {
20
20
  if ((0, lodash_1.isEmpty)(missingTargetBranches)) {
21
- throw new HandledError_1.HandledError(`There are no branches to backport to. Aborting.`);
21
+ throw new HandledError_1.HandledError({ code: 'no-branches-exception' });
22
22
  }
23
23
  return missingTargetBranches;
24
24
  }
@@ -1,30 +1,32 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.maybeSetupRepo = void 0;
7
- const make_dir_1 = __importDefault(require("make-dir"));
4
+ const promises_1 = require("fs/promises");
5
+ const del = require("del");
8
6
  const ora = require("ora");
9
7
  const env_1 = require("../services/env");
10
8
  const git_1 = require("../services/git");
11
9
  async function maybeSetupRepo(options) {
12
- const isAlreadyCloned = await (0, git_1.repoExists)(options);
10
+ const repoPath = (0, env_1.getRepoPath)(options);
11
+ const isAlreadyCloned = await getIsRepoCloned(repoPath);
13
12
  // clone repo if folder does not already exists
14
13
  if (!isAlreadyCloned) {
15
14
  const spinner = ora().start();
16
15
  try {
17
- const spinnerCloneText = 'Cloning repository (one-time operation)';
16
+ const sourcePath = await (0, git_1.getSourceRepoPath)(options);
17
+ const sourcePathHumanReadable = sourcePath.includes(options.gitHostname)
18
+ ? options.gitHostname
19
+ : sourcePath;
20
+ const spinnerCloneText = `Cloning repository from ${sourcePathHumanReadable} (one-time operation)`;
18
21
  spinner.text = `0% ${spinnerCloneText}`;
19
- await (0, make_dir_1.default)((0, env_1.getRepoOwnerPath)(options));
20
- await (0, git_1.cloneRepo)(options, (progress) => {
22
+ await (0, git_1.cloneRepo)({ sourcePath, targetPath: repoPath }, (progress) => {
21
23
  spinner.text = `${progress}% ${spinnerCloneText}`;
22
24
  });
23
25
  spinner.succeed(`100% ${spinnerCloneText}`);
24
26
  }
25
27
  catch (e) {
26
28
  spinner.fail();
27
- await (0, git_1.deleteRepo)(options);
29
+ await del(repoPath);
28
30
  throw e;
29
31
  }
30
32
  }
@@ -33,10 +35,22 @@ async function maybeSetupRepo(options) {
33
35
  // ensure remote are setup with latest accessToken
34
36
  await (0, git_1.deleteRemote)(options, options.authenticatedUsername);
35
37
  await (0, git_1.addRemote)(options, options.authenticatedUsername);
36
- // update remote for origin (if the above is a fork)
38
+ // add remote for non-fork repo (if the above is a fork)
37
39
  if (options.authenticatedUsername !== options.repoOwner) {
38
40
  await (0, git_1.deleteRemote)(options, options.repoOwner);
39
41
  await (0, git_1.addRemote)(options, options.repoOwner);
40
42
  }
41
43
  }
42
44
  exports.maybeSetupRepo = maybeSetupRepo;
45
+ async function getIsRepoCloned(path) {
46
+ try {
47
+ const stats = await (0, promises_1.stat)(path);
48
+ return stats.isDirectory();
49
+ }
50
+ catch (e) {
51
+ if (e.code === 'ENOENT') {
52
+ return false;
53
+ }
54
+ throw e;
55
+ }
56
+ }
@@ -0,0 +1 @@
1
+ export declare function maybe<T>(value: T): T | undefined;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.maybe = void 0;
4
+ function maybe(value) {
5
+ return value;
6
+ }
7
+ exports.maybe = maybe;
@@ -0,0 +1 @@
1
+ export declare const PACKAGE_VERSION = "6.2.1";
@@ -1,2 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PACKAGE_VERSION = void 0;
4
+ exports.PACKAGE_VERSION = '6.2.1';
@@ -0,0 +1 @@
1
+ export declare function redact(stringToRedact: string, str: string): string;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.redact = void 0;
4
+ function redact(stringToRedact, str) {
5
+ return str.replace(new RegExp(stringToRedact, 'g'), '<REDACTED>');
6
+ }
7
+ exports.redact = redact;
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "branches",
15
15
  "branching"
16
16
  ],
17
- "version": "6.1.4",
17
+ "version": "6.3.0-beta",
18
18
  "main": "./dist/entrypoint.module.js",
19
19
  "types": "dist/entrypoint.module.d.ts",
20
20
  "bin": {
@@ -22,14 +22,18 @@
22
22
  },
23
23
  "license": "MIT",
24
24
  "scripts": {
25
- "lint": "tsc --project ./tsconfig.test.json && eslint './**/*.{ts,js}'",
26
- "prepare": "husky install",
27
25
  "postinstall": "test -f ./dist/scripts/runPostinstall.js && node ./dist/scripts/runPostinstall.js || echo 'Dist folder missing'",
28
- "prepublishOnly": "tsc --project ./tsconfig.prod.json",
29
- "test": "jest",
30
- "test-private": "jest --config ./jest.config.private.js",
26
+ "postversion": "yarn extractPackageVersion && yarn build",
27
+ "prepare": "husky install",
28
+ "prepublishOnly": "yarn build",
29
+ "build": "tsc --project ./tsconfig.prod.json",
30
+ "extractPackageVersion": "node -p \"'export const PACKAGE_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" | prettier > src/utils/packageVersion.ts",
31
+ "lint": "tsc --project ./tsconfig.test.json && eslint './**/*.{ts,js}'",
32
+ "start": "ts-node --transpile-only ./src/entrypoint.cli.ts",
31
33
  "test-all": "yarn lint && jest --config ./jest.config.all.js",
32
- "start": "ts-node --transpile-only ./src/entrypoint.cli.ts"
34
+ "test-mutation": "jest --config ./jest.config.mutation.js",
35
+ "test-private": "jest --config ./jest.config.private.js",
36
+ "test": "jest"
33
37
  },
34
38
  "lint-staged": {
35
39
  "*.ts": [
@@ -59,7 +63,7 @@
59
63
  },
60
64
  "dependencies": {
61
65
  "@octokit/rest": "^18.12.0",
62
- "axios": "^0.24.0",
66
+ "axios": "^0.25.0",
63
67
  "dedent": "^0.7.0",
64
68
  "del": "^6.0.0",
65
69
  "find-up": "^5.0.0",
@@ -71,38 +75,38 @@
71
75
  "strip-json-comments": "^3.1.1",
72
76
  "terminal-link": "^2.1.1",
73
77
  "utility-types": "^3.10.0",
74
- "winston": "^3.3.3",
78
+ "winston": "^3.5.1",
75
79
  "yargs": "^17.3.1"
76
80
  },
77
81
  "devDependencies": {
78
82
  "@types/core-js": "^2.5.5",
79
83
  "@types/dedent": "^0.7.0",
80
- "@types/inquirer": "^8.1.3",
84
+ "@types/inquirer": "^8.2.0",
81
85
  "@types/jest": "^27.4.0",
82
86
  "@types/lodash": "^4.14.178",
83
- "@types/node": "^16.11.17",
87
+ "@types/node": "^17.0.8",
84
88
  "@types/safe-json-stringify": "^1.1.2",
85
89
  "@types/yargs": "^17.0.8",
86
90
  "@types/yargs-parser": "^20.2.1",
87
- "@typescript-eslint/eslint-plugin": "^5.9.0",
88
- "@typescript-eslint/parser": "^5.9.0",
89
- "eslint": "^8.6.0",
91
+ "@typescript-eslint/eslint-plugin": "^5.10.2",
92
+ "@typescript-eslint/parser": "^5.10.2",
93
+ "eslint": "^8.8.0",
90
94
  "eslint-config-prettier": "^8.3.0",
91
95
  "eslint-plugin-import": "^2.25.4",
92
- "eslint-plugin-jest": "^25.3.4",
96
+ "eslint-plugin-jest": "^26.0.0",
93
97
  "eslint-plugin-prettier": "^4.0.0",
94
- "graphql": "^16.2.0",
98
+ "graphql": "^16.3.0",
95
99
  "graphql-config": "^4.1.0",
96
100
  "graphql-tag": "^2.12.6",
97
101
  "husky": "^7.0.4",
98
102
  "jest": "^27.4.7",
99
103
  "jest-snapshot-serializer-ansi": "^1.0.0",
100
- "lint-staged": "^12.1.7",
101
- "nock": "^13.2.1",
104
+ "lint-staged": "^12.3.3",
105
+ "nock": "^13.2.4",
102
106
  "prettier": "^2.5.1",
103
107
  "strip-ansi": "^6.0.1",
104
- "ts-jest": "^27.1.2",
108
+ "ts-jest": "^27.1.3",
105
109
  "ts-node": "^10.4.0",
106
- "typescript": "^4.5.4"
110
+ "typescript": "^4.5.5"
107
111
  }
108
112
  }