Add original response to the Gif object in case it doesn't have what you need.
Some checks failed
TenorJS-v2 Deploy Automation / build (pull_request) Failing after 0s
Some checks failed
TenorJS-v2 Deploy Automation / build (pull_request) Failing after 0s
This commit is contained in:
parent
77fac3eb51
commit
b9208cc8f1
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "tenorjs-v2",
|
"name": "tenorjs-v2",
|
||||||
"version": "1.0.6",
|
"version": "1.0.7",
|
||||||
"description": "A crappy wrapper for Tenor.com API",
|
"description": "A crappy wrapper for Tenor.com API",
|
||||||
"main": "./src/index.js",
|
"main": "./src/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -105,6 +105,7 @@ class Gif {
|
|||||||
this.id = gif.id;
|
this.id = gif.id;
|
||||||
this.created = gif.created;
|
this.created = gif.created;
|
||||||
this.mediaUrl = gif.media_formats.gif.url;
|
this.mediaUrl = gif.media_formats.gif.url;
|
||||||
|
this.originalResponse = gif;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user