Skip to content

Commit 348e41c

Browse files
committed
chore: update dist file
1 parent 7b5e52f commit 348e41c

File tree

1 file changed

+83
-88
lines changed

1 file changed

+83
-88
lines changed

dist/index.js

Lines changed: 83 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1887,7 +1887,7 @@ async function getRepoDefaultBranch(octokit, repo, owner) {
18871887
//or the name of the branch of existing PR to checkout
18881888
async function getExistingPr(octokit, repo, owner, customId) {
18891889
const { data: { items } } = await octokit.search.issuesAndPullRequests({
1890-
q: `${customId} repo:${owner}/${repo} type:pr is:open`,
1890+
q: `"${customId}" repo:${owner}/${repo} type:pr is:open`,
18911891
});
18921892

18931893
if (!items || items.length === 0) return null;
@@ -9215,51 +9215,51 @@ exports.trailingFunctionArgument = trailingFunctionArgument;
92159215
/***/ 549:
92169216
/***/ (function(module) {
92179217

9218-
module.exports = addHook;
9218+
module.exports = addHook
92199219

9220-
function addHook(state, kind, name, hook) {
9221-
var orig = hook;
9220+
function addHook (state, kind, name, hook) {
9221+
var orig = hook
92229222
if (!state.registry[name]) {
9223-
state.registry[name] = [];
9223+
state.registry[name] = []
92249224
}
92259225

9226-
if (kind === "before") {
9226+
if (kind === 'before') {
92279227
hook = function (method, options) {
92289228
return Promise.resolve()
92299229
.then(orig.bind(null, options))
9230-
.then(method.bind(null, options));
9231-
};
9230+
.then(method.bind(null, options))
9231+
}
92329232
}
92339233

9234-
if (kind === "after") {
9234+
if (kind === 'after') {
92359235
hook = function (method, options) {
9236-
var result;
9236+
var result
92379237
return Promise.resolve()
92389238
.then(method.bind(null, options))
92399239
.then(function (result_) {
9240-
result = result_;
9241-
return orig(result, options);
9240+
result = result_
9241+
return orig(result, options)
92429242
})
92439243
.then(function () {
9244-
return result;
9245-
});
9246-
};
9244+
return result
9245+
})
9246+
}
92479247
}
92489248

9249-
if (kind === "error") {
9249+
if (kind === 'error') {
92509250
hook = function (method, options) {
92519251
return Promise.resolve()
92529252
.then(method.bind(null, options))
92539253
.catch(function (error) {
9254-
return orig(error, options);
9255-
});
9256-
};
9254+
return orig(error, options)
9255+
})
9256+
}
92579257
}
92589258

92599259
state.registry[name].push({
92609260
hook: hook,
9261-
orig: orig,
9262-
});
9261+
orig: orig
9262+
})
92639263
}
92649264

92659265

@@ -10056,32 +10056,33 @@ module.exports = require("util");
1005610056
/***/ 670:
1005710057
/***/ (function(module) {
1005810058

10059-
module.exports = register;
10059+
module.exports = register
1006010060

10061-
function register(state, name, method, options) {
10062-
if (typeof method !== "function") {
10063-
throw new Error("method for before hook must be a function");
10061+
function register (state, name, method, options) {
10062+
if (typeof method !== 'function') {
10063+
throw new Error('method for before hook must be a function')
1006410064
}
1006510065

1006610066
if (!options) {
10067-
options = {};
10067+
options = {}
1006810068
}
1006910069

1007010070
if (Array.isArray(name)) {
1007110071
return name.reverse().reduce(function (callback, name) {
10072-
return register.bind(null, state, name, callback, options);
10073-
}, method)();
10072+
return register.bind(null, state, name, callback, options)
10073+
}, method)()
1007410074
}
1007510075

10076-
return Promise.resolve().then(function () {
10077-
if (!state.registry[name]) {
10078-
return method(options);
10079-
}
10076+
return Promise.resolve()
10077+
.then(function () {
10078+
if (!state.registry[name]) {
10079+
return method(options)
10080+
}
1008010081

10081-
return state.registry[name].reduce(function (method, registered) {
10082-
return registered.hook.bind(null, method, options);
10083-
}, method)();
10084-
});
10082+
return (state.registry[name]).reduce(function (method, registered) {
10083+
return registered.hook.bind(null, method, options)
10084+
}, method)()
10085+
})
1008510086
}
1008610087

1008710088

@@ -10161,67 +10162,63 @@ TasksPendingQueue.counter = 0;
1016110162
/***/ 682:
1016210163
/***/ (function(module, __unusedexports, __webpack_require__) {
1016310164

10164-
var register = __webpack_require__(670);
10165-
var addHook = __webpack_require__(549);
10166-
var removeHook = __webpack_require__(819);
10165+
var register = __webpack_require__(670)
10166+
var addHook = __webpack_require__(549)
10167+
var removeHook = __webpack_require__(819)
1016710168

1016810169
// bind with array of arguments: https://stackoverflow.com/a/21792913
10169-
var bind = Function.bind;
10170-
var bindable = bind.bind(bind);
10170+
var bind = Function.bind
10171+
var bindable = bind.bind(bind)
1017110172

10172-
function bindApi(hook, state, name) {
10173-
var removeHookRef = bindable(removeHook, null).apply(
10174-
null,
10175-
name ? [state, name] : [state]
10176-
);
10177-
hook.api = { remove: removeHookRef };
10178-
hook.remove = removeHookRef;
10179-
["before", "error", "after", "wrap"].forEach(function (kind) {
10180-
var args = name ? [state, kind, name] : [state, kind];
10181-
hook[kind] = hook.api[kind] = bindable(addHook, null).apply(null, args);
10182-
});
10173+
function bindApi (hook, state, name) {
10174+
var removeHookRef = bindable(removeHook, null).apply(null, name ? [state, name] : [state])
10175+
hook.api = { remove: removeHookRef }
10176+
hook.remove = removeHookRef
10177+
10178+
;['before', 'error', 'after', 'wrap'].forEach(function (kind) {
10179+
var args = name ? [state, kind, name] : [state, kind]
10180+
hook[kind] = hook.api[kind] = bindable(addHook, null).apply(null, args)
10181+
})
1018310182
}
1018410183

10185-
function HookSingular() {
10186-
var singularHookName = "h";
10184+
function HookSingular () {
10185+
var singularHookName = 'h'
1018710186
var singularHookState = {
10188-
registry: {},
10189-
};
10190-
var singularHook = register.bind(null, singularHookState, singularHookName);
10191-
bindApi(singularHook, singularHookState, singularHookName);
10192-
return singularHook;
10187+
registry: {}
10188+
}
10189+
var singularHook = register.bind(null, singularHookState, singularHookName)
10190+
bindApi(singularHook, singularHookState, singularHookName)
10191+
return singularHook
1019310192
}
1019410193

10195-
function HookCollection() {
10194+
function HookCollection () {
1019610195
var state = {
10197-
registry: {},
10198-
};
10196+
registry: {}
10197+
}
1019910198

10200-
var hook = register.bind(null, state);
10201-
bindApi(hook, state);
10199+
var hook = register.bind(null, state)
10200+
bindApi(hook, state)
1020210201

10203-
return hook;
10202+
return hook
1020410203
}
1020510204

10206-
var collectionHookDeprecationMessageDisplayed = false;
10207-
function Hook() {
10205+
var collectionHookDeprecationMessageDisplayed = false
10206+
function Hook () {
1020810207
if (!collectionHookDeprecationMessageDisplayed) {
10209-
console.warn(
10210-
'[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'
10211-
);
10212-
collectionHookDeprecationMessageDisplayed = true;
10208+
console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4')
10209+
collectionHookDeprecationMessageDisplayed = true
1021310210
}
10214-
return HookCollection();
10211+
return HookCollection()
1021510212
}
1021610213

10217-
Hook.Singular = HookSingular.bind();
10218-
Hook.Collection = HookCollection.bind();
10214+
Hook.Singular = HookSingular.bind()
10215+
Hook.Collection = HookCollection.bind()
1021910216

10220-
module.exports = Hook;
10217+
module.exports = Hook
1022110218
// expose constructors as a named property for TypeScript
10222-
module.exports.Hook = Hook;
10223-
module.exports.Singular = Hook.Singular;
10224-
module.exports.Collection = Hook.Collection;
10219+
module.exports.Hook = Hook
10220+
module.exports.Singular = Hook.Singular
10221+
module.exports.Collection = Hook.Collection
1022510222

1022610223

1022710224
/***/ }),
@@ -11394,24 +11391,22 @@ exports.isEmptyTask = isEmptyTask;
1139411391
/***/ 819:
1139511392
/***/ (function(module) {
1139611393

11397-
module.exports = removeHook;
11394+
module.exports = removeHook
1139811395

11399-
function removeHook(state, name, method) {
11396+
function removeHook (state, name, method) {
1140011397
if (!state.registry[name]) {
11401-
return;
11398+
return
1140211399
}
1140311400

1140411401
var index = state.registry[name]
11405-
.map(function (registered) {
11406-
return registered.orig;
11407-
})
11408-
.indexOf(method);
11402+
.map(function (registered) { return registered.orig })
11403+
.indexOf(method)
1140911404

1141011405
if (index === -1) {
11411-
return;
11406+
return
1141211407
}
1141311408

11414-
state.registry[name].splice(index, 1);
11409+
state.registry[name].splice(index, 1)
1141511410
}
1141611411

1141711412

@@ -11523,7 +11518,7 @@ async function run() {
1152311518

1152411519
const baseBranchWhereApplyChanges = existingBranchName || baseBranchName || await getRepoDefaultBranch(octokit, name, owner);
1152511520
const branchName = existingBranchName || `bot/bump-${dependencyName}-${dependencyVersion}`;
11526-
const cloneDir = __webpack_require__.ab + "clones/" + name;
11521+
const cloneDir = path.join(process.cwd(), './clones', name);
1152711522

1152811523
try {
1152911524
await mkdir(cloneDir, {recursive: true});

0 commit comments

Comments
 (0)