Skip to content

Commit 3c96a08

Browse files
dependabot[bot]sosukesuzuki
authored andcommitted
Build(deps): Bump strip-ansi from 6.0.0 to 7.0.0 (#10731)
1 parent 1bfb08f commit 3c96a08

File tree

10 files changed

+96
-19
lines changed

10 files changed

+96
-19
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"resolve": "1.22.0",
8383
"semver": "7.3.5",
8484
"string-width": "5.0.1",
85-
"strip-ansi": "6.0.0",
85+
"strip-ansi": "7.0.1",
8686
"typescript": "4.6.3",
8787
"unicode-regex": "3.0.0",
8888
"unified": "9.2.1",

scripts/vendors/vendor-meta.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,40 @@
544544
},
545545
"contributors": []
546546
},
547+
{
548+
"name": "ansi-regex",
549+
"maintainers": [],
550+
"version": "6.0.1",
551+
"description": "Regular expression for matching ANSI escape codes",
552+
"repository": "chalk/ansi-regex",
553+
"homepage": null,
554+
"private": false,
555+
"license": "MIT",
556+
"licenseText": "MIT License\n\nCopyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
557+
"author": {
558+
"name": "Sindre Sorhus",
559+
"email": "sindresorhus@gmail.com",
560+
"url": "https://sindresorhus.com"
561+
},
562+
"contributors": []
563+
},
564+
{
565+
"name": "strip-ansi",
566+
"maintainers": [],
567+
"version": "7.0.1",
568+
"description": "Strip ANSI escape codes from a string",
569+
"repository": "chalk/strip-ansi",
570+
"homepage": null,
571+
"private": false,
572+
"license": "MIT",
573+
"licenseText": "MIT License\n\nCopyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
574+
"author": {
575+
"name": "Sindre Sorhus",
576+
"email": "sindresorhus@gmail.com",
577+
"url": "https://sindresorhus.com"
578+
},
579+
"contributors": []
580+
},
547581
{
548582
"name": "crypto-random-string",
549583
"maintainers": [],

scripts/vendors/vendors.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const vendors = [
77
"html-void-elements",
88
"mem",
99
"string-width",
10+
"strip-ansi",
1011
"tempy",
1112
];
1213

src/cli/logger.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
"use strict";
22

33
const readline = require("readline");
4-
const stripAnsi = require("strip-ansi");
54
const wcwidth = require("wcwidth");
65

6+
// eslint-disable-next-line no-restricted-modules
7+
const { default: stripAnsi } = require("../../vendors/strip-ansi.js");
78
// eslint-disable-next-line no-restricted-modules
89
const { default: chalk } = require("../../vendors/chalk.js");
910

tests/integration/__tests__/loglevel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22

3-
const stripAnsi = require("strip-ansi");
3+
const { default: stripAnsi } = require("../../../vendors/strip-ansi.js");
44
const runPrettier = require("../run-prettier.js");
55

66
test("do not show logs with --loglevel silent", async () => {

tests/integration/run-prettier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const fs = require("fs");
44
const path = require("path");
5-
const stripAnsi = require("strip-ansi");
5+
const { default: stripAnsi } = require("../../vendors/strip-ansi.js");
66
const { prettierCli, thirdParty } = require("./env.js");
77

88
async function run(dir, args, options) {

vendors/string-width.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendors/strip-ansi.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// This file is generated automatically.
2+
export {default} from "strip-ansi";
3+
export * from "strip-ansi";

vendors/strip-ansi.js

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// @ts-nocheck
2+
// This file is generated automatically
3+
var __defProp = Object.defineProperty;
4+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5+
var __getOwnPropNames = Object.getOwnPropertyNames;
6+
var __hasOwnProp = Object.prototype.hasOwnProperty;
7+
var __export = (target, all) => {
8+
for (var name in all)
9+
__defProp(target, name, { get: all[name], enumerable: true });
10+
};
11+
var __copyProps = (to, from, except, desc) => {
12+
if (from && typeof from === "object" || typeof from === "function") {
13+
for (let key of __getOwnPropNames(from))
14+
if (!__hasOwnProp.call(to, key) && key !== except)
15+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16+
}
17+
return to;
18+
};
19+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20+
21+
// node_modules/strip-ansi/index.js
22+
var strip_ansi_exports = {};
23+
__export(strip_ansi_exports, {
24+
default: () => stripAnsi
25+
});
26+
module.exports = __toCommonJS(strip_ansi_exports);
27+
28+
// node_modules/strip-ansi/node_modules/ansi-regex/index.js
29+
function ansiRegex({ onlyFirst = false } = {}) {
30+
const pattern = [
31+
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
32+
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
33+
].join("|");
34+
return new RegExp(pattern, onlyFirst ? void 0 : "g");
35+
}
36+
37+
// node_modules/strip-ansi/index.js
38+
function stripAnsi(string) {
39+
if (typeof string !== "string") {
40+
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
41+
}
42+
return string.replace(ansiRegex(), "");
43+
}
44+
// Annotate the CommonJS export names for ESM import in node:
45+
0 && (module.exports = {});

yarn.lock

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1870,7 +1870,7 @@ ansi-regex@^4.1.0:
18701870
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz#8b9f8f08cf1acb843756a839ca8c7e3168c51997"
18711871
integrity sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==
18721872

1873-
ansi-regex@^5.0.0, ansi-regex@^5.0.1:
1873+
ansi-regex@^5.0.1:
18741874
version "5.0.1"
18751875
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304"
18761876
integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==
@@ -6067,12 +6067,12 @@ strip-ansi@5.2.0:
60676067
dependencies:
60686068
ansi-regex "^4.1.0"
60696069

6070-
strip-ansi@6.0.0:
6071-
version "6.0.0"
6072-
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532"
6073-
integrity sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==
6070+
strip-ansi@7.0.1, strip-ansi@^7.0.1:
6071+
version "7.0.1"
6072+
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.0.1.tgz#61740a08ce36b61e50e65653f07060d000975fb2"
6073+
integrity sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw==
60746074
dependencies:
6075-
ansi-regex "^5.0.0"
6075+
ansi-regex "^6.0.1"
60766076

60776077
strip-ansi@^4.0.0:
60786078
version "4.0.0"
@@ -6088,13 +6088,6 @@ strip-ansi@^6.0.0, strip-ansi@^6.0.1:
60886088
dependencies:
60896089
ansi-regex "^5.0.1"
60906090

6091-
strip-ansi@^7.0.1:
6092-
version "7.0.1"
6093-
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.0.1.tgz#61740a08ce36b61e50e65653f07060d000975fb2"
6094-
integrity sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw==
6095-
dependencies:
6096-
ansi-regex "^6.0.1"
6097-
60986091
strip-bom@^3.0.0:
60996092
version "3.0.0"
61006093
resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy