Build(deps): Bump strip-ansi from 6.0.0 to 7.0.0 (#10731)
This commit is contained in:
1 parent
b1e96cde95
commit
f4d4dc1177
10 files changed
+96
-19
No files matched your search
Vendored
+2
-2
@@ -41,7 +41,7 @@ __export(string_width_exports, {
|
||||
});
|
||||
module.exports = __toCommonJS(string_width_exports);
|
||||
|
||||
// node_modules/string-width/node_modules/ansi-regex/index.js
|
||||
// node_modules/strip-ansi/node_modules/ansi-regex/index.js
|
||||
function ansiRegex({ onlyFirst = false } = {}) {
|
||||
const pattern = [
|
||||
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
|
||||
@@ -50,7 +50,7 @@ function ansiRegex({ onlyFirst = false } = {}) {
|
||||
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
||||
}
|
||||
|
||||
// node_modules/string-width/node_modules/strip-ansi/index.js
|
||||
// node_modules/strip-ansi/index.js
|
||||
function stripAnsi(string) {
|
||||
if (typeof string !== "string") {
|
||||
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
|
||||
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
// This file is generated automatically.
|
||||
export {default} from "strip-ansi";
|
||||
export * from "strip-ansi";
|
||||
Vendored
+45
@@ -0,0 +1,45 @@
|
||||
// @ts-nocheck
|
||||
// This file is generated automatically
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// node_modules/strip-ansi/index.js
|
||||
var strip_ansi_exports = {};
|
||||
__export(strip_ansi_exports, {
|
||||
default: () => stripAnsi
|
||||
});
|
||||
module.exports = __toCommonJS(strip_ansi_exports);
|
||||
|
||||
// node_modules/strip-ansi/node_modules/ansi-regex/index.js
|
||||
function ansiRegex({ onlyFirst = false } = {}) {
|
||||
const pattern = [
|
||||
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
|
||||
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
|
||||
].join("|");
|
||||
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
||||
}
|
||||
|
||||
// node_modules/strip-ansi/index.js
|
||||
function stripAnsi(string) {
|
||||
if (typeof string !== "string") {
|
||||
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
|
||||
}
|
||||
return string.replace(ansiRegex(), "");
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {});
|
||||
Reference in new issue
Block a user