Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

danbooru

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

danbooru - npm Package Compare versions

Comparing version 1.4.3 to 1.4.4

21

lib/index.js
// 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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc