@@ -3749,25 +3749,40 @@ var __copyProps = (to, from, except, desc) => {
37493749var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
37503750
37513751// pkg/dist-src/index.js
3752- var dist_src_exports = {};
3753- __export(dist_src_exports , {
3752+ var index_exports = {};
3753+ __export(index_exports , {
37543754 Octokit: () => Octokit
37553755});
3756- module.exports = __toCommonJS(dist_src_exports );
3756+ module.exports = __toCommonJS(index_exports );
37573757var import_universal_user_agent = __nccwpck_require__(3843);
37583758var import_before_after_hook = __nccwpck_require__(2732);
37593759var import_request = __nccwpck_require__(8636);
37603760var import_graphql = __nccwpck_require__(7);
37613761var import_auth_token = __nccwpck_require__(7864);
37623762
37633763// pkg/dist-src/version.js
3764- var VERSION = "5.2.0 ";
3764+ var VERSION = "5.2.2 ";
37653765
37663766// pkg/dist-src/index.js
37673767var noop = () => {
37683768};
37693769var consoleWarn = console.warn.bind(console);
37703770var consoleError = console.error.bind(console);
3771+ function createLogger(logger = {}) {
3772+ if (typeof logger.debug !== "function") {
3773+ logger.debug = noop;
3774+ }
3775+ if (typeof logger.info !== "function") {
3776+ logger.info = noop;
3777+ }
3778+ if (typeof logger.warn !== "function") {
3779+ logger.warn = consoleWarn;
3780+ }
3781+ if (typeof logger.error !== "function") {
3782+ logger.error = consoleError;
3783+ }
3784+ return logger;
3785+ }
37713786var userAgentTrail = `octokit-core.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`;
37723787var Octokit = class {
37733788 static {
@@ -3841,15 +3856,7 @@ var Octokit = class {
38413856 }
38423857 this.request = import_request.request.defaults(requestDefaults);
38433858 this.graphql = (0, import_graphql.withCustomRequest)(this.request).defaults(requestDefaults);
3844- this.log = Object.assign(
3845- {
3846- debug: noop,
3847- info: noop,
3848- warn: consoleWarn,
3849- error: consoleError
3850- },
3851- options.log
3852- );
3859+ this.log = createLogger(options.log);
38533860 this.hook = hook;
38543861 if (!options.authStrategy) {
38553862 if (!options.auth) {
@@ -4302,18 +4309,18 @@ var __copyProps = (to, from, except, desc) => {
43024309var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
43034310
43044311// pkg/dist-src/index.js
4305- var dist_src_exports = {};
4306- __export(dist_src_exports , {
4312+ var index_exports = {};
4313+ __export(index_exports , {
43074314 GraphqlResponseError: () => GraphqlResponseError,
43084315 graphql: () => graphql2,
43094316 withCustomRequest: () => withCustomRequest
43104317});
4311- module.exports = __toCommonJS(dist_src_exports );
4318+ module.exports = __toCommonJS(index_exports );
43124319var import_request3 = __nccwpck_require__(8636);
43134320var import_universal_user_agent = __nccwpck_require__(3843);
43144321
43154322// pkg/dist-src/version.js
4316- var VERSION = "7.1.0 ";
4323+ var VERSION = "7.1.1 ";
43174324
43184325// pkg/dist-src/with-defaults.js
43194326var import_request2 = __nccwpck_require__(8636);
@@ -4361,8 +4368,7 @@ function graphql(request2, query, options) {
43614368 );
43624369 }
43634370 for (const key in options) {
4364- if (!FORBIDDEN_VARIABLE_OPTIONS.includes(key))
4365- continue;
4371+ if (!FORBIDDEN_VARIABLE_OPTIONS.includes(key)) continue;
43664372 return Promise.reject(
43674373 new Error(
43684374 `[@octokit/graphql] "${key}" cannot be used as variable name`
0 commit comments