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.4 to 2.0.0-alpha.5

12

index.js

@@ -116,3 +116,5 @@ "use strict";

if (cached && (cache.expiry >= Date.now() || options.cacheExpiry < 0)) {
return cached.value;
return { ...cached,
cache: true
};
}

@@ -122,2 +124,3 @@ }

const value = fetch(handler);
const expiry = Date.now() + options.cacheExpiry;

@@ -127,7 +130,10 @@ if (options.cacheExpiry) {

value,
expiry: Date.now() + options.cacheExpiry
expiry
};
}
return value;
return {
value,
expiry
};
};

@@ -134,0 +140,0 @@

{
"name": "@middy/util",
"version": "2.0.0-alpha.4",
"version": "2.0.0-alpha.5",
"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": "b8e513464499578c28b154327be8d710324a5a16"
"gitHead": "2e69ea2322abcdcf88adde11fda4d04e4c038b54"
}
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