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

@middy/util

Package Overview
Dependencies
Maintainers
3
Versions
136
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 to 2.0.1

5

index.js

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

const sanitizeKeyPrefixLeadingNumber = /^([0-9])/;
const sanitizeKeyRemoveDisallowedChar = /[^a-zA-Z0-9]+/g;
const sanitizeKey = key => {
return key.replace(/^([0-9])/, '_$1').replace(/[^a-zA-Z0-9]+/g, '_');
return key.replace(sanitizeKeyPrefixLeadingNumber, '_$1').replace(sanitizeKeyRemoveDisallowedChar, '_');
}; // fetch Cache

@@ -108,0 +111,0 @@

10

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

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

"scripts": {
"test": "npm run test:typings && npm run test:unit",
"test": "npm run test:unit",
"test:unit": "ava"

@@ -47,10 +47,10 @@ },

"devDependencies": {
"@middy/core": "^2.0.0",
"@middy/core": "^2.0.1",
"@types/aws-lambda": "^8.10.73",
"@types/node": "^14.0.0",
"aws-sdk": "^2.877.0",
"aws-sdk": "^2.884.0",
"aws-xray-sdk": "^3.2.0"
},
"homepage": "https://github.com/middyjs/middy#readme",
"gitHead": "5bad22e2b785084806db6ea3887751a08c1ba4e1"
"gitHead": "b0eca01cad1b16439cb4dc21dab92b7221f52515"
}
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