Missing build

This commit is contained in:
lowlighter
2020-09-17 22:21:57 +02:00
parent 2888b619de
commit 4639cd5bfa

47
action/dist/index.js vendored
View File

@@ -16,17 +16,16 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _actions_github__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9483); /* harmony import */ var _actions_github__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9483);
/* harmony import */ var _actions_github__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_actions_github__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _actions_github__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_actions_github__WEBPACK_IMPORTED_MODULE_3__);
//Imports //Imports
((async function () { ((async function () {
//Hack because ES modules are not correctly transpiled with ncc //Hack because ES modules are not correctly transpiled with ncc
const [core, github, octokit, metrics] = [_actions_core__WEBPACK_IMPORTED_MODULE_2__, _actions_github__WEBPACK_IMPORTED_MODULE_3__, _octokit_graphql__WEBPACK_IMPORTED_MODULE_4__, _src_metrics_mjs__WEBPACK_IMPORTED_MODULE_1__].map(m => (m && m.default) ? m.default : m) const [core, github, octokit, metrics] = [_actions_core__WEBPACK_IMPORTED_MODULE_2__, _actions_github__WEBPACK_IMPORTED_MODULE_3__, _octokit_graphql__WEBPACK_IMPORTED_MODULE_4__, _src_metrics_mjs__WEBPACK_IMPORTED_MODULE_1__].map(m => (m && m.default) ? m.default : m)
//Runner //Runner
try { try {
//Initialization //Initialization
console.debug = () => null
console.log(`GitHub metrics as SVG image`) console.log(`GitHub metrics as SVG image`)
console.log(`========================================================`) console.log(`========================================================`)
@@ -531,7 +530,7 @@ __webpack_require__.r(__webpack_exports__);
console.log(`Templates | loaded`) console.log(`Templates | loaded`)
//Initialization //Initialization
const [token, user, filename] = [core.getInput("token"), core.getInput("user"), core.getInput("filename", {default:"github-metrics.svg"})] const [token, user, filename, debug] = [core.getInput("token"), core.getInput("user"), core.getInput("filename", {default:"github-metrics.svg"}), core.getInput("debug", {default:false})]
const output = path__WEBPACK_IMPORTED_MODULE_0___default().join(filename) const output = path__WEBPACK_IMPORTED_MODULE_0___default().join(filename)
console.log(`GitHub user | ${user}`) console.log(`GitHub user | ${user}`)
console.log(`Output file | ${output}`) console.log(`Output file | ${output}`)
@@ -541,6 +540,11 @@ __webpack_require__.r(__webpack_exports__);
const graphql = octokit.graphql.defaults({headers:{authorization: `token ${token}`}}) const graphql = octokit.graphql.defaults({headers:{authorization: `token ${token}`}})
const rest = github.getOctokit(token) const rest = github.getOctokit(token)
//Debug mode
if (!debug)
console.debug = () => null
console.log(`Debug mode | ${debug ? "enabled" : "disabled"}`)
//Additional plugins //Additional plugins
const plugins = { const plugins = {
lines:{enabled:core.getInput("plugin_lines", {default:false})}, lines:{enabled:core.getInput("plugin_lines", {default:false})},
@@ -9678,8 +9682,8 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var image_to_base64__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(image_to_base64__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var image_to_base64__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(image_to_base64__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _plugins_index_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5820); /* harmony import */ var _plugins_index_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5820);
//Imports //Imports
//Setup //Setup
async function metrics({login, q}, {template, style, query, graphql, rest, plugins}) { async function metrics({login, q}, {template, style, query, graphql, rest, plugins}) {
@@ -9799,7 +9803,6 @@ __webpack_require__.d(__webpack_exports__, {
if (!repository) if (!repository)
return return
//Extract author //Extract author
console.log("debug", repository, JSON.stringify(repository))
const [contributor] = repository.filter(({author}) => author.login === login) const [contributor] = repository.filter(({author}) => author.login === login)
//Compute editions //Compute editions
if (contributor) if (contributor)
@@ -9822,7 +9825,7 @@ var E_Users_lecoq_Documents_GitHub_gitstats_node_modules_axios_index_default = /
// CONCATENATED MODULE: E:\Users\lecoq\Documents\GitHub\gitstats\src\plugins\pagespeed\index.mjs // CONCATENATED MODULE: E:\Users\lecoq\Documents\GitHub\gitstats\src\plugins\pagespeed\index.mjs
//Imports //Imports
//Setup //Setup
/* harmony default export */ function E_Users_lecoq_Documents_GitHub_gitstats_src_plugins_pagespeed_index({login, url, computed, pending, q}, {enabled = false, token = null} = {}) { /* harmony default export */ function E_Users_lecoq_Documents_GitHub_gitstats_src_plugins_pagespeed_index({login, url, computed, pending, q}, {enabled = false, token = null} = {}) {
@@ -9890,9 +9893,9 @@ var E_Users_lecoq_Documents_GitHub_gitstats_node_modules_axios_index_default = /
} }
// CONCATENATED MODULE: E:\Users\lecoq\Documents\GitHub\gitstats\src\plugins\index.mjs // CONCATENATED MODULE: E:\Users\lecoq\Documents\GitHub\gitstats\src\plugins\index.mjs
//Imports //Imports
//Exports //Exports
/* harmony default export */ const E_Users_lecoq_Documents_GitHub_gitstats_src_plugins_index = ({ /* harmony default export */ const E_Users_lecoq_Documents_GitHub_gitstats_src_plugins_index = ({
@@ -10035,7 +10038,7 @@ module.exports = require("zlib");
/************************************************************************/ /************************************************************************/
/******/ // The module cache /******/ // The module cache
/******/ var __webpack_module_cache__ = {}; /******/ var __webpack_module_cache__ = {};
/******/ /******/
/******/ // The require function /******/ // The require function
/******/ function __webpack_require__(moduleId) { /******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache /******/ // Check if module is in cache
@@ -10048,7 +10051,7 @@ module.exports = require("zlib");
/******/ // no module.loaded needed /******/ // no module.loaded needed
/******/ exports: {} /******/ exports: {}
/******/ }; /******/ };
/******/ /******/
/******/ // Execute the module function /******/ // Execute the module function
/******/ var threw = true; /******/ var threw = true;
/******/ try { /******/ try {
@@ -10057,11 +10060,11 @@ module.exports = require("zlib");
/******/ } finally { /******/ } finally {
/******/ if(threw) delete __webpack_module_cache__[moduleId]; /******/ if(threw) delete __webpack_module_cache__[moduleId];
/******/ } /******/ }
/******/ /******/
/******/ // Return the exports of the module /******/ // Return the exports of the module
/******/ return module.exports; /******/ return module.exports;
/******/ } /******/ }
/******/ /******/
/************************************************************************/ /************************************************************************/
/******/ /* webpack/runtime/compat get default export */ /******/ /* webpack/runtime/compat get default export */
/******/ (() => { /******/ (() => {
@@ -10074,7 +10077,7 @@ module.exports = require("zlib");
/******/ return getter; /******/ return getter;
/******/ }; /******/ };
/******/ })(); /******/ })();
/******/ /******/
/******/ /* webpack/runtime/define property getters */ /******/ /* webpack/runtime/define property getters */
/******/ (() => { /******/ (() => {
/******/ // define getter functions for harmony exports /******/ // define getter functions for harmony exports
@@ -10086,12 +10089,12 @@ module.exports = require("zlib");
/******/ } /******/ }
/******/ }; /******/ };
/******/ })(); /******/ })();
/******/ /******/
/******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ /* webpack/runtime/hasOwnProperty shorthand */
/******/ (() => { /******/ (() => {
/******/ __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop) /******/ __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
/******/ })(); /******/ })();
/******/ /******/
/******/ /* webpack/runtime/make namespace object */ /******/ /* webpack/runtime/make namespace object */
/******/ (() => { /******/ (() => {
/******/ // define __esModule on exports /******/ // define __esModule on exports
@@ -10102,9 +10105,9 @@ module.exports = require("zlib");
/******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ }; /******/ };
/******/ })(); /******/ })();
/******/ /******/
/******/ /* webpack/runtime/compat */ /******/ /* webpack/runtime/compat */
/******/ /******/
/******/ __webpack_require__.ab = __dirname + "/";/************************************************************************/ /******/ __webpack_require__.ab = __dirname + "/";/************************************************************************/
/******/ // module exports must be returned from runtime so entry inlining is disabled /******/ // module exports must be returned from runtime so entry inlining is disabled
/******/ // startup /******/ // startup