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

This commit is contained in:
Skylar Grant 2024-09-22 20:11:58 -04:00
parent 77fac3eb51
commit b9208cc8f1
2 changed files with 2 additions and 1 deletions

View File

@ -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": {

View File

@ -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;
}
}