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

@scoredeck/nba

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scoredeck/nba - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

6

dist/lib/lib/nba-calendar.js

@@ -14,3 +14,5 @@ "use strict";

id: games[0],
games: games[0] !== ('startDate' || 'endDate' || 'startDateCurrentSeason') ? +games[1] : 0,
games: games[0] !== ('startDate' || 'endDate' || 'startDateCurrentSeason')
? +games[1]
: 0,
date: games[0] !== ('startDate' || 'endDate' || 'startDateCurrentSeason')

@@ -44,5 +46,5 @@ ? utils_1.fromYYYYMMDDToDate(games[0])

currentSeason.splice(currentSeasonEndIndex, currentSeason.length - currentSeasonEndIndex);
return currentSeason;
return currentSeason.filter(function (day) { return day.games !== 0; });
}
exports.createCurrentCalendar = createCurrentCalendar;
//# sourceMappingURL=nba-calendar.js.map

@@ -11,3 +11,5 @@ "use strict";

id: game.gameId,
broadcaster: game.watch.broadcast.broadcasters.national.length > 0 ? game.watch.broadcast.broadcasters.national[0].shortName : '',
broadcaster: game.watch.broadcast.broadcasters.national.length > 0
? game.watch.broadcast.broadcasters.national[0].shortName
: '',
clock: game.clock,

@@ -58,3 +60,3 @@ currentPeriod: +game.period.current,

if (!teamDetails) {
throw new Error('Couldn\'t find team');
throw new Error("Couldn't find team");
}

@@ -67,5 +69,5 @@ return {

lineScore: team.linescore.map(function (score) { return score.score; }),
record: team.win + "-" + team.loss
record: team.win + "-" + team.loss,
};
}
//# sourceMappingURL=nba-scoreboard.js.map

@@ -5,4 +5,2 @@ "use strict";

var abort_controller_1 = require("abort-controller");
var fetch_options_1 = require("config/fetch-options");
var routes_1 = require("config/routes");
var rxjs_1 = require("rxjs");

@@ -12,2 +10,4 @@ var fetch_1 = require("rxjs/fetch");

var operators_1 = require("rxjs/operators");
var fetch_options_1 = require("./config/fetch-options");
var routes_1 = require("./config/routes");
var nba_calendar_1 = require("./lib/nba-calendar");

@@ -14,0 +14,0 @@ var nba_game_1 = require("./lib/nba-game");

@@ -1,2 +0,2 @@

import { NbaLegacyInternal } from "./nba-legacy-internal";
import { NbaLegacyInternal } from './nba-legacy-internal';
export interface NbaLegacyPbp {

@@ -3,0 +3,0 @@ _internal: NbaLegacyInternal;

@@ -1,2 +0,2 @@

import { NbaLegacyInternal } from "./nba-legacy-internal";
import { NbaLegacyInternal } from './nba-legacy-internal';
export interface NbaLegacyPlayerProfile {

@@ -3,0 +3,0 @@ _internal: NbaLegacyInternal;

{
"name": "@scoredeck/nba",
"version": "1.1.0",
"version": "1.1.1",
"description": "NPM Library for getting various NBA statistics, utilizes NBA's own API while remapping them into more sane models for Node/client side consumption",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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