Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

URL in dependency

  • Loading branch information...
commit cd334491ad08b59f023a1bce7ae6dbea5f6cefa9 1 parent f680f7b
@cadorn cadorn authored
Showing with 10 additions and 4 deletions.
  1. +10 −4 lib/commands/status.js
View
14 lib/commands/status.js
@@ -233,11 +233,13 @@ command.action(function (options) {
summary.push("\0green([private]\0)");
} else
if (npmInfo.published) {
-
+
if (gitInfo.type !== false && !gitInfo.tagged && context.circular !== true) {
- summary.push("\0magenta( -(" + gitInfo.rev + ")>\0)");
+ if (!npmInfo.versionSelector || npmInfo.versionSelector.indexOf(gitInfo.rev) === -1) {
+ summary.push("\0magenta( -(" + gitInfo.rev + ")>\0)");
+ }
}
-
+
var redColor = "red";
if (!npmInfo.versionSelector && (pkgInfo[1].indexOf("mappings") >= 0 || pkgInfo[1].indexOf("devMappings") >= 0)) {
npmInfo.versionSelector = "<-";
@@ -258,10 +260,14 @@ command.action(function (options) {
summary.push("\0magenta([npm: " + npmInfo.latestVersion + "]\0)");
}
} else if (npmInfo.versionSelector) {
+ if (npmInfo.versionSelector.indexOf(gitInfo.rev) >=0) {
+ summary.push("\0green([npm: " + npmInfo.versionSelector + "]\0)");
+ } else
if (npmInfo.usingLatest) {
ok = (redColor==="red")?false:ok;
summary.push("\0" + redColor + "([npm(" + npmInfo.versionSelector + "): \0bold(" + npmInfo.latestSatisfyingVersion + "\0)]\0)");
- } else if (npmInfo.latestSatisfyingVersion != npmInfo.latestVersion) {
+ } else
+ if (npmInfo.latestSatisfyingVersion != npmInfo.latestVersion) {
ok = (redColor==="red")?false:ok;
summary.push("\0" + redColor + "([npm(" + npmInfo.versionSelector + "): \0bold(" + npmInfo.latestSatisfyingVersion + "\0) \0magenta(new " + npmInfo.latestVersion + "\0)]\0)");
} else
Please sign in to comment.
Something went wrong with that request. Please try again.