libnpmdiff 4.0.0 → 4.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,9 +2,7 @@
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/libnpmdiff.svg)](https://npm.im/libnpmdiff)
4
4
  [![license](https://img.shields.io/npm/l/libnpmdiff.svg)](https://npm.im/libnpmdiff)
5
- [![GitHub Actions](https://github.com/npm/libnpmdiff/workflows/node-ci/badge.svg)](https://github.com/npm/libnpmdiff/actions?query=workflow%3Anode-ci)
6
- [![Coverage Status](https://coveralls.io/repos/github/npm/libnpmdiff/badge.svg?branch=main)](https://coveralls.io/github/npm/libnpmdiff?branch=main)
7
-
5
+ [![CI - libnpmdiff](https://github.com/npm/cli/actions/workflows/ci-libnpmdiff.yml/badge.svg)](https://github.com/npm/cli/actions/workflows/ci-libnpmdiff.yml)
8
6
  The registry diff lib.
9
7
 
10
8
  ## Table of Contents
@@ -14,7 +14,7 @@ const shouldPrintPatch = (path, opts = {}) => {
14
14
  filename.startsWith('.')
15
15
  ? filename
16
16
  : extname(filename)
17
- ).substr(1)
17
+ ).slice(1)
18
18
 
19
19
  return !binaryExtensions.includes(extension)
20
20
  }
package/package.json CHANGED
@@ -1,15 +1,19 @@
1
1
  {
2
2
  "name": "libnpmdiff",
3
- "version": "4.0.0",
3
+ "version": "4.0.3",
4
4
  "description": "The registry diff",
5
- "repository": "https://github.com/npm/libnpmdiff",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/npm/cli.git",
8
+ "directory": "workspaces/libnpmdiff"
9
+ },
6
10
  "main": "lib/index.js",
7
11
  "files": [
8
- "bin",
9
- "lib"
12
+ "bin/",
13
+ "lib/"
10
14
  ],
11
15
  "engines": {
12
- "node": "^12.13.0 || ^14.15.0 || >=16"
16
+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
13
17
  },
14
18
  "keywords": [
15
19
  "npm",
@@ -29,7 +33,7 @@
29
33
  "license": "ISC",
30
34
  "scripts": {
31
35
  "eslint": "eslint",
32
- "lint": "eslint '**/*.js'",
36
+ "lint": "eslint \"**/*.js\"",
33
37
  "lintfix": "npm run lint -- --fix",
34
38
  "test": "tap",
35
39
  "posttest": "npm run lint",
@@ -37,27 +41,29 @@
37
41
  "preversion": "npm test",
38
42
  "postversion": "npm publish",
39
43
  "prepublishOnly": "git push origin --follow-tags",
40
- "postlint": "npm-template-check"
44
+ "postlint": "template-oss-check",
45
+ "template-oss-apply": "template-oss-apply --force"
41
46
  },
42
47
  "tap": {
43
48
  "check-coverage": true
44
49
  },
45
50
  "devDependencies": {
46
- "@npmcli/template-oss": "^2.4.2",
47
- "eslint": "^8.1.0",
48
- "tap": "^15.0.9"
51
+ "@npmcli/eslint-config": "^3.0.1",
52
+ "@npmcli/template-oss": "3.3.2",
53
+ "tap": "^16.0.1"
49
54
  },
50
55
  "dependencies": {
51
- "@npmcli/disparity-colors": "^1.0.1",
56
+ "@npmcli/disparity-colors": "^2.0.0",
52
57
  "@npmcli/installed-package-contents": "^1.0.7",
53
58
  "binary-extensions": "^2.2.0",
54
59
  "diff": "^5.0.0",
55
- "minimatch": "^3.0.4",
56
- "npm-package-arg": "^9.0.0",
57
- "pacote": "^13.0.2",
60
+ "minimatch": "^5.0.1",
61
+ "npm-package-arg": "^9.0.1",
62
+ "pacote": "^13.0.5",
58
63
  "tar": "^6.1.0"
59
64
  },
60
65
  "templateOSS": {
61
- "version": "2.4.3"
66
+ "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
67
+ "version": "3.3.2"
62
68
  }
63
69
  }