Socket
Socket
Sign inDemoInstall

@middy/util

Package Overview
Dependencies
Maintainers
3
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@middy/util - npm Package Compare versions

Comparing version 2.0.0-alpha.5 to 2.0.0-alpha.6

18

index.js

@@ -161,2 +161,17 @@ "use strict";

const normalizeHttpResponse = (response, fallbackResponse = {}) => {
var _response, _response$headers, _response2;
response = (_response = response) !== null && _response !== void 0 ? _response : fallbackResponse; // May require updating to catch other types
if (Array.isArray(response) || typeof response !== 'object') {
response = {
body: response
};
}
response.headers = (_response$headers = (_response2 = response) === null || _response2 === void 0 ? void 0 : _response2.headers) !== null && _response$headers !== void 0 ? _response$headers : {};
return response;
};
module.exports = {

@@ -171,3 +186,4 @@ createPrefetchClient,

clearCache,
jsonSafeParse
jsonSafeParse,
normalizeHttpResponse
};

4

package.json
{
"name": "@middy/util",
"version": "2.0.0-alpha.5",
"version": "2.0.0-alpha.6",
"description": "🛵 The stylish Node.js middleware engine for AWS Lambda (util package)",

@@ -47,3 +47,3 @@ "type": "commonjs",

"homepage": "https://github.com/middyjs/middy#readme",
"gitHead": "2e69ea2322abcdcf88adde11fda4d04e4c038b54"
"gitHead": "e6ab94a1f33ca215f63ee613bc9469ccd56caf21"
}
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