backport 8.4.2 → 8.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/author.d.ts +13 -0
- package/dist/lib/author.js +28 -0
- package/dist/lib/cherrypickAndCreateTargetPullRequest.js +13 -19
- package/dist/lib/cherrypickAndCreateTargetPullRequest.test.js +2 -0
- package/dist/lib/git.d.ts +7 -5
- package/dist/lib/git.js +11 -3
- package/dist/lib/git.private.test.js +3 -3
- package/dist/lib/git.test.js +28 -6
- package/dist/test/e2e/cli/runBackportViaCli.js +1 -1
- package/dist/test/sandbox.d.ts +1 -0
- package/dist/test/sandbox.js +3 -2
- package/dist/utils/packageVersion.d.ts +1 -1
- package/dist/utils/packageVersion.js +1 -1
- package/package.json +11 -11
- package/yarn.lock +120 -117
- package/dist/lib/getGitConfigAuthor.d.ts +0 -6
- package/dist/lib/getGitConfigAuthor.js +0 -15
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Commit } from '../entrypoint.module';
|
|
2
|
+
import { ValidConfigOptions } from '../options/options';
|
|
3
|
+
export declare type GitConfigAuthor = {
|
|
4
|
+
name?: string;
|
|
5
|
+
email?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function getGitConfigAuthor(options: ValidConfigOptions): Promise<GitConfigAuthor | undefined>;
|
|
8
|
+
export declare type CommitAuthor = Required<GitConfigAuthor>;
|
|
9
|
+
export declare function getCommitAuthor({ options, commit, gitConfigAuthor, }: {
|
|
10
|
+
options: ValidConfigOptions;
|
|
11
|
+
commit: Commit;
|
|
12
|
+
gitConfigAuthor?: GitConfigAuthor;
|
|
13
|
+
}): CommitAuthor;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getCommitAuthor = exports.getGitConfigAuthor = void 0;
|
|
4
|
+
const git_1 = require("./git");
|
|
5
|
+
async function getGitConfigAuthor(options) {
|
|
6
|
+
const localRepoPath = await (0, git_1.getLocalSourceRepoPath)(options);
|
|
7
|
+
if (!localRepoPath) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
return {
|
|
11
|
+
name: await (0, git_1.getGitConfig)({ dir: localRepoPath, key: 'user.name' }),
|
|
12
|
+
email: await (0, git_1.getGitConfig)({ dir: localRepoPath, key: 'user.email' }),
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
exports.getGitConfigAuthor = getGitConfigAuthor;
|
|
16
|
+
function getCommitAuthor({ options, commit, gitConfigAuthor, }) {
|
|
17
|
+
if (options.resetAuthor) {
|
|
18
|
+
return {
|
|
19
|
+
name: options.authenticatedUsername,
|
|
20
|
+
email: `<${options.authenticatedUsername}@users.noreply.github.com>`,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
name: options.gitAuthorName ?? gitConfigAuthor?.name ?? commit.author.name,
|
|
25
|
+
email: options.gitAuthorEmail ?? gitConfigAuthor?.email ?? commit.author.email,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
exports.getCommitAuthor = getCommitAuthor;
|
|
@@ -7,10 +7,10 @@ exports.cherrypickAndCreateTargetPullRequest = void 0;
|
|
|
7
7
|
const chalk_1 = __importDefault(require("chalk"));
|
|
8
8
|
const lodash_1 = require("lodash");
|
|
9
9
|
const BackportError_1 = require("./BackportError");
|
|
10
|
+
const author_1 = require("./author");
|
|
10
11
|
const child_process_promisified_1 = require("./child-process-promisified");
|
|
11
12
|
const env_1 = require("./env");
|
|
12
13
|
const getCommitsWithoutBackports_1 = require("./getCommitsWithoutBackports");
|
|
13
|
-
const getGitConfigAuthor_1 = require("./getGitConfigAuthor");
|
|
14
14
|
const git_1 = require("./git");
|
|
15
15
|
const commitFormatters_1 = require("./github/commitFormatters");
|
|
16
16
|
const addAssigneesToPullRequest_1 = require("./github/v3/addAssigneesToPullRequest");
|
|
@@ -35,7 +35,7 @@ async function cherrypickAndCreateTargetPullRequest({ options, commits, targetBr
|
|
|
35
35
|
(0, logger_1.consoleLog)(`\n${chalk_1.default.bold(`Backporting to ${targetBranch}:`)}`);
|
|
36
36
|
const sourceBranch = getSourceBranchFromCommits(commits);
|
|
37
37
|
const [gitConfigAuthor] = await Promise.all([
|
|
38
|
-
(0,
|
|
38
|
+
(0, author_1.getGitConfigAuthor)(options),
|
|
39
39
|
(0, git_1.createBackportBranch)({
|
|
40
40
|
options,
|
|
41
41
|
sourceBranch,
|
|
@@ -123,11 +123,18 @@ function getBackportBranchName(targetBranch, commits) {
|
|
|
123
123
|
async function waitForCherrypick(options, commit, targetBranch, gitConfigAuthor) {
|
|
124
124
|
const spinnerText = `Cherry-picking: ${chalk_1.default.greenBright((0, commitFormatters_1.getFirstLine)(commit.sourceCommit.message))}`;
|
|
125
125
|
const cherrypickSpinner = (0, ora_1.ora)(options.interactive, spinnerText).start();
|
|
126
|
-
|
|
126
|
+
const commitAuthor = (0, author_1.getCommitAuthor)({ options, commit, gitConfigAuthor });
|
|
127
|
+
await cherrypickAndHandleConflicts({
|
|
128
|
+
options,
|
|
129
|
+
commit,
|
|
130
|
+
commitAuthor,
|
|
131
|
+
targetBranch,
|
|
132
|
+
cherrypickSpinner,
|
|
133
|
+
});
|
|
127
134
|
// Conflicts should be resolved and files staged at this point
|
|
128
135
|
try {
|
|
129
|
-
// Run `git commit`
|
|
130
|
-
await (0, git_1.commitChanges)(commit,
|
|
136
|
+
// Run `git commit` in case conflicts were not manually committed
|
|
137
|
+
await (0, git_1.commitChanges)({ options, commit, commitAuthor });
|
|
131
138
|
cherrypickSpinner.succeed();
|
|
132
139
|
}
|
|
133
140
|
catch (e) {
|
|
@@ -135,9 +142,8 @@ async function waitForCherrypick(options, commit, targetBranch, gitConfigAuthor)
|
|
|
135
142
|
throw e;
|
|
136
143
|
}
|
|
137
144
|
}
|
|
138
|
-
async function cherrypickAndHandleConflicts(options, commit, targetBranch, cherrypickSpinner,
|
|
145
|
+
async function cherrypickAndHandleConflicts({ options, commit, commitAuthor, targetBranch, cherrypickSpinner, }) {
|
|
139
146
|
const mergedTargetPullRequest = commit.expectedTargetPullRequests.find((pr) => pr.state === 'MERGED' && pr.branch === targetBranch);
|
|
140
|
-
const commitAuthor = getCommitAuthor({ options, gitConfigAuthor, commit });
|
|
141
147
|
let conflictingFiles;
|
|
142
148
|
let unstagedFiles;
|
|
143
149
|
let needsResolving;
|
|
@@ -249,15 +255,3 @@ async function listConflictingAndUnstagedFiles({ retries, options, conflictingFi
|
|
|
249
255
|
unstagedFiles: _unstagedFiles,
|
|
250
256
|
});
|
|
251
257
|
}
|
|
252
|
-
function getCommitAuthor({ options, gitConfigAuthor, commit, }) {
|
|
253
|
-
if (options.resetAuthor) {
|
|
254
|
-
return {
|
|
255
|
-
name: options.authenticatedUsername,
|
|
256
|
-
email: `<${options.authenticatedUsername}@users.noreply.github.com>`,
|
|
257
|
-
};
|
|
258
|
-
}
|
|
259
|
-
return {
|
|
260
|
-
name: options.gitAuthorName ?? gitConfigAuthor?.name ?? commit.author.name,
|
|
261
|
-
email: options.gitAuthorEmail ?? gitConfigAuthor?.email ?? commit.author.email,
|
|
262
|
-
};
|
|
263
|
-
}
|
|
@@ -63,6 +63,8 @@ describe('cherrypickAndCreateTargetPullRequest', () => {
|
|
|
63
63
|
const options = {
|
|
64
64
|
assignees: [],
|
|
65
65
|
authenticatedUsername: 'sqren_authenticated',
|
|
66
|
+
gitAuthorName: 'Soren L',
|
|
67
|
+
gitAuthorEmail: 'soren@louv.dk',
|
|
66
68
|
author: 'sqren',
|
|
67
69
|
fork: true,
|
|
68
70
|
interactive: true,
|
package/dist/lib/git.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ValidConfigOptions } from '../options/options';
|
|
2
|
+
import { CommitAuthor } from './author';
|
|
2
3
|
import { ExpectedTargetPullRequest } from './sourceCommit/getExpectedTargetPullRequests';
|
|
3
4
|
import { Commit } from './sourceCommit/parseSourceCommit';
|
|
4
5
|
export declare function getRemoteUrl({ repoName, accessToken, gitHostname }: ValidConfigOptions, repoOwner: string): string;
|
|
@@ -32,10 +33,7 @@ export declare function cherrypick({ options, sha, mergedTargetPullRequest, comm
|
|
|
32
33
|
options: ValidConfigOptions;
|
|
33
34
|
sha: string;
|
|
34
35
|
mergedTargetPullRequest?: ExpectedTargetPullRequest;
|
|
35
|
-
commitAuthor:
|
|
36
|
-
name: string;
|
|
37
|
-
email: string;
|
|
38
|
-
};
|
|
36
|
+
commitAuthor: CommitAuthor;
|
|
39
37
|
}): Promise<{
|
|
40
38
|
conflictingFiles: {
|
|
41
39
|
absolute: string;
|
|
@@ -44,7 +42,11 @@ export declare function cherrypick({ options, sha, mergedTargetPullRequest, comm
|
|
|
44
42
|
unstagedFiles: string[];
|
|
45
43
|
needsResolving: boolean;
|
|
46
44
|
}>;
|
|
47
|
-
export declare function commitChanges(commit
|
|
45
|
+
export declare function commitChanges({ options, commit, commitAuthor, }: {
|
|
46
|
+
options: ValidConfigOptions;
|
|
47
|
+
commit: Commit;
|
|
48
|
+
commitAuthor: CommitAuthor;
|
|
49
|
+
}): Promise<void>;
|
|
48
50
|
export declare type ConflictingFiles = Awaited<ReturnType<typeof getConflictingFiles>>;
|
|
49
51
|
export declare function getConflictingFiles(options: ValidConfigOptions): Promise<{
|
|
50
52
|
absolute: string;
|
package/dist/lib/git.js
CHANGED
|
@@ -198,9 +198,9 @@ async function getShasInMergeCommit(options, sha) {
|
|
|
198
198
|
exports.getShasInMergeCommit = getShasInMergeCommit;
|
|
199
199
|
async function cherrypick({ options, sha, mergedTargetPullRequest, commitAuthor, }) {
|
|
200
200
|
const cmdArgs = [
|
|
201
|
-
|
|
201
|
+
`-c`,
|
|
202
202
|
`user.name="${commitAuthor.name}"`,
|
|
203
|
-
|
|
203
|
+
`-c`,
|
|
204
204
|
`user.email="${commitAuthor.email}"`,
|
|
205
205
|
`cherry-pick`,
|
|
206
206
|
...(options.mainline != undefined
|
|
@@ -247,11 +247,15 @@ async function cherrypick({ options, sha, mergedTargetPullRequest, commitAuthor,
|
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
exports.cherrypick = cherrypick;
|
|
250
|
-
async function commitChanges(commit,
|
|
250
|
+
async function commitChanges({ options, commit, commitAuthor, }) {
|
|
251
251
|
const noVerifyFlag = options.noVerify ? ['--no-verify'] : [];
|
|
252
252
|
const cwd = (0, env_1.getRepoPath)(options);
|
|
253
253
|
try {
|
|
254
254
|
await (0, child_process_promisified_1.spawnPromise)('git', [
|
|
255
|
+
`-c`,
|
|
256
|
+
`user.name="${commitAuthor.name}"`,
|
|
257
|
+
`-c`,
|
|
258
|
+
`user.email="${commitAuthor.email}"`,
|
|
255
259
|
'commit',
|
|
256
260
|
'--no-edit',
|
|
257
261
|
...noVerifyFlag, // bypass pre-commit and commit-msg hooks
|
|
@@ -268,6 +272,10 @@ async function commitChanges(commit, options) {
|
|
|
268
272
|
// this can happen if the user runs `git reset HEAD` and thereby aborts the cherrypick process
|
|
269
273
|
if (e.context.stderr.includes('Aborting commit due to empty commit message')) {
|
|
270
274
|
await (0, child_process_promisified_1.spawnPromise)('git', [
|
|
275
|
+
`-c`,
|
|
276
|
+
`user.name="${commitAuthor.name}"`,
|
|
277
|
+
`-c`,
|
|
278
|
+
`user.email="${commitAuthor.email}"`,
|
|
271
279
|
'commit',
|
|
272
280
|
`--message=${commit.sourceCommit.message}`,
|
|
273
281
|
...noVerifyFlag, // bypass pre-commit and commit-msg hooks
|
|
@@ -293,7 +293,7 @@ describe('git.integration', () => {
|
|
|
293
293
|
cwd,
|
|
294
294
|
});
|
|
295
295
|
expect(async () => {
|
|
296
|
-
return await (0, git_1.commitChanges)(commit, options);
|
|
296
|
+
return await (0, git_1.commitChanges)({ commit, commitAuthor, options });
|
|
297
297
|
}).not.toThrowError();
|
|
298
298
|
const message = await getMostRecentCommitMessage(cwd);
|
|
299
299
|
expect(message).toBe('Update my-file-1.txt');
|
|
@@ -309,7 +309,7 @@ describe('git.integration', () => {
|
|
|
309
309
|
filename: 'my-file-2.txt',
|
|
310
310
|
cwd,
|
|
311
311
|
});
|
|
312
|
-
await (0, git_1.commitChanges)(commit, options);
|
|
312
|
+
await (0, git_1.commitChanges)({ commit, commitAuthor, options });
|
|
313
313
|
const message = await getMostRecentCommitMessage(cwd);
|
|
314
314
|
expect(message).toBe('my fallback commit message');
|
|
315
315
|
});
|
|
@@ -329,7 +329,7 @@ describe('git.integration', () => {
|
|
|
329
329
|
}
|
|
330
330
|
// disregard conflicts and stage all files
|
|
331
331
|
await childProcess.exec('git add -A', { cwd });
|
|
332
|
-
await (0, git_1.commitChanges)(commit, options);
|
|
332
|
+
await (0, git_1.commitChanges)({ commit, commitAuthor, options });
|
|
333
333
|
const message = await getMostRecentCommitMessage(cwd);
|
|
334
334
|
expect(message).toMatchInlineSnapshot(`
|
|
335
335
|
"Add 🇩🇰 (#12)
|
package/dist/lib/git.test.js
CHANGED
|
@@ -489,7 +489,7 @@ describe('commitChanges', () => {
|
|
|
489
489
|
jest
|
|
490
490
|
.spyOn(childProcess, 'spawnPromise')
|
|
491
491
|
.mockResolvedValueOnce({ stderr: '', stdout: '', code: 0, cmdArgs: [] });
|
|
492
|
-
await expect(await (0, git_1.commitChanges)(commit, options)).toBe(undefined);
|
|
492
|
+
await expect(await (0, git_1.commitChanges)({ commit, commitAuthor, options })).toBe(undefined);
|
|
493
493
|
});
|
|
494
494
|
it('should swallow error if changes have already been committed manaully', async () => {
|
|
495
495
|
const err = new childProcess.SpawnError({
|
|
@@ -499,7 +499,7 @@ describe('commitChanges', () => {
|
|
|
499
499
|
stderr: '',
|
|
500
500
|
});
|
|
501
501
|
jest.spyOn(childProcess, 'spawnPromise').mockRejectedValueOnce(err);
|
|
502
|
-
await expect(await (0, git_1.commitChanges)(commit, options)).toBe(undefined);
|
|
502
|
+
await expect(await (0, git_1.commitChanges)({ commit, commitAuthor, options })).toBe(undefined);
|
|
503
503
|
});
|
|
504
504
|
describe('when commit fails due to empty message', () => {
|
|
505
505
|
let spy;
|
|
@@ -520,12 +520,34 @@ describe('commitChanges', () => {
|
|
|
520
520
|
code: 0,
|
|
521
521
|
cmdArgs: [],
|
|
522
522
|
});
|
|
523
|
-
res = await (0, git_1.commitChanges)(commit, options);
|
|
523
|
+
res = await (0, git_1.commitChanges)({ commit, commitAuthor, options });
|
|
524
524
|
});
|
|
525
525
|
it('should manually set the commit message', () => {
|
|
526
526
|
expect(spy).toHaveBeenCalledTimes(2);
|
|
527
|
-
expect(spy
|
|
528
|
-
|
|
527
|
+
expect(spy.mock.calls[0]).toEqual([
|
|
528
|
+
'git',
|
|
529
|
+
[
|
|
530
|
+
'-c',
|
|
531
|
+
'user.name="Soren L"',
|
|
532
|
+
'-c',
|
|
533
|
+
'user.email="soren@mail.dk"',
|
|
534
|
+
'commit',
|
|
535
|
+
'--no-edit',
|
|
536
|
+
],
|
|
537
|
+
expect.any(String),
|
|
538
|
+
]);
|
|
539
|
+
expect(spy.mock.calls[1]).toEqual([
|
|
540
|
+
'git',
|
|
541
|
+
[
|
|
542
|
+
'-c',
|
|
543
|
+
'user.name="Soren L"',
|
|
544
|
+
'-c',
|
|
545
|
+
'user.email="soren@mail.dk"',
|
|
546
|
+
'commit',
|
|
547
|
+
'--message=The original commit message',
|
|
548
|
+
],
|
|
549
|
+
expect.any(String),
|
|
550
|
+
]);
|
|
529
551
|
});
|
|
530
552
|
it('should handle the error and resolve successfully', async () => {
|
|
531
553
|
await expect(res).toBe(undefined);
|
|
@@ -535,7 +557,7 @@ describe('commitChanges', () => {
|
|
|
535
557
|
const err = new Error('another error');
|
|
536
558
|
jest.spyOn(childProcess, 'spawnPromise').mockRejectedValueOnce(err);
|
|
537
559
|
expect.assertions(1);
|
|
538
|
-
await expect((0, git_1.commitChanges)(commit, options)).rejects.toThrowErrorMatchingInlineSnapshot(`"another error"`);
|
|
560
|
+
await expect((0, git_1.commitChanges)({ commit, commitAuthor, options })).rejects.toThrowErrorMatchingInlineSnapshot(`"another error"`);
|
|
539
561
|
});
|
|
540
562
|
});
|
|
541
563
|
describe('addRemote', () => {
|
|
@@ -23,7 +23,7 @@ function runBackportViaCli(backportArgs, runBackportOptions = {}) {
|
|
|
23
23
|
const cmdArgs = [
|
|
24
24
|
'--transpile-only',
|
|
25
25
|
entrypointFile,
|
|
26
|
-
|
|
26
|
+
`--log-file-path=${sandbox_1.SANDBOX_PATH}/backport.log`,
|
|
27
27
|
...(backportArgs.some((arg) => arg.includes('--dir'))
|
|
28
28
|
? []
|
|
29
29
|
: [`--dir=${sandboxPath}`]),
|
package/dist/test/sandbox.d.ts
CHANGED
package/dist/test/sandbox.js
CHANGED
|
@@ -26,16 +26,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.resetSandbox = exports.getSandboxPath = void 0;
|
|
29
|
+
exports.resetSandbox = exports.getSandboxPath = exports.SANDBOX_PATH = void 0;
|
|
30
30
|
const os_1 = require("os");
|
|
31
31
|
const path_1 = __importStar(require("path"));
|
|
32
32
|
const del_1 = __importDefault(require("del"));
|
|
33
33
|
const make_dir_1 = __importDefault(require("make-dir"));
|
|
34
34
|
jest.unmock('make-dir');
|
|
35
35
|
jest.unmock('del');
|
|
36
|
+
exports.SANDBOX_PATH = `${(0, os_1.homedir)()}/.backport_testing/`;
|
|
36
37
|
function getSandboxPath({ filename, specname, }) {
|
|
37
38
|
const baseFilename = getFilenameWithoutExtension(filename);
|
|
38
|
-
return (0, path_1.resolve)(`${
|
|
39
|
+
return (0, path_1.resolve)(`${exports.SANDBOX_PATH}/${baseFilename}${specname ? `/${specname}` : ''}`);
|
|
39
40
|
}
|
|
40
41
|
exports.getSandboxPath = getSandboxPath;
|
|
41
42
|
async function resetSandbox(sandboxPath) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PACKAGE_VERSION = "8.4.
|
|
1
|
+
export declare const PACKAGE_VERSION = "8.4.3";
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"branches",
|
|
15
15
|
"branching"
|
|
16
16
|
],
|
|
17
|
-
"version": "8.4.
|
|
17
|
+
"version": "8.4.3",
|
|
18
18
|
"main": "./dist/entrypoint.module.js",
|
|
19
19
|
"types": "dist/entrypoint.module.d.ts",
|
|
20
20
|
"bin": {
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@octokit/rest": "^18.12.0",
|
|
67
67
|
"axios": "^0.27.2",
|
|
68
68
|
"dedent": "^0.7.0",
|
|
69
|
-
"del": "^6.
|
|
69
|
+
"del": "^6.1.1",
|
|
70
70
|
"dotenv": "^16.0.1",
|
|
71
71
|
"find-up": "^5.0.0",
|
|
72
72
|
"graphql": "^16.5.0",
|
|
@@ -89,27 +89,27 @@
|
|
|
89
89
|
"@types/inquirer": "^8.2.1",
|
|
90
90
|
"@types/jest": "^27.5.1",
|
|
91
91
|
"@types/lodash": "^4.14.182",
|
|
92
|
-
"@types/node": "^17.0.
|
|
92
|
+
"@types/node": "^17.0.35",
|
|
93
93
|
"@types/safe-json-stringify": "^1.1.2",
|
|
94
94
|
"@types/yargs": "^17.0.10",
|
|
95
95
|
"@types/yargs-parser": "^21.0.0",
|
|
96
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
97
|
-
"@typescript-eslint/parser": "^5.
|
|
98
|
-
"eslint": "^8.
|
|
96
|
+
"@typescript-eslint/eslint-plugin": "^5.26.0",
|
|
97
|
+
"@typescript-eslint/parser": "^5.26.0",
|
|
98
|
+
"eslint": "^8.16.0",
|
|
99
99
|
"eslint-config-prettier": "^8.5.0",
|
|
100
100
|
"eslint-plugin-import": "^2.26.0",
|
|
101
101
|
"eslint-plugin-jest": "^26.2.2",
|
|
102
102
|
"eslint-plugin-prettier": "^4.0.0",
|
|
103
|
-
"graphql-config": "^4.3.
|
|
103
|
+
"graphql-config": "^4.3.1",
|
|
104
104
|
"husky": "^8.0.1",
|
|
105
105
|
"jest": "^28.1.0",
|
|
106
106
|
"jest-snapshot-serializer-ansi": "^1.0.0",
|
|
107
|
-
"lint-staged": "^12.4.
|
|
107
|
+
"lint-staged": "^12.4.2",
|
|
108
108
|
"nock": "^13.2.4",
|
|
109
109
|
"prettier": "^2.6.2",
|
|
110
110
|
"strip-ansi": "^6.0.1",
|
|
111
|
-
"ts-jest": "^28.0.
|
|
112
|
-
"ts-node": "^10.
|
|
113
|
-
"typescript": "^4.
|
|
111
|
+
"ts-jest": "^28.0.3",
|
|
112
|
+
"ts-node": "^10.8.0",
|
|
113
|
+
"typescript": "^4.7.2"
|
|
114
114
|
}
|
|
115
115
|
}
|
package/yarn.lock
CHANGED
|
@@ -410,17 +410,12 @@
|
|
|
410
410
|
resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.5.0.tgz#bb504579c1cae923e6576a4f5da43d25f97bdbd9"
|
|
411
411
|
integrity sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==
|
|
412
412
|
|
|
413
|
-
"@cspotcode/source-map-
|
|
414
|
-
version "0.8.
|
|
415
|
-
resolved "https://registry.yarnpkg.com/@cspotcode/source-map-
|
|
416
|
-
integrity sha512-
|
|
417
|
-
|
|
418
|
-
"@cspotcode/source-map-support@0.7.0":
|
|
419
|
-
version "0.7.0"
|
|
420
|
-
resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.7.0.tgz#4789840aa859e46d2f3173727ab707c66bf344f5"
|
|
421
|
-
integrity sha512-X4xqRHqN8ACt2aHVe51OxeA2HjbcL4MqFqXkrmQszJ1NOUuUu5u6Vqx/0lZSVNku7velL5FC/s5uEAj1lsBMhA==
|
|
413
|
+
"@cspotcode/source-map-support@^0.8.0":
|
|
414
|
+
version "0.8.1"
|
|
415
|
+
resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz#00629c35a688e05a88b1cda684fb9d5e73f000a1"
|
|
416
|
+
integrity sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==
|
|
422
417
|
dependencies:
|
|
423
|
-
"@
|
|
418
|
+
"@jridgewell/trace-mapping" "0.3.9"
|
|
424
419
|
|
|
425
420
|
"@dabh/diagnostics@^2.0.2":
|
|
426
421
|
version "2.0.3"
|
|
@@ -441,15 +436,15 @@
|
|
|
441
436
|
ts-node "^9"
|
|
442
437
|
tslib "^2"
|
|
443
438
|
|
|
444
|
-
"@eslint/eslintrc@^1.
|
|
445
|
-
version "1.
|
|
446
|
-
resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.
|
|
447
|
-
integrity sha512-
|
|
439
|
+
"@eslint/eslintrc@^1.3.0":
|
|
440
|
+
version "1.3.0"
|
|
441
|
+
resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.3.0.tgz#29f92c30bb3e771e4a2048c95fa6855392dfac4f"
|
|
442
|
+
integrity sha512-UWW0TMTmk2d7hLcWD1/e2g5HDM/HQ3csaLSqXCfqwh4uNDuNqlaKWXmEsL4Cs41Z0KnILNvwbHAah3C2yt06kw==
|
|
448
443
|
dependencies:
|
|
449
444
|
ajv "^6.12.4"
|
|
450
445
|
debug "^4.3.2"
|
|
451
446
|
espree "^9.3.2"
|
|
452
|
-
globals "^13.
|
|
447
|
+
globals "^13.15.0"
|
|
453
448
|
ignore "^5.2.0"
|
|
454
449
|
import-fresh "^3.2.1"
|
|
455
450
|
js-yaml "^4.1.0"
|
|
@@ -829,6 +824,14 @@
|
|
|
829
824
|
resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.11.tgz#771a1d8d744eeb71b6adb35808e1a6c7b9b8c8ec"
|
|
830
825
|
integrity sha512-Fg32GrJo61m+VqYSdRSjRXMjQ06j8YIYfcTqndLYVAaHmroZHLJZCydsWBOTDqXS2v+mjxohBWEMfg97GXmYQg==
|
|
831
826
|
|
|
827
|
+
"@jridgewell/trace-mapping@0.3.9":
|
|
828
|
+
version "0.3.9"
|
|
829
|
+
resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz#6534fd5933a53ba7cbf3a17615e273a0d1273ff9"
|
|
830
|
+
integrity sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==
|
|
831
|
+
dependencies:
|
|
832
|
+
"@jridgewell/resolve-uri" "^3.0.3"
|
|
833
|
+
"@jridgewell/sourcemap-codec" "^1.4.10"
|
|
834
|
+
|
|
832
835
|
"@jridgewell/trace-mapping@^0.3.0":
|
|
833
836
|
version "0.3.4"
|
|
834
837
|
resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.4.tgz#f6a0832dffd5b8a6aaa633b7d9f8e8e94c83a0c3"
|
|
@@ -1116,10 +1119,10 @@
|
|
|
1116
1119
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.31.tgz#a5bb84ecfa27eec5e1c802c6bbf8139bdb163a5d"
|
|
1117
1120
|
integrity sha512-AR0x5HbXGqkEx9CadRH3EBYx/VkiUgZIhP4wvPn/+5KIsgpNoyFaRlVe0Zlx9gRtg8fA06a9tskE2MSN7TcG4Q==
|
|
1118
1121
|
|
|
1119
|
-
"@types/node@^17.0.
|
|
1120
|
-
version "17.0.
|
|
1121
|
-
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.
|
|
1122
|
-
integrity sha512-
|
|
1122
|
+
"@types/node@^17.0.35":
|
|
1123
|
+
version "17.0.35"
|
|
1124
|
+
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.35.tgz#635b7586086d51fb40de0a2ec9d1014a5283ba4a"
|
|
1125
|
+
integrity sha512-vu1SrqBjbbZ3J6vwY17jBs8Sr/BKA+/a/WtjRG+whKg1iuLFOosq872EXS0eXWILdO36DHQQeku/ZcL6hz2fpg==
|
|
1123
1126
|
|
|
1124
1127
|
"@types/parse-json@^4.0.0":
|
|
1125
1128
|
version "4.0.0"
|
|
@@ -1174,14 +1177,14 @@
|
|
|
1174
1177
|
dependencies:
|
|
1175
1178
|
"@types/yargs-parser" "*"
|
|
1176
1179
|
|
|
1177
|
-
"@typescript-eslint/eslint-plugin@^5.
|
|
1178
|
-
version "5.
|
|
1179
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.
|
|
1180
|
-
integrity sha512-
|
|
1180
|
+
"@typescript-eslint/eslint-plugin@^5.26.0":
|
|
1181
|
+
version "5.26.0"
|
|
1182
|
+
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.26.0.tgz#c1f98ccba9d345e38992975d3ca56ed6260643c2"
|
|
1183
|
+
integrity sha512-oGCmo0PqnRZZndr+KwvvAUvD3kNE4AfyoGCwOZpoCncSh4MVD06JTE8XQa2u9u+NX5CsyZMBTEc2C72zx38eYA==
|
|
1181
1184
|
dependencies:
|
|
1182
|
-
"@typescript-eslint/scope-manager" "5.
|
|
1183
|
-
"@typescript-eslint/type-utils" "5.
|
|
1184
|
-
"@typescript-eslint/utils" "5.
|
|
1185
|
+
"@typescript-eslint/scope-manager" "5.26.0"
|
|
1186
|
+
"@typescript-eslint/type-utils" "5.26.0"
|
|
1187
|
+
"@typescript-eslint/utils" "5.26.0"
|
|
1185
1188
|
debug "^4.3.4"
|
|
1186
1189
|
functional-red-black-tree "^1.0.1"
|
|
1187
1190
|
ignore "^5.2.0"
|
|
@@ -1189,14 +1192,14 @@
|
|
|
1189
1192
|
semver "^7.3.7"
|
|
1190
1193
|
tsutils "^3.21.0"
|
|
1191
1194
|
|
|
1192
|
-
"@typescript-eslint/parser@^5.
|
|
1193
|
-
version "5.
|
|
1194
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.
|
|
1195
|
-
integrity sha512-
|
|
1195
|
+
"@typescript-eslint/parser@^5.26.0":
|
|
1196
|
+
version "5.26.0"
|
|
1197
|
+
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.26.0.tgz#a61b14205fe2ab7533deb4d35e604add9a4ceee2"
|
|
1198
|
+
integrity sha512-n/IzU87ttzIdnAH5vQ4BBDnLPly7rC5VnjN3m0xBG82HK6rhRxnCb3w/GyWbNDghPd+NktJqB/wl6+YkzZ5T5Q==
|
|
1196
1199
|
dependencies:
|
|
1197
|
-
"@typescript-eslint/scope-manager" "5.
|
|
1198
|
-
"@typescript-eslint/types" "5.
|
|
1199
|
-
"@typescript-eslint/typescript-estree" "5.
|
|
1200
|
+
"@typescript-eslint/scope-manager" "5.26.0"
|
|
1201
|
+
"@typescript-eslint/types" "5.26.0"
|
|
1202
|
+
"@typescript-eslint/typescript-estree" "5.26.0"
|
|
1200
1203
|
debug "^4.3.4"
|
|
1201
1204
|
|
|
1202
1205
|
"@typescript-eslint/scope-manager@5.24.0":
|
|
@@ -1207,20 +1210,20 @@
|
|
|
1207
1210
|
"@typescript-eslint/types" "5.24.0"
|
|
1208
1211
|
"@typescript-eslint/visitor-keys" "5.24.0"
|
|
1209
1212
|
|
|
1210
|
-
"@typescript-eslint/scope-manager@5.
|
|
1211
|
-
version "5.
|
|
1212
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.
|
|
1213
|
-
integrity sha512-
|
|
1213
|
+
"@typescript-eslint/scope-manager@5.26.0":
|
|
1214
|
+
version "5.26.0"
|
|
1215
|
+
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.26.0.tgz#44209c7f649d1a120f0717e0e82da856e9871339"
|
|
1216
|
+
integrity sha512-gVzTJUESuTwiju/7NiTb4c5oqod8xt5GhMbExKsCTp6adU3mya6AGJ4Pl9xC7x2DX9UYFsjImC0mA62BCY22Iw==
|
|
1214
1217
|
dependencies:
|
|
1215
|
-
"@typescript-eslint/types" "5.
|
|
1216
|
-
"@typescript-eslint/visitor-keys" "5.
|
|
1218
|
+
"@typescript-eslint/types" "5.26.0"
|
|
1219
|
+
"@typescript-eslint/visitor-keys" "5.26.0"
|
|
1217
1220
|
|
|
1218
|
-
"@typescript-eslint/type-utils@5.
|
|
1219
|
-
version "5.
|
|
1220
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.
|
|
1221
|
-
integrity sha512-
|
|
1221
|
+
"@typescript-eslint/type-utils@5.26.0":
|
|
1222
|
+
version "5.26.0"
|
|
1223
|
+
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.26.0.tgz#937dee97702361744a3815c58991acf078230013"
|
|
1224
|
+
integrity sha512-7ccbUVWGLmcRDSA1+ADkDBl5fP87EJt0fnijsMFTVHXKGduYMgienC/i3QwoVhDADUAPoytgjbZbCOMj4TY55A==
|
|
1222
1225
|
dependencies:
|
|
1223
|
-
"@typescript-eslint/utils" "5.
|
|
1226
|
+
"@typescript-eslint/utils" "5.26.0"
|
|
1224
1227
|
debug "^4.3.4"
|
|
1225
1228
|
tsutils "^3.21.0"
|
|
1226
1229
|
|
|
@@ -1229,10 +1232,10 @@
|
|
|
1229
1232
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.24.0.tgz#565ff94a4b89073265e27514dc65225d18aabe6c"
|
|
1230
1233
|
integrity sha512-Tpg1c3shTDgTmZd3qdUyd+16r/pGmVaVEbLs+ufuWP0EruVbUiEOmpBBQxBb9a8iPRxi8Rb2oiwOxuZJzSq11A==
|
|
1231
1234
|
|
|
1232
|
-
"@typescript-eslint/types@5.
|
|
1233
|
-
version "5.
|
|
1234
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.
|
|
1235
|
-
integrity sha512-
|
|
1235
|
+
"@typescript-eslint/types@5.26.0":
|
|
1236
|
+
version "5.26.0"
|
|
1237
|
+
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.26.0.tgz#cb204bb154d3c103d9cc4d225f311b08219469f3"
|
|
1238
|
+
integrity sha512-8794JZFE1RN4XaExLWLI2oSXsVImNkl79PzTOOWt9h0UHROwJedNOD2IJyfL0NbddFllcktGIO2aOu10avQQyA==
|
|
1236
1239
|
|
|
1237
1240
|
"@typescript-eslint/typescript-estree@5.24.0":
|
|
1238
1241
|
version "5.24.0"
|
|
@@ -1247,28 +1250,28 @@
|
|
|
1247
1250
|
semver "^7.3.7"
|
|
1248
1251
|
tsutils "^3.21.0"
|
|
1249
1252
|
|
|
1250
|
-
"@typescript-eslint/typescript-estree@5.
|
|
1251
|
-
version "5.
|
|
1252
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.
|
|
1253
|
-
integrity sha512-
|
|
1253
|
+
"@typescript-eslint/typescript-estree@5.26.0":
|
|
1254
|
+
version "5.26.0"
|
|
1255
|
+
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.26.0.tgz#16cbceedb0011c2ed4f607255f3ee1e6e43b88c3"
|
|
1256
|
+
integrity sha512-EyGpw6eQDsfD6jIqmXP3rU5oHScZ51tL/cZgFbFBvWuCwrIptl+oueUZzSmLtxFuSOQ9vDcJIs+279gnJkfd1w==
|
|
1254
1257
|
dependencies:
|
|
1255
|
-
"@typescript-eslint/types" "5.
|
|
1256
|
-
"@typescript-eslint/visitor-keys" "5.
|
|
1258
|
+
"@typescript-eslint/types" "5.26.0"
|
|
1259
|
+
"@typescript-eslint/visitor-keys" "5.26.0"
|
|
1257
1260
|
debug "^4.3.4"
|
|
1258
1261
|
globby "^11.1.0"
|
|
1259
1262
|
is-glob "^4.0.3"
|
|
1260
1263
|
semver "^7.3.7"
|
|
1261
1264
|
tsutils "^3.21.0"
|
|
1262
1265
|
|
|
1263
|
-
"@typescript-eslint/utils@5.
|
|
1264
|
-
version "5.
|
|
1265
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.
|
|
1266
|
-
integrity sha512-
|
|
1266
|
+
"@typescript-eslint/utils@5.26.0":
|
|
1267
|
+
version "5.26.0"
|
|
1268
|
+
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.26.0.tgz#896b8480eb124096e99c8b240460bb4298afcfb4"
|
|
1269
|
+
integrity sha512-PJFwcTq2Pt4AMOKfe3zQOdez6InIDOjUJJD3v3LyEtxHGVVRK3Vo7Dd923t/4M9hSH2q2CLvcTdxlLPjcIk3eg==
|
|
1267
1270
|
dependencies:
|
|
1268
1271
|
"@types/json-schema" "^7.0.9"
|
|
1269
|
-
"@typescript-eslint/scope-manager" "5.
|
|
1270
|
-
"@typescript-eslint/types" "5.
|
|
1271
|
-
"@typescript-eslint/typescript-estree" "5.
|
|
1272
|
+
"@typescript-eslint/scope-manager" "5.26.0"
|
|
1273
|
+
"@typescript-eslint/types" "5.26.0"
|
|
1274
|
+
"@typescript-eslint/typescript-estree" "5.26.0"
|
|
1272
1275
|
eslint-scope "^5.1.1"
|
|
1273
1276
|
eslint-utils "^3.0.0"
|
|
1274
1277
|
|
|
@@ -1292,12 +1295,12 @@
|
|
|
1292
1295
|
"@typescript-eslint/types" "5.24.0"
|
|
1293
1296
|
eslint-visitor-keys "^3.3.0"
|
|
1294
1297
|
|
|
1295
|
-
"@typescript-eslint/visitor-keys@5.
|
|
1296
|
-
version "5.
|
|
1297
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.
|
|
1298
|
-
integrity sha512-
|
|
1298
|
+
"@typescript-eslint/visitor-keys@5.26.0":
|
|
1299
|
+
version "5.26.0"
|
|
1300
|
+
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.26.0.tgz#7195f756e367f789c0e83035297c45b417b57f57"
|
|
1301
|
+
integrity sha512-wei+ffqHanYDOQgg/fS6Hcar6wAWv0CUPQ3TZzOWd2BLfgP539rb49bwua8WRAs7R6kOSLn82rfEu2ro6Llt8Q==
|
|
1299
1302
|
dependencies:
|
|
1300
|
-
"@typescript-eslint/types" "5.
|
|
1303
|
+
"@typescript-eslint/types" "5.26.0"
|
|
1301
1304
|
eslint-visitor-keys "^3.3.0"
|
|
1302
1305
|
|
|
1303
1306
|
abort-controller@^3.0.0:
|
|
@@ -1925,10 +1928,10 @@ define-properties@^1.1.3:
|
|
|
1925
1928
|
dependencies:
|
|
1926
1929
|
object-keys "^1.0.12"
|
|
1927
1930
|
|
|
1928
|
-
del@^6.
|
|
1929
|
-
version "6.
|
|
1930
|
-
resolved "https://registry.yarnpkg.com/del/-/del-6.
|
|
1931
|
-
integrity sha512-
|
|
1931
|
+
del@^6.1.1:
|
|
1932
|
+
version "6.1.1"
|
|
1933
|
+
resolved "https://registry.yarnpkg.com/del/-/del-6.1.1.tgz#3b70314f1ec0aa325c6b14eb36b95786671edb7a"
|
|
1934
|
+
integrity sha512-ua8BhapfP0JUJKC/zV9yHHDW/rDoDxP4Zhn3AkA6/xT6gY7jYXJiaeyBZznYVujhZZET+UgcbZiQ7sN3WqcImg==
|
|
1932
1935
|
dependencies:
|
|
1933
1936
|
globby "^11.0.1"
|
|
1934
1937
|
graceful-fs "^4.2.4"
|
|
@@ -1996,9 +1999,9 @@ dotenv@^16.0.1:
|
|
|
1996
1999
|
integrity sha512-1K6hR6wtk2FviQ4kEiSjFiH5rpzEVi8WW0x96aztHVMhEspNpc4DVOUTEHtEva5VThQ8IaBX1Pe4gSzpVVUsKQ==
|
|
1997
2000
|
|
|
1998
2001
|
dset@^3.1.0:
|
|
1999
|
-
version "3.1.
|
|
2000
|
-
resolved "https://registry.yarnpkg.com/dset/-/dset-3.1.
|
|
2001
|
-
integrity sha512-
|
|
2002
|
+
version "3.1.2"
|
|
2003
|
+
resolved "https://registry.yarnpkg.com/dset/-/dset-3.1.2.tgz#89c436ca6450398396dc6538ea00abc0c54cd45a"
|
|
2004
|
+
integrity sha512-g/M9sqy3oHe477Ar4voQxWtaPIFw1jTdKZuomOjhCcBx9nHUNn0pu6NopuFFrTh/TRZIKEj+76vLWFu9BNKk+Q==
|
|
2002
2005
|
|
|
2003
2006
|
eastasianwidth@^0.2.0:
|
|
2004
2007
|
version "0.2.0"
|
|
@@ -2184,12 +2187,12 @@ eslint-visitor-keys@^3.3.0:
|
|
|
2184
2187
|
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826"
|
|
2185
2188
|
integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==
|
|
2186
2189
|
|
|
2187
|
-
eslint@^8.
|
|
2188
|
-
version "8.
|
|
2189
|
-
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.
|
|
2190
|
-
integrity sha512-
|
|
2190
|
+
eslint@^8.16.0:
|
|
2191
|
+
version "8.16.0"
|
|
2192
|
+
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.16.0.tgz#6d936e2d524599f2a86c708483b4c372c5d3bbae"
|
|
2193
|
+
integrity sha512-MBndsoXY/PeVTDJeWsYj7kLZ5hQpJOfMYLsF6LicLHQWbRDG19lK5jOix4DPl8yY4SUFcE3txy86OzFLWT+yoA==
|
|
2191
2194
|
dependencies:
|
|
2192
|
-
"@eslint/eslintrc" "^1.
|
|
2195
|
+
"@eslint/eslintrc" "^1.3.0"
|
|
2193
2196
|
"@humanwhocodes/config-array" "^0.9.2"
|
|
2194
2197
|
ajv "^6.10.0"
|
|
2195
2198
|
chalk "^4.0.0"
|
|
@@ -2207,7 +2210,7 @@ eslint@^8.15.0:
|
|
|
2207
2210
|
file-entry-cache "^6.0.1"
|
|
2208
2211
|
functional-red-black-tree "^1.0.1"
|
|
2209
2212
|
glob-parent "^6.0.1"
|
|
2210
|
-
globals "^13.
|
|
2213
|
+
globals "^13.15.0"
|
|
2211
2214
|
ignore "^5.2.0"
|
|
2212
2215
|
import-fresh "^3.0.0"
|
|
2213
2216
|
imurmurhash "^0.1.4"
|
|
@@ -2550,10 +2553,10 @@ globals@^11.1.0:
|
|
|
2550
2553
|
resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e"
|
|
2551
2554
|
integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==
|
|
2552
2555
|
|
|
2553
|
-
globals@^13.
|
|
2554
|
-
version "13.
|
|
2555
|
-
resolved "https://registry.yarnpkg.com/globals/-/globals-13.
|
|
2556
|
-
integrity sha512-
|
|
2556
|
+
globals@^13.15.0:
|
|
2557
|
+
version "13.15.0"
|
|
2558
|
+
resolved "https://registry.yarnpkg.com/globals/-/globals-13.15.0.tgz#38113218c907d2f7e98658af246cef8b77e90bac"
|
|
2559
|
+
integrity sha512-bpzcOlgDhMG070Av0Vy5Owklpv1I6+j96GhUI7Rh7IzDCKLzboflLrrfqMu8NquDbiR4EOQk7XzJwqVJxicxog==
|
|
2557
2560
|
dependencies:
|
|
2558
2561
|
type-fest "^0.20.2"
|
|
2559
2562
|
|
|
@@ -2574,10 +2577,10 @@ graceful-fs@^4.2.4, graceful-fs@^4.2.9:
|
|
|
2574
2577
|
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.9.tgz#041b05df45755e587a24942279b9d113146e1c96"
|
|
2575
2578
|
integrity sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==
|
|
2576
2579
|
|
|
2577
|
-
graphql-config@^4.3.
|
|
2578
|
-
version "4.3.
|
|
2579
|
-
resolved "https://registry.yarnpkg.com/graphql-config/-/graphql-config-4.3.
|
|
2580
|
-
integrity sha512-
|
|
2580
|
+
graphql-config@^4.3.1:
|
|
2581
|
+
version "4.3.1"
|
|
2582
|
+
resolved "https://registry.yarnpkg.com/graphql-config/-/graphql-config-4.3.1.tgz#636b539b1acc06fb48012d0e0f228014ccb0325f"
|
|
2583
|
+
integrity sha512-czBWzJSGaLJfOHBLuUTZVRTjfgohPfvlaeN1B5nXBVptFARpiFuS7iI4FnRhCGwm6qt1h2j1g05nkg0OIGA6bg==
|
|
2581
2584
|
dependencies:
|
|
2582
2585
|
"@endemolshinegroup/cosmiconfig-typescript-loader" "3.0.2"
|
|
2583
2586
|
"@graphql-tools/graphql-file-loader" "^7.3.7"
|
|
@@ -3404,13 +3407,6 @@ json-stringify-safe@^5.0.1:
|
|
|
3404
3407
|
resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb"
|
|
3405
3408
|
integrity sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=
|
|
3406
3409
|
|
|
3407
|
-
json5@2.x, json5@^2.1.2:
|
|
3408
|
-
version "2.2.0"
|
|
3409
|
-
resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.0.tgz#2dfefe720c6ba525d9ebd909950f0515316c89a3"
|
|
3410
|
-
integrity sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==
|
|
3411
|
-
dependencies:
|
|
3412
|
-
minimist "^1.2.5"
|
|
3413
|
-
|
|
3414
3410
|
json5@^1.0.1:
|
|
3415
3411
|
version "1.0.1"
|
|
3416
3412
|
resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.1.tgz#779fb0018604fa854eacbf6252180d83543e3dbe"
|
|
@@ -3418,6 +3414,13 @@ json5@^1.0.1:
|
|
|
3418
3414
|
dependencies:
|
|
3419
3415
|
minimist "^1.2.0"
|
|
3420
3416
|
|
|
3417
|
+
json5@^2.1.2:
|
|
3418
|
+
version "2.2.0"
|
|
3419
|
+
resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.0.tgz#2dfefe720c6ba525d9ebd909950f0515316c89a3"
|
|
3420
|
+
integrity sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==
|
|
3421
|
+
dependencies:
|
|
3422
|
+
minimist "^1.2.5"
|
|
3423
|
+
|
|
3421
3424
|
json5@^2.2.1:
|
|
3422
3425
|
version "2.2.1"
|
|
3423
3426
|
resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.1.tgz#655d50ed1e6f95ad1a3caababd2b0efda10b395c"
|
|
@@ -3456,10 +3459,10 @@ lines-and-columns@^1.1.6:
|
|
|
3456
3459
|
resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632"
|
|
3457
3460
|
integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==
|
|
3458
3461
|
|
|
3459
|
-
lint-staged@^12.4.
|
|
3460
|
-
version "12.4.
|
|
3461
|
-
resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-12.4.
|
|
3462
|
-
integrity sha512-
|
|
3462
|
+
lint-staged@^12.4.2:
|
|
3463
|
+
version "12.4.2"
|
|
3464
|
+
resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-12.4.2.tgz#380a5ec5a7a23caa9420972b0f98c8192afddecd"
|
|
3465
|
+
integrity sha512-JAJGIzY/OioIUtrRePr8go6qUxij//mL+RGGoFKU3VWQRtIHgWoHizSqH0QVn2OwrbXS9Q6CICQjfj+E5qvrXg==
|
|
3463
3466
|
dependencies:
|
|
3464
3467
|
cli-truncate "^3.1.0"
|
|
3465
3468
|
colorette "^2.0.16"
|
|
@@ -4498,26 +4501,26 @@ triple-beam@^1.3.0:
|
|
|
4498
4501
|
resolved "https://registry.yarnpkg.com/triple-beam/-/triple-beam-1.3.0.tgz#a595214c7298db8339eeeee083e4d10bd8cb8dd9"
|
|
4499
4502
|
integrity sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw==
|
|
4500
4503
|
|
|
4501
|
-
ts-jest@^28.0.
|
|
4502
|
-
version "28.0.
|
|
4503
|
-
resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-28.0.
|
|
4504
|
-
integrity sha512-
|
|
4504
|
+
ts-jest@^28.0.3:
|
|
4505
|
+
version "28.0.3"
|
|
4506
|
+
resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-28.0.3.tgz#d1c47f167e56eef3989bb51afaf7fc1c87a04c52"
|
|
4507
|
+
integrity sha512-HzgbEDQ2KgVtDmpXToqAcKTyGHdHsG23i/iUjfxji92G5eT09S1m9UHZd7csF0Bfgh9txM4JzwHnv7r1waFPlw==
|
|
4505
4508
|
dependencies:
|
|
4506
4509
|
bs-logger "0.x"
|
|
4507
4510
|
fast-json-stable-stringify "2.x"
|
|
4508
4511
|
jest-util "^28.0.0"
|
|
4509
|
-
json5 "2.
|
|
4512
|
+
json5 "^2.2.1"
|
|
4510
4513
|
lodash.memoize "4.x"
|
|
4511
4514
|
make-error "1.x"
|
|
4512
4515
|
semver "7.x"
|
|
4513
4516
|
yargs-parser "^20.x"
|
|
4514
4517
|
|
|
4515
|
-
ts-node@^10.
|
|
4516
|
-
version "10.
|
|
4517
|
-
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.
|
|
4518
|
-
integrity sha512
|
|
4518
|
+
ts-node@^10.8.0:
|
|
4519
|
+
version "10.8.0"
|
|
4520
|
+
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.8.0.tgz#3ceb5ac3e67ae8025c1950626aafbdecb55d82ce"
|
|
4521
|
+
integrity sha512-/fNd5Qh+zTt8Vt1KbYZjRHCE9sI5i7nqfD/dzBBRDeVXZXS6kToW6R7tTU6Nd4XavFs0mAVCg29Q//ML7WsZYA==
|
|
4519
4522
|
dependencies:
|
|
4520
|
-
"@cspotcode/source-map-support" "0.
|
|
4523
|
+
"@cspotcode/source-map-support" "^0.8.0"
|
|
4521
4524
|
"@tsconfig/node10" "^1.0.7"
|
|
4522
4525
|
"@tsconfig/node12" "^1.0.7"
|
|
4523
4526
|
"@tsconfig/node14" "^1.0.0"
|
|
@@ -4528,7 +4531,7 @@ ts-node@^10.7.0:
|
|
|
4528
4531
|
create-require "^1.1.0"
|
|
4529
4532
|
diff "^4.0.1"
|
|
4530
4533
|
make-error "^1.1.1"
|
|
4531
|
-
v8-compile-cache-lib "^3.0.
|
|
4534
|
+
v8-compile-cache-lib "^3.0.1"
|
|
4532
4535
|
yn "3.1.1"
|
|
4533
4536
|
|
|
4534
4537
|
ts-node@^9:
|
|
@@ -4592,10 +4595,10 @@ type-fest@^0.21.3:
|
|
|
4592
4595
|
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37"
|
|
4593
4596
|
integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==
|
|
4594
4597
|
|
|
4595
|
-
typescript@^4.
|
|
4596
|
-
version "4.
|
|
4597
|
-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.
|
|
4598
|
-
integrity sha512-
|
|
4598
|
+
typescript@^4.7.2:
|
|
4599
|
+
version "4.7.2"
|
|
4600
|
+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.2.tgz#1f9aa2ceb9af87cca227813b4310fff0b51593c4"
|
|
4601
|
+
integrity sha512-Mamb1iX2FDUpcTRzltPxgWMKy3fhg0TN378ylbktPGPK/99KbDtMQ4W1hwgsbPAsG3a0xKa1vmw4VKZQbkvz5A==
|
|
4599
4602
|
|
|
4600
4603
|
unbox-primitive@^1.0.1:
|
|
4601
4604
|
version "1.0.1"
|
|
@@ -4641,10 +4644,10 @@ utility-types@^3.10.0:
|
|
|
4641
4644
|
resolved "https://registry.yarnpkg.com/utility-types/-/utility-types-3.10.0.tgz#ea4148f9a741015f05ed74fd615e1d20e6bed82b"
|
|
4642
4645
|
integrity sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==
|
|
4643
4646
|
|
|
4644
|
-
v8-compile-cache-lib@^3.0.
|
|
4645
|
-
version "3.0.
|
|
4646
|
-
resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.
|
|
4647
|
-
integrity sha512-
|
|
4647
|
+
v8-compile-cache-lib@^3.0.1:
|
|
4648
|
+
version "3.0.1"
|
|
4649
|
+
resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf"
|
|
4650
|
+
integrity sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==
|
|
4648
4651
|
|
|
4649
4652
|
v8-compile-cache@^2.0.3:
|
|
4650
4653
|
version "2.3.0"
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getGitConfigAuthor = void 0;
|
|
4
|
-
const git_1 = require("./git");
|
|
5
|
-
async function getGitConfigAuthor(options) {
|
|
6
|
-
const localRepoPath = await (0, git_1.getLocalSourceRepoPath)(options);
|
|
7
|
-
if (!localRepoPath) {
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
return {
|
|
11
|
-
name: await (0, git_1.getGitConfig)({ dir: localRepoPath, key: 'user.name' }),
|
|
12
|
-
email: await (0, git_1.getGitConfig)({ dir: localRepoPath, key: 'user.email' }),
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
exports.getGitConfigAuthor = getGitConfigAuthor;
|