@middy/util
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -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 @@ |
{ | ||
"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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10858
173