Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGar <gar+gh@danger.computer>2022-04-05 19:51:49 +0300
committerGar <wraithgar@github.com>2022-04-07 00:29:40 +0300
commitf86f1af636f39d7d30a97873bbb6652416f68013 (patch)
treecf40c8ef32339090ed23eaf675e3852b8e7a0ee7 /node_modules
parent1a90b9e9ebe98cce83591e11312aaf41c830f835 (diff)
deps: @npmcli/disparity-colors@2.0.0
Diffstat (limited to 'node_modules')
-rw-r--r--node_modules/@npmcli/disparity-colors/lib/index.js (renamed from node_modules/@npmcli/disparity-colors/index.js)6
-rw-r--r--node_modules/@npmcli/disparity-colors/package.json37
2 files changed, 26 insertions, 17 deletions
diff --git a/node_modules/@npmcli/disparity-colors/index.js b/node_modules/@npmcli/disparity-colors/lib/index.js
index a02b8f884..3d2aa56be 100644
--- a/node_modules/@npmcli/disparity-colors/index.js
+++ b/node_modules/@npmcli/disparity-colors/lib/index.js
@@ -4,7 +4,7 @@ const colors = {
removed: ansi.red,
added: ansi.green,
header: ansi.yellow,
- section: ansi.magenta
+ section: ansi.magenta,
}
function colorize (str, opts) {
@@ -13,10 +13,10 @@ function colorize (str, opts) {
headerLength = 2
}
- const color = (str, colorId) => {
+ const color = (colorStr, colorId) => {
const { open, close } = colors[colorId]
// avoid highlighting the "\n" (would highlight till the end of the line)
- return str.replace(/[^\n\r]+/g, open + '$&' + close)
+ return colorStr.replace(/[^\n\r]+/g, open + '$&' + close)
}
// this RegExp will include all the `\n` chars into the lines, easier to join
diff --git a/node_modules/@npmcli/disparity-colors/package.json b/node_modules/@npmcli/disparity-colors/package.json
index 3f389a42c..2b45920a7 100644
--- a/node_modules/@npmcli/disparity-colors/package.json
+++ b/node_modules/@npmcli/disparity-colors/package.json
@@ -1,14 +1,19 @@
{
"name": "@npmcli/disparity-colors",
- "version": "1.0.1",
+ "version": "2.0.0",
+ "main": "lib/index.js",
"files": [
- "index.js"
+ "bin/",
+ "lib/"
],
"engines": {
- "node": ">=10"
+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
},
"description": "Colorizes unified diff output",
- "repository": "https://github.com/npm/disparity-colors",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/npm/disparity-colors.git"
+ },
"keywords": [
"disparity",
"npm",
@@ -24,7 +29,7 @@
"cli",
"tty"
],
- "author": "npm Inc. <support@npmjs.com>",
+ "author": "GitHub Inc.",
"contributors": [
{
"name": "Ruy Adorno",
@@ -34,27 +39,31 @@
],
"license": "ISC",
"scripts": {
- "lint": "standard index.js",
+ "lint": "eslint \"**/*.js\"",
"pretest": "npm run lint",
"test": "tap",
"snap": "tap",
"preversion": "npm test",
"postversion": "npm publish",
- "prepublishOnly": "git push origin --follow-tags"
+ "prepublishOnly": "git push origin --follow-tags",
+ "postlint": "template-oss-check",
+ "template-oss-apply": "template-oss-apply --force",
+ "lintfix": "npm run lint -- --fix",
+ "posttest": "npm run lint"
},
"tap": {
"check-coverage": true
},
- "standard": {
- "ignore": [
- "/tap-snapshots/"
- ]
- },
"devDependencies": {
- "standard": "^16.0.3",
- "tap": "^14.11.0"
+ "@npmcli/eslint-config": "^3.0.1",
+ "@npmcli/template-oss": "3.2.2",
+ "tap": "^16.0.1"
},
"dependencies": {
"ansi-styles": "^4.3.0"
+ },
+ "templateOSS": {
+ "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
+ "version": "3.2.2"
}
}