Skip to content

Commit e32189c

Browse files
committed
deps: deduplicate tree
1 parent dcaa99c commit e32189c

File tree

54 files changed

+433
-1010
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+433
-1010
lines changed

node_modules/.gitignore

+4-25
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
!/@isaacs/cliui
1212
!/@isaacs/cliui/node_modules/
1313
/@isaacs/cliui/node_modules/*
14+
!/@isaacs/cliui/node_modules/ansi-regex
1415
!/@isaacs/cliui/node_modules/emoji-regex
1516
!/@isaacs/cliui/node_modules/string-width
17+
!/@isaacs/cliui/node_modules/strip-ansi
1618
!/@isaacs/string-locale-compare
1719
!/@npmcli/
1820
/@npmcli/*
@@ -67,21 +69,13 @@
6769
!/cidr-regex
6870
!/clean-stack
6971
!/cli-columns
70-
!/cli-columns/node_modules/
71-
/cli-columns/node_modules/*
72-
!/cli-columns/node_modules/ansi-regex
73-
!/cli-columns/node_modules/strip-ansi
7472
!/cli-table3
7573
!/clone
7674
!/cmd-shim
7775
!/color-convert
7876
!/color-name
7977
!/color-support
8078
!/columnify
81-
!/columnify/node_modules/
82-
/columnify/node_modules/*
83-
!/columnify/node_modules/ansi-regex
84-
!/columnify/node_modules/strip-ansi
8579
!/common-ancestor-path
8680
!/console-control-strings
8781
!/cross-spawn
@@ -106,10 +100,6 @@
106100
!/fs-minipass
107101
!/function-bind
108102
!/gauge
109-
!/gauge/node_modules/
110-
/gauge/node_modules/*
111-
!/gauge/node_modules/ansi-regex
112-
!/gauge/node_modules/strip-ansi
113103
!/glob
114104
!/graceful-fs
115105
!/has-unicode
@@ -218,19 +208,8 @@
218208
!/spdx-license-ids
219209
!/ssri
220210
!/string-width-cjs
221-
!/string-width-cjs/node_modules/
222-
/string-width-cjs/node_modules/*
223-
!/string-width-cjs/node_modules/ansi-regex
224-
!/string-width-cjs/node_modules/strip-ansi
225211
!/string-width
226-
!/string-width/node_modules/
227-
/string-width/node_modules/*
228-
!/string-width/node_modules/ansi-regex
229-
!/string-width/node_modules/strip-ansi
230212
!/strip-ansi-cjs
231-
!/strip-ansi-cjs/node_modules/
232-
/strip-ansi-cjs/node_modules/*
233-
!/strip-ansi-cjs/node_modules/ansi-regex
234213
!/strip-ansi
235214
!/supports-color
236215
!/tar
@@ -260,14 +239,14 @@
260239
!/wrap-ansi-cjs
261240
!/wrap-ansi-cjs/node_modules/
262241
/wrap-ansi-cjs/node_modules/*
263-
!/wrap-ansi-cjs/node_modules/ansi-regex
264242
!/wrap-ansi-cjs/node_modules/ansi-styles
265-
!/wrap-ansi-cjs/node_modules/strip-ansi
266243
!/wrap-ansi
267244
!/wrap-ansi/node_modules/
268245
/wrap-ansi/node_modules/*
246+
!/wrap-ansi/node_modules/ansi-regex
269247
!/wrap-ansi/node_modules/emoji-regex
270248
!/wrap-ansi/node_modules/string-width
249+
!/wrap-ansi/node_modules/strip-ansi
271250
!/write-file-atomic
272251
!/yallist
273252
# Always ignore some specific patterns within any allowed package
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export default function ansiRegex({onlyFirst = false} = {}) {
2+
const pattern = [
3+
'[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
4+
'(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
5+
].join('|');
6+
7+
return new RegExp(pattern, onlyFirst ? undefined : 'g');
8+
}

node_modules/cli-columns/node_modules/strip-ansi/license node_modules/@isaacs/cliui/node_modules/ansi-regex/license

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
3+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
44

55
Permission 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:
66

node_modules/gauge/node_modules/ansi-regex/package.json node_modules/@isaacs/cliui/node_modules/ansi-regex/package.json

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
{
22
"name": "ansi-regex",
3-
"version": "5.0.1",
3+
"version": "6.0.1",
44
"description": "Regular expression for matching ANSI escape codes",
55
"license": "MIT",
66
"repository": "chalk/ansi-regex",
7+
"funding": "https://github.com/chalk/ansi-regex?sponsor=1",
78
"author": {
89
"name": "Sindre Sorhus",
910
"email": "sindresorhus@gmail.com",
10-
"url": "sindresorhus.com"
11+
"url": "https://sindresorhus.com"
1112
},
13+
"type": "module",
14+
"exports": "./index.js",
1215
"engines": {
13-
"node": ">=8"
16+
"node": ">=12"
1417
},
1518
"scripts": {
1619
"test": "xo && ava && tsd",
@@ -48,8 +51,8 @@
4851
"pattern"
4952
],
5053
"devDependencies": {
51-
"ava": "^2.4.0",
52-
"tsd": "^0.9.0",
53-
"xo": "^0.25.3"
54+
"ava": "^3.15.0",
55+
"tsd": "^0.14.0",
56+
"xo": "^0.38.2"
5457
}
5558
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import ansiRegex from 'ansi-regex';
2+
3+
const regex = ansiRegex();
4+
5+
export default function stripAnsi(string) {
6+
if (typeof string !== 'string') {
7+
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
8+
}
9+
10+
// Even though the regex is global, we don't need to reset the `.lastIndex`
11+
// because unlike `.exec()` and `.test()`, `.replace()` does it automatically
12+
// and doing it manually has a performance penalty.
13+
return string.replace(regex, '');
14+
}

node_modules/cli-columns/node_modules/ansi-regex/license node_modules/@isaacs/cliui/node_modules/strip-ansi/license

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
3+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
44

55
Permission 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:
66

node_modules/cli-columns/node_modules/strip-ansi/package.json node_modules/@isaacs/cliui/node_modules/strip-ansi/package.json

+10-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
{
22
"name": "strip-ansi",
3-
"version": "6.0.1",
3+
"version": "7.1.0",
44
"description": "Strip ANSI escape codes from a string",
55
"license": "MIT",
66
"repository": "chalk/strip-ansi",
7+
"funding": "https://github.com/chalk/strip-ansi?sponsor=1",
78
"author": {
89
"name": "Sindre Sorhus",
910
"email": "sindresorhus@gmail.com",
10-
"url": "sindresorhus.com"
11+
"url": "https://sindresorhus.com"
1112
},
13+
"type": "module",
14+
"exports": "./index.js",
1215
"engines": {
13-
"node": ">=8"
16+
"node": ">=12"
1417
},
1518
"scripts": {
1619
"test": "xo && ava && tsd"
@@ -44,11 +47,11 @@
4447
"text"
4548
],
4649
"dependencies": {
47-
"ansi-regex": "^5.0.1"
50+
"ansi-regex": "^6.0.1"
4851
},
4952
"devDependencies": {
50-
"ava": "^2.4.0",
51-
"tsd": "^0.10.0",
52-
"xo": "^0.25.3"
53+
"ava": "^3.15.0",
54+
"tsd": "^0.17.0",
55+
"xo": "^0.44.0"
5356
}
5457
}

node_modules/ansi-regex/index.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
export default function ansiRegex({onlyFirst = false} = {}) {
1+
'use strict';
2+
3+
module.exports = ({onlyFirst = false} = {}) => {
24
const pattern = [
3-
'[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
5+
'[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
46
'(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
57
].join('|');
68

79
return new RegExp(pattern, onlyFirst ? undefined : 'g');
8-
}
10+
};

node_modules/ansi-regex/license

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
3+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
44

55
Permission 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:
66

node_modules/ansi-regex/package.json

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
{
22
"name": "ansi-regex",
3-
"version": "6.0.1",
3+
"version": "5.0.1",
44
"description": "Regular expression for matching ANSI escape codes",
55
"license": "MIT",
66
"repository": "chalk/ansi-regex",
7-
"funding": "https://github.com/chalk/ansi-regex?sponsor=1",
87
"author": {
98
"name": "Sindre Sorhus",
109
"email": "sindresorhus@gmail.com",
11-
"url": "https://sindresorhus.com"
10+
"url": "sindresorhus.com"
1211
},
13-
"type": "module",
14-
"exports": "./index.js",
1512
"engines": {
16-
"node": ">=12"
13+
"node": ">=8"
1714
},
1815
"scripts": {
1916
"test": "xo && ava && tsd",
@@ -51,8 +48,8 @@
5148
"pattern"
5249
],
5350
"devDependencies": {
54-
"ava": "^3.15.0",
55-
"tsd": "^0.14.0",
56-
"xo": "^0.38.2"
51+
"ava": "^2.4.0",
52+
"tsd": "^0.9.0",
53+
"xo": "^0.25.3"
5754
}
5855
}

node_modules/cli-columns/node_modules/ansi-regex/index.js

-10
This file was deleted.

node_modules/cli-columns/node_modules/ansi-regex/package.json

-55
This file was deleted.

node_modules/cli-columns/node_modules/strip-ansi/index.js

-4
This file was deleted.

node_modules/color-name/test.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
'use strict'
2+
3+
var names = require('./');
4+
var assert = require('assert');
5+
6+
assert.deepEqual(names.red, [255,0,0]);
7+
assert.deepEqual(names.aliceblue, [240,248,255]);

node_modules/columnify/node_modules/ansi-regex/index.js

-10
This file was deleted.

node_modules/columnify/node_modules/strip-ansi/index.js

-4
This file was deleted.

0 commit comments

Comments
 (0)