Coder Social home page Coder Social logo

acifani / soccer-go Goto Github PK

View Code? Open in Web Editor NEW
23.0 6.0 7.0 4.02 MB

⚽ Soccer CLI

Home Page: https://www.npmjs.com/package/soccer-go

License: MIT License

TypeScript 89.36% JavaScript 10.64%
soccer nodejs cli typescript livescore serie-a premier-league primera-division football football-data

soccer-go's People

Contributors

acifani avatar cirrusuk avatar dependabot-preview[bot] avatar dependabot[bot] avatar fernandoguedes avatar greenkeeper[bot] avatar matei-radu avatar rodrigorodrigo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

soccer-go's Issues

Problem with figlet dependency

First, thank you for the nice project.

Well, I have a issue with figlet dependency:

➜ fguedes@notebook  ~/Work/github.com/fernandoguedes/soccer-go git:(master) ✗ node lib/index.js 
? Choose a competition 1. Bundesliga
? Choose a function Matchday
(node:22503) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/home/fguedes/Work/github.com/fernandoguedes/soccer-go/node_modules/figlet/lib/../fonts/slant.flf'
    at Object.fs.openSync (fs.js:667:18)
    at Object.fs.readFileSync (fs.js:572:33)
    at Function.figlet.loadFontSync (/home/fguedes/Work/github.com/fernandoguedes/soccer-go/node_modules/figlet/lib/node-figlet.js:38:23)
    at Function.me.textSync (/home/fguedes/Work/github.com/fernandoguedes/soccer-go/node_modules/figlet/lib/figlet.js:732:43)
    at Object.<anonymous> (/home/fguedes/Work/github.com/fernandoguedes/soccer-go/lib/commands/fixtures.js:17:32)
    at Generator.next (<anonymous>)
    at /home/fguedes/Work/github.com/fernandoguedes/soccer-go/lib/commands/fixtures.js:7:71
    at new Promise (<anonymous>)
    at __awaiter (/home/fguedes/Work/github.com/fernandoguedes/soccer-go/lib/commands/fixtures.js:3:12)
    at Object.exports.printMatchday (/home/fguedes/Work/github.com/fernandoguedes/soccer-go/lib/commands/fixtures.js:15:41)
(node:22503) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:22503) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I removed the font param from the src/commands/fixtures.ts:9 and src/commands/standings.ts:7 and works nice. I can't found the related issue in figlet repository.

Scores are incorrect or not completed

First off I'd just like to say that I absolutely love this thing.

Of late there seems to be a problem with the final scores, they are not reflecting correctly after the game has finished. The World Cup feed seems to be the biggest culprit.

Thanks.

soccer-go

Add caching for API calls

Add a local caching layer that will store API responses. Ideally we would want different maximum age for each type of call (competition, team, fixutres, etc).

Benefits:

  • Faster
  • Make more requests per day, without asking for an API key

Possible issues:

  • Stale data

An in-range update of ora is breaking the build 🚨

The dependency ora was updated from 3.1.0 to 3.2.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

ora is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v3.2.0

v3.1.0...v3.2.0

Commits

The new version differs by 3 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of ts-jest is breaking the build 🚨

The devDependency ts-jest was updated from 23.1.4 to 23.10.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

ts-jest is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for 23.10.0

ts-jest, reloaded!

  • lots of new features including full type-checking and internal cache (see changelog)
  • improved performances
  • Babel not required anymore
  • improved (and growing) documentation
  • a ts-jest Slack community where you can find some instant help
  • end-to-end isolated testing over multiple jest, typescript and babel versions
Commits

The new version differs by 293 commits.

  • 0e5ffed chore(release): 23.10.0
  • 3665609 Merge pull request #734 from huafu/appveyor-optimizations
  • 45d44d1 Merge branch 'master' into appveyor-optimizations
  • 76e2fe5 ci(appveyor): cache npm versions as well
  • 191c464 ci(appveyor): try to improve appveyor's config
  • 0f31b42 Merge pull request #733 from huafu/fix-test-snap
  • 661853a Merge branch 'master' into fix-test-snap
  • aa7458a Merge pull request #731 from kulshekhar/dependabot/npm_and_yarn/tslint-plugin-prettier-2.0.0
  • 70775f1 ci(lint): run lint scripts in series instead of parallel
  • a18e919 style(fix): exclude package.json from tslint rules
  • 011b580 test(config): stop using snapshots for pkg versions
  • 7e5a3a1 build(deps-dev): bump tslint-plugin-prettier from 1.3.0 to 2.0.0
  • fbe90a9 Merge pull request #730 from kulshekhar/dependabot/npm_and_yarn/@types/node-10.10.1
  • a88456e build(deps-dev): bump @types/node from 10.9.4 to 10.10.1
  • 54fd239 Merge pull request #729 from kulshekhar/dependabot/npm_and_yarn/prettier-1.14.3

There are 250 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Move to npm

yarn is causing issues on type definition updates, like in #39, and npm ci is pretty fast these days

An in-range update of @types/ora is breaking the build 🚨

The devDependency @types/ora was updated from 3.1.0 to 3.2.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@types/ora is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Issue with line endings

Expected Behavior

Execute the CLI on macOS and maybe linux

Actual Behavior

prints out env: node\r: No such file or directory

Steps to Reproduce the Problem

  1. npm i -g soccer-go
  2. soccer-go

Specifications

  • Version: 0.4.2
  • Platform: macOS 10.13.6
  • NodeJS Version: 8.9.0

Improve error handling

There are a couple of unhandled exception here and there right now. Error handling should be streamlined and the user should be presented with clear error messages - what went wrong and why.

An in-range update of ts-jest is breaking the build 🚨

The devDependency ts-jest was updated from 24.0.0 to 24.0.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

ts-jest is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Commits

The new version differs by 23 commits.

  • b43b3c1 chore(release): 24.0.1
  • 2d91a37 chore: update package-lock
  • 485d3f7 build(deps): bump semver from 5.6.0 to 5.7.0 (#1043)
  • 2bd2534 build(deps-dev): bump @types/node from 10.14.3 to 10.14.4 (#1041)
  • bdba560 build(deps-dev): bump @types/node from 10.14.2 to 10.14.3 (#1038)
  • 08766bf build(deps-dev): bump @types/node from 10.14.1 to 10.14.2 (#1036)
  • 5f92fd2 build(deps-dev): bump js-yaml from 3.12.2 to 3.13.0 (#1034)
  • a9c79e9 build(deps-dev): bump @types/yargs from 12.0.9 to 12.0.10 (#1032)
  • 245ab29 build(deps-dev): bump eslint from 5.15.2 to 5.15.3 (#1031)
  • 4e72e59 build(deps-dev): bump eslint from 5.15.1 to 5.15.2 (#1030)
  • fb7dd55 feat(config): specify package.json location (#823) (#1013)
  • 279edcd build(deps-dev): bump tslint from 5.13.1 to 5.14.0 (#1028)
  • 8b93228 build(deps-dev): bump @types/node from 10.12.30 to 10.14.1 (#1027)
  • b825c7f build(deps-dev): bump @types/lodash.memoize from 4.1.4 to 4.1.6 (#1014)
  • 6f0ab80 build(deps-dev): bump @types/lodash.merge from 4.6.5 to 4.6.6 (#1015)

There are 23 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

archlinux aur nodejs-soccer-go 0.4.0-2

Expected Behavior

as shown in README.md

Actual Behavior

all commands =
✖ Fetching competition...
✖ Fetching matchday...
undefined
410

Steps to Reproduce the Problem

  1. install nodejs-soccer-go 0.4.0-2 from aur on fully updated Archlinux box
  2. execute any soccer-go command

Specifications

  • Version: 0.4.0-2
  • Platform: Archlinux
  • NodeJS Version: community/nodejs 11.6.0-1 [installed]

Is this a problem with the AUR pkg maintainer, should i flag his pkg out of date or is the problem from upstream?
Regards & thanks for the code :xd

An in-range update of @types/node is breaking the build 🚨

The devDependency @types/node was updated from 11.12.1 to 11.12.2.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@types/node is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

update-notifier should suggest -g flag

Expected behavior

When on an outdated version we should be prompted to run npm i -g soccer-go

Actual behavior

When on an outdated version we are prompted to run npm i soccer-go, missing the -g flag

An in-range update of @types/node is breaking the build 🚨

The devDependency @types/node was updated from 11.11.1 to 11.11.2.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@types/node is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.