libnpmdiff 4.0.5 → 5.0.0-pre.1

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 (2) hide show
  1. package/lib/tarball.js +5 -1
  2. package/package.json +15 -10
package/lib/tarball.js CHANGED
@@ -1,5 +1,6 @@
1
1
  const { relative } = require('path')
2
2
 
3
+ const Arborist = require('@npmcli/arborist')
3
4
  const npa = require('npm-package-arg')
4
5
  const pkgContents = require('@npmcli/installed-package-contents')
5
6
  const pacote = require('pacote')
@@ -28,7 +29,10 @@ const tarball = (manifest, opts) => {
28
29
  return nodeModulesTarball(manifest, opts)
29
30
  }
30
31
 
31
- return pacote.tarball(manifest._resolved, opts)
32
+ return pacote.tarball(manifest._resolved, {
33
+ ...opts,
34
+ Arborist,
35
+ })
32
36
  }
33
37
 
34
38
  module.exports = tarball
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libnpmdiff",
3
- "version": "4.0.5",
3
+ "version": "5.0.0-pre.1",
4
4
  "description": "The registry diff",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,7 +13,7 @@
13
13
  "lib/"
14
14
  ],
15
15
  "engines": {
16
- "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
16
+ "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
17
17
  },
18
18
  "keywords": [
19
19
  "npm",
@@ -34,33 +34,38 @@
34
34
  "scripts": {
35
35
  "eslint": "eslint",
36
36
  "lint": "eslint \"**/*.js\"",
37
- "lintfix": "npm run lint -- --fix",
37
+ "lintfix": "node ../.. run lint -- --fix",
38
38
  "test": "tap",
39
- "posttest": "npm run lint",
39
+ "posttest": "node ../.. run lint",
40
40
  "snap": "tap",
41
- "preversion": "npm test",
42
- "postversion": "npm publish",
43
- "prepublishOnly": "git push origin --follow-tags",
44
41
  "postlint": "template-oss-check",
45
42
  "template-oss-apply": "template-oss-apply --force"
46
43
  },
47
44
  "devDependencies": {
48
45
  "@npmcli/eslint-config": "^3.1.0",
49
- "@npmcli/template-oss": "3.8.0",
46
+ "@npmcli/template-oss": "4.4.1",
50
47
  "tap": "^16.0.1"
51
48
  },
52
49
  "dependencies": {
50
+ "@npmcli/arborist": "^6.0.0-pre.3",
53
51
  "@npmcli/disparity-colors": "^2.0.0",
54
52
  "@npmcli/installed-package-contents": "^1.0.7",
55
53
  "binary-extensions": "^2.2.0",
56
54
  "diff": "^5.1.0",
57
55
  "minimatch": "^5.0.1",
58
56
  "npm-package-arg": "^9.0.1",
59
- "pacote": "^13.6.1",
57
+ "pacote": "^14.0.0-pre.3",
60
58
  "tar": "^6.1.0"
61
59
  },
62
60
  "templateOSS": {
63
61
  "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
64
- "version": "3.8.0"
62
+ "version": "4.4.1",
63
+ "content": "../../scripts/template-oss/index.js"
64
+ },
65
+ "tap": {
66
+ "nyc-arg": [
67
+ "--exclude",
68
+ "tap-snapshots/**"
69
+ ]
65
70
  }
66
71
  }