Comparing version 1.0.7 to 1.0.8
{ | ||
"name": "scores", | ||
"description": "Track the completion of sports games from a URL.", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"author": "Nick Crohn", | ||
@@ -17,20 +17,21 @@ "bugs": { | ||
"dependencies": { | ||
"bucker": "~1.0.5", | ||
"cheerio": "~0.13.1", | ||
"lodash": "~2.4.1", | ||
"moment": "~2.5.1", | ||
"moment-timezone": "0.0.3", | ||
"request": "~2.33.0" | ||
"bucker": "^1.0.11", | ||
"cheerio": "^0.18.0", | ||
"lodash": "^3.3.1", | ||
"moment": "^2.9.0", | ||
"moment-timezone": "^0.3.0", | ||
"request": "^2.53.0" | ||
}, | ||
"devDependencies": { | ||
"commander": "~2.1.0", | ||
"mocha": "~1.17.1", | ||
"precommit-hook": "~0.3.10" | ||
"commander": "^2.6.0", | ||
"jshint": "^2.6.0", | ||
"mocha": "^2.1.0", | ||
"precommit-hook": "^1.0.7" | ||
}, | ||
"homepage": "http://github.com/tweetyourbracket/scores", | ||
"keywords": [ | ||
"bracket", | ||
"ncaa", | ||
"bracket", | ||
"tweetyourbracket", | ||
"scores" | ||
"scores", | ||
"tweetyourbracket" | ||
], | ||
@@ -48,2 +49,2 @@ "license": "MIT", | ||
} | ||
} | ||
} |
@@ -213,2 +213,38 @@ var assert = require('assert'); | ||
// Using play-in games since that is all that is available when im testing | ||
it('Should work for completed games in 2015', function (done) { | ||
var s = new ScoreTracker({ | ||
timezone: timezone, | ||
interval: interval, | ||
maxInterval: maxInterval, | ||
dailyCutoff: dailyCutoff, | ||
ignoreInitial: false | ||
}); | ||
var games = []; | ||
s.on('game', function (game) { | ||
games.push([game.region, game.visitor.name, game.visitor.seed, game.visitor.isWinner].join(' ')); | ||
if (games.length === 2) { | ||
assert.equal(games[0], 'SOUTH Robert Morris 16 true'); | ||
assert.equal(games[1], 'EAST Dayton 11 true'); | ||
done(); | ||
} | ||
}); | ||
s.parse(fs.readFileSync('./test/data/play-in-complete-2015.html')); | ||
}); | ||
it('Should work for not yet played games in 2015 first round', function () { | ||
var now = moment().tz('America/New_York').hours(7).minutes(0).seconds(0).milliseconds(0); | ||
var s = new ScoreTracker({ | ||
timezone: timezone, | ||
interval: interval, | ||
maxInterval: maxInterval, | ||
dailyCutoff: dailyCutoff, | ||
__now: now.clone() | ||
}); | ||
s.parse(fs.readFileSync('./test/data/round-one-start-2015.html')); | ||
var next = now.clone().tz('America/New_York').add(s.currentInterval, 'ms').format(format); | ||
var expected = now.clone().tz('America/New_York').hours(12).minutes(15).seconds(0).milliseconds(0).format(format); | ||
assert.equal(next, expected); | ||
}); | ||
}); |
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
1097796
18
456
4
+ Addedajv@6.12.6(transitive)
+ Addedasn1@0.2.6(transitive)
+ Addedassert-plus@1.0.0(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedaws-sign2@0.7.0(transitive)
+ Addedaws4@1.13.2(transitive)
+ Addedbcrypt-pbkdf@1.0.2(transitive)
+ Addedbucker@1.1.1(transitive)
+ Addedcaseless@0.12.0(transitive)
+ Addedcheerio@0.18.0(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addedcore-util-is@1.0.2(transitive)
+ Addeddashdash@1.14.1(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addeddom-serializer@0.0.1(transitive)
+ Addeddomelementtype@1.1.3(transitive)
+ Addeddomhandler@2.3.0(transitive)
+ Addeddomutils@1.5.1(transitive)
+ Addedecc-jsbn@0.1.2(transitive)
+ Addedentities@1.0.01.1.2(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedextsprintf@1.3.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedforever-agent@0.6.1(transitive)
+ Addedform-data@2.3.3(transitive)
+ Addedgetpass@0.1.7(transitive)
+ Addedhar-schema@2.0.0(transitive)
+ Addedhar-validator@5.1.5(transitive)
+ Addedhtmlparser2@3.8.3(transitive)
+ Addedhttp-signature@1.2.0(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedisstream@0.1.2(transitive)
+ Addedjsbn@0.1.1(transitive)
+ Addedjson-schema@0.4.0(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedjsprim@1.4.2(transitive)
+ Addedlodash@3.10.1(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedmoment@2.30.1(transitive)
+ Addedmoment-timezone@0.3.1(transitive)
+ Addedoauth-sign@0.9.0(transitive)
+ Addedperformance-now@2.1.0(transitive)
+ Addedpsl@1.13.0(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedqs@6.5.3(transitive)
+ Addedrequest@2.88.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsshpk@1.18.0(transitive)
+ Addedtough-cookie@2.5.0(transitive)
+ Addedtunnel-agent@0.6.0(transitive)
+ Addedtweetnacl@0.14.5(transitive)
+ Addedunderscore@1.13.7(transitive)
+ Addeduri-js@4.4.1(transitive)
+ Addeduuid@3.4.0(transitive)
+ Addedverror@1.10.0(transitive)
- Removedasn1@0.1.11(transitive)
- Removedassert-plus@0.1.5(transitive)
- Removedasync@0.9.2(transitive)
- Removedaws-sign2@0.5.0(transitive)
- Removedboom@0.4.2(transitive)
- Removedbucker@1.0.11(transitive)
- Removedcheerio@0.13.1(transitive)
- Removedcombined-stream@0.0.7(transitive)
- Removedcryptiles@0.2.2(transitive)
- Removedctype@0.5.3(transitive)
- Removeddelayed-stream@0.0.5(transitive)
- Removeddomelementtype@1.3.1(transitive)
- Removeddomhandler@2.2.1(transitive)
- Removeddomutils@1.3.0(transitive)
- Removedentities@0.5.0(transitive)
- Removedforever-agent@0.5.2(transitive)
- Removedform-data@0.1.4(transitive)
- Removedhawk@1.0.0(transitive)
- Removedhoek@0.9.1(transitive)
- Removedhtmlparser2@3.4.0(transitive)
- Removedhttp-signature@0.10.1(transitive)
- Removedmoment@2.5.1(transitive)
- Removedmoment-timezone@0.0.3(transitive)
- Removednode-uuid@1.4.8(transitive)
- Removedoauth-sign@0.3.0(transitive)
- Removedqs@0.6.6(transitive)
- Removedrequest@2.33.0(transitive)
- Removedsntp@0.2.4(transitive)
- Removedtldts@6.1.64(transitive)
- Removedtldts-core@6.1.64(transitive)
- Removedtough-cookie@5.0.0(transitive)
- Removedtunnel-agent@0.3.0(transitive)
- Removedunderscore@1.5.2(transitive)
Updatedbucker@^1.0.11
Updatedcheerio@^0.18.0
Updatedlodash@^3.3.1
Updatedmoment@^2.9.0
Updatedmoment-timezone@^0.3.0
Updatedrequest@^2.53.0