Skip to content
Browse files

support upcoming features that are in github but not yet in npm.

  • Loading branch information...
1 parent ec600d9 commit 5b2258b082d91b127935ab9bf422861a351d2fe2 @dylang committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/npm.js
View
4 lib/npm.js
@@ -66,6 +66,10 @@ function changelog(packageName, cb) {
function(err, data) {
var i;
if (data && data.changes) {
+ if (data.changes[0].date > Versions[0].date) {
+ Versions.unshift({ version: 'Upcoming', date: data.changes[0].date});
+ }
+
data.changes.forEach(function(change){
//log('change', change);
if (change) {

0 comments on commit 5b2258b

Please sign in to comment.
Something went wrong with that request. Please try again.