Skip to content

Commit 815ccab

Browse files
committed
Release v1.1.2 Updated all dependencies for security
1 parent d76a919 commit 815ccab

File tree

6,987 files changed

+949005
-1177024
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,987 files changed

+949005
-1177024
lines changed

dist/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
1414
var __importStar = (this && this.__importStar) || function (mod) {
1515
if (mod && mod.__esModule) return mod;
1616
var result = {};
17-
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
17+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
1818
__setModuleDefault(result, mod);
1919
return result;
2020
};
@@ -48,14 +48,14 @@ const Git_1 = __importDefault(require("./lib/Git"));
4848
const SUCCESS = 0, FAILURE = 1;
4949
function main() {
5050
return __awaiter(this, void 0, void 0, function* () {
51-
gh_action_stats_1.default();
51+
(0, gh_action_stats_1.default)();
5252
if (!core.getInput('github-token')) {
5353
core.error("Github token required");
5454
return FAILURE;
5555
}
5656
try {
57-
let options = yield options_1.getBumperOptions();
58-
let state = yield options_1.getBumperState(options);
57+
let options = yield (0, options_1.getBumperOptions)();
58+
let state = yield (0, options_1.getBumperState)(options);
5959
if (state.curVersion === state.newVersion) {
6060
core.info('No bump rules applicable');
6161
return SUCCESS;
@@ -70,7 +70,7 @@ function main() {
7070
token: core.getInput('github-token'),
7171
branch: state.branch
7272
};
73-
yield gitUtils_1.commitAndPush(GIT_OPTIONS);
73+
yield (0, gitUtils_1.commitAndPush)(GIT_OPTIONS);
7474
return SUCCESS;
7575
}
7676
catch (e) {

dist/lib/Git.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Git {
2323
*/
2424
checkoutBranch(branch) {
2525
return __awaiter(this, void 0, void 0, function* () {
26-
yield exec_1.exec('git', ['checkout', branch], this.execOptions);
26+
yield (0, exec_1.exec)('git', ['checkout', branch], this.execOptions);
2727
return this;
2828
});
2929
}
@@ -34,7 +34,7 @@ class Git {
3434
*/
3535
configUserName(userName) {
3636
return __awaiter(this, void 0, void 0, function* () {
37-
yield exec_1.exec('git', ['config', 'user.name', `"${userName}"`], this.execOptions);
37+
yield (0, exec_1.exec)('git', ['config', 'user.name', `"${userName}"`], this.execOptions);
3838
return this;
3939
});
4040
}
@@ -45,7 +45,7 @@ class Git {
4545
*/
4646
configUserEmail(email) {
4747
return __awaiter(this, void 0, void 0, function* () {
48-
yield exec_1.exec('git', ['config', 'user.email', `"${email}"`], this.execOptions);
48+
yield (0, exec_1.exec)('git', ['config', 'user.email', `"${email}"`], this.execOptions);
4949
return this;
5050
});
5151
}
@@ -56,7 +56,7 @@ class Git {
5656
*/
5757
addRemote(remoteUrl) {
5858
return __awaiter(this, void 0, void 0, function* () {
59-
yield exec_1.exec('git', ['remote', 'add', this.remoteName, remoteUrl], this.execOptions);
59+
yield (0, exec_1.exec)('git', ['remote', 'add', this.remoteName, remoteUrl], this.execOptions);
6060
return this;
6161
});
6262
}
@@ -66,7 +66,7 @@ class Git {
6666
*/
6767
stageNewModifications() {
6868
return __awaiter(this, void 0, void 0, function* () {
69-
yield exec_1.exec('git', ['add', '-u'], this.execOptions);
69+
yield (0, exec_1.exec)('git', ['add', '-u'], this.execOptions);
7070
return this;
7171
});
7272
}
@@ -77,7 +77,7 @@ class Git {
7777
*/
7878
commitStagedChanges(message) {
7979
return __awaiter(this, void 0, void 0, function* () {
80-
yield exec_1.exec('git', ['commit', '-v', '-m', `"${message}"`], this.execOptions);
80+
yield (0, exec_1.exec)('git', ['commit', '-v', '-m', `"${message}"`], this.execOptions);
8181
return this;
8282
});
8383
}
@@ -89,7 +89,7 @@ class Git {
8989
tagLatestCommit(tag) {
9090
return __awaiter(this, void 0, void 0, function* () {
9191
const { name, message } = tag;
92-
yield exec_1.exec('git', ['tag', '-a', name, '-m', (message || name)], this.execOptions);
92+
yield (0, exec_1.exec)('git', ['tag', '-a', name, '-m', (message || name)], this.execOptions);
9393
return this;
9494
});
9595
}
@@ -100,7 +100,7 @@ class Git {
100100
*/
101101
pushBranch(branch) {
102102
return __awaiter(this, void 0, void 0, function* () {
103-
yield exec_1.exec('git', ['push', '-u', '--tags', this.remoteName, branch], this.execOptions);
103+
yield (0, exec_1.exec)('git', ['push', '-u', '--tags', this.remoteName, branch], this.execOptions);
104104
return this;
105105
});
106106
}

dist/rules/tests/isRuleApplicable.test.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ describe('[ RULE ] - isRuleApplicable', () => {
1212
};
1313
const trigger = 'commit';
1414
const branch = 'test';
15-
expect(isRuleApplicable_1.default(rule, trigger, branch)).toBe(true);
15+
expect((0, isRuleApplicable_1.default)(rule, trigger, branch)).toBe(true);
1616
});
1717
test('it should match if the trigger matches exactly and the branch is absent', () => {
1818
const rule = {
1919
trigger: 'commit',
2020
};
2121
const trigger = 'commit';
2222
const branch = 'anyRandomBranch';
23-
expect(isRuleApplicable_1.default(rule, trigger, branch)).toBe(true);
23+
expect((0, isRuleApplicable_1.default)(rule, trigger, branch)).toBe(true);
2424
});
2525
test('it should not match if the trigger matches but only part of the branch name matches', () => {
2626
const rule = {
@@ -29,7 +29,7 @@ describe('[ RULE ] - isRuleApplicable', () => {
2929
};
3030
const trigger = 'commit';
3131
const branch = 'test';
32-
expect(isRuleApplicable_1.default(rule, trigger, branch)).toBe(false);
32+
expect((0, isRuleApplicable_1.default)(rule, trigger, branch)).toBe(false);
3333
});
3434
test('it should match if the trigger matches and the branch name is a matching regexp', () => {
3535
const rule = {
@@ -41,17 +41,17 @@ describe('[ RULE ] - isRuleApplicable', () => {
4141
const branch2 = 'release69'; // nice
4242
const branch3 = 'release';
4343
const branch4 = 'releases';
44-
expect(isRuleApplicable_1.default(rule, trigger, branch1)).toBe(true);
45-
expect(isRuleApplicable_1.default(rule, trigger, branch2)).toBe(true);
46-
expect(isRuleApplicable_1.default(rule, trigger, branch3)).toBe(true);
47-
expect(isRuleApplicable_1.default(rule, trigger, branch4)).toBe(false);
44+
expect((0, isRuleApplicable_1.default)(rule, trigger, branch1)).toBe(true);
45+
expect((0, isRuleApplicable_1.default)(rule, trigger, branch2)).toBe(true);
46+
expect((0, isRuleApplicable_1.default)(rule, trigger, branch3)).toBe(true);
47+
expect((0, isRuleApplicable_1.default)(rule, trigger, branch4)).toBe(false);
4848
});
4949
test('it should not match if the trigger does not match', () => {
5050
const rule = {
5151
trigger: 'commit',
5252
};
5353
const trigger = 'manual';
5454
const branch = 'randomBranch';
55-
expect(isRuleApplicable_1.default(rule, trigger, branch)).toBe(false);
55+
expect((0, isRuleApplicable_1.default)(rule, trigger, branch)).toBe(false);
5656
});
5757
});

dist/tests/options.test.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ describe("Get Version files", () => {
1919
};
2020
test("All VersionFile format", () => {
2121
options.files = [{ path: "./first/file/path.txt" }, { path: "./second/file/path.json", line: 69 }];
22-
let files = options_1.getFiles(options);
22+
let files = (0, options_1.getFiles)(options);
2323
expect(files).toStrictEqual([{ path: "./first/file/path.txt" }, { path: "./second/file/path.json", line: 69 }]);
2424
});
2525
test("All String format", () => {
2626
options.files = ["./first/file/path.txt", "./second/file/path.json"];
27-
let files = options_1.getFiles(options);
27+
let files = (0, options_1.getFiles)(options);
2828
expect(files).toStrictEqual([{ path: "./first/file/path.txt" }, { path: "./second/file/path.json" }]);
2929
});
3030
test("Mixed format", () => {
3131
options.files = ["./first/file/path.txt", { path: "./second/file/path.json", line: 69 }];
32-
let files = options_1.getFiles(options);
32+
let files = (0, options_1.getFiles)(options);
3333
expect(files).toStrictEqual([{ path: "./first/file/path.txt" }, { path: "./second/file/path.json", line: 69 }]);
3434
});
3535
});
@@ -53,7 +53,7 @@ describe("Get Bumper Options", () => {
5353
test("Correct full options file", () => __awaiter(void 0, void 0, void 0, function* () {
5454
wfInput = { 'options-file': "./src/tests/assets/option-files/correctOptionFiles.json" };
5555
try {
56-
let options = yield options_1.getBumperOptions();
56+
let options = yield (0, options_1.getBumperOptions)();
5757
console.log(`Options -> ${JSON.stringify(options)}`);
5858
expect(options).toStrictEqual({
5959
"scheme": "semantic",
@@ -102,7 +102,7 @@ describe("Get Bumper Options", () => {
102102
'scheme': 'custom'
103103
};
104104
try {
105-
yield options_1.getBumperOptions();
105+
yield (0, options_1.getBumperOptions)();
106106
console.error("Should fail with no custom scheme defined.");
107107
fail("Should fail with no custom scheme defined.");
108108
}
@@ -115,7 +115,7 @@ describe("Get Bumper Options", () => {
115115
'custom-scheme': 'major.minor[.build]'
116116
};
117117
try {
118-
let options = yield options_1.getBumperOptions();
118+
let options = yield (0, options_1.getBumperOptions)();
119119
console.log(`Options -> ${JSON.stringify(options)}`);
120120
expect(options).toStrictEqual({
121121
"scheme": "custom",
@@ -163,7 +163,7 @@ describe("Get Bumper Options", () => {
163163
'custom-scheme': 'major-minor[->build]'
164164
};
165165
try {
166-
let options = yield options_1.getBumperOptions();
166+
let options = yield (0, options_1.getBumperOptions)();
167167
console.log(`Options -> ${JSON.stringify(options)}`);
168168
expect(options).toStrictEqual({
169169
"scheme": "custom",
@@ -211,7 +211,7 @@ describe("Get Bumper Options", () => {
211211
'custom-scheme': 'major-minor[->build]'
212212
};
213213
try {
214-
let options = yield options_1.getBumperOptions();
214+
let options = yield (0, options_1.getBumperOptions)();
215215
console.log(`Options -> ${JSON.stringify(options)}`);
216216
expect(options).toStrictEqual({
217217
"scheme": "custom",
@@ -259,7 +259,7 @@ describe("Get Bumper Options", () => {
259259
'version-file': "./src/tests/assets/package-custom-stub.json"
260260
};
261261
try {
262-
let options = yield options_1.getBumperOptions();
262+
let options = yield (0, options_1.getBumperOptions)();
263263
console.log(`Options -> ${JSON.stringify(options)}`);
264264
expect(options).toStrictEqual({
265265
"scheme": "semantic",
@@ -307,7 +307,7 @@ describe("Get Bumper Options", () => {
307307
'files': "[]"
308308
};
309309
try {
310-
let options = yield options_1.getBumperOptions();
310+
let options = yield (0, options_1.getBumperOptions)();
311311
console.log(`Options -> ${JSON.stringify(options)}`);
312312
expect(options).toStrictEqual({
313313
"scheme": "semantic",
@@ -345,7 +345,7 @@ describe("Get Bumper Options", () => {
345345
'files': '["./file1", {"path":"./file2"}, {"path":"./file3", "line":3}]'
346346
};
347347
try {
348-
let options = yield options_1.getBumperOptions();
348+
let options = yield (0, options_1.getBumperOptions)();
349349
console.log(`Options -> ${JSON.stringify(options)}`);
350350
expect(options).toStrictEqual({
351351
"scheme": "semantic",
@@ -393,7 +393,7 @@ describe("Get Bumper Options", () => {
393393
'rules': "[]"
394394
};
395395
try {
396-
let options = yield options_1.getBumperOptions();
396+
let options = yield (0, options_1.getBumperOptions)();
397397
console.log(`Options -> ${JSON.stringify(options)}`);
398398
expect(options).toStrictEqual({
399399
"scheme": "semantic",
@@ -419,7 +419,7 @@ describe("Get Bumper Options", () => {
419419
'rules': '[{"trigger":"commit","bump":["minor","build"]}]'
420420
};
421421
try {
422-
let options = yield options_1.getBumperOptions();
422+
let options = yield (0, options_1.getBumperOptions)();
423423
console.log(`Options -> ${JSON.stringify(options)}`);
424424
expect(options).toStrictEqual({
425425
"scheme": "semantic",

0 commit comments

Comments
 (0)