diff --git a/package-lock.json b/package-lock.json index 8a2b38bb..b23111f2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,33 +13,39 @@ "@actions/core": "^1.10.0", "@actions/github": "^5.1.1", "@faker-js/faker": "^7.6.0", + "@googlemaps/google-maps-services-js": "^3.3.26", "@octokit/graphql": "^5.0.4", "@octokit/rest": "^19.0.5", "@primer/css": "^20.8.0", - "@primer/octicons": "^17.10.1", + "@primer/octicons": "^17.10.2", "@twemoji/parser": "^14.1.0", - "axios": "^1.1.3", + "axios": "^1.2.2", + "chess.js": "^1.0.0-beta.1", "clipboard": "^2.0.11", + "color": "^4.2.3", "compression": "^1.7.4", "csso": "^5.0.5", - "d3": "^7.8.0", + "d3": "^7.8.1", "ejs": "^3.1.8", "emoji-name-map": "^1.2.9", "express": "^4.18.2", "express-rate-limit": "^6.7.0", "file-type": "^18.2.0", + "gifencoder": "^2.0.1", "js-yaml": "^4.1.0", "jsdom": "^21.0.0", - "linguist-js": "^2.5.3", - "marked": "^4.2.5", + "linguist-js": "^2.5.4", + "marked": "^4.2.12", "memory-cache": "^0.2.0", "minimatch": "^6.0.4", + "node-chartist": "^1.0.5", "node-fetch": "^3.3.0", "open-graph-scraper": "^5.0.3", "png-js": "^1.0.0", "prismjs": "^1.29.0", - "puppeteer": "^19.5.0", + "puppeteer": "^19.5.2", "purgecss": "^5.0.0", + "rss": "^1.2.2", "rss-parser": "^3.12.0", "sanitize-html": "^2.8.1", "sharp": "^0.31.3", @@ -47,7 +53,8 @@ "svgo": "^3.0.2", "vue": "^2.7.1", "vue-prism-component": "^1.2.0", - "xml-formatter": "^3.2.0" + "xml-formatter": "^3.2.0", + "yargs-parser": "^21.1.1" }, "devDependencies": { "eslint": "^8.32.0", @@ -56,7 +63,7 @@ }, "optionalDependencies": { "@googlemaps/google-maps-services-js": "^3.3.26", - "chess.js": "^1.0.0-alpha.0", + "chess.js": "^1.0.0-beta.1", "color": "^4.2.3", "gifencoder": "^2.0.1", "libxmljs2": "^0.31.0", @@ -1982,9 +1989,9 @@ } }, "node_modules/@primer/octicons": { - "version": "17.10.1", - "resolved": "https://registry.npmjs.org/@primer/octicons/-/octicons-17.10.1.tgz", - "integrity": "sha512-fyq/lItQp18Ibi7c2oXVVw7H5K2a8qb8D2dnkTLf2+yUPjc3Fc+SEGS9x6iU6sQAEpr4LctcFl9ZSZ732EM63A==", + "version": "17.10.2", + "resolved": "https://registry.npmjs.org/@primer/octicons/-/octicons-17.10.2.tgz", + "integrity": "sha512-J/p2PcgT39Za4wpukbN6iUkEUvL5aE7Bs9kXBeEkrjEgc0Uu7J7B2ypwx9J0qM3m3lk2273RT5/4oGv8pfFLcg==", "dependencies": { "object-assign": "^4.1.1" } @@ -2522,9 +2529,9 @@ "optional": true }, "node_modules/axios": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.1.3.tgz", - "integrity": "sha512-00tXVRwKx/FZr/IDVFt4C+f9FYairX517WoGCL6dpOntqLkZofjhu43F/Xl44UOpqa+9sLFDrG/XAnFsUYgkDA==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.2.2.tgz", + "integrity": "sha512-bz/J4gS2S3I7mpN/YZfGFTqhXTYzRho8Ay38w2otuuDR322KzFIWm/4W2K6gIwvWaws5n+mnb7D1lN9uD+QH6Q==", "dependencies": { "follow-redirects": "^1.15.0", "form-data": "^4.0.0", @@ -3048,9 +3055,9 @@ } }, "node_modules/chess.js": { - "version": "1.0.0-alpha.0", - "resolved": "https://registry.npmjs.org/chess.js/-/chess.js-1.0.0-alpha.0.tgz", - "integrity": "sha512-nwEDlNEOZR/FaKW1DZLYtjgJrtAlxBW/6Fp4Hk8QXqpCCLrXweOU6/vKfJ/jNHT2gPqasxi0/ZPslcWAAdzozg==", + "version": "1.0.0-beta.1", + "resolved": "https://registry.npmjs.org/chess.js/-/chess.js-1.0.0-beta.1.tgz", + "integrity": "sha512-yXGLpKcorxm8TYzDf7Yu7sxkjuWDeFCFmR4/8GG4+5ksdFbYOyfp+MUtN3Z/EuZr5dOxFgjNyBoqbzQpIN5Z8w==", "optional": true }, "node_modules/chownr": { @@ -3491,9 +3498,9 @@ "integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA==" }, "node_modules/d3": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/d3/-/d3-7.8.0.tgz", - "integrity": "sha512-a5rNemRadWkEfqnY5NsD4RdCP9vn8EIJ4I5Rl14U0uKH1SXqcNmk/h9aGaAF1O98lz6L9M0IeUcuPa9GUYbI5A==", + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/d3/-/d3-7.8.1.tgz", + "integrity": "sha512-fdipulGWUYTZTxxU9gDJ2P4mpZL2u7Oqe6n2FI95Q8UY0AjbKNYjPHvhLOsvR+HcSao4vo3YYy4Bk9CWOrt1Vw==", "dependencies": { "d3-array": "3", "d3-axis": "3", @@ -5614,9 +5621,9 @@ ] }, "node_modules/ignore": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", - "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", "engines": { "node": ">= 4" } @@ -6928,16 +6935,16 @@ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" }, "node_modules/linguist-js": { - "version": "2.5.3", - "resolved": "https://registry.npmjs.org/linguist-js/-/linguist-js-2.5.3.tgz", - "integrity": "sha512-VYIei0yTRIqQ5JMClQr3txNpJgEh3tb/8EWqaPNJsMZIprx+fazeS6JmaVzoKkAPGXGIXxVSEF/glgn7ecC0Ug==", + "version": "2.5.4", + "resolved": "https://registry.npmjs.org/linguist-js/-/linguist-js-2.5.4.tgz", + "integrity": "sha512-sn0TNXtwizY8RElyN//O11b2Z7H0e/sYwIJzC39sxC+Keb4oD3QlFfBEL0iVNh7CLnZeONzIEWYxCe3x5wn+2g==", "dependencies": { "binary-extensions": "^2.2.0", - "commander": "^9.4.0", + "commander": "^9.5.0", "common-path-prefix": "^3.0.0", "cross-fetch": "^3.1.5", - "ignore": "^5.2.0", - "isbinaryfile": "^4.0.8", + "ignore": "^5.2.4", + "isbinaryfile": "^4.0.8 <5", "js-yaml": "^4.1.0", "node-cache": "^5.1.2" }, @@ -6950,9 +6957,9 @@ } }, "node_modules/linguist-js/node_modules/commander": { - "version": "9.4.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-9.4.1.tgz", - "integrity": "sha512-5EEkTNyHNGFPD2H+c/dXXfQZYa/scCKasxWcXJaWnNJ99pnQN9Vnmqow+p+PlFPE63Q6mThaZws1T+HxfpgtPw==", + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", + "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==", "engines": { "node": "^12.20.0 || >=14" } @@ -7048,9 +7055,9 @@ } }, "node_modules/marked": { - "version": "4.2.5", - "resolved": "https://registry.npmjs.org/marked/-/marked-4.2.5.tgz", - "integrity": "sha512-jPueVhumq7idETHkb203WDD4fMA3yV9emQ5vLwop58lu8bTclMghBWcYAavlDqIEMaisADinV1TooIFCfqOsYQ==", + "version": "4.2.12", + "resolved": "https://registry.npmjs.org/marked/-/marked-4.2.12.tgz", + "integrity": "sha512-yr8hSKa3Fv4D3jdZmtMMPghgVt6TWbk86WQaWhDloQjRSQhMMYCAro7jP7VDJrjjdV8pxVxMssXS8B8Y5DZ5aw==", "bin": { "marked": "bin/marked.js" }, @@ -8139,25 +8146,25 @@ } }, "node_modules/puppeteer": { - "version": "19.5.0", - "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-19.5.0.tgz", - "integrity": "sha512-601tKJdKu/mlL6l5wklNJiQbIxyEU2N4pwZzFkwhr1VizNYV0Fly1aFMT7qAp7CvzklYLypQGKn7/Zgpy+HheA==", + "version": "19.5.2", + "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-19.5.2.tgz", + "integrity": "sha512-xlqRyrhXhVH114l79Y0XqYXUVG+Yfw4sKlvN55t8Y9DxtA5fzI1uqF8SVXbWK5DUMbD6Jo4lpixTZCTTZGD05g==", "hasInstallScript": true, "dependencies": { "cosmiconfig": "8.0.0", "https-proxy-agent": "5.0.1", "progress": "2.0.3", "proxy-from-env": "1.1.0", - "puppeteer-core": "19.5.0" + "puppeteer-core": "19.5.2" }, "engines": { "node": ">=14.1.0" } }, "node_modules/puppeteer-core": { - "version": "19.5.0", - "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-19.5.0.tgz", - "integrity": "sha512-s2EE2x/7UfvR4AP+6OokY7yEmIboZoQFc2InuWUu5grWG7uka3W2Nch6+R4ERQepH4NO8kkkEBzNO4PqtwU4lQ==", + "version": "19.5.2", + "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-19.5.2.tgz", + "integrity": "sha512-Rqk+3kqM+Z2deooTYqcYt8lRtGffJdifWa9td9nbJSjhANWsFouk8kLBNUKycewCCFHM8TZUKS0x28OllavW2A==", "dependencies": { "cross-fetch": "3.1.5", "debug": "4.3.4", @@ -11676,9 +11683,9 @@ } }, "@primer/octicons": { - "version": "17.10.1", - "resolved": "https://registry.npmjs.org/@primer/octicons/-/octicons-17.10.1.tgz", - "integrity": "sha512-fyq/lItQp18Ibi7c2oXVVw7H5K2a8qb8D2dnkTLf2+yUPjc3Fc+SEGS9x6iU6sQAEpr4LctcFl9ZSZ732EM63A==", + "version": "17.10.2", + "resolved": "https://registry.npmjs.org/@primer/octicons/-/octicons-17.10.2.tgz", + "integrity": "sha512-J/p2PcgT39Za4wpukbN6iUkEUvL5aE7Bs9kXBeEkrjEgc0Uu7J7B2ypwx9J0qM3m3lk2273RT5/4oGv8pfFLcg==", "requires": { "object-assign": "^4.1.1" } @@ -12135,9 +12142,9 @@ "optional": true }, "axios": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.1.3.tgz", - "integrity": "sha512-00tXVRwKx/FZr/IDVFt4C+f9FYairX517WoGCL6dpOntqLkZofjhu43F/Xl44UOpqa+9sLFDrG/XAnFsUYgkDA==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.2.2.tgz", + "integrity": "sha512-bz/J4gS2S3I7mpN/YZfGFTqhXTYzRho8Ay38w2otuuDR322KzFIWm/4W2K6gIwvWaws5n+mnb7D1lN9uD+QH6Q==", "requires": { "follow-redirects": "^1.15.0", "form-data": "^4.0.0", @@ -12515,9 +12522,9 @@ } }, "chess.js": { - "version": "1.0.0-alpha.0", - "resolved": "https://registry.npmjs.org/chess.js/-/chess.js-1.0.0-alpha.0.tgz", - "integrity": "sha512-nwEDlNEOZR/FaKW1DZLYtjgJrtAlxBW/6Fp4Hk8QXqpCCLrXweOU6/vKfJ/jNHT2gPqasxi0/ZPslcWAAdzozg==", + "version": "1.0.0-beta.1", + "resolved": "https://registry.npmjs.org/chess.js/-/chess.js-1.0.0-beta.1.tgz", + "integrity": "sha512-yXGLpKcorxm8TYzDf7Yu7sxkjuWDeFCFmR4/8GG4+5ksdFbYOyfp+MUtN3Z/EuZr5dOxFgjNyBoqbzQpIN5Z8w==", "optional": true }, "chownr": { @@ -12858,9 +12865,9 @@ "integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA==" }, "d3": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/d3/-/d3-7.8.0.tgz", - "integrity": "sha512-a5rNemRadWkEfqnY5NsD4RdCP9vn8EIJ4I5Rl14U0uKH1SXqcNmk/h9aGaAF1O98lz6L9M0IeUcuPa9GUYbI5A==", + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/d3/-/d3-7.8.1.tgz", + "integrity": "sha512-fdipulGWUYTZTxxU9gDJ2P4mpZL2u7Oqe6n2FI95Q8UY0AjbKNYjPHvhLOsvR+HcSao4vo3YYy4Bk9CWOrt1Vw==", "requires": { "d3-array": "3", "d3-axis": "3", @@ -14406,9 +14413,9 @@ "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" }, "ignore": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", - "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==" + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==" }, "import-fresh": { "version": "3.3.0", @@ -15403,24 +15410,24 @@ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" }, "linguist-js": { - "version": "2.5.3", - "resolved": "https://registry.npmjs.org/linguist-js/-/linguist-js-2.5.3.tgz", - "integrity": "sha512-VYIei0yTRIqQ5JMClQr3txNpJgEh3tb/8EWqaPNJsMZIprx+fazeS6JmaVzoKkAPGXGIXxVSEF/glgn7ecC0Ug==", + "version": "2.5.4", + "resolved": "https://registry.npmjs.org/linguist-js/-/linguist-js-2.5.4.tgz", + "integrity": "sha512-sn0TNXtwizY8RElyN//O11b2Z7H0e/sYwIJzC39sxC+Keb4oD3QlFfBEL0iVNh7CLnZeONzIEWYxCe3x5wn+2g==", "requires": { "binary-extensions": "^2.2.0", - "commander": "^9.4.0", + "commander": "^9.5.0", "common-path-prefix": "^3.0.0", "cross-fetch": "^3.1.5", - "ignore": "^5.2.0", - "isbinaryfile": "^4.0.8", + "ignore": "^5.2.4", + "isbinaryfile": "^4.0.8 <5", "js-yaml": "^4.1.0", "node-cache": "^5.1.2" }, "dependencies": { "commander": { - "version": "9.4.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-9.4.1.tgz", - "integrity": "sha512-5EEkTNyHNGFPD2H+c/dXXfQZYa/scCKasxWcXJaWnNJ99pnQN9Vnmqow+p+PlFPE63Q6mThaZws1T+HxfpgtPw==" + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", + "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==" } } }, @@ -15496,9 +15503,9 @@ } }, "marked": { - "version": "4.2.5", - "resolved": "https://registry.npmjs.org/marked/-/marked-4.2.5.tgz", - "integrity": "sha512-jPueVhumq7idETHkb203WDD4fMA3yV9emQ5vLwop58lu8bTclMghBWcYAavlDqIEMaisADinV1TooIFCfqOsYQ==" + "version": "4.2.12", + "resolved": "https://registry.npmjs.org/marked/-/marked-4.2.12.tgz", + "integrity": "sha512-yr8hSKa3Fv4D3jdZmtMMPghgVt6TWbk86WQaWhDloQjRSQhMMYCAro7jP7VDJrjjdV8pxVxMssXS8B8Y5DZ5aw==" }, "matchmedia": { "version": "0.1.2", @@ -16321,21 +16328,21 @@ "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" }, "puppeteer": { - "version": "19.5.0", - "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-19.5.0.tgz", - "integrity": "sha512-601tKJdKu/mlL6l5wklNJiQbIxyEU2N4pwZzFkwhr1VizNYV0Fly1aFMT7qAp7CvzklYLypQGKn7/Zgpy+HheA==", + "version": "19.5.2", + "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-19.5.2.tgz", + "integrity": "sha512-xlqRyrhXhVH114l79Y0XqYXUVG+Yfw4sKlvN55t8Y9DxtA5fzI1uqF8SVXbWK5DUMbD6Jo4lpixTZCTTZGD05g==", "requires": { "cosmiconfig": "8.0.0", "https-proxy-agent": "5.0.1", "progress": "2.0.3", "proxy-from-env": "1.1.0", - "puppeteer-core": "19.5.0" + "puppeteer-core": "19.5.2" } }, "puppeteer-core": { - "version": "19.5.0", - "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-19.5.0.tgz", - "integrity": "sha512-s2EE2x/7UfvR4AP+6OokY7yEmIboZoQFc2InuWUu5grWG7uka3W2Nch6+R4ERQepH4NO8kkkEBzNO4PqtwU4lQ==", + "version": "19.5.2", + "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-19.5.2.tgz", + "integrity": "sha512-Rqk+3kqM+Z2deooTYqcYt8lRtGffJdifWa9td9nbJSjhANWsFouk8kLBNUKycewCCFHM8TZUKS0x28OllavW2A==", "requires": { "cross-fetch": "3.1.5", "debug": "4.3.4", diff --git a/package.json b/package.json index 8b00294f..ab4462a0 100644 --- a/package.json +++ b/package.json @@ -35,13 +35,13 @@ "@octokit/graphql": "^5.0.4", "@octokit/rest": "^19.0.5", "@primer/css": "^20.8.0", - "@primer/octicons": "^17.10.1", + "@primer/octicons": "^17.10.2", "@twemoji/parser": "^14.1.0", - "axios": "^1.1.3", + "axios": "^1.2.2", "clipboard": "^2.0.11", "compression": "^1.7.4", "csso": "^5.0.5", - "d3": "^7.8.0", + "d3": "^7.8.1", "ejs": "^3.1.8", "emoji-name-map": "^1.2.9", "express": "^4.18.2", @@ -49,15 +49,15 @@ "file-type": "^18.2.0", "js-yaml": "^4.1.0", "jsdom": "^21.0.0", - "linguist-js": "^2.5.3", - "marked": "^4.2.5", + "linguist-js": "^2.5.4", + "marked": "^4.2.12", "memory-cache": "^0.2.0", "minimatch": "^6.0.4", "node-fetch": "^3.3.0", "open-graph-scraper": "^5.0.3", "png-js": "^1.0.0", "prismjs": "^1.29.0", - "puppeteer": "^19.5.0", + "puppeteer": "^19.5.2", "purgecss": "^5.0.0", "rss-parser": "^3.12.0", "sanitize-html": "^2.8.1", @@ -80,7 +80,7 @@ }, "optionalDependencies": { "@googlemaps/google-maps-services-js": "^3.3.26", - "chess.js": "^1.0.0-alpha.0", + "chess.js": "^1.0.0-beta.1", "color": "^4.2.3", "gifencoder": "^2.0.1", "libxmljs2": "^0.31.0", diff --git a/tests/metrics.test.js b/tests/metrics.test.js index fa149118..ab40b51c 100644 --- a/tests/metrics.test.js +++ b/tests/metrics.test.js @@ -29,7 +29,7 @@ action.run = async vars => //Web instance const web = {} -web.run = async vars => (await axios(`http://localhost:3000/lowlighter?${new url.URLSearchParams(Object.fromEntries(Object.entries(vars).map(([key, value]) => [key.replace(/^plugin_/, "").replace(/_/g, "."), value])))}`)).status === 200 +web.run = async vars => (await axios.get(`http://localhost:3000/lowlighter?${new url.URLSearchParams(Object.fromEntries(Object.entries(vars).map(([key, value]) => [key.replace(/^plugin_/, "").replace(/_/g, "."), value])))}`)).status === 200 web.start = async () => new Promise(solve => { let stdout = "" @@ -48,7 +48,7 @@ placeholder.init({ ejs, axios: { async get(url) { - return axios(`http://localhost:3000${url}`) + return axios.get(`http://localhost:3000${url}`) }, }, })