🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

fetchr

Package Overview
Dependencies
Maintainers
5
Versions
96
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

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