Comparing version 3.3.0 to 3.4.0
'use strict' | ||
const EventEmitter = require('events').EventEmitter | ||
const {spawnSync} = require('child_process') | ||
const {EventEmitter} = require('events').EventEmitter | ||
const moment = require('moment-timezone') | ||
@@ -10,2 +11,11 @@ const _ = require('lodash') | ||
// I think this is always the last two items | ||
const systemTimezone = spawnSync('/bin/ls', ['-l', '/etc/localtime']) | ||
.stdout | ||
.toString() | ||
.trim() | ||
.split('/') | ||
.slice(-2) | ||
.join('/') | ||
class ScoreEmitter extends EventEmitter { | ||
@@ -19,3 +29,3 @@ constructor (options) { | ||
interval: ms('5m'), | ||
timezone: 'America/New_York', | ||
timezone: systemTimezone || 'America/New_York', | ||
dailyCutoff: 180, | ||
@@ -22,0 +32,0 @@ completed: { seriesCompleted: true }, |
@@ -141,2 +141,3 @@ 'use strict' | ||
// TODO: create test for NBA finals and NHL conf + stanley cup finals | ||
return null | ||
@@ -143,0 +144,0 @@ } |
{ | ||
"name": "scores", | ||
"description": "Track the completion of sports games from a URL.", | ||
"version": "3.3.0", | ||
"version": "3.4.0", | ||
"author": "Luke Karrys <luke@lukekarrys.com>", | ||
"bugs": { | ||
"url": "https://github.com/tweetyourbracket/scores/issues" | ||
"url": "https://github.com/bracketclub/scores/issues" | ||
}, | ||
@@ -16,3 +16,3 @@ "dependencies": { | ||
"moment-timezone": "^0.5.5", | ||
"ms": "^0.7.1", | ||
"ms": "^1.0.0", | ||
"request": "^2.74.0" | ||
@@ -24,7 +24,7 @@ }, | ||
"git-validate": "^2.1.4", | ||
"standard": "^8.0.0-beta.3", | ||
"standard": "^9.0.0", | ||
"tape": "^4.6.0", | ||
"tape-watch": "^2.1.0" | ||
}, | ||
"homepage": "http://github.com/tweetyourbracket/scores", | ||
"homepage": "https://github.com/bracketclub/scores", | ||
"keywords": [ | ||
@@ -34,3 +34,4 @@ "bracket", | ||
"scores", | ||
"tweetyourbracket" | ||
"tweetyourbracket", | ||
"bracketclub" | ||
], | ||
@@ -46,3 +47,3 @@ "license": "MIT", | ||
"type": "git", | ||
"url": "https://github.com/tweetyourbracket/scores.git" | ||
"url": "https://github.com/bracketclub/scores.git" | ||
}, | ||
@@ -49,0 +50,0 @@ "scripts": { |
@@ -8,3 +8,3 @@ scores | ||
[![Build Status](https://travis-ci.org/tweetyourbracket/scores.png?branch=master)](https://travis-ci.org/tweetyourbracket/scores) | ||
[![Build Status](https://travis-ci.org/bracketclub/scores.png?branch=master)](https://travis-ci.org/bracketclub/scores) | ||
@@ -11,0 +11,0 @@ |
@@ -23,3 +23,2 @@ 'use strict' | ||
url: `http://espn.go.com/mens-college-basketball/scoreboard/_/date/${program.date}`, | ||
timezone: 'America/New_York', | ||
dailyCutoff: 180, | ||
@@ -26,0 +25,0 @@ parse: { |
@@ -93,2 +93,1 @@ 'use strict' | ||
}) | ||
@@ -94,2 +94,1 @@ 'use strict' | ||
}) | ||
@@ -59,2 +59,1 @@ 'use strict' | ||
}) | ||
@@ -43,2 +43,1 @@ /* eslint no-magic-numbers:0 */ | ||
}) | ||
@@ -39,2 +39,1 @@ /* eslint no-magic-numbers:0 */ | ||
}) | ||
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
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
4961586
29
857
1
+ Addedms@1.0.0(transitive)
+ Addedpsl@1.14.0(transitive)
- Removedms@0.7.3(transitive)
- Removedpsl@1.13.0(transitive)
Updatedms@^1.0.0