@doing-things-with-node-red/node-red-contrib-http-out-error
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "@doing-things-with-node-red/node-red-contrib-http-out-error", | ||
"version": "1.0.1", | ||
"description": "", | ||
"version": "1.0.2", | ||
"description": "It's a Node-RED custom node allowing to use http-errors to response in a easy way with a http error on a catch node.", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
[![Build Status](https://dev.azure.com/doing-things-with-node-red/node-red-contrib/_apis/build/status/doing-things-with-node-red.node-red-contrib-http-out-error?branchName=master)](https://dev.azure.com/doing-things-with-node-red/node-red-contrib/_build/latest?definitionId=1&branchName=master) | ||
[![Greenkeeper badge](https://badges.greenkeeper.io/doing-things-with-node-red/node-red-contrib-http-out-error.svg)](https://greenkeeper.io/) | ||
[![npm](https://img.shields.io/npm/dw/@doing-things-with-node-red/node-red-contrib-http-out-error.svg)](https://www.npmjs.com/package/@doing-things-with-node-red/node-red-contrib-http-out-error) | ||
[![npm](https://img.shields.io/npm/dm/@doing-things-with-node-red/node-red-contrib-http-out-error.svg)](https://www.npmjs.com/package/@doing-things-with-node-red/node-red-contrib-http-out-error) | ||
[![npm](https://img.shields.io/npm/dy/@doing-things-with-node-red/node-red-contrib-http-out-error.svg)](https://www.npmjs.com/package/@doing-things-with-node-red/node-red-contrib-http-out-error) | ||
[![npm](https://img.shields.io/npm/dt/@doing-things-with-node-red/node-red-contrib-http-out-error.svg)](https://www.npmjs.com/package/@doing-things-with-node-red/node-red-contrib-http-out-error) | ||
@@ -16,2 +21,2 @@ # node-red-contrib-http-response-error | ||
See the [LICENSE file](LICENSE) for license text and copyright information. | ||
See the [LICENSE file](LICENSE) for license text and copyright information. |
@@ -224,3 +224,3 @@ /* eslint-disable import/no-extraneous-dependencies */ | ||
if (msg.res) { | ||
const statusCode = msg.statusCode || 500; | ||
const statusCode = msg.statusCode >= 400 ? msg.statusCode : 500; | ||
const httpError = getHttpError(statusCode); | ||
@@ -227,0 +227,0 @@ // parse msg Headers and Cookies: |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12571
22