@@ -36563,7 +36563,7 @@ var createTokenAuth = function createTokenAuth2(token) {
36563
36563
36564
36564
36565
36565
;// CONCATENATED MODULE: ./node_modules/@octokit/core/dist-src/version.js
36566
- const version_VERSION = "6.1.5 ";
36566
+ const version_VERSION = "6.1.6 ";
36567
36567
36568
36568
36569
36569
;// CONCATENATED MODULE: ./node_modules/@octokit/core/dist-src/index.js
@@ -36577,6 +36577,21 @@ const noop = () => {
36577
36577
};
36578
36578
const consoleWarn = console.warn.bind(console);
36579
36579
const consoleError = console.error.bind(console);
36580
+ function createLogger(logger = {}) {
36581
+ if (typeof logger.debug !== "function") {
36582
+ logger.debug = noop;
36583
+ }
36584
+ if (typeof logger.info !== "function") {
36585
+ logger.info = noop;
36586
+ }
36587
+ if (typeof logger.warn !== "function") {
36588
+ logger.warn = consoleWarn;
36589
+ }
36590
+ if (typeof logger.error !== "function") {
36591
+ logger.error = consoleError;
36592
+ }
36593
+ return logger;
36594
+ }
36580
36595
const userAgentTrail = `octokit-core.js/${version_VERSION} ${getUserAgent()}`;
36581
36596
class Octokit {
36582
36597
static VERSION = version_VERSION;
@@ -36644,15 +36659,7 @@ class Octokit {
36644
36659
}
36645
36660
this.request = request.defaults(requestDefaults);
36646
36661
this.graphql = withCustomRequest(this.request).defaults(requestDefaults);
36647
- this.log = Object.assign(
36648
- {
36649
- debug: noop,
36650
- info: noop,
36651
- warn: consoleWarn,
36652
- error: consoleError
36653
- },
36654
- options.log
36655
- );
36662
+ this.log = createLogger(options.log);
36656
36663
this.hook = hook;
36657
36664
if (!options.authStrategy) {
36658
36665
if (!options.auth) {
0 commit comments