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.2 to 11.5.3-move-response-body-error-to-response-body-message-if-there-is-one-344ccfec2a0066249cbf4285aef1ef3f505314c9

6

build/utils.js

@@ -118,2 +118,8 @@ "use strict";

}
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];
}
}
return response.body;

@@ -120,0 +126,0 @@ }

@@ -7,2 +7,7 @@ # Change Log

# v11.5.3
## (2022-04-04)
* Use response error as response message if there is one [Matthew Yarmolinsky]
# v11.5.2

@@ -9,0 +14,0 @@ ## (2022-04-04)

@@ -121,2 +121,11 @@ /*

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];
}
}
return response.body;

@@ -123,0 +132,0 @@ }

4

package.json
{
"name": "balena-request",
"version": "11.5.2",
"version": "11.5.3-move-response-body-error-to-response-body-message-if-there-is-one-344ccfec2a0066249cbf4285aef1ef3f505314c9",
"description": "Balena HTTP client",

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

"versionist": {
"publishedAt": "2022-04-04T13:22:18.304Z"
"publishedAt": "2022-04-04T15:34:58.356Z"
}
}

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