This commit is contained in:
2022-07-18 02:50:52 +00:00
parent befd344ab0
commit 06181b34d6
8569 changed files with 818704 additions and 352705 deletions
+14 -14
View File
@@ -1,33 +1,33 @@
{
"_args": [
[
"@nuxt/friendly-errors-webpack-plugin@2.5.0",
"/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series"
"@nuxt/friendly-errors-webpack-plugin@2.5.2",
"/home/node/nuxt"
]
],
"_from": "@nuxt/friendly-errors-webpack-plugin@2.5.0",
"_id": "@nuxt/friendly-errors-webpack-plugin@2.5.0",
"_from": "@nuxt/friendly-errors-webpack-plugin@2.5.2",
"_id": "@nuxt/friendly-errors-webpack-plugin@2.5.2",
"_inBundle": false,
"_integrity": "sha512-pUgPFmRL56/xuTCGN5rqgTfxvs1N/AYJw7q7tUHiZaBm3UyPgbIVPkadS9njwbFbPD2XcebVy7npQMMVwQJWfA==",
"_integrity": "sha512-LLc+90lnxVbpKkMqk5z1EWpXoODhc6gRkqqXJCInJwF5xabHAE7biFvbULfvTRmtaTzAaP8IV4HQDLUgeAUTTw==",
"_location": "/@nuxt/friendly-errors-webpack-plugin",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "@nuxt/friendly-errors-webpack-plugin@2.5.0",
"raw": "@nuxt/friendly-errors-webpack-plugin@2.5.2",
"name": "@nuxt/friendly-errors-webpack-plugin",
"escapedName": "@nuxt%2ffriendly-errors-webpack-plugin",
"scope": "@nuxt",
"rawSpec": "2.5.0",
"rawSpec": "2.5.2",
"saveSpec": null,
"fetchSpec": "2.5.0"
"fetchSpec": "2.5.2"
},
"_requiredBy": [
"/@nuxt/webpack"
],
"_resolved": "https://registry.npmjs.org/@nuxt/friendly-errors-webpack-plugin/-/friendly-errors-webpack-plugin-2.5.0.tgz",
"_spec": "2.5.0",
"_where": "/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series",
"_resolved": "https://registry.npmjs.org/@nuxt/friendly-errors-webpack-plugin/-/friendly-errors-webpack-plugin-2.5.2.tgz",
"_spec": "2.5.2",
"_where": "/home/node/nuxt",
"author": {
"name": "Geoffroy Warin"
},
@@ -38,7 +38,7 @@
"chalk": "^2.3.2",
"consola": "^2.6.0",
"error-stack-parser": "^2.0.0",
"string-width": "^2.0.0"
"string-width": "^4.2.3"
},
"description": "Recognizes certain classes of webpack errors and cleans, aggregates and prioritizes them to provide a better Developer Experience",
"devDependencies": {
@@ -83,7 +83,7 @@
"main": "index.js",
"name": "@nuxt/friendly-errors-webpack-plugin",
"peerDependencies": {
"webpack": "^2.0.0 || ^3.0.0 || ^4.0.0"
"webpack": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0"
},
"publishConfig": {
"access": "public"
@@ -96,5 +96,5 @@
"release": "standard-version",
"test": "eslint . && jest"
},
"version": "2.5.0"
"version": "2.5.2"
}
+3 -8
View File
@@ -1,7 +1,6 @@
'use strict'
const chalk = require('chalk')
const readline = require('readline')
const colors = {
success: 'green',
@@ -41,13 +40,9 @@ function formatText (severity, message) {
}
function clearConsole () {
if (process.stdout.isTTY) {
// Fill screen with blank lines. Then move to 0 (beginning of visible part) and clear it
const blank = '\n'.repeat(process.stdout.rows)
console.log(blank)
readline.cursorTo(process.stdout, 0, 0)
readline.clearScreenDown(process.stdout)
}
process.stdout.write(
process.platform === 'win32' ? '\x1B[2J\x1B[0f' : '\x1B[2J\x1B[3J\x1B[H'
)
}
module.exports = {