@octokit/webhooks
Advanced tools
+17
-9
@@ -41,11 +41,19 @@ "use strict"; | ||
| // pkg/dist-src/createLogger.js | ||
| var createLogger = (logger) => ({ | ||
| debug: () => { | ||
| }, | ||
| info: () => { | ||
| }, | ||
| warn: console.warn.bind(console), | ||
| error: console.error.bind(console), | ||
| ...logger | ||
| }); | ||
| var createLogger = (logger = {}) => { | ||
| if (typeof logger.debug !== "function") { | ||
| logger.debug = () => { | ||
| }; | ||
| } | ||
| if (typeof logger.info !== "function") { | ||
| logger.info = () => { | ||
| }; | ||
| } | ||
| if (typeof logger.warn !== "function") { | ||
| logger.warn = console.warn.bind(console); | ||
| } | ||
| if (typeof logger.error !== "function") { | ||
| logger.error = console.error.bind(console); | ||
| } | ||
| return logger; | ||
| }; | ||
@@ -52,0 +60,0 @@ // pkg/dist-src/generated/webhook-names.js |
@@ -1,12 +0,20 @@ | ||
| const createLogger = (logger) => ({ | ||
| debug: () => { | ||
| }, | ||
| info: () => { | ||
| }, | ||
| warn: console.warn.bind(console), | ||
| error: console.error.bind(console), | ||
| ...logger | ||
| }); | ||
| const createLogger = (logger = {}) => { | ||
| if (typeof logger.debug !== "function") { | ||
| logger.debug = () => { | ||
| }; | ||
| } | ||
| if (typeof logger.info !== "function") { | ||
| logger.info = () => { | ||
| }; | ||
| } | ||
| if (typeof logger.warn !== "function") { | ||
| logger.warn = console.warn.bind(console); | ||
| } | ||
| if (typeof logger.error !== "function") { | ||
| logger.error = console.error.bind(console); | ||
| } | ||
| return logger; | ||
| }; | ||
| export { | ||
| createLogger | ||
| }; |
+17
-9
| // pkg/dist-src/createLogger.js | ||
| var createLogger = (logger) => ({ | ||
| debug: () => { | ||
| }, | ||
| info: () => { | ||
| }, | ||
| warn: console.warn.bind(console), | ||
| error: console.error.bind(console), | ||
| ...logger | ||
| }); | ||
| var createLogger = (logger = {}) => { | ||
| if (typeof logger.debug !== "function") { | ||
| logger.debug = () => { | ||
| }; | ||
| } | ||
| if (typeof logger.info !== "function") { | ||
| logger.info = () => { | ||
| }; | ||
| } | ||
| if (typeof logger.warn !== "function") { | ||
| logger.warn = console.warn.bind(console); | ||
| } | ||
| if (typeof logger.error !== "function") { | ||
| logger.error = console.error.bind(console); | ||
| } | ||
| return logger; | ||
| }; | ||
@@ -12,0 +20,0 @@ // pkg/dist-src/generated/webhook-names.js |
+1
-1
| { | ||
| "name": "@octokit/webhooks", | ||
| "version": "12.3.1", | ||
| "version": "12.3.2", | ||
| "description": "GitHub webhook events toolset for Node.js", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
191096
0.84%2170
1.12%