@aws-lambda-powertools/jmespath 2.33.1 → 2.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/cjs/Functions.js +2 -2
- package/lib/esm/Functions.js +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -182,7 +182,7 @@ Help us prioritize upcoming functionalities or utilities by [upvoting existing R
|
|
|
182
182
|
|
|
183
183
|
## Connect
|
|
184
184
|
|
|
185
|
-
- **Powertools for AWS Lambda on
|
|
185
|
+
- **Powertools for AWS Lambda on GitHub Discussions**: [Join the conversation](https://github.com/aws-powertools/powertools-lambda-typescript/discussions)
|
|
186
186
|
- **Email**: <aws-lambda-powertools-feedback@amazon.com>
|
|
187
187
|
|
|
188
188
|
## How to support Powertools for AWS Lambda (TypeScript)?
|
package/lib/cjs/Functions.js
CHANGED
|
@@ -148,7 +148,7 @@ class Functions {
|
|
|
148
148
|
return Math.max(...arg);
|
|
149
149
|
}
|
|
150
150
|
// Math.max doesn't work with strings (returns NaN), so we use reduce for lexicographic comparison
|
|
151
|
-
return arg.reduce((a, b) => (a > b ? a : b));
|
|
151
|
+
return arg.reduce((a, b) => (a > b ? a : b));
|
|
152
152
|
}
|
|
153
153
|
/**
|
|
154
154
|
* Get the item in the provided array that has the maximum value when the provided expression is evaluated.
|
|
@@ -210,7 +210,7 @@ class Functions {
|
|
|
210
210
|
return Math.min(...arg);
|
|
211
211
|
}
|
|
212
212
|
// Math.min doesn't work with strings (returns NaN), so we use reduce for lexicographic comparison
|
|
213
|
-
return arg.reduce((a, b) => (a < b ? a : b));
|
|
213
|
+
return arg.reduce((a, b) => (a < b ? a : b));
|
|
214
214
|
}
|
|
215
215
|
/**
|
|
216
216
|
* Get the item in the provided array that has the minimum value when the provided expression is evaluated.
|
package/lib/esm/Functions.js
CHANGED
|
@@ -145,7 +145,7 @@ class Functions {
|
|
|
145
145
|
return Math.max(...arg);
|
|
146
146
|
}
|
|
147
147
|
// Math.max doesn't work with strings (returns NaN), so we use reduce for lexicographic comparison
|
|
148
|
-
return arg.reduce((a, b) => (a > b ? a : b));
|
|
148
|
+
return arg.reduce((a, b) => (a > b ? a : b));
|
|
149
149
|
}
|
|
150
150
|
/**
|
|
151
151
|
* Get the item in the provided array that has the maximum value when the provided expression is evaluated.
|
|
@@ -207,7 +207,7 @@ class Functions {
|
|
|
207
207
|
return Math.min(...arg);
|
|
208
208
|
}
|
|
209
209
|
// Math.min doesn't work with strings (returns NaN), so we use reduce for lexicographic comparison
|
|
210
|
-
return arg.reduce((a, b) => (a < b ? a : b));
|
|
210
|
+
return arg.reduce((a, b) => (a < b ? a : b));
|
|
211
211
|
}
|
|
212
212
|
/**
|
|
213
213
|
* Get the item in the provided array that has the minimum value when the provided expression is evaluated.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-lambda-powertools/jmespath",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.35.0",
|
|
4
4
|
"description": "A type safe and modern jmespath module to parse and extract data from JSON documents using JMESPath",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Amazon Web Services",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"nodejs"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aws-lambda-powertools/commons": "2.
|
|
28
|
+
"@aws-lambda-powertools/commons": "2.35.0"
|
|
29
29
|
},
|
|
30
30
|
"main": "./lib/cjs/index.js",
|
|
31
31
|
"types": "./lib/cjs/index.d.ts",
|