pacote 15.0.1 → 15.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.
- package/lib/registry.js +0 -7
- package/package.json +6 -6
package/lib/registry.js
CHANGED
|
@@ -3,7 +3,6 @@ const RemoteFetcher = require('./remote.js')
|
|
|
3
3
|
const _tarballFromResolved = Symbol.for('pacote.Fetcher._tarballFromResolved')
|
|
4
4
|
const pacoteVersion = require('../package.json').version
|
|
5
5
|
const removeTrailingSlashes = require('./util/trailing-slashes.js')
|
|
6
|
-
const npa = require('npm-package-arg')
|
|
7
6
|
const rpj = require('read-package-json-fast')
|
|
8
7
|
const pickManifest = require('npm-pick-manifest')
|
|
9
8
|
const ssri = require('ssri')
|
|
@@ -28,12 +27,6 @@ class RegistryFetcher extends Fetcher {
|
|
|
28
27
|
// already.
|
|
29
28
|
this.packumentCache = this.opts.packumentCache || null
|
|
30
29
|
|
|
31
|
-
// handle case when npm-package-arg guesses wrong.
|
|
32
|
-
if (this.spec.type === 'tag' &&
|
|
33
|
-
this.spec.rawSpec === '' &&
|
|
34
|
-
this.defaultTag !== 'latest') {
|
|
35
|
-
this.spec = npa(`${this.spec.name}@${this.defaultTag}`)
|
|
36
|
-
}
|
|
37
30
|
this.registry = fetch.pickRegistry(spec, opts)
|
|
38
31
|
this.packumentUrl = removeTrailingSlashes(this.registry) + '/' +
|
|
39
32
|
this.spec.escapedName
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pacote",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.2",
|
|
4
4
|
"description": "JavaScript package downloader",
|
|
5
5
|
"author": "GitHub Inc.",
|
|
6
6
|
"bin": {
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@npmcli/arborist": "^6.0.0 || ^6.0.0-pre.0",
|
|
29
|
-
"@npmcli/eslint-config": "^
|
|
30
|
-
"@npmcli/template-oss": "4.6.
|
|
31
|
-
"hosted-git-info": "^
|
|
29
|
+
"@npmcli/eslint-config": "^3.1.0",
|
|
30
|
+
"@npmcli/template-oss": "4.6.2",
|
|
31
|
+
"hosted-git-info": "^6.0.0",
|
|
32
32
|
"mutate-fs": "^2.1.1",
|
|
33
33
|
"nock": "^13.2.4",
|
|
34
34
|
"npm-registry-mock": "^1.3.2",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"cacache": "^17.0.0",
|
|
52
52
|
"fs-minipass": "^2.1.0",
|
|
53
53
|
"minipass": "^3.1.6",
|
|
54
|
-
"npm-package-arg": "^
|
|
54
|
+
"npm-package-arg": "^10.0.0",
|
|
55
55
|
"npm-packlist": "^7.0.0",
|
|
56
56
|
"npm-pick-manifest": "^8.0.0",
|
|
57
57
|
"npm-registry-fetch": "^14.0.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
},
|
|
72
72
|
"templateOSS": {
|
|
73
73
|
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
|
74
|
-
"version": "4.6.
|
|
74
|
+
"version": "4.6.2",
|
|
75
75
|
"windowsCI": false
|
|
76
76
|
}
|
|
77
77
|
}
|