pacote 13.0.2 → 13.0.5

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/git.js +7 -2
  2. package/package.json +8 -8
package/lib/git.js CHANGED
@@ -38,6 +38,13 @@ const addGitPlus = url => url && `git+${url}`.replace(/^(git\+)+/, 'git+')
38
38
  class GitFetcher extends Fetcher {
39
39
  constructor (spec, opts) {
40
40
  super(spec, opts)
41
+
42
+ // we never want to compare integrity for git dependencies: npm/rfcs#525
43
+ if (this.opts.integrity) {
44
+ delete this.opts.integrity
45
+ log.warn(`skipping integrity check for git dependency ${this.spec.fetchSpec}`)
46
+ }
47
+
41
48
  this.resolvedRef = null
42
49
  if (this.spec.hosted) {
43
50
  this.from = this.spec.hosted.shortcut({ noCommittish: false })
@@ -194,7 +201,6 @@ class GitFetcher extends Fetcher {
194
201
  [_tarballFromResolved] () {
195
202
  const stream = new Minipass()
196
203
  stream.resolved = this.resolved
197
- stream.integrity = this.integrity
198
204
  stream.from = this.from
199
205
 
200
206
  // check it out and then shell out to the DirFetcher tarball packer
@@ -304,7 +310,6 @@ class GitFetcher extends Fetcher {
304
310
  this[_readPackageJson](dir + '/package.json')
305
311
  .then(mani => this.package = {
306
312
  ...mani,
307
- _integrity: this.integrity && String(this.integrity),
308
313
  _resolved: this.resolved,
309
314
  _from: this.from,
310
315
  }))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pacote",
3
- "version": "13.0.2",
3
+ "version": "13.0.5",
4
4
  "description": "JavaScript package downloader",
5
5
  "author": "GitHub Inc.",
6
6
  "bin": {
@@ -25,7 +25,7 @@
25
25
  "coverage-map": "map.js"
26
26
  },
27
27
  "devDependencies": {
28
- "@npmcli/template-oss": "^2.7.1",
28
+ "@npmcli/template-oss": "^2.9.2",
29
29
  "mutate-fs": "^2.1.1",
30
30
  "npm-registry-mock": "^1.3.1",
31
31
  "tap": "^15.1.6"
@@ -43,20 +43,20 @@
43
43
  "@npmcli/git": "^3.0.0",
44
44
  "@npmcli/installed-package-contents": "^1.0.7",
45
45
  "@npmcli/promise-spawn": "^1.2.0",
46
- "@npmcli/run-script": "^2.0.0",
47
- "cacache": "^15.3.0",
46
+ "@npmcli/run-script": "^3.0.1",
47
+ "cacache": "^16.0.0",
48
48
  "chownr": "^2.0.0",
49
49
  "fs-minipass": "^2.1.0",
50
50
  "infer-owner": "^1.0.4",
51
51
  "minipass": "^3.1.6",
52
52
  "mkdirp": "^1.0.4",
53
53
  "npm-package-arg": "^9.0.0",
54
- "npm-packlist": "^3.0.0",
54
+ "npm-packlist": "^4.0.0",
55
55
  "npm-pick-manifest": "^7.0.0",
56
- "npm-registry-fetch": "^13.0.0",
56
+ "npm-registry-fetch": "^13.0.1",
57
57
  "proc-log": "^2.0.0",
58
58
  "promise-retry": "^2.0.1",
59
- "read-package-json": "^4.1.1",
59
+ "read-package-json": "^5.0.0",
60
60
  "read-package-json-fast": "^2.0.3",
61
61
  "rimraf": "^3.0.2",
62
62
  "ssri": "^8.0.1",
@@ -67,7 +67,7 @@
67
67
  },
68
68
  "repository": "git@github.com:npm/pacote",
69
69
  "templateOSS": {
70
- "version": "2.7.1",
70
+ "version": "2.9.2",
71
71
  "windowsCI": false
72
72
  }
73
73
  }