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

balena-request

Package Overview
Dependencies
Maintainers
1
Versions
177
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

balena-request - npm Package Compare versions

Comparing version 11.5.1-move-response-body-error-to-response-body-message-if-there-is-one-063c7fc91ed90c56aea8394a657319241424adc1 to 11.5.1-move-response-body-error-to-response-body-message-if-there-is-one-d7ee386eecbb1438e488c939ddb9d2dbf4ff4caf

7

build/utils.js

@@ -118,4 +118,7 @@ "use strict";

}
if (response.body.error) {
response.body.message = response.body.error;
if (response.body != null && typeof response.body === 'object') {
const bodyMessageProp = ['message', 'error'].find((prop) => typeof response.body[prop] === 'string');
if (bodyMessageProp != null) {
return response.body[bodyMessageProp];
}
}

@@ -122,0 +125,0 @@ return response.body;

@@ -121,4 +121,9 @@ /*

if (response.body.error) {
response.body.message = response.body.error;
if (response.body != null && typeof response.body === 'object') {
const bodyMessageProp = ['message', 'error'].find(
(prop) => typeof response.body[prop] === 'string',
);
if (bodyMessageProp != null) {
return response.body[bodyMessageProp];
}
}

@@ -125,0 +130,0 @@

{
"name": "balena-request",
"version": "11.5.1-move-response-body-error-to-response-body-message-if-there-is-one-063c7fc91ed90c56aea8394a657319241424adc1",
"version": "11.5.1-move-response-body-error-to-response-body-message-if-there-is-one-d7ee386eecbb1438e488c939ddb9d2dbf4ff4caf",
"description": "Balena HTTP client",

@@ -67,4 +67,4 @@ "main": "build/request.js",

"versionist": {
"publishedAt": "2022-03-31T12:26:08.600Z"
"publishedAt": "2022-03-31T15:55:40.152Z"
}
}

Sorry, the diff of this file is not supported yet

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