chore(deps): remove wrap-ansi (#21818)

* chore(deps): remove wrap-ansi

* remove unused lodash import
This commit is contained in:
Edgars Eglītis
2025-12-15 20:28:10 +02:00
committed by GitHub
parent e9a6e5425c
commit d9e4437c55
5 changed files with 8 additions and 27 deletions

12
package-lock.json generated
View File

@@ -42,7 +42,6 @@
"@types/sinon-chai": "4.0.0",
"@types/teen_process": "2.0.4",
"@types/which": "3.0.4",
"@types/wrap-ansi": "3.0.0",
"@types/ws": "8.18.1",
"@types/xmldom": "0.1.34",
"@types/yargs": "17.0.35",
@@ -4500,11 +4499,6 @@
"dev": true,
"license": "MIT"
},
"node_modules/@types/wrap-ansi": {
"version": "3.0.0",
"dev": true,
"license": "MIT"
},
"node_modules/@types/ws": {
"version": "8.18.1",
"resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.1.tgz",
@@ -20120,7 +20114,6 @@
"teen_process": "3.0.6",
"type-fest": "5.3.1",
"winston": "3.19.0",
"wrap-ansi": "7.0.0",
"ws": "8.18.3",
"yaml": "2.8.2"
},
@@ -25150,10 +25143,6 @@
"integrity": "sha512-liyfuo/106JdlgSchJzXEQCVArk0CvevqPote8F8HgWgJ3dRCcTHgJIsLDuee0kxk/mhbInzIZk3QWSZJ8R+2w==",
"dev": true
},
"@types/wrap-ansi": {
"version": "3.0.0",
"dev": true
},
"@types/ws": {
"version": "8.18.1",
"resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.1.tgz",
@@ -25930,7 +25919,6 @@
"teen_process": "3.0.6",
"type-fest": "5.3.1",
"winston": "3.19.0",
"wrap-ansi": "7.0.0",
"ws": "8.18.3",
"yaml": "2.8.2"
},

View File

@@ -114,7 +114,6 @@
"@types/sinon-chai": "4.0.0",
"@types/teen_process": "2.0.4",
"@types/which": "3.0.4",
"@types/wrap-ansi": "3.0.0",
"@types/ws": "8.18.1",
"@types/xmldom": "0.1.34",
"@types/yargs": "17.0.35",

View File

@@ -85,7 +85,6 @@
"teen_process": "3.0.6",
"type-fest": "5.3.1",
"winston": "3.19.0",
"wrap-ansi": "7.0.0",
"ws": "8.18.3",
"yaml": "2.8.2"
},

View File

@@ -38,12 +38,6 @@ let PLUGIN_TYPE;
/** @type {typeof import('../lib/extension').loadExtensions} */
let loadExtensions;
const _ = require('lodash');
const wrap = _.partial(
require('wrap-ansi'),
_,
process.stderr.columns ?? process.stdout.columns ?? 80
);
const ora = require('ora');
/** @type {typeof import('@appium/support').env} */
@@ -54,7 +48,7 @@ let util;
let logger;
function log(message) {
console.error(wrap(`[Appium] ${message}`));
console.error(`[Appium] ${message}`);
}
/**
@@ -118,9 +112,12 @@ async function main() {
}).start();
if (!driverEnv && !pluginEnv) {
spinner.succeed(
wrap(`No drivers or plugins to automatically install.
If desired, provide arguments with comma-separated values "--drivers=<known_driver>[,known_driver...]" and/or "--plugins=<known_plugin>[,known_plugin...]" to the "npm install appium" command. The specified extensions will be installed automatically with Appium. Note: to see the list of known extensions, run "appium <driver|plugin> list".`)
spinner.succeed('No drivers or plugins to automatically install.');
log(
'If desired, provide the argument "--drivers=<driver_name>[,<driver_name>...]" and/or ' +
'"--plugins=<plugin_name>[,<plugin_name>...]" to the "npm install appium" command. ' +
'The specified extensions will be installed automatically alongside Appium. ' +
'For a list of known extensions, run "appium <driver|plugin> list".'
);
return;
}

View File

@@ -14,10 +14,8 @@
"packageRules": [
{
"matchPackageNames": [
"@types/wrap-ansi",
"ora",
"read-pkg",
"wrap-ansi"
"read-pkg"
],
"matchUpdateTypes": ["major"],
"enabled": false