@aws-lambda-powertools/jmespath 2.7.0 → 2.9.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 CHANGED
@@ -189,7 +189,7 @@ Help us prioritize upcoming functionalities or utilities by [upvoting existing R
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://github.com/aws-powertools/powertools-lambda-typescript/issues/new?assignees=&labels=customer-reference&template=support_powertools.yml&title=%5BSupport+Lambda+Powertools%5D%3A+%3Cyour+organization+name%3E) issue.
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
 
@@ -200,6 +200,7 @@ The following companies, among others, use Powertools:
200
200
  - [Caylent](https://caylent.com/)
201
201
  - [Certible](https://www.certible.com/)
202
202
  - [Elva](https://elva-group.com)
203
+ - [Flyweight](https://flyweight.io/)
203
204
  - [globaldatanet](https://globaldatanet.com/)
204
205
  - [Hashnode](https://hashnode.com/)
205
206
  - [LocalStack](https://localstack.cloud/)
@@ -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,5 +32,5 @@ declare class PowertoolsFunctions extends Functions {
32
32
  funcPowertoolsBase64Gzip(value: string): string;
33
33
  funcPowertoolsJson(value: string): JSONValue;
34
34
  }
35
- export { PowertoolsFunctions };
35
+ export { PowertoolsFunctions, Functions };
36
36
  //# sourceMappingURL=PowertoolsFunctions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PowertoolsFunctions.d.ts","sourceRoot":"","sources":["../../src/PowertoolsFunctions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEtE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAI3C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,cAAM,mBAAoB,SAAQ,SAAS;IAIlC,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAO3C,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAU/C,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS;CAGpD;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"PowertoolsFunctions.d.ts","sourceRoot":"","sources":["../../src/PowertoolsFunctions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEtE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAI3C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,cAAM,mBAAoB,SAAQ,SAAS;IAIlC,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAO3C,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAU/C,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS;CAGpD;AAED,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,CAAC"}
@@ -6,10 +6,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.PowertoolsFunctions = void 0;
9
+ exports.Functions = exports.PowertoolsFunctions = void 0;
10
10
  const node_zlib_1 = require("node:zlib");
11
11
  const base64_1 = require("@aws-lambda-powertools/commons/utils/base64");
12
12
  const Functions_js_1 = require("./Functions.js");
13
+ Object.defineProperty(exports, "Functions", { enumerable: true, get: function () { return Functions_js_1.Functions; } });
13
14
  const decoder = new TextDecoder('utf-8');
14
15
  /**
15
16
  * Custom functions for the Powertools for AWS Lambda JMESPath module.
@@ -35,7 +36,7 @@ const decoder = new TextDecoder('utf-8');
35
36
  * console.log(result); // { foo: 'bar' }
36
37
  * ```
37
38
  *
38
- * When using the {@link extractDataFromEnvelope} function, the PowertoolsFunctions class is automatically used.
39
+ * When using the {@link envelopes.extractDataFromEnvelope} function, the PowertoolsFunctions class is automatically used.
39
40
  *
40
41
  */
41
42
  class PowertoolsFunctions extends Functions_js_1.Functions {
@@ -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,5 +32,5 @@ declare class PowertoolsFunctions extends Functions {
32
32
  funcPowertoolsBase64Gzip(value: string): string;
33
33
  funcPowertoolsJson(value: string): JSONValue;
34
34
  }
35
- export { PowertoolsFunctions };
35
+ export { PowertoolsFunctions, Functions };
36
36
  //# sourceMappingURL=PowertoolsFunctions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PowertoolsFunctions.d.ts","sourceRoot":"","sources":["../../src/PowertoolsFunctions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEtE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAI3C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,cAAM,mBAAoB,SAAQ,SAAS;IAIlC,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAO3C,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAU/C,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS;CAGpD;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"PowertoolsFunctions.d.ts","sourceRoot":"","sources":["../../src/PowertoolsFunctions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEtE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAI3C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,cAAM,mBAAoB,SAAQ,SAAS;IAIlC,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAO3C,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAU/C,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS;CAGpD;AAED,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,CAAC"}
@@ -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 {
@@ -63,4 +63,4 @@ __decorate([
63
63
  argumentsSpecs: [['string']],
64
64
  })
65
65
  ], PowertoolsFunctions.prototype, "funcPowertoolsJson", null);
66
- export { PowertoolsFunctions };
66
+ export { PowertoolsFunctions, Functions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-lambda-powertools/jmespath",
3
- "version": "2.7.0",
3
+ "version": "2.9.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.7.0"
28
+ "@aws-lambda-powertools/commons": "^2.9.0"
29
29
  },
30
30
  "main": "./lib/cjs/index.js",
31
31
  "types": "./lib/cjs/index.d.ts",