@aws-lambda-powertools/jmespath 2.6.0 → 2.8.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 +25 -21
- package/lib/cjs/PowertoolsFunctions.d.ts +1 -1
- package/lib/cjs/PowertoolsFunctions.js +1 -1
- package/lib/cjs/TreeInterpreter.d.ts.map +1 -1
- package/lib/cjs/TreeInterpreter.js +0 -1
- package/lib/cjs/envelopes.d.ts.map +1 -1
- package/lib/cjs/utils.d.ts.map +1 -1
- package/lib/esm/PowertoolsFunctions.d.ts +1 -1
- package/lib/esm/PowertoolsFunctions.js +1 -1
- package/lib/esm/TreeInterpreter.d.ts.map +1 -1
- package/lib/esm/TreeInterpreter.js +0 -1
- package/lib/esm/envelopes.d.ts.map +1 -1
- package/lib/esm/utils.d.ts.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,16 +6,16 @@ You can use the package in both TypeScript and JavaScript code bases.
|
|
|
6
6
|
|
|
7
7
|
- [Intro](#intro)
|
|
8
8
|
- [Usage](#usage)
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
- [Basic usage](#basic-usage)
|
|
10
|
+
- [Extract data from envelopes](#extract-data-from-envelopes)
|
|
11
|
+
- [JMESPath custom functions](#jmespath-custom-functions)
|
|
12
12
|
- [Contribute](#contribute)
|
|
13
13
|
- [Roadmap](#roadmap)
|
|
14
14
|
- [Connect](#connect)
|
|
15
15
|
- [How to support Powertools for AWS Lambda (TypeScript)?](#how-to-support-powertools-for-aws-lambda-typescript)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
- [Becoming a reference customer](#becoming-a-reference-customer)
|
|
17
|
+
- [Sharing your work](#sharing-your-work)
|
|
18
|
+
- [Using Lambda Layer](#using-lambda-layer)
|
|
19
19
|
- [License](#license)
|
|
20
20
|
|
|
21
21
|
## Intro
|
|
@@ -182,28 +182,32 @@ Help us prioritize upcoming functionalities or utilities by [upvoting existing R
|
|
|
182
182
|
|
|
183
183
|
## Connect
|
|
184
184
|
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
- **Powertools for AWS Lambda on Discord**: `#typescript` - **[Invite link](https://discord.gg/B8zZKbbyET)**
|
|
186
|
+
- **Email**: <aws-lambda-powertools-feedback@amazon.com>
|
|
187
187
|
|
|
188
188
|
## How to support Powertools for AWS Lambda (TypeScript)?
|
|
189
189
|
|
|
190
190
|
### Becoming a reference customer
|
|
191
191
|
|
|
192
|
-
Knowing which companies are using this library is important to help prioritize the project internally. If your company is using Powertools for AWS Lambda (TypeScript), you can request to have your name and logo added to the README file by raising a [Support Powertools for AWS Lambda (TypeScript) (become a reference)](https://
|
|
192
|
+
Knowing which companies are using this library is important to help prioritize the project internally. If your company is using Powertools for AWS Lambda (TypeScript), you can request to have your name and logo added to the README file by raising a [Support Powertools for AWS Lambda (TypeScript) (become a reference)](https://s12d.com/become-reference-pt-ts) issue.
|
|
193
193
|
|
|
194
194
|
The following companies, among others, use Powertools:
|
|
195
195
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
196
|
+
- [Alma Media](https://www.almamedia.fi)
|
|
197
|
+
- [AppYourself](https://appyourself.net)
|
|
198
|
+
- [Bailey Nelson](https://www.baileynelson.com.au)
|
|
199
|
+
- [Banxware](https://www.banxware.com)
|
|
200
|
+
- [Caylent](https://caylent.com/)
|
|
201
|
+
- [Certible](https://www.certible.com/)
|
|
202
|
+
- [Elva](https://elva-group.com)
|
|
203
|
+
- [globaldatanet](https://globaldatanet.com/)
|
|
204
|
+
- [Hashnode](https://hashnode.com/)
|
|
205
|
+
- [LocalStack](https://localstack.cloud/)
|
|
206
|
+
- [Perfect Post](https://www.perfectpost.fr)
|
|
207
|
+
- [Sennder](https://sennder.com/)
|
|
208
|
+
- [tecRacer GmbH & Co. KG](https://www.tecracer.com/)
|
|
209
|
+
- [Trek10](https://www.trek10.com/)
|
|
210
|
+
- [WeSchool](https://www.weschool.com)
|
|
207
211
|
|
|
208
212
|
### Sharing your work
|
|
209
213
|
|
|
@@ -215,4 +219,4 @@ This helps us understand who uses Powertools for AWS Lambda (TypeScript) in a no
|
|
|
215
219
|
|
|
216
220
|
## License
|
|
217
221
|
|
|
218
|
-
This library is licensed under the MIT-0 License. See the LICENSE file.
|
|
222
|
+
This library is licensed under the MIT-0 License. See the LICENSE file.
|
|
@@ -24,7 +24,7 @@ import { Functions } from './Functions.js';
|
|
|
24
24
|
* console.log(result); // { foo: 'bar' }
|
|
25
25
|
* ```
|
|
26
26
|
*
|
|
27
|
-
* When using the {@link extractDataFromEnvelope} function, the PowertoolsFunctions class is automatically used.
|
|
27
|
+
* When using the {@link envelopes.extractDataFromEnvelope} function, the PowertoolsFunctions class is automatically used.
|
|
28
28
|
*
|
|
29
29
|
*/
|
|
30
30
|
declare class PowertoolsFunctions extends Functions {
|
|
@@ -35,7 +35,7 @@ const decoder = new TextDecoder('utf-8');
|
|
|
35
35
|
* console.log(result); // { foo: 'bar' }
|
|
36
36
|
* ```
|
|
37
37
|
*
|
|
38
|
-
* When using the {@link extractDataFromEnvelope} function, the PowertoolsFunctions class is automatically used.
|
|
38
|
+
* When using the {@link envelopes.extractDataFromEnvelope} function, the PowertoolsFunctions class is automatically used.
|
|
39
39
|
*
|
|
40
40
|
*/
|
|
41
41
|
class PowertoolsFunctions extends Functions_js_1.Functions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeInterpreter.d.ts","sourceRoot":"","sources":["../../src/TreeInterpreter.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,sBAAsB,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAG3E;;;;;;;;GAQG;AACH,cAAM,eAAe;;IAGnB;;OAEG;gBACgB,OAAO,CAAC,EAAE,sBAAsB;IASnD;;;;;;;OAOG;IACI,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"TreeInterpreter.d.ts","sourceRoot":"","sources":["../../src/TreeInterpreter.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,sBAAsB,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAG3E;;;;;;;;GAQG;AACH,cAAM,eAAe;;IAGnB;;OAEG;gBACgB,OAAO,CAAC,EAAE,sBAAsB;IASnD;;;;;;;OAOG;IACI,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI;CA0b/D;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -187,7 +187,6 @@ class TreeInterpreter {
|
|
|
187
187
|
// doesn't know that, so we have to use @ts-ignore to tell it that it's
|
|
188
188
|
// okay. We could use a type assertion like `as keyof Functions`, but
|
|
189
189
|
// we also want to keep the args generic, so for now we'll just ignore it.
|
|
190
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
191
190
|
// @ts-ignore-next-line
|
|
192
191
|
return this.#functions[funcName](args);
|
|
193
192
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envelopes.d.ts","sourceRoot":"","sources":["../../src/envelopes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,QAAA,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"envelopes.d.ts","sourceRoot":"","sources":["../../src/envelopes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,QAAA,MAAM,uBAAuB,GAAI,CAAC,QAC1B,UAAU,YACN,MAAM,YACN,sBAAsB,KAC/B,CAMF,CAAC;AAEF,QAAA,MAAM,gBAAgB,0BAA0B,CAAC;AACjD,QAAA,MAAM,gBAAgB,0BAA0B,CAAC;AACjD,QAAA,MAAM,GAAG,qCAAqC,CAAC;AAC/C,QAAA,MAAM,GAAG,gDAAgD,CAAC;AAC1D,QAAA,MAAM,WAAW,WAAW,CAAC;AAC7B,QAAA,MAAM,2BAA2B,WAAW,CAAC;AAC7C,QAAA,MAAM,mBAAmB,gEACsC,CAAC;AAChE,QAAA,MAAM,eAAe,2EACqD,CAAC;AAC3E,QAAA,MAAM,UAAU,yEACwD,CAAC;AACzE,QAAA,MAAM,MAAM,gDAAgD,CAAC;AAC7D,QAAA,MAAM,uBAAuB,4FAC8D,CAAC;AAC5F,QAAA,MAAM,mBAAmB,mEACyC,CAAC;AACnE,QAAA,MAAM,kBAAkB,4CAA4C,CAAC;AAErE,OAAO,EACL,uBAAuB,EACvB,gBAAgB,EAChB,gBAAgB,EAChB,GAAG,EACH,GAAG,EACH,WAAW,EACX,2BAA2B,EAC3B,mBAAmB,EACnB,eAAe,EACf,UAAU,EACV,MAAM,EACN,uBAAuB,EACvB,mBAAmB,EACnB,kBAAkB,GACnB,CAAC"}
|
package/lib/cjs/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAUA;;;;;;;;;GASG;AACH,QAAA,MAAM,QAAQ,UAAW,OAAO,KAAG,OAKlC,CAAC;AA6BF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,QAAA,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAUA;;;;;;;;;GASG;AACH,QAAA,MAAM,QAAQ,UAAW,OAAO,KAAG,OAKlC,CAAC;AA6BF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,QAAA,MAAM,UAAU,GAAI,CAAC,gCAKlB;IACD,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,KAAG,CAAC,EAAE,GAAG,IA0BT,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,UAAU,SACR,OAAO,EAAE,kBACC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,aACzB,OAAO,KACjB,IAcF,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,QAAA,MAAM,SAAS,SACP,OAAO,EAAE,kBACC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,KACnC,IAKF,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,iBAAiB,QAAS,OAAO,gBAAgB,KAAK,CAAC,MAAM,CAAC,KAAG,IAMtE,CAAC;AA+IF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -24,7 +24,7 @@ import { Functions } from './Functions.js';
|
|
|
24
24
|
* console.log(result); // { foo: 'bar' }
|
|
25
25
|
* ```
|
|
26
26
|
*
|
|
27
|
-
* When using the {@link extractDataFromEnvelope} function, the PowertoolsFunctions class is automatically used.
|
|
27
|
+
* When using the {@link envelopes.extractDataFromEnvelope} function, the PowertoolsFunctions class is automatically used.
|
|
28
28
|
*
|
|
29
29
|
*/
|
|
30
30
|
declare class PowertoolsFunctions extends Functions {
|
|
@@ -32,7 +32,7 @@ const decoder = new TextDecoder('utf-8');
|
|
|
32
32
|
* console.log(result); // { foo: 'bar' }
|
|
33
33
|
* ```
|
|
34
34
|
*
|
|
35
|
-
* When using the {@link extractDataFromEnvelope} function, the PowertoolsFunctions class is automatically used.
|
|
35
|
+
* When using the {@link envelopes.extractDataFromEnvelope} function, the PowertoolsFunctions class is automatically used.
|
|
36
36
|
*
|
|
37
37
|
*/
|
|
38
38
|
class PowertoolsFunctions extends Functions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeInterpreter.d.ts","sourceRoot":"","sources":["../../src/TreeInterpreter.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,sBAAsB,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAG3E;;;;;;;;GAQG;AACH,cAAM,eAAe;;IAGnB;;OAEG;gBACgB,OAAO,CAAC,EAAE,sBAAsB;IASnD;;;;;;;OAOG;IACI,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"TreeInterpreter.d.ts","sourceRoot":"","sources":["../../src/TreeInterpreter.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,sBAAsB,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAG3E;;;;;;;;GAQG;AACH,cAAM,eAAe;;IAGnB;;OAEG;gBACgB,OAAO,CAAC,EAAE,sBAAsB;IASnD;;;;;;;OAOG;IACI,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI;CA0b/D;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -184,7 +184,6 @@ class TreeInterpreter {
|
|
|
184
184
|
// doesn't know that, so we have to use @ts-ignore to tell it that it's
|
|
185
185
|
// okay. We could use a type assertion like `as keyof Functions`, but
|
|
186
186
|
// we also want to keep the args generic, so for now we'll just ignore it.
|
|
187
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
188
187
|
// @ts-ignore-next-line
|
|
189
188
|
return this.#functions[funcName](args);
|
|
190
189
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envelopes.d.ts","sourceRoot":"","sources":["../../src/envelopes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,QAAA,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"envelopes.d.ts","sourceRoot":"","sources":["../../src/envelopes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,QAAA,MAAM,uBAAuB,GAAI,CAAC,QAC1B,UAAU,YACN,MAAM,YACN,sBAAsB,KAC/B,CAMF,CAAC;AAEF,QAAA,MAAM,gBAAgB,0BAA0B,CAAC;AACjD,QAAA,MAAM,gBAAgB,0BAA0B,CAAC;AACjD,QAAA,MAAM,GAAG,qCAAqC,CAAC;AAC/C,QAAA,MAAM,GAAG,gDAAgD,CAAC;AAC1D,QAAA,MAAM,WAAW,WAAW,CAAC;AAC7B,QAAA,MAAM,2BAA2B,WAAW,CAAC;AAC7C,QAAA,MAAM,mBAAmB,gEACsC,CAAC;AAChE,QAAA,MAAM,eAAe,2EACqD,CAAC;AAC3E,QAAA,MAAM,UAAU,yEACwD,CAAC;AACzE,QAAA,MAAM,MAAM,gDAAgD,CAAC;AAC7D,QAAA,MAAM,uBAAuB,4FAC8D,CAAC;AAC5F,QAAA,MAAM,mBAAmB,mEACyC,CAAC;AACnE,QAAA,MAAM,kBAAkB,4CAA4C,CAAC;AAErE,OAAO,EACL,uBAAuB,EACvB,gBAAgB,EAChB,gBAAgB,EAChB,GAAG,EACH,GAAG,EACH,WAAW,EACX,2BAA2B,EAC3B,mBAAmB,EACnB,eAAe,EACf,UAAU,EACV,MAAM,EACN,uBAAuB,EACvB,mBAAmB,EACnB,kBAAkB,GACnB,CAAC"}
|
package/lib/esm/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAUA;;;;;;;;;GASG;AACH,QAAA,MAAM,QAAQ,UAAW,OAAO,KAAG,OAKlC,CAAC;AA6BF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,QAAA,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAUA;;;;;;;;;GASG;AACH,QAAA,MAAM,QAAQ,UAAW,OAAO,KAAG,OAKlC,CAAC;AA6BF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,QAAA,MAAM,UAAU,GAAI,CAAC,gCAKlB;IACD,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,KAAG,CAAC,EAAE,GAAG,IA0BT,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,UAAU,SACR,OAAO,EAAE,kBACC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,aACzB,OAAO,KACjB,IAcF,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,QAAA,MAAM,SAAS,SACP,OAAO,EAAE,kBACC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,KACnC,IAKF,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,iBAAiB,QAAS,OAAO,gBAAgB,KAAK,CAAC,MAAM,CAAC,KAAG,IAMtE,CAAC;AA+IF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-lambda-powertools/jmespath",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.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.8.0"
|
|
29
29
|
},
|
|
30
30
|
"main": "./lib/cjs/index.js",
|
|
31
31
|
"types": "./lib/cjs/index.d.ts",
|