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

fetchr

Package Overview
Dependencies
Maintainers
5
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetchr - npm Package Compare versions

Comparing version 0.5.25 to 0.5.26

4

libs/fetcher.js

@@ -53,3 +53,3 @@ /**

function getErrorResponse(err) {
var statusCode = err.statusCode || 400;
var statusCode = err.statusCode || 500;
var output = {

@@ -575,3 +575,3 @@ message: 'request failed'

* @param {Object} err The request error, pass null if there was no error. The data and meta parameters will be ignored if this parameter is not null.
* @param {number} [err.statusCode=400] http status code to return
* @param {number} [err.statusCode=500] http status code to return
* @param {string} [err.message=request failed] http response body

@@ -578,0 +578,0 @@ * @param {Object} data request result

{
"name": "fetchr",
"version": "0.5.25",
"version": "0.5.26",
"description": "Fetchr augments Flux applications by allowing Flux stores to be used on server and client to fetch data",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -221,3 +221,3 @@ # Fetchr

When an error occurs in your Fetchr CRUD method, you should return an error object to the callback. The error object should contain a `statusCode` (default 400) and `output` property that contains a JSON serializable object which will be sent to the client.
When an error occurs in your Fetchr CRUD method, you should return an error object to the callback. The error object should contain a `statusCode` (default 500) and `output` property that contains a JSON serializable object which will be sent to the client.

@@ -224,0 +224,0 @@ ```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