yahoo-fantasy
Advanced tools
Comparing version 3.1.0 to 3.1.1
{ | ||
"name": "yahoo-fantasy", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "An API to help facilitate the use of the Yahoo! Fantasy Sports API in NodeJS projects.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -15,4 +15,6 @@ # Yahoo! Fantasy API Node Module | ||
I've created a customized version of the [Passport Strategy for Yahoo! OAuth](https://github.com/whatadewitt/passport-yahoo-oauth) to help me when I developed this module. It's a fork of the strategy on the PassportJS homepage, which simply fixed a couple of issues. It would appear that the original creator is no longer supporting the strategy, and I may have missed some things, but it has worked as much as I've needed it. Please let me know if you have any questions about it. | ||
<s>I've created a customized version of the [Passport Strategy for Yahoo! OAuth](https://github.com/whatadewitt/passport-yahoo-oauth) to help me when I developed this module. It's a fork of the strategy on the PassportJS homepage, which simply fixed a couple of issues. It would appear that the original creator is no longer supporting the strategy, and I may have missed some things, but it has worked as much as I've needed it. Please let me know if you have any questions about it.</s> | ||
I recommend using the Passport Strategy for OAuth2 with the updates I've made to this project over the... years now... wow... | ||
## Licence | ||
@@ -51,2 +53,22 @@ | ||
### Starting with v3.1.0 you can also use a promise chain to query resources and subresources | ||
yf.{resource}.{subresource} ( | ||
{possible argument(s)} | ||
) | ||
.then(data => // do your thing) | ||
.catch(err => // handle error) | ||
### This also opens the door to use async/await in version of node that support it | ||
try { | ||
let data = await yf.{resource}.{subresource} ( | ||
{possible argument(s)} | ||
) | ||
// do your thing | ||
} catch(err) { | ||
// handle error | ||
} | ||
## Bugs & Issues | ||
@@ -58,2 +80,6 @@ | ||
#### 3.1.1 | ||
- Resolve error when no team logo is present ([Issue #42](https://github.com/whatadewitt/yfsapi/issues/42)) | ||
#### 3.1.0 | ||
@@ -60,0 +86,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
735255
5526
218