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

epl-fixtures

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

epl-fixtures - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

5

package.json
{
"name": "epl-fixtures",
"version": "1.0.1",
"version": "1.1.0",
"description": "Fixtures for Premier League clubs",

@@ -49,4 +49,5 @@ "main": "src/fixtures.js",

"cheerio": "^0.20.0",
"got": "^6.3.0"
"got": "^6.3.0",
"moment": "^2.12.0"
}
}

4

src/htmlParser.js

@@ -5,2 +5,3 @@ 'use strict';

const trim = require('./trim');
const moment = require('moment');

@@ -47,4 +48,5 @@ module.exports = function (html, callback) {

const location = trim($(this).find('td.location').text());
const userLocaleTime = moment(time + ' UTC +01:00', 'HH:mm ZZ').format('HH:mm');
matches.push({time, clubs, location, date, competition});
matches.push({time, clubs, location, date, competition, userLocaleTime});
}

@@ -51,0 +53,0 @@ });

@@ -54,3 +54,3 @@ 'use strict';

it('contains time, clubs, location, date and competition', function () {
it('contains time, clubs, location, date and competition, userLocaleTime', function () {
expect(allClubsFixtures[0]).to.have.property('time');

@@ -61,2 +61,3 @@ expect(allClubsFixtures[0]).to.have.property('clubs');

expect(allClubsFixtures[0]).to.have.property('competition');
expect(allClubsFixtures[0]).to.have.property('userLocaleTime');
});

@@ -63,0 +64,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