Comparing version 1.4.6 to 1.4.7
@@ -139,9 +139,21 @@ // Generated by LiveScript 1.4.0 | ||
get: function(it){ | ||
return self.request(this.file_url, it); | ||
if (this.file_url) { | ||
return self.request(this.file_url, it); | ||
} else { | ||
it(new Error('post has no file_url')); | ||
} | ||
}, | ||
getLarge: function(it){ | ||
return self.request(this.large_file_url, it); | ||
if (this.large_file_url) { | ||
return self.request(this.large_file_url, it); | ||
} else { | ||
it(new Error('post has no large_file_url')); | ||
} | ||
}, | ||
getPreview: function(it){ | ||
return self.request(this.preview_file_url, it); | ||
if (this.preview_file_url) { | ||
return self.request(this.preview_file_url, it); | ||
} else { | ||
it(new Error('post has no preview_file_url')); | ||
} | ||
}, | ||
@@ -148,0 +160,0 @@ favorite: function(favorite, callback){ |
{ | ||
"name": "danbooru", | ||
"version": "1.4.6", | ||
"version": "1.4.7", | ||
"description": "danbooru api wrapper", | ||
@@ -19,18 +19,18 @@ "main": "lib/index.js", | ||
"keywords": [ | ||
"anime", | ||
"wrapper", | ||
"tags", | ||
"tag", | ||
"search", | ||
"posts", | ||
"post", | ||
"manga", | ||
"images", | ||
"image", | ||
"gallery", | ||
"favorites", | ||
"favorite", | ||
"danbooru", | ||
"booru", | ||
"api", | ||
"booru", | ||
"danbooru", | ||
"favorite", | ||
"favorites", | ||
"gallery", | ||
"image", | ||
"images", | ||
"manga", | ||
"post", | ||
"posts", | ||
"search", | ||
"tag", | ||
"tags", | ||
"wrapper" | ||
"anime" | ||
], | ||
@@ -37,0 +37,0 @@ "author": "Pudding <aideen@aideen.pw> (https://aideen.pw)", |
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
26584
350