Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

scores

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scores - npm Package Compare versions

Comparing version 3.3.0 to 3.4.0

14

lib/emitter.js
'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 @@ }

15

package.json
{
"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 */

})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc