npm-git-info
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -0,1 +1,5 @@ | ||
# [v1.0.3](https://github.com/tricknotes/npm-git-info/tree/v1.0.3) | ||
* Correct version detection if package is type range ([#3](https://github.com/tricknotes/npm-git-info/pull/3)) | ||
# [v1.0.2](https://github.com/tricknotes/npm-git-info/tree/v1.0.2) | ||
@@ -2,0 +6,0 @@ |
@@ -32,2 +32,3 @@ var proto = { | ||
case 'range': | ||
case 'tag': | ||
@@ -34,0 +35,0 @@ case 'npm2': |
{ | ||
"name": "npm-git-info", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Retrieves git information from package that installed as NPM package.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -116,2 +116,18 @@ var expect = require('expect.js'); | ||
}); | ||
it('should detect info from NPM installed package with a range', function() { | ||
// this tests the result of: npm install ember-data@^2.4.3 | ||
var subject = info(fixture('range.json')); | ||
expect(subject).to.eql({ | ||
name: 'ember-data', | ||
version: '2.4.3', | ||
sha: 'a3e2521f85c91f18dd455f316572068566ff1a3b', | ||
abbreviatedSha: 'a3e2521f85', | ||
ref: '2.4.3' | ||
}); | ||
expect(subject.isInstalledAsNpmPackage()).to.be(true); | ||
expect(subject.hasVersionInRef()).to.be(true); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58300
15
1289
63806