Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

hockeytech

jonathas24MIT1.4.2TypeScript support: included

Package to access the HockeyTech API

package, hockey, hockeytech, node, browser

readme

HockeyTech

This is a package to connect to the HockeyTech API.

It can be used in Node.js and fronted projects.

Introduction

HockeyTech is a worldwide leader in providing hockey-related technologies, analytics and information services.

Dependencies

  • axios

Installation

  yarn add hockeytech

Usage

Inform the key, the client code, a language code ('en' or 'fr') and optionally a proxy base url when creating a new object. The proxy is necessary in development, as the HockeyTech API doesn't allow localhost access.

import HockeyTech from 'hockeytech';

const ht = new HockeyTech('4767a11864244441', 'ohl');

ht.getSeasonList()
    .then(data => console.log(data))
    .catch(err => console.log(err));

or

import HockeyTech from 'hockeytech';

const ht = new HockeyTech('4767a11864244441', 'ohl', 'en', 'http://localhost:3001/proxy?url=');

ht.getSeasonList()
    .then(data => console.log(data))
    .catch(err => console.log(err));

Maintainer

Jonathas Ribeiro

License

MIT

changelog

Changelog

All notable changes to this project will be documented in this file. Dates are displayed in UTC.

Generated by auto-changelog.

1.4.1

  • feat: unofficial final, goalie fix, roster type #38
  • fix: exported the GameStatus enum #39

1.4.0

10 January 2024

  • feat: player endpoint types & more goodies #37
  • chore(release): 1.4.0 e86f4a4

1.3.0

10 January 2024

  • chore(deps): bump axios from 0.26.0 to 1.6.0 #34
  • chore(deps): bump vm2 from 3.9.16 to 3.9.19 #30
  • chore(deps): bump @babel/traverse from 7.17.3 to 7.23.2 #33
  • chore(deps): bump follow-redirects from 1.14.9 to 1.15.4 #36
  • feat: axios config support #35
  • chore(deps): bump word-wrap from 1.2.3 to 1.2.4 #32
  • chore(deps): bump semver from 5.7.1 to 5.7.2 #31
  • chore(deps): bump vm2 from 3.9.13 to 3.9.16 #27
  • chore(deps): bump cacheable-request from 10.2.5 to 10.2.7 #25
  • chore(deps): bump http-cache-semantics from 4.1.0 to 4.1.1 #24
  • chore: updated release-it 077f25d
  • chore(release): 1.3.0 78efeee

1.2.11

10 January 2023

1.2.10

10 January 2023

  • chore(deps-dev): upgraded husky a3b49bc
  • chore(release): 1.2.10 83d5a8f

1.2.9

3 January 2023

  • chore(deps): bump json5 from 2.2.0 to 2.2.3 #23
  • chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2 #22
  • chore(deps): bump parse-url from 6.0.0 to 6.0.2 #21
  • chore(deps): bump minimist from 1.2.5 to 1.2.6 #20
  • chore(release): 1.2.9 947c2b4

1.2.8

19 February 2022

1.2.7

26 April 2021

  • fix(interface): scorebar types #12
  • chore(release): 1.2.7 65a6832

1.2.6

14 April 2021

  • fix(interface): shotsByPeriod attribute has numeric items #11
  • chore(release): 1.2.6 d52d19f

1.2.5

6 January 2021

  • chore(deps): bump axios from 0.19.2 to 0.21.1 #10
  • chore(deps): bump ini from 1.3.5 to 1.3.8 #9
  • chore(release): 1.2.5 cf4cf5f

1.2.4

10 December 2020

  • fix: fixed GoalsByPeriod interface #8
  • chore(release): 1.2.4 846fbe5

1.2.3

5 November 2020

  • docs(interfaces): added scorebar response types #7
  • chore(release): 1.2.3 177884f

1.2.2

21 October 2020

  • chore: gameCenterBaseUrl as https #5
  • chore(release): 1.2.2 47c9f85

1.2.1

15 October 2020

  • fix: using encodeURIComponent in the endpoints when a proxy is used #4
  • chore(release): 1.2.1 2c1f1df

1.2.0

15 October 2020

  • feat: optional proxy base url in constructor #3
  • chore(deps): bump node-fetch from 2.6.0 to 2.6.1 #2
  • chore(release): 1.2.0 2203690

1.1.0

26 August 2020

  • feat: using UMD (Universal Module Definition) f274bc7
  • chore(release): 1.1.0 76fe76d

1.0.3

21 June 2020

  • feat: created more interfaces #1
  • chore(release): 1.0.3 848f3f0

1.0.2

21 June 2020

1.0.1

21 June 2020

1.0.0

21 June 2020

  • feat: implemented modulekit endpoints fb63e16
  • docs: improved the README d55b5e8
  • feat: all endpoints from the documentation are ready 058cfe6

0.0.1

20 June 2020

  • chore: added base structure 92a3e7c