A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/npm/cli/commit/e32189c768181d58ab72825d67307a3a653652ac below:

deduplicate tree · npm/cli@e32189c · GitHub

File tree Expand file treeCollapse file tree 54 files changed

+433

-1010

lines changed

Filter options

Expand file treeCollapse file tree 54 files changed

+433

-1010

lines changed Original file line number Diff line number Diff line change

@@ -11,8 +11,10 @@

11 11

!/@isaacs/cliui

12 12

!/@isaacs/cliui/node_modules/

13 13

/@isaacs/cliui/node_modules/*

14 +

!/@isaacs/cliui/node_modules/ansi-regex

14 15

!/@isaacs/cliui/node_modules/emoji-regex

15 16

!/@isaacs/cliui/node_modules/string-width

17 +

!/@isaacs/cliui/node_modules/strip-ansi

16 18

!/@isaacs/string-locale-compare

17 19

!/@npmcli/

18 20

/@npmcli/*

@@ -67,21 +69,13 @@

67 69

!/cidr-regex

68 70

!/clean-stack

69 71

!/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

74 72

!/cli-table3

75 73

!/clone

76 74

!/cmd-shim

77 75

!/color-convert

78 76

!/color-name

79 77

!/color-support

80 78

!/columnify

81 -

!/columnify/node_modules/

82 -

/columnify/node_modules/*

83 -

!/columnify/node_modules/ansi-regex

84 -

!/columnify/node_modules/strip-ansi

85 79

!/common-ancestor-path

86 80

!/console-control-strings

87 81

!/cross-spawn

@@ -106,10 +100,6 @@

106 100

!/fs-minipass

107 101

!/function-bind

108 102

!/gauge

109 -

!/gauge/node_modules/

110 -

/gauge/node_modules/*

111 -

!/gauge/node_modules/ansi-regex

112 -

!/gauge/node_modules/strip-ansi

113 103

!/glob

114 104

!/graceful-fs

115 105

!/has-unicode

@@ -218,19 +208,8 @@

218 208

!/spdx-license-ids

219 209

!/ssri

220 210

!/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

225 211

!/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

230 212

!/strip-ansi-cjs

231 -

!/strip-ansi-cjs/node_modules/

232 -

/strip-ansi-cjs/node_modules/*

233 -

!/strip-ansi-cjs/node_modules/ansi-regex

234 213

!/strip-ansi

235 214

!/supports-color

236 215

!/tar

@@ -260,14 +239,14 @@

260 239

!/wrap-ansi-cjs

261 240

!/wrap-ansi-cjs/node_modules/

262 241

/wrap-ansi-cjs/node_modules/*

263 -

!/wrap-ansi-cjs/node_modules/ansi-regex

264 242

!/wrap-ansi-cjs/node_modules/ansi-styles

265 -

!/wrap-ansi-cjs/node_modules/strip-ansi

266 243

!/wrap-ansi

267 244

!/wrap-ansi/node_modules/

268 245

/wrap-ansi/node_modules/*

246 +

!/wrap-ansi/node_modules/ansi-regex

269 247

!/wrap-ansi/node_modules/emoji-regex

270 248

!/wrap-ansi/node_modules/string-width

249 +

!/wrap-ansi/node_modules/strip-ansi

271 250

!/write-file-atomic

272 251

!/yallist

273 252

# Always ignore some specific patterns within any allowed package

Original file line number Diff line number Diff 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 +

}

Original file line number Diff line number Diff line change

@@ -1,6 +1,6 @@

1 1

MIT License

2 2 3 -

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

3 +

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

4 4 5 5

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:

6 6 Original file line number Diff line number Diff line change

@@ -1,16 +1,19 @@

1 1

{

2 2

"name": "ansi-regex",

3 -

"version": "5.0.1",

3 +

"version": "6.0.1",

4 4

"description": "Regular expression for matching ANSI escape codes",

5 5

"license": "MIT",

6 6

"repository": "chalk/ansi-regex",

7 +

"funding": "https://github.com/chalk/ansi-regex?sponsor=1",

7 8

"author": {

8 9

"name": "Sindre Sorhus",

9 10

"email": "sindresorhus@gmail.com",

10 -

"url": "sindresorhus.com"

11 +

"url": "https://sindresorhus.com"

11 12

},

13 +

"type": "module",

14 +

"exports": "./index.js",

12 15

"engines": {

13 -

"node": ">=8"

16 +

"node": ">=12"

14 17

},

15 18

"scripts": {

16 19

"test": "xo && ava && tsd",

@@ -48,8 +51,8 @@

48 51

"pattern"

49 52

],

50 53

"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"

54 57

}

55 58

}

Original file line number Diff line number Diff 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 +

}

Original file line number Diff line number Diff line change

@@ -1,6 +1,6 @@

1 1

MIT License

2 2 3 -

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

3 +

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

4 4 5 5

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:

6 6 Original file line number Diff line number Diff line change

@@ -1,16 +1,19 @@

1 1

{

2 2

"name": "strip-ansi",

3 -

"version": "6.0.1",

3 +

"version": "7.1.0",

4 4

"description": "Strip ANSI escape codes from a string",

5 5

"license": "MIT",

6 6

"repository": "chalk/strip-ansi",

7 +

"funding": "https://github.com/chalk/strip-ansi?sponsor=1",

7 8

"author": {

8 9

"name": "Sindre Sorhus",

9 10

"email": "sindresorhus@gmail.com",

10 -

"url": "sindresorhus.com"

11 +

"url": "https://sindresorhus.com"

11 12

},

13 +

"type": "module",

14 +

"exports": "./index.js",

12 15

"engines": {

13 -

"node": ">=8"

16 +

"node": ">=12"

14 17

},

15 18

"scripts": {

16 19

"test": "xo && ava && tsd"

@@ -44,11 +47,11 @@

44 47

"text"

45 48

],

46 49

"dependencies": {

47 -

"ansi-regex": "^5.0.1"

50 +

"ansi-regex": "^6.0.1"

48 51

},

49 52

"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"

53 56

}

54 57

}

Original file line number Diff line number Diff line change

@@ -1,8 +1,10 @@

1 -

export default function ansiRegex({onlyFirst = false} = {}) {

1 +

'use strict';

2 + 3 +

module.exports = ({onlyFirst = false} = {}) => {

2 4

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)',

4 6

'(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'

5 7

].join('|');

6 8 7 9

return new RegExp(pattern, onlyFirst ? undefined : 'g');

8 -

}

10 +

};

Original file line number Diff line number Diff line change

@@ -1,6 +1,6 @@

1 1

MIT License

2 2 3 -

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

3 +

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

4 4 5 5

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:

6 6 Original file line number Diff line number Diff line change

@@ -1,19 +1,16 @@

1 1

{

2 2

"name": "ansi-regex",

3 -

"version": "6.0.1",

3 +

"version": "5.0.1",

4 4

"description": "Regular expression for matching ANSI escape codes",

5 5

"license": "MIT",

6 6

"repository": "chalk/ansi-regex",

7 -

"funding": "https://github.com/chalk/ansi-regex?sponsor=1",

8 7

"author": {

9 8

"name": "Sindre Sorhus",

10 9

"email": "sindresorhus@gmail.com",

11 -

"url": "https://sindresorhus.com"

10 +

"url": "sindresorhus.com"

12 11

},

13 -

"type": "module",

14 -

"exports": "./index.js",

15 12

"engines": {

16 -

"node": ">=12"

13 +

"node": ">=8"

17 14

},

18 15

"scripts": {

19 16

"test": "xo && ava && tsd",

@@ -51,8 +48,8 @@

51 48

"pattern"

52 49

],

53 50

"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"

57 54

}

58 55

}

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4