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

apicase-adapter-fetch

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apicase-adapter-fetch - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

36

index.js

@@ -20,21 +20,23 @@ var pathToRegexp = require('path-to-regexp')

.then(function(res) {
return res[ctx.payload.parser]().then(function (data) {
ctx.resolve({
success: ctx.payload.validateStatus(res.status),
data: response.body,
error: null,
status: res.status,
statusText: res.statusText
return res[ctx.payload.parser]()
.then(function(data) {
ctx.resolve({
success: ctx.payload.validateStatus(res.status),
data: response.body,
error: null,
status: res.status,
statusText: res.statusText
})
})
}).catch(function (error) {
ctx.reject({
success: false,
data: response.body,
error: error,
status: res.status,
statusText: res.statusText
.catch(function(error) {
ctx.reject({
success: false,
data: response.body,
error: error,
status: res.status,
statusText: res.statusText
})
})
})
})
.catch(function (error) {
.catch(function(error) {
ctx.reject({

@@ -47,3 +49,3 @@ success: false,

})
)
})
},

@@ -50,0 +52,0 @@ convert(payload) {

{
"name": "apicase-adapter-fetch",
"version": "0.2.2",
"version": "0.2.3",
"description": "Fetch adapter for Apicase",

@@ -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