Add original response to the Gif object in case it doesn't have what you need. #1

Merged
voidf1sh merged 8 commits from v1.0.7 into main 2024-09-23 00:21:37 +00:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit b9208cc8f1 - Show all commits

View File

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

View File

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