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

better-api

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

better-api - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

6

lib/index.js

@@ -36,3 +36,3 @@ "use strict";

userCallbackDone.apply(null, arguments);
var responseType = (0, _extend2.default)(true, {}, self.settings.defaultResponseType, callback);
var responseType = (0, _extend2.default)(true, {}, self.settings.defaultResponseType, [res]);
Object.keys(responseType).forEach(function (key) {

@@ -43,5 +43,5 @@ if (key[0] === '$') {

});
var typeKey = self.settings.judgeResponseType.apply(null, arguments);
var typeKey = self.settings.judgeResponseType.apply(null, [res]);
if (typeof responseType[typeKey] === 'function') {
responseType[typeKey].apply(null, arguments);
responseType[typeKey].apply(null, [res]);
} else {

@@ -48,0 +48,0 @@ console.warn("node_modules/better-api: request(settings, callback); callback[\"" + typeKey + "\"] must be a function");

{
"name": "better-api",
"main": "lib/index.js",
"version": "0.2.0",
"version": "0.2.1",
"description": "api encapsulation manage",

@@ -6,0 +6,0 @@ "keywords": "",

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