Add original response to the Gif object in case it doesn't have what you need. #1
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "tenorjs-v2",
|
||||
"version": "1.0.6",
|
||||
"version": "1.0.7",
|
||||
"description": "A crappy wrapper for Tenor.com API",
|
||||
"main": "./src/index.js",
|
||||
"scripts": {
|
||||
|
@ -105,6 +105,7 @@ class Gif {
|
||||
this.id = gif.id;
|
||||
this.created = gif.created;
|
||||
this.mediaUrl = gif.media_formats.gif.url;
|
||||
this.originalResponse = gif;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user