Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRebecca Turner <me@re-becca.org>2017-05-10 01:00:23 +0300
committerRebecca Turner <me@re-becca.org>2017-05-26 04:55:06 +0300
commitfd3089888e02728bd5fb9e98eb1bfa1cf46fc35e (patch)
tree045b6af4105d97b73b4ef6bd10a4a2370f05611a /node_modules
parent4baece440b55a981f716fbb1d19e9be13af2520f (diff)
pacote@2.7.9
Diffstat (limited to 'node_modules')
-rw-r--r--node_modules/pacote/CHANGELOG.md10
-rw-r--r--node_modules/pacote/lib/fetchers/git.js4
-rw-r--r--node_modules/pacote/package.json17
3 files changed, 19 insertions, 12 deletions
diff --git a/node_modules/pacote/CHANGELOG.md b/node_modules/pacote/CHANGELOG.md
index d717611fa..24c962687 100644
--- a/node_modules/pacote/CHANGELOG.md
+++ b/node_modules/pacote/CHANGELOG.md
@@ -2,6 +2,16 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
+<a name="2.7.9"></a>
+## [2.7.9](https://github.com/zkat/pacote/compare/v2.7.8...v2.7.9) (2017-05-09)
+
+
+### Bug Fixes
+
+* **git:** Resolve to ref git specs w/o committishes (#88) ([cb885f5](https://github.com/zkat/pacote/commit/cb885f5)), closes [#88](https://github.com/zkat/pacote/issues/88)
+
+
+
<a name="2.7.8"></a>
## [2.7.8](https://github.com/zkat/pacote/compare/v2.7.7...v2.7.8) (2017-05-07)
diff --git a/node_modules/pacote/lib/fetchers/git.js b/node_modules/pacote/lib/fetchers/git.js
index a2d7000ea..d8af76936 100644
--- a/node_modules/pacote/lib/fetchers/git.js
+++ b/node_modules/pacote/lib/fetchers/git.js
@@ -107,7 +107,7 @@ function plainManifest (repo, spec, opts) {
repo, rawRef, spec.name, opts
).then(ref => {
if (ref) {
- const resolved = spec.saveSpec.replace(/#.*/, `#${ref.sha}`)
+ const resolved = spec.saveSpec.replace(/(?:#.*)?$/, `#${ref.sha}`)
return {
_repo: repo,
_resolved: resolved,
@@ -121,7 +121,7 @@ function plainManifest (repo, spec, opts) {
//
// If we're confident enough that `rawRef` is a commit SHA,
// then we can at least get `finalize-manifest` to cache its result.
- const resolved = spec.saveSpec.replace(/#.*/, `#${rawRef}`)
+ const resolved = spec.saveSpec.replace(/(?:#.*)?$/, `#${rawRef}`)
return {
_repo: repo,
_rawRef: rawRef,
diff --git a/node_modules/pacote/package.json b/node_modules/pacote/package.json
index b4cf2a1ff..283fc8f5c 100644
--- a/node_modules/pacote/package.json
+++ b/node_modules/pacote/package.json
@@ -1,7 +1,8 @@
{
"_from": "pacote@latest",
- "_id": "pacote@2.7.8",
- "_integrity": "sha512-sIclvGmEKaqRZTEtm+isrs+pAMcASH/aceGzphGuDvVUSYLQ+48du2Wg0SJltfPMtabsYPRIgUf6/QaPUXbjcA==",
+ "_id": "pacote@2.7.9",
+ "_inBundle": false,
+ "_integrity": "sha512-kAcvLbHgpr5dJil6r8CuRzXZZT0qC3U4Nia0tPRP1ggX1qEkNZXArHco4pn1ARJw/qXuuoR/tMA+nqz7j1knyQ==",
"_location": "/pacote",
"_phantomChildren": {
"cacache": "9.0.0",
@@ -30,16 +31,14 @@
"#USER",
"/"
],
- "_resolved": "https://registry.npmjs.org/pacote/-/pacote-2.7.8.tgz",
- "_shasum": "91cd317ea54b2fd990c9dc00d79c5eeb1f487005",
- "_shrinkwrap": null,
+ "_resolved": "https://registry.npmjs.org/pacote/-/pacote-2.7.9.tgz",
+ "_shasum": "bdc5414e1c18f4a4b80ef6c99ed2734d1378854a",
"_spec": "pacote@latest",
- "_where": "/Users/zkat/Documents/code/npm",
+ "_where": "/Users/rebecca/code/npm",
"author": {
"name": "Kat Marchán",
"email": "kzm@sykosomatic.org"
},
- "bin": null,
"bugs": {
"url": "https://github.com/zkat/pacote/issues"
},
@@ -106,8 +105,6 @@
"license": "CC0-1.0",
"main": "index.js",
"name": "pacote",
- "optionalDependencies": {},
- "peerDependencies": {},
"repository": {
"type": "git",
"url": "git+https://github.com/zkat/pacote.git"
@@ -122,5 +119,5 @@
"update-coc": "weallbehave -o . && git add CODE_OF_CONDUCT.md && git commit -m 'docs(coc): updated CODE_OF_CONDUCT.md'",
"update-contrib": "weallcontribute -o . && git add CONTRIBUTING.md && git commit -m 'docs(contributing): updated CONTRIBUTING.md'"
},
- "version": "2.7.8"
+ "version": "2.7.9"
}