libnpmfund 2.0.2 → 3.0.2

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.
Files changed (3) hide show
  1. package/README.md +1 -2
  2. package/lib/index.js +2 -2
  3. package/package.json +18 -10
package/README.md CHANGED
@@ -2,8 +2,7 @@
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/libnpmfund.svg)](https://npm.im/libnpmfund)
4
4
  [![license](https://img.shields.io/npm/l/libnpmfund.svg)](https://npm.im/libnpmfund)
5
- [![GitHub Actions](https://github.com/npm/libnpmfund/workflows/node-ci/badge.svg)](https://github.com/npm/libnpmfund/actions?query=workflow%3Anode-ci)
6
- [![Coverage Status](https://coveralls.io/repos/github/npm/libnpmfund/badge.svg?branch=master)](https://coveralls.io/github/npm/libnpmfund?branch=master)
5
+ [![CI - libnpmfund](https://github.com/npm/cli/actions/workflows/ci-libnpmfund.yml/badge.svg)](https://github.com/npm/cli/actions/workflows/ci-libnpmfund.yml)
7
6
 
8
7
  [`libnpmfund`](https://github.com/npm/libnpmfund) is a Node.js library for
9
8
  retrieving **funding** information for packages installed using
package/lib/index.js CHANGED
@@ -91,8 +91,8 @@ function readTree (tree, opts) {
91
91
  }
92
92
  }
93
93
 
94
- function getFundingDependencies (tree) {
95
- const edges = tree && tree.edgesOut && tree.edgesOut.values()
94
+ function getFundingDependencies (t) {
95
+ const edges = t && t.edgesOut && t.edgesOut.values()
96
96
  if (!edges) {
97
97
  return empty()
98
98
  }
package/package.json CHANGED
@@ -1,13 +1,17 @@
1
1
  {
2
2
  "name": "libnpmfund",
3
- "version": "2.0.2",
3
+ "version": "3.0.2",
4
4
  "main": "lib/index.js",
5
5
  "files": [
6
- "bin",
7
- "lib"
6
+ "bin/",
7
+ "lib/"
8
8
  ],
9
9
  "description": "Programmatic API for npm fund",
10
- "repository": "https://github.com/npm/libnpmfund",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/npm/cli.git",
13
+ "directory": "workspaces/libnpmfund"
14
+ },
11
15
  "keywords": [
12
16
  "npm",
13
17
  "npmcli",
@@ -28,7 +32,7 @@
28
32
  "license": "ISC",
29
33
  "scripts": {
30
34
  "eslint": "eslint",
31
- "lint": "eslint '**/*.js'",
35
+ "lint": "eslint \"**/*.js\"",
32
36
  "lintfix": "npm run lint -- --fix",
33
37
  "posttest": "npm run lint",
34
38
  "test": "tap",
@@ -36,21 +40,25 @@
36
40
  "preversion": "npm test",
37
41
  "postversion": "npm publish",
38
42
  "prepublishOnly": "git push origin --follow-tags",
39
- "postlint": "npm-template-check"
43
+ "postlint": "template-oss-check",
44
+ "template-oss-apply": "template-oss-apply --force"
40
45
  },
41
46
  "tap": {
42
47
  "check-coverage": true
43
48
  },
44
49
  "devDependencies": {
45
- "tap": "^15.0.9"
50
+ "@npmcli/eslint-config": "^3.0.1",
51
+ "@npmcli/template-oss": "3.3.2",
52
+ "tap": "^16.0.1"
46
53
  },
47
54
  "dependencies": {
48
- "@npmcli/arborist": "^4.0.0"
55
+ "@npmcli/arborist": "^5.0.0"
49
56
  },
50
57
  "engines": {
51
- "node": "^12.13.0 || ^14.15.0 || >=16"
58
+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
52
59
  },
53
60
  "templateOSS": {
54
- "version": "2.4.1"
61
+ "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
62
+ "version": "3.3.2"
55
63
  }
56
64
  }