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

apis-builder

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apis-builder - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

19

index.js

@@ -29,3 +29,5 @@ const _ = require('lodash')

function impl (data) {
function impl (data, requestOptions) {
if (_.isEmpty(requestOptions)) requestOptions = {}
if (!_.isObject(requestOptions)) requestOptions = {}
let requestPath = action.href

@@ -54,3 +56,16 @@ const pathParams = action.href.match(/{[^}]+}/g) || []

}
return this.client[action.method.toLowerCase()](requestPath, data)
switch (action.method.toLowerCase()) {
case 'get':
case 'del':
case 'delete':
requestOptions.qs = data
break
case 'post':
case 'put':
requestOptions.body = data
break
}
return this.client[action.method.toLowerCase()](requestPath, requestOptions)
}

@@ -57,0 +72,0 @@

2

package.json
{
"name": "apis-builder",
"version": "1.2.0",
"version": "1.3.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "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