Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@middy/util

Package Overview
Dependencies
Maintainers
3
Versions
191
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
7.3.4
to
7.4.0
+3
-2
index.js

@@ -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",