@middy/util
Advanced tools
+3
-2
@@ -18,3 +18,4 @@ // Copyright 2017 - 2026 will Farrell, Luciano Mammino, and Middy contributors. | ||
| // `exclusiveMaximum` (exclusive), `multipleOf` (number/integer). | ||
| // String: `minLength`/`maxLength` (string length), `pattern` (regex source). | ||
| // String: `minLength`/`maxLength` (string length), `pattern` (regex | ||
| // source string per JSON Schema). | ||
| // { type: 'object' | 'object?', properties?: {...}, additionalProperties?: <rule> } | ||
@@ -219,3 +220,3 @@ // `properties` validates known keys with the flat-schema form. | ||
| } | ||
| if (pattern !== undefined && !pattern.test(value)) { | ||
| if (pattern !== undefined && !new RegExp(pattern).test(value)) { | ||
| fail(`Option '${path}' must match pattern ${pattern}`); | ||
@@ -222,0 +223,0 @@ } |
+2
-2
| { | ||
| "name": "@middy/util", | ||
| "version": "7.3.4", | ||
| "version": "7.4.0", | ||
| "description": "🛵 The stylish Node.js middleware engine for AWS Lambda (util package)", | ||
@@ -60,3 +60,3 @@ "type": "module", | ||
| "@aws-sdk/client-ssm": "^3.0.0", | ||
| "@middy/core": "7.3.4", | ||
| "@middy/core": "7.4.0", | ||
| "@types/aws-lambda": "^8.0.0", | ||
@@ -63,0 +63,0 @@ "@types/node": "^22.0.0", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
36690
0.11%1001
0.1%