Skip to content

Commit

Permalink
deps: deduplicate tree
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Jan 23, 2024
1 parent dcaa99c commit e32189c
Show file tree
Hide file tree
Showing 54 changed files with 433 additions and 1,010 deletions.
29 changes: 4 additions & 25 deletions node_modules/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
!/@isaacs/cliui
!/@isaacs/cliui/node_modules/
/@isaacs/cliui/node_modules/*
!/@isaacs/cliui/node_modules/ansi-regex
!/@isaacs/cliui/node_modules/emoji-regex
!/@isaacs/cliui/node_modules/string-width
!/@isaacs/cliui/node_modules/strip-ansi
!/@isaacs/string-locale-compare
!/@npmcli/
/@npmcli/*
Expand Down Expand Up @@ -67,21 +69,13 @@
!/cidr-regex
!/clean-stack
!/cli-columns
!/cli-columns/node_modules/
/cli-columns/node_modules/*
!/cli-columns/node_modules/ansi-regex
!/cli-columns/node_modules/strip-ansi
!/cli-table3
!/clone
!/cmd-shim
!/color-convert
!/color-name
!/color-support
!/columnify
!/columnify/node_modules/
/columnify/node_modules/*
!/columnify/node_modules/ansi-regex
!/columnify/node_modules/strip-ansi
!/common-ancestor-path
!/console-control-strings
!/cross-spawn
Expand All @@ -106,10 +100,6 @@
!/fs-minipass
!/function-bind
!/gauge
!/gauge/node_modules/
/gauge/node_modules/*
!/gauge/node_modules/ansi-regex
!/gauge/node_modules/strip-ansi
!/glob
!/graceful-fs
!/has-unicode
Expand Down Expand Up @@ -218,19 +208,8 @@
!/spdx-license-ids
!/ssri
!/string-width-cjs
!/string-width-cjs/node_modules/
/string-width-cjs/node_modules/*
!/string-width-cjs/node_modules/ansi-regex
!/string-width-cjs/node_modules/strip-ansi
!/string-width
!/string-width/node_modules/
/string-width/node_modules/*
!/string-width/node_modules/ansi-regex
!/string-width/node_modules/strip-ansi
!/strip-ansi-cjs
!/strip-ansi-cjs/node_modules/
/strip-ansi-cjs/node_modules/*
!/strip-ansi-cjs/node_modules/ansi-regex
!/strip-ansi
!/supports-color
!/tar
Expand Down Expand Up @@ -260,14 +239,14 @@
!/wrap-ansi-cjs
!/wrap-ansi-cjs/node_modules/
/wrap-ansi-cjs/node_modules/*
!/wrap-ansi-cjs/node_modules/ansi-regex
!/wrap-ansi-cjs/node_modules/ansi-styles
!/wrap-ansi-cjs/node_modules/strip-ansi
!/wrap-ansi
!/wrap-ansi/node_modules/
/wrap-ansi/node_modules/*
!/wrap-ansi/node_modules/ansi-regex
!/wrap-ansi/node_modules/emoji-regex
!/wrap-ansi/node_modules/string-width
!/wrap-ansi/node_modules/strip-ansi
!/write-file-atomic
!/yallist
# Always ignore some specific patterns within any allowed package
Expand Down
8 changes: 8 additions & 0 deletions node_modules/@isaacs/cliui/node_modules/ansi-regex/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default 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 ? undefined : 'g');
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

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

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:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
{
"name": "ansi-regex",
"version": "5.0.1",
"version": "6.0.1",
"description": "Regular expression for matching ANSI escape codes",
"license": "MIT",
"repository": "chalk/ansi-regex",
"funding": "https://github.com/chalk/ansi-regex?sponsor=1",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
"url": "https://sindresorhus.com"
},
"type": "module",
"exports": "./index.js",
"engines": {
"node": ">=8"
"node": ">=12"
},
"scripts": {
"test": "xo && ava && tsd",
Expand Down Expand Up @@ -48,8 +51,8 @@
"pattern"
],
"devDependencies": {
"ava": "^2.4.0",
"tsd": "^0.9.0",
"xo": "^0.25.3"
"ava": "^3.15.0",
"tsd": "^0.14.0",
"xo": "^0.38.2"
}
}
14 changes: 14 additions & 0 deletions node_modules/@isaacs/cliui/node_modules/strip-ansi/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import ansiRegex from 'ansi-regex';

const regex = ansiRegex();

export default function stripAnsi(string) {
if (typeof string !== 'string') {
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
}

// Even though the regex is global, we don't need to reset the `.lastIndex`
// because unlike `.exec()` and `.test()`, `.replace()` does it automatically
// and doing it manually has a performance penalty.
return string.replace(regex, '');
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

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

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:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
{
"name": "strip-ansi",
"version": "6.0.1",
"version": "7.1.0",
"description": "Strip ANSI escape codes from a string",
"license": "MIT",
"repository": "chalk/strip-ansi",
"funding": "https://github.com/chalk/strip-ansi?sponsor=1",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
"url": "https://sindresorhus.com"
},
"type": "module",
"exports": "./index.js",
"engines": {
"node": ">=8"
"node": ">=12"
},
"scripts": {
"test": "xo && ava && tsd"
Expand Down Expand Up @@ -44,11 +47,11 @@
"text"
],
"dependencies": {
"ansi-regex": "^5.0.1"
"ansi-regex": "^6.0.1"
},
"devDependencies": {
"ava": "^2.4.0",
"tsd": "^0.10.0",
"xo": "^0.25.3"
"ava": "^3.15.0",
"tsd": "^0.17.0",
"xo": "^0.44.0"
}
}
8 changes: 5 additions & 3 deletions node_modules/ansi-regex/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
export default function ansiRegex({onlyFirst = false} = {}) {
'use strict';

module.exports = ({onlyFirst = false} = {}) => {
const pattern = [
'[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
'[\\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 ? undefined : 'g');
}
};
2 changes: 1 addition & 1 deletion node_modules/ansi-regex/license
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

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

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:

Expand Down
15 changes: 6 additions & 9 deletions node_modules/ansi-regex/package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
{
"name": "ansi-regex",
"version": "6.0.1",
"version": "5.0.1",
"description": "Regular expression for matching ANSI escape codes",
"license": "MIT",
"repository": "chalk/ansi-regex",
"funding": "https://github.com/chalk/ansi-regex?sponsor=1",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "https://sindresorhus.com"
"url": "sindresorhus.com"
},
"type": "module",
"exports": "./index.js",
"engines": {
"node": ">=12"
"node": ">=8"
},
"scripts": {
"test": "xo && ava && tsd",
Expand Down Expand Up @@ -51,8 +48,8 @@
"pattern"
],
"devDependencies": {
"ava": "^3.15.0",
"tsd": "^0.14.0",
"xo": "^0.38.2"
"ava": "^2.4.0",
"tsd": "^0.9.0",
"xo": "^0.25.3"
}
}
10 changes: 0 additions & 10 deletions node_modules/cli-columns/node_modules/ansi-regex/index.js

This file was deleted.

55 changes: 0 additions & 55 deletions node_modules/cli-columns/node_modules/ansi-regex/package.json

This file was deleted.

4 changes: 0 additions & 4 deletions node_modules/cli-columns/node_modules/strip-ansi/index.js

This file was deleted.

7 changes: 7 additions & 0 deletions node_modules/color-name/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use strict'

var names = require('./');
var assert = require('assert');

assert.deepEqual(names.red, [255,0,0]);
assert.deepEqual(names.aliceblue, [240,248,255]);
10 changes: 0 additions & 10 deletions node_modules/columnify/node_modules/ansi-regex/index.js

This file was deleted.

4 changes: 0 additions & 4 deletions node_modules/columnify/node_modules/strip-ansi/index.js

This file was deleted.

Loading

0 comments on commit e32189c

Please sign in to comment.