Comparing version 1.4.3 to 1.4.4
// Generated by LiveScript 1.4.0 | ||
(function(){ | ||
var https, request, deepExtend, argsJs, search, baseUrl, exports, slice$ = [].slice; | ||
var https, request, deepExtend, argsJs, search, baseUrl, slice$ = [].slice; | ||
https = require('https'); | ||
@@ -13,7 +13,6 @@ request = require('request'); | ||
}( | ||
exports = (function(){ | ||
exports.displayName = 'exports'; | ||
var danbooruErrors, parsePath, doRequest, optionalArgs, prototype = exports.prototype, constructor = exports; | ||
(function(){ | ||
var danbooruErrors, parsePath, doRequest, optionalArgs, prototype = constructor.prototype; | ||
import$(prototype, search); | ||
function exports(params, key){ | ||
function constructor(params, key){ | ||
var this$ = this instanceof ctor$ ? this : new ctor$; | ||
@@ -50,11 +49,11 @@ params == null && (params = {}); | ||
(function(){ | ||
var data, dataName, uri, ref$; | ||
var data, dataName, url, ref$; | ||
data = deepExtend({}, this.defaultParameters, params); | ||
dataName = body ? 'form' : 'qs'; | ||
uri = parsePath(path); | ||
dataName = body ? 'formData' : 'qs'; | ||
url = parsePath(path); | ||
request((ref$ = { | ||
uri: uri, | ||
url: url, | ||
method: method | ||
}, ref$[dataName] = data, ref$.json = true, ref$), function(e, response, body){ | ||
if (response.statusCode !== 200) { | ||
if ((response != null ? response.statusCode : void 8) !== 200) { | ||
e == null && (e = new Error(danbooruErrors[response.statusCode])); | ||
@@ -119,3 +118,3 @@ } | ||
}; | ||
return exports; | ||
return constructor; | ||
}())); | ||
@@ -122,0 +121,0 @@ function importAll$(obj, src){ |
{ | ||
"name": "danbooru", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"description": "danbooru api wrapper", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
26061
338