backport 6.0.0 → 6.1.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 (98) hide show
  1. package/README.md +158 -42
  2. package/dist/entrypoint.cli.js +2 -0
  3. package/dist/entrypoint.module.d.ts +16 -4
  4. package/dist/entrypoint.module.js +41 -13
  5. package/dist/entrypoint.module.private.test.d.ts +1 -0
  6. package/dist/entrypoint.module.private.test.js +33 -0
  7. package/dist/main.js +1 -2
  8. package/dist/options/ConfigOptions.d.ts +15 -6
  9. package/dist/options/cliArgs.d.ts +33 -34
  10. package/dist/options/cliArgs.js +19 -19
  11. package/dist/options/cliArgs.test.js +8 -5
  12. package/dist/options/config/config.d.ts +27 -52
  13. package/dist/options/config/config.js +2 -36
  14. package/dist/options/config/config.test.js +10 -27
  15. package/dist/options/config/getOptionsFromGit.d.ts +3 -2
  16. package/dist/options/config/getOptionsFromGit.js +1 -3
  17. package/dist/options/config/globalConfig.js +1 -4
  18. package/dist/options/config/globalConfig.test.js +0 -2
  19. package/dist/options/config/projectConfig.test.js +51 -14
  20. package/dist/options/config/readConfigFile.d.ts +51 -0
  21. package/dist/options/config/readConfigFile.js +28 -2
  22. package/dist/options/options.d.ts +52 -33
  23. package/dist/options/options.js +98 -7
  24. package/dist/options/options.test.js +180 -73
  25. package/dist/options/parseRequiredOptions.d.ts +3 -3
  26. package/dist/options/parseRequiredOptions.js +2 -4
  27. package/dist/options/parseRequiredOptions.test.js +6 -11
  28. package/dist/runSequentially.test.js +35 -78
  29. package/dist/services/git.d.ts +5 -2
  30. package/dist/services/git.js +11 -10
  31. package/dist/services/git.test.js +12 -9
  32. package/dist/services/github/v3/addAssigneesToPullRequest.d.ts +1 -1
  33. package/dist/services/github/v3/addAssigneesToPullRequest.js +2 -3
  34. package/dist/services/github/v3/addAssigneesToPullRequest.test.js +4 -5
  35. package/dist/services/github/v3/createPullRequest.js +10 -13
  36. package/dist/services/github/v3/createPullRequest.test.d.ts +1 -0
  37. package/dist/services/github/v3/createPullRequest.test.js +78 -0
  38. package/dist/services/github/v4/apiRequestV4.d.ts +1 -1
  39. package/dist/services/github/v4/apiRequestV4.js +1 -1
  40. package/dist/services/github/v4/enablePullRequestAutoMerge.js +1 -1
  41. package/dist/services/github/v4/enablePullRequestAutoMerge.private.test.js +0 -1
  42. package/dist/services/github/v4/fetchAuthorId.d.ts +5 -2
  43. package/dist/services/github/v4/fetchAuthorId.js +5 -6
  44. package/dist/services/github/v4/fetchAuthorId.private.test.js +3 -6
  45. package/dist/services/github/v4/fetchCommits/fetchCommitByPullNumber.d.ts +8 -1
  46. package/dist/services/github/v4/fetchCommits/fetchCommitByPullNumber.js +1 -1
  47. package/dist/services/github/v4/fetchCommits/fetchCommitByPullNumber.private.test.js +6 -3
  48. package/dist/services/github/v4/fetchCommits/fetchCommitBySha.d.ts +8 -1
  49. package/dist/services/github/v4/fetchCommits/fetchCommitBySha.js +1 -1
  50. package/dist/services/github/v4/fetchCommits/fetchCommitBySha.private.test.js +3 -3
  51. package/dist/services/github/v4/fetchCommits/fetchCommitsByAuthor.d.ts +12 -1
  52. package/dist/services/github/v4/fetchCommits/fetchCommitsByAuthor.js +6 -8
  53. package/dist/services/github/v4/fetchCommits/fetchCommitsByAuthor.private.test.js +10 -12
  54. package/dist/services/github/v4/fetchCommits/fetchCommitsByAuthor.test.js +5 -7
  55. package/dist/services/github/v4/fetchCommits/fetchProjectConfig.d.ts +3 -0
  56. package/dist/services/github/v4/fetchCommits/fetchProjectConfig.js +55 -0
  57. package/dist/services/github/v4/fetchCommits/fetchPullRequestBySearchQuery.js +5 -5
  58. package/dist/services/github/v4/fetchCommits/fetchPullRequestBySearchQuery.private.test.js +2 -6
  59. package/dist/services/github/v4/fetchExistingPullRequest.private.test.js +0 -2
  60. package/dist/services/github/v4/fetchProjectConfig.d.ts +8 -0
  61. package/dist/services/github/v4/fetchProjectConfig.js +56 -0
  62. package/dist/services/github/v4/fetchProjectConfig.private.test.d.ts +1 -0
  63. package/dist/services/github/v4/fetchProjectConfig.private.test.js +52 -0
  64. package/dist/services/github/v4/fetchProjectConfig.test.d.ts +1 -0
  65. package/dist/services/github/v4/fetchProjectConfig.test.js +37 -0
  66. package/dist/services/github/v4/getOptionsFromGithub/getOptionsFromGithub.d.ts +66 -0
  67. package/dist/services/github/v4/getOptionsFromGithub/getOptionsFromGithub.js +130 -0
  68. package/dist/services/github/v4/getOptionsFromGithub/getOptionsFromGithub.private.test.d.ts +1 -0
  69. package/dist/services/github/v4/getOptionsFromGithub/getOptionsFromGithub.private.test.js +130 -0
  70. package/dist/services/github/v4/getOptionsFromGithub/index.d.ts +3 -1
  71. package/dist/services/github/v4/getOptionsFromGithub/index.private.test.js +22 -1
  72. package/dist/services/github/v4/getOptionsFromGithub/query.d.ts +4 -1
  73. package/dist/services/github/v4/getOptionsFromGithub/query.js +3 -0
  74. package/dist/services/sourceCommit/getExpectedTargetPullRequests.test.js +15 -15
  75. package/dist/services/sourceCommit/parseSourceCommit.d.ts +5 -1
  76. package/dist/services/sourceCommit/parseSourceCommit.js +2 -2
  77. package/dist/services/sourceCommit/parseSourceCommit.test.js +120 -5
  78. package/dist/test/inquirer.private.test.js +42 -34
  79. package/dist/test/integration/integration.private.test.js +104 -95
  80. package/dist/test/mockConfigFiles.d.ts +5 -0
  81. package/dist/test/mockConfigFiles.js +37 -0
  82. package/dist/test/nockHelpers.d.ts +1 -1
  83. package/dist/test/nockHelpers.js +4 -4
  84. package/dist/test/private/getDevAccessToken.js +1 -1
  85. package/dist/test/setupFiles/automatic-mocks.js +1 -29
  86. package/dist/ui/cherrypickAndCreatePullRequest.test.js +67 -28
  87. package/dist/ui/cherrypickAndCreateTargetPullRequest.js +6 -3
  88. package/dist/ui/getCommits.d.ts +1 -1
  89. package/dist/ui/getTargetBranches.d.ts +2 -1
  90. package/dist/ui/getTargetBranches.js +17 -1
  91. package/dist/ui/maybeSetupRepo.js +4 -3
  92. package/dist/ui/maybeSetupRepo.test.js +49 -3
  93. package/dist/utils/excludeUndefined.d.ts +6 -0
  94. package/dist/utils/excludeUndefined.js +7 -0
  95. package/dist/utils/excludeUndefined.test.d.ts +1 -0
  96. package/dist/utils/excludeUndefined.test.js +24 -0
  97. package/package.json +9 -8
  98. package/yarn.lock +98 -77
@@ -41,8 +41,11 @@ async function cherrypickAndCreateTargetPullRequest({ options, commits, targetBr
41
41
  commits,
42
42
  });
43
43
  // add assignees to target pull request
44
+ const assignees = options.autoAssign
45
+ ? [options.authenticatedUsername]
46
+ : options.assignees;
44
47
  if (options.assignees.length > 0) {
45
- await (0, addAssigneesToPullRequest_1.addAssigneesToPullRequest)(options, targetPullRequest.number, options.assignees);
48
+ await (0, addAssigneesToPullRequest_1.addAssigneesToPullRequest)(options, targetPullRequest.number, assignees);
46
49
  }
47
50
  // add reviewers to target pull request
48
51
  if (options.reviewers.length > 0) {
@@ -74,7 +77,7 @@ async function backportViaFilesystem({ options, prPayload, commits, targetBranch
74
77
  await (0, git_1.createBackportBranch)({ options, targetBranch, backportBranch });
75
78
  await (0, sequentially_1.sequentially)(commits, (commit) => waitForCherrypick(options, commit, targetBranch));
76
79
  if (options.resetAuthor) {
77
- await (0, git_1.setCommitAuthor)(options, options.username);
80
+ await (0, git_1.setCommitAuthor)(options, options.authenticatedUsername);
78
81
  }
79
82
  await (0, git_1.pushBackportBranch)({ options, backportBranch });
80
83
  await (0, git_1.deleteBackportBranch)({ options, backportBranch });
@@ -85,7 +88,7 @@ async function backportViaFilesystem({ options, prPayload, commits, targetBranch
85
88
  async function getCommitsWithoutBackports({ options, commit, targetBranch, conflictingFiles, }) {
86
89
  const commitsInConflictingPaths = await (0, fetchCommitsByAuthor_1.fetchCommitsByAuthor)({
87
90
  ...options,
88
- all: true,
91
+ author: null,
89
92
  commitPaths: conflictingFiles,
90
93
  });
91
94
  return (await Promise.all(commitsInConflictingPaths
@@ -1,2 +1,2 @@
1
1
  import { ValidConfigOptions } from '../options/options';
2
- export declare function getCommits(options: ValidConfigOptions): Promise<import("../services/sourceCommit/parseSourceCommit").Commit[]>;
2
+ export declare function getCommits(options: ValidConfigOptions): Promise<import("../entrypoint.module").Commit[]>;
@@ -1,4 +1,5 @@
1
+ import { TargetBranchChoice } from '../options/ConfigOptions';
1
2
  import { ValidConfigOptions } from '../options/options';
2
3
  import { Commit } from '../services/sourceCommit/parseSourceCommit';
3
4
  export declare function getTargetBranches(options: ValidConfigOptions, commits: Commit[]): string[] | Promise<string[]>;
4
- export declare function getTargetBranchChoices(options: ValidConfigOptions, missingTargetBranches: string[], sourceBranch: string): import("../options/ConfigOptions").TargetBranchChoice[];
5
+ export declare function getTargetBranchChoices(options: ValidConfigOptions, missingTargetBranches: string[], sourceBranch: string): TargetBranchChoice[];
@@ -35,7 +35,7 @@ function getTargetBranches(options, commits) {
35
35
  exports.getTargetBranches = getTargetBranches;
36
36
  function getTargetBranchChoices(options, missingTargetBranches, sourceBranch) {
37
37
  // exclude sourceBranch from targetBranchChoices
38
- const targetBranchesChoices = options.targetBranchChoices.filter((choice) => choice.name !== sourceBranch);
38
+ const targetBranchesChoices = getTargetBranchChoicesAsObject(options.targetBranchChoices).filter((choice) => choice.name !== sourceBranch);
39
39
  if ((0, lodash_1.isEmpty)(targetBranchesChoices)) {
40
40
  throw new HandledError_1.HandledError('Missing target branch choices');
41
41
  }
@@ -49,3 +49,19 @@ function getTargetBranchChoices(options, missingTargetBranches, sourceBranch) {
49
49
  });
50
50
  }
51
51
  exports.getTargetBranchChoices = getTargetBranchChoices;
52
+ // `targetBranchChoices` can either be a string or an object.
53
+ // It must be transformed so it is always treated as an object troughout the application
54
+ function getTargetBranchChoicesAsObject(targetBranchChoices) {
55
+ if (!targetBranchChoices) {
56
+ return [];
57
+ }
58
+ return targetBranchChoices.map((choice) => {
59
+ if ((0, lodash_1.isString)(choice)) {
60
+ return {
61
+ name: choice,
62
+ checked: false,
63
+ };
64
+ }
65
+ return choice;
66
+ });
67
+ }
@@ -31,9 +31,10 @@ async function maybeSetupRepo(options) {
31
31
  // delete default "origin" remote to avoid confusion
32
32
  await (0, git_1.deleteRemote)(options, 'origin');
33
33
  // ensure remote are setup with latest accessToken
34
- await (0, git_1.deleteRemote)(options, options.username);
35
- await (0, git_1.addRemote)(options, options.username);
36
- if (options.username !== options.repoOwner) {
34
+ await (0, git_1.deleteRemote)(options, options.authenticatedUsername);
35
+ await (0, git_1.addRemote)(options, options.authenticatedUsername);
36
+ // update remote for origin (if the above is a fork)
37
+ if (options.authenticatedUsername !== options.repoOwner) {
37
38
  await (0, git_1.deleteRemote)(options, options.repoOwner);
38
39
  await (0, git_1.addRemote)(options, options.repoOwner);
39
40
  }
@@ -1,4 +1,23 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
2
21
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
22
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
23
  };
@@ -6,10 +25,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
25
  const os_1 = __importDefault(require("os"));
7
26
  const del_1 = __importDefault(require("del"));
8
27
  const makeDir = require("make-dir");
28
+ const childProcess = __importStar(require("../services/child-process-promisified"));
29
+ const fs = __importStar(require("../services/fs-promisified"));
9
30
  const maybeSetupRepo_1 = require("./maybeSetupRepo");
10
31
  describe('maybeSetupRepo', () => {
32
+ let execSpy;
11
33
  beforeEach(() => {
12
34
  jest.spyOn(os_1.default, 'homedir').mockReturnValue('/myHomeDir');
35
+ execSpy = jest
36
+ .spyOn(childProcess, 'exec')
37
+ .mockResolvedValue({ stderr: '', stdout: '' });
13
38
  });
14
39
  it('should delete repo if an error occurs', async () => {
15
40
  expect.assertions(2);
@@ -17,12 +42,33 @@ describe('maybeSetupRepo', () => {
17
42
  throw new Error('makeDir failed');
18
43
  });
19
44
  await expect((0, maybeSetupRepo_1.maybeSetupRepo)({
20
- repoOwner: 'elastic',
21
- repoName: 'kibana',
22
- username: 'sqren',
23
45
  accessToken: 'myAccessToken',
24
46
  gitHostname: 'github.com',
47
+ repoName: 'kibana',
48
+ repoOwner: 'elastic',
25
49
  })).rejects.toThrowError('makeDir failed');
26
50
  expect(del_1.default).toHaveBeenCalledWith('/myHomeDir/.backport/repositories/elastic/kibana');
27
51
  });
52
+ describe('if repo already exists', () => {
53
+ beforeEach(() => {
54
+ // @ts-expect-error
55
+ jest.spyOn(fs, 'stat').mockResolvedValue({ isDirectory: () => true });
56
+ });
57
+ it('should re-create remotes for both source repo and fork', async () => {
58
+ await (0, maybeSetupRepo_1.maybeSetupRepo)({
59
+ accessToken: 'myAccessToken',
60
+ authenticatedUsername: 'sqren_authenticated',
61
+ gitHostname: 'github.com',
62
+ repoName: 'kibana',
63
+ repoOwner: 'elastic',
64
+ });
65
+ expect(execSpy.mock.calls.map(([cmd]) => cmd)).toEqual([
66
+ 'git remote rm origin',
67
+ 'git remote rm sqren_authenticated',
68
+ 'git remote add sqren_authenticated https://x-access-token:myAccessToken@github.com/sqren_authenticated/kibana.git',
69
+ 'git remote rm elastic',
70
+ 'git remote add elastic https://x-access-token:myAccessToken@github.com/elastic/kibana.git',
71
+ ]);
72
+ });
73
+ });
28
74
  });
@@ -0,0 +1,6 @@
1
+ import { Assign } from 'utility-types';
2
+ declare type ExcludeUndefined<T extends Record<string, any>> = Assign<T, Partial<Pick<T, {
3
+ [key in keyof T]-?: undefined extends T[key] ? key : never;
4
+ }[keyof T]>>>;
5
+ export declare function excludeUndefined<T extends Record<string, any>>(obj: T): ExcludeUndefined<T>;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.excludeUndefined = void 0;
4
+ function excludeUndefined(obj) {
5
+ return Object.fromEntries(Object.entries(obj).filter(([, v]) => v != null));
6
+ }
7
+ exports.excludeUndefined = excludeUndefined;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const excludeUndefined_1 = require("./excludeUndefined");
4
+ describe('excludeUndefined', () => {
5
+ it('removes undefined values', () => {
6
+ expect((0, excludeUndefined_1.excludeUndefined)({
7
+ foo: 'foo',
8
+ bar: undefined,
9
+ baz: null,
10
+ })).toEqual({ foo: 'foo' });
11
+ });
12
+ it('has the correct types', () => {
13
+ const obj = (0, excludeUndefined_1.excludeUndefined)({
14
+ foo: 'foo',
15
+ bar: undefined,
16
+ baz: null,
17
+ });
18
+ const res = {
19
+ bar: 'bar',
20
+ ...obj,
21
+ };
22
+ expect(res).toEqual({ bar: 'bar', foo: 'foo' });
23
+ });
24
+ });
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "branches",
15
15
  "branching"
16
16
  ],
17
- "version": "6.0.0",
17
+ "version": "6.1.0",
18
18
  "main": "./dist/entrypoint.module.js",
19
19
  "types": "dist/entrypoint.module.d.ts",
20
20
  "bin": {
@@ -70,6 +70,7 @@
70
70
  "safe-json-stringify": "^1.2.0",
71
71
  "strip-json-comments": "^3.1.1",
72
72
  "terminal-link": "^2.1.1",
73
+ "utility-types": "^3.10.0",
73
74
  "winston": "^3.3.3",
74
75
  "yargs": "^17.3.1"
75
76
  },
@@ -77,18 +78,18 @@
77
78
  "@types/core-js": "^2.5.5",
78
79
  "@types/dedent": "^0.7.0",
79
80
  "@types/inquirer": "^8.1.3",
80
- "@types/jest": "^27.0.3",
81
+ "@types/jest": "^27.4.0",
81
82
  "@types/lodash": "^4.14.178",
82
83
  "@types/node": "^16.11.17",
83
84
  "@types/safe-json-stringify": "^1.1.2",
84
85
  "@types/yargs": "^17.0.8",
85
86
  "@types/yargs-parser": "^20.2.1",
86
- "@typescript-eslint/eslint-plugin": "^5.8.1",
87
- "@typescript-eslint/parser": "^5.8.1",
88
- "eslint": "^8.5.0",
87
+ "@typescript-eslint/eslint-plugin": "^5.9.0",
88
+ "@typescript-eslint/parser": "^5.9.0",
89
+ "eslint": "^8.6.0",
89
90
  "eslint-config-prettier": "^8.3.0",
90
- "eslint-plugin-import": "^2.25.3",
91
- "eslint-plugin-jest": "^25.3.2",
91
+ "eslint-plugin-import": "^2.25.4",
92
+ "eslint-plugin-jest": "^25.3.4",
92
93
  "eslint-plugin-prettier": "^4.0.0",
93
94
  "graphql": "^16.2.0",
94
95
  "graphql-config": "^4.1.0",
@@ -96,7 +97,7 @@
96
97
  "husky": "^7.0.4",
97
98
  "jest": "^27.4.5",
98
99
  "jest-snapshot-serializer-ansi": "^1.0.0",
99
- "lint-staged": "^12.1.4",
100
+ "lint-staged": "^12.1.5",
100
101
  "nock": "^13.2.1",
101
102
  "prettier": "^2.5.1",
102
103
  "strip-ansi": "^6.0.1",
package/yarn.lock CHANGED
@@ -918,10 +918,10 @@
918
918
  dependencies:
919
919
  "@types/istanbul-lib-report" "*"
920
920
 
921
- "@types/jest@^27.0.3":
922
- version "27.0.3"
923
- resolved "https://registry.yarnpkg.com/@types/jest/-/jest-27.0.3.tgz#0cf9dfe9009e467f70a342f0f94ead19842a783a"
924
- integrity sha512-cmmwv9t7gBYt7hNKH5Spu7Kuu/DotGa+Ff+JGRKZ4db5eh8PnKS4LuebJ3YLUoyOyIHraTGyULn23YtEAm0VSg==
921
+ "@types/jest@^27.4.0":
922
+ version "27.4.0"
923
+ resolved "https://registry.yarnpkg.com/@types/jest/-/jest-27.4.0.tgz#037ab8b872067cae842a320841693080f9cb84ed"
924
+ integrity sha512-gHl8XuC1RZ8H2j5sHv/JqsaxXkDDM9iDOgu0Wp8sjs4u/snb2PVehyWXJPr+ORA0RPpgw231mnutWI1+0hgjIQ==
925
925
  dependencies:
926
926
  jest-diff "^27.0.0"
927
927
  pretty-format "^27.0.0"
@@ -1011,13 +1011,14 @@
1011
1011
  dependencies:
1012
1012
  "@types/yargs-parser" "*"
1013
1013
 
1014
- "@typescript-eslint/eslint-plugin@^5.8.1":
1015
- version "5.8.1"
1016
- resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.8.1.tgz#97dfaa39f38e99f86801fdf34f9f1bed66704258"
1017
- integrity sha512-wTZ5oEKrKj/8/366qTM366zqhIKAp6NCMweoRONtfuC07OAU9nVI2GZZdqQ1qD30WAAtcPdkH+npDwtRFdp4Rw==
1014
+ "@typescript-eslint/eslint-plugin@^5.9.0":
1015
+ version "5.9.0"
1016
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.9.0.tgz#382182d5cb062f52aac54434cfc47c28898c8006"
1017
+ integrity sha512-qT4lr2jysDQBQOPsCCvpPUZHjbABoTJW8V9ZzIYKHMfppJtpdtzszDYsldwhFxlhvrp7aCHeXD1Lb9M1zhwWwQ==
1018
1018
  dependencies:
1019
- "@typescript-eslint/experimental-utils" "5.8.1"
1020
- "@typescript-eslint/scope-manager" "5.8.1"
1019
+ "@typescript-eslint/experimental-utils" "5.9.0"
1020
+ "@typescript-eslint/scope-manager" "5.9.0"
1021
+ "@typescript-eslint/type-utils" "5.9.0"
1021
1022
  debug "^4.3.2"
1022
1023
  functional-red-black-tree "^1.0.1"
1023
1024
  ignore "^5.1.8"
@@ -1025,15 +1026,15 @@
1025
1026
  semver "^7.3.5"
1026
1027
  tsutils "^3.21.0"
1027
1028
 
1028
- "@typescript-eslint/experimental-utils@5.8.1":
1029
- version "5.8.1"
1030
- resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-5.8.1.tgz#01861eb2f0749f07d02db342b794145a66ed346f"
1031
- integrity sha512-fbodVnjIDU4JpeXWRDsG5IfIjYBxEvs8EBO8W1+YVdtrc2B9ppfof5sZhVEDOtgTfFHnYQJDI8+qdqLYO4ceww==
1029
+ "@typescript-eslint/experimental-utils@5.9.0":
1030
+ version "5.9.0"
1031
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-5.9.0.tgz#652762d37d6565ef07af285021b8347b6c79a827"
1032
+ integrity sha512-ZnLVjBrf26dn7ElyaSKa6uDhqwvAi4jBBmHK1VxuFGPRAxhdi18ubQYSGA7SRiFiES3q9JiBOBHEBStOFkwD2g==
1032
1033
  dependencies:
1033
1034
  "@types/json-schema" "^7.0.9"
1034
- "@typescript-eslint/scope-manager" "5.8.1"
1035
- "@typescript-eslint/types" "5.8.1"
1036
- "@typescript-eslint/typescript-estree" "5.8.1"
1035
+ "@typescript-eslint/scope-manager" "5.9.0"
1036
+ "@typescript-eslint/types" "5.9.0"
1037
+ "@typescript-eslint/typescript-estree" "5.9.0"
1037
1038
  eslint-scope "^5.1.1"
1038
1039
  eslint-utils "^3.0.0"
1039
1040
 
@@ -1049,14 +1050,14 @@
1049
1050
  eslint-scope "^5.1.1"
1050
1051
  eslint-utils "^3.0.0"
1051
1052
 
1052
- "@typescript-eslint/parser@^5.8.1":
1053
- version "5.8.1"
1054
- resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.8.1.tgz#380f5f1e596b540059998aa3fc80d78f0f9b0d0a"
1055
- integrity sha512-K1giKHAjHuyB421SoXMXFHHVI4NdNY603uKw92++D3qyxSeYvC10CBJ/GE5Thpo4WTUvu1mmJI2/FFkz38F2Gw==
1053
+ "@typescript-eslint/parser@^5.9.0":
1054
+ version "5.9.0"
1055
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.9.0.tgz#fdbb08767a4caa6ca6ccfed5f9ffe9387f0c7d97"
1056
+ integrity sha512-/6pOPz8yAxEt4PLzgbFRDpZmHnXCeZgPDrh/1DaVKOjvn/UPMlWhbx/gA96xRi2JxY1kBl2AmwVbyROUqys5xQ==
1056
1057
  dependencies:
1057
- "@typescript-eslint/scope-manager" "5.8.1"
1058
- "@typescript-eslint/types" "5.8.1"
1059
- "@typescript-eslint/typescript-estree" "5.8.1"
1058
+ "@typescript-eslint/scope-manager" "5.9.0"
1059
+ "@typescript-eslint/types" "5.9.0"
1060
+ "@typescript-eslint/typescript-estree" "5.9.0"
1060
1061
  debug "^4.3.2"
1061
1062
 
1062
1063
  "@typescript-eslint/scope-manager@5.6.0":
@@ -1067,23 +1068,32 @@
1067
1068
  "@typescript-eslint/types" "5.6.0"
1068
1069
  "@typescript-eslint/visitor-keys" "5.6.0"
1069
1070
 
1070
- "@typescript-eslint/scope-manager@5.8.1":
1071
- version "5.8.1"
1072
- resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.8.1.tgz#7fc0604f7ade8833e4d42cebaa1e2debf8b932e4"
1073
- integrity sha512-DGxJkNyYruFH3NIZc3PwrzwOQAg7vvgsHsHCILOLvUpupgkwDZdNq/cXU3BjF4LNrCsVg0qxEyWasys5AiJ85Q==
1071
+ "@typescript-eslint/scope-manager@5.9.0":
1072
+ version "5.9.0"
1073
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.9.0.tgz#02dfef920290c1dcd7b1999455a3eaae7a1a3117"
1074
+ integrity sha512-DKtdIL49Qxk2a8icF6whRk7uThuVz4A6TCXfjdJSwOsf+9ree7vgQWcx0KOyCdk0i9ETX666p4aMhrRhxhUkyg==
1075
+ dependencies:
1076
+ "@typescript-eslint/types" "5.9.0"
1077
+ "@typescript-eslint/visitor-keys" "5.9.0"
1078
+
1079
+ "@typescript-eslint/type-utils@5.9.0":
1080
+ version "5.9.0"
1081
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.9.0.tgz#fd5963ead04bc9b7af9c3a8e534d8d39f1ce5f93"
1082
+ integrity sha512-uVCb9dJXpBrK1071ri5aEW7ZHdDHAiqEjYznF3HSSvAJXyrkxGOw2Ejibz/q6BXdT8lea8CMI0CzKNFTNI6TEQ==
1074
1083
  dependencies:
1075
- "@typescript-eslint/types" "5.8.1"
1076
- "@typescript-eslint/visitor-keys" "5.8.1"
1084
+ "@typescript-eslint/experimental-utils" "5.9.0"
1085
+ debug "^4.3.2"
1086
+ tsutils "^3.21.0"
1077
1087
 
1078
1088
  "@typescript-eslint/types@5.6.0":
1079
1089
  version "5.6.0"
1080
1090
  resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.6.0.tgz#745cb1b59daadcc1f32f7be95f0f68accf38afdd"
1081
1091
  integrity sha512-OIZffked7mXv4mXzWU5MgAEbCf9ecNJBKi+Si6/I9PpTaj+cf2x58h2oHW5/P/yTnPkKaayfjhLvx+crnl5ubA==
1082
1092
 
1083
- "@typescript-eslint/types@5.8.1":
1084
- version "5.8.1"
1085
- resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.8.1.tgz#04c6b49ebc8c99238238a6b8b43f2fc613983b5a"
1086
- integrity sha512-L/FlWCCgnjKOLefdok90/pqInkomLnAcF9UAzNr+DSqMC3IffzumHTQTrINXhP1gVp9zlHiYYjvozVZDPleLcA==
1093
+ "@typescript-eslint/types@5.9.0":
1094
+ version "5.9.0"
1095
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.9.0.tgz#e5619803e39d24a03b3369506df196355736e1a3"
1096
+ integrity sha512-mWp6/b56Umo1rwyGCk8fPIzb9Migo8YOniBGPAQDNC6C52SeyNGN4gsVwQTAR+RS2L5xyajON4hOLwAGwPtUwg==
1087
1097
 
1088
1098
  "@typescript-eslint/typescript-estree@5.6.0":
1089
1099
  version "5.6.0"
@@ -1098,13 +1108,13 @@
1098
1108
  semver "^7.3.5"
1099
1109
  tsutils "^3.21.0"
1100
1110
 
1101
- "@typescript-eslint/typescript-estree@5.8.1":
1102
- version "5.8.1"
1103
- resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.8.1.tgz#a592855be688e7b729a1e9411d7d74ec992ed6ef"
1104
- integrity sha512-26lQ8l8tTbG7ri7xEcCFT9ijU5Fk+sx/KRRyyzCv7MQ+rZZlqiDPtMKWLC8P7o+dtCnby4c+OlxuX1tp8WfafQ==
1111
+ "@typescript-eslint/typescript-estree@5.9.0":
1112
+ version "5.9.0"
1113
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.9.0.tgz#0e5c6f03f982931abbfbc3c1b9df5fbf92a3490f"
1114
+ integrity sha512-kxo3xL2mB7XmiVZcECbaDwYCt3qFXz99tBSuVJR4L/sR7CJ+UNAPrYILILktGj1ppfZ/jNt/cWYbziJUlHl1Pw==
1105
1115
  dependencies:
1106
- "@typescript-eslint/types" "5.8.1"
1107
- "@typescript-eslint/visitor-keys" "5.8.1"
1116
+ "@typescript-eslint/types" "5.9.0"
1117
+ "@typescript-eslint/visitor-keys" "5.9.0"
1108
1118
  debug "^4.3.2"
1109
1119
  globby "^11.0.4"
1110
1120
  is-glob "^4.0.3"
@@ -1119,12 +1129,12 @@
1119
1129
  "@typescript-eslint/types" "5.6.0"
1120
1130
  eslint-visitor-keys "^3.0.0"
1121
1131
 
1122
- "@typescript-eslint/visitor-keys@5.8.1":
1123
- version "5.8.1"
1124
- resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.8.1.tgz#58a2c566265d5511224bc316149890451c1bbab0"
1125
- integrity sha512-SWgiWIwocK6NralrJarPZlWdr0hZnj5GXHIgfdm8hNkyKvpeQuFyLP6YjSIe9kf3YBIfU6OHSZLYkQ+smZwtNg==
1132
+ "@typescript-eslint/visitor-keys@5.9.0":
1133
+ version "5.9.0"
1134
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.9.0.tgz#7585677732365e9d27f1878150fab3922784a1a6"
1135
+ integrity sha512-6zq0mb7LV0ThExKlecvpfepiB+XEtFv/bzx7/jKSgyXTFD7qjmSu1FoiS0x3OZaiS+UIXpH2vd9O89f02RCtgw==
1126
1136
  dependencies:
1127
- "@typescript-eslint/types" "5.8.1"
1137
+ "@typescript-eslint/types" "5.9.0"
1128
1138
  eslint-visitor-keys "^3.0.0"
1129
1139
 
1130
1140
  abab@^2.0.3, abab@^2.0.5:
@@ -1172,6 +1182,11 @@ acorn@^8.2.4, acorn@^8.4.1, acorn@^8.6.0:
1172
1182
  resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.6.0.tgz#e3692ba0eb1a0c83eaa4f37f5fa7368dd7142895"
1173
1183
  integrity sha512-U1riIR+lBSNi3IbxtaHOIKdH8sLFv3NYfNv8sg7ZsNhcfl4HF2++BfqqrNAxoCLQW1iiylOj76ecnaUxz+z9yw==
1174
1184
 
1185
+ acorn@^8.7.0:
1186
+ version "8.7.0"
1187
+ resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.7.0.tgz#90951fde0f8f09df93549481e5fc141445b791cf"
1188
+ integrity sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==
1189
+
1175
1190
  agent-base@6:
1176
1191
  version "6.0.2"
1177
1192
  resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77"
@@ -2002,38 +2017,37 @@ eslint-import-resolver-node@^0.3.6:
2002
2017
  debug "^3.2.7"
2003
2018
  resolve "^1.20.0"
2004
2019
 
2005
- eslint-module-utils@^2.7.1:
2006
- version "2.7.1"
2007
- resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.7.1.tgz#b435001c9f8dd4ab7f6d0efcae4b9696d4c24b7c"
2008
- integrity sha512-fjoetBXQZq2tSTWZ9yWVl2KuFrTZZH3V+9iD1V1RfpDgxzJR+mPd/KZmMiA8gbPqdBzpNiEHOuT7IYEWxrH0zQ==
2020
+ eslint-module-utils@^2.7.2:
2021
+ version "2.7.2"
2022
+ resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.7.2.tgz#1d0aa455dcf41052339b63cada8ab5fd57577129"
2023
+ integrity sha512-zquepFnWCY2ISMFwD/DqzaM++H+7PDzOpUvotJWm/y1BAFt5R4oeULgdrTejKqLkz7MA/tgstsUMNYc7wNdTrg==
2009
2024
  dependencies:
2010
2025
  debug "^3.2.7"
2011
2026
  find-up "^2.1.0"
2012
- pkg-dir "^2.0.0"
2013
2027
 
2014
- eslint-plugin-import@^2.25.3:
2015
- version "2.25.3"
2016
- resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.25.3.tgz#a554b5f66e08fb4f6dc99221866e57cfff824766"
2017
- integrity sha512-RzAVbby+72IB3iOEL8clzPLzL3wpDrlwjsTBAQXgyp5SeTqqY+0bFubwuo+y/HLhNZcXV4XqTBO4LGsfyHIDXg==
2028
+ eslint-plugin-import@^2.25.4:
2029
+ version "2.25.4"
2030
+ resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.25.4.tgz#322f3f916a4e9e991ac7af32032c25ce313209f1"
2031
+ integrity sha512-/KJBASVFxpu0xg1kIBn9AUa8hQVnszpwgE7Ld0lKAlx7Ie87yzEzCgSkekt+le/YVhiaosO4Y14GDAOc41nfxA==
2018
2032
  dependencies:
2019
2033
  array-includes "^3.1.4"
2020
2034
  array.prototype.flat "^1.2.5"
2021
2035
  debug "^2.6.9"
2022
2036
  doctrine "^2.1.0"
2023
2037
  eslint-import-resolver-node "^0.3.6"
2024
- eslint-module-utils "^2.7.1"
2038
+ eslint-module-utils "^2.7.2"
2025
2039
  has "^1.0.3"
2026
2040
  is-core-module "^2.8.0"
2027
2041
  is-glob "^4.0.3"
2028
2042
  minimatch "^3.0.4"
2029
2043
  object.values "^1.1.5"
2030
2044
  resolve "^1.20.0"
2031
- tsconfig-paths "^3.11.0"
2045
+ tsconfig-paths "^3.12.0"
2032
2046
 
2033
- eslint-plugin-jest@^25.3.2:
2034
- version "25.3.2"
2035
- resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-25.3.2.tgz#702801e37c502546fe4c4986888720f6eed3b129"
2036
- integrity sha512-1aPC7RRJkMCNgklHMDECw8fnzag3JBH53LaxmFkDTR7+PfMCO5V6f8XFRHoT2I+Fr4pVO9cPdRGlf7/haB2O5Q==
2047
+ eslint-plugin-jest@^25.3.4:
2048
+ version "25.3.4"
2049
+ resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-25.3.4.tgz#2031dfe495be1463330f8b80096ddc91f8e6387f"
2050
+ integrity sha512-CCnwG71wvabmwq/qkz0HWIqBHQxw6pXB1uqt24dxqJ9WB34pVg49bL1sjXphlJHgTMWGhBjN1PicdyxDxrfP5A==
2037
2051
  dependencies:
2038
2052
  "@typescript-eslint/experimental-utils" "^5.0.0"
2039
2053
 
@@ -2077,10 +2091,10 @@ eslint-visitor-keys@^3.0.0, eslint-visitor-keys@^3.1.0:
2077
2091
  resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.1.0.tgz#eee4acea891814cda67a7d8812d9647dd0179af2"
2078
2092
  integrity sha512-yWJFpu4DtjsWKkt5GeNBBuZMlNcYVs6vRCLoCVEJrTjaSB6LC98gFipNK/erM2Heg/E8mIK+hXG/pJMLK+eRZA==
2079
2093
 
2080
- eslint@^8.5.0:
2081
- version "8.5.0"
2082
- resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.5.0.tgz#ddd2c1afd8f412036f87ae2a063d2aa296d3175f"
2083
- integrity sha512-tVGSkgNbOfiHyVte8bCM8OmX+xG9PzVG/B4UCF60zx7j61WIVY/AqJECDgpLD4DbbESD0e174gOg3ZlrX15GDg==
2094
+ eslint@^8.6.0:
2095
+ version "8.6.0"
2096
+ resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.6.0.tgz#4318c6a31c5584838c1a2e940c478190f58d558e"
2097
+ integrity sha512-UvxdOJ7mXFlw7iuHZA4jmzPaUqIw54mZrv+XPYKNbKdLR0et4rf60lIZUU9kiNtnzzMzGWxMV+tQ7uG7JG8DPw==
2084
2098
  dependencies:
2085
2099
  "@eslint/eslintrc" "^1.0.5"
2086
2100
  "@humanwhocodes/config-array" "^0.9.2"
@@ -2094,7 +2108,7 @@ eslint@^8.5.0:
2094
2108
  eslint-scope "^7.1.0"
2095
2109
  eslint-utils "^3.0.0"
2096
2110
  eslint-visitor-keys "^3.1.0"
2097
- espree "^9.2.0"
2111
+ espree "^9.3.0"
2098
2112
  esquery "^1.4.0"
2099
2113
  esutils "^2.0.2"
2100
2114
  fast-deep-equal "^3.1.3"
@@ -2130,6 +2144,15 @@ espree@^9.2.0:
2130
2144
  acorn-jsx "^5.3.1"
2131
2145
  eslint-visitor-keys "^3.1.0"
2132
2146
 
2147
+ espree@^9.3.0:
2148
+ version "9.3.0"
2149
+ resolved "https://registry.yarnpkg.com/espree/-/espree-9.3.0.tgz#c1240d79183b72aaee6ccfa5a90bc9111df085a8"
2150
+ integrity sha512-d/5nCsb0JcqsSEeQzFZ8DH1RmxPcglRWh24EFTlUEmCKoehXGdpsx0RkHDubqUI8LSAIKMQp4r9SzQ3n+sm4HQ==
2151
+ dependencies:
2152
+ acorn "^8.7.0"
2153
+ acorn-jsx "^5.3.1"
2154
+ eslint-visitor-keys "^3.1.0"
2155
+
2133
2156
  esprima@^4.0.0, esprima@^4.0.1:
2134
2157
  version "4.0.1"
2135
2158
  resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71"
@@ -3466,10 +3489,10 @@ lines-and-columns@^1.1.6:
3466
3489
  resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632"
3467
3490
  integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==
3468
3491
 
3469
- lint-staged@^12.1.4:
3470
- version "12.1.4"
3471
- resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-12.1.4.tgz#a92ec8509f13018caaafade61d515c2d5873316e"
3472
- integrity sha512-RgDz9nsFsE0/5eL9Vat0AvCuk0+j5mEuzBIVfrRH5FRtt5wibYe8zTjZs2nuqLFrLAGQGYnj8+HJxolcj08i/A==
3492
+ lint-staged@^12.1.5:
3493
+ version "12.1.5"
3494
+ resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-12.1.5.tgz#e05582fc39aed5cb13b9dd1dfb8330407246d809"
3495
+ integrity sha512-WyKb+0sNKDTd1LwwAfTBPp0XmdaKkAOEbg4oHE4Kq2+oQVchg/VAcjVQtSqZih1izNsTURjc2EkhG/syRQUXdA==
3473
3496
  dependencies:
3474
3497
  cli-truncate "^3.1.0"
3475
3498
  colorette "^2.0.16"
@@ -3959,13 +3982,6 @@ pirates@^4.0.1:
3959
3982
  resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.4.tgz#07df81e61028e402735cdd49db701e4885b4e6e6"
3960
3983
  integrity sha512-ZIrVPH+A52Dw84R0L3/VS9Op04PuQ2SEoJL6bkshmiTic/HldyW9Tf7oH5mhJZBK7NmDx27vSMrYEXPXclpDKw==
3961
3984
 
3962
- pkg-dir@^2.0.0:
3963
- version "2.0.0"
3964
- resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-2.0.0.tgz#f6d5d1109e19d63edf428e0bd57e12777615334b"
3965
- integrity sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=
3966
- dependencies:
3967
- find-up "^2.1.0"
3968
-
3969
3985
  pkg-dir@^4.2.0:
3970
3986
  version "4.2.0"
3971
3987
  resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3"
@@ -4613,7 +4629,7 @@ ts-node@^9:
4613
4629
  source-map-support "^0.5.17"
4614
4630
  yn "3.1.1"
4615
4631
 
4616
- tsconfig-paths@^3.11.0:
4632
+ tsconfig-paths@^3.12.0:
4617
4633
  version "3.12.0"
4618
4634
  resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.12.0.tgz#19769aca6ee8f6a1a341e38c8fa45dd9fb18899b"
4619
4635
  integrity sha512-e5adrnOYT6zqVnWqZu7i/BQ3BnhzvGbjEjejFXO20lKIKpwTaupkCPgEfv4GZK1IBciJUEhYs3J3p75FdaTFVg==
@@ -4730,6 +4746,11 @@ util-deprecate@^1.0.1, util-deprecate@~1.0.1:
4730
4746
  resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
4731
4747
  integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=
4732
4748
 
4749
+ utility-types@^3.10.0:
4750
+ version "3.10.0"
4751
+ resolved "https://registry.yarnpkg.com/utility-types/-/utility-types-3.10.0.tgz#ea4148f9a741015f05ed74fd615e1d20e6bed82b"
4752
+ integrity sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==
4753
+
4733
4754
  v8-compile-cache@^2.0.3:
4734
4755
  version "2.3.0"
4735
4756
  resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee"