@ttoss/lambda-postgres-query 0.2.18 → 0.3.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.
@@ -1,7 +1,7 @@
1
1
  import { CloudFormationTemplate } from '@ttoss/cloudformation';
2
2
  export { CloudFormationTemplate } from '@ttoss/cloudformation';
3
3
  import { Handler } from 'aws-lambda';
4
- import { QueryParams } from '../index.mjs';
4
+ import { QueryParams } from '../index.cjs';
5
5
  import 'pg';
6
6
 
7
7
  declare const HANDLER_DEFAULT = "handler.handler";
@@ -131,7 +131,7 @@ var createLambdaPostgresQueryTemplate = ({
131
131
  Role: {
132
132
  "Fn::GetAtt": ["LambdaQueryExecutionRole", "Arn"]
133
133
  },
134
- Runtime: "nodejs20.x",
134
+ Runtime: "nodejs22.x",
135
135
  Environment: {
136
136
  Variables: {
137
137
  DATABASE_HOST: {
@@ -96,7 +96,7 @@ var createLambdaPostgresQueryTemplate = ({
96
96
  Role: {
97
97
  "Fn::GetAtt": ["LambdaQueryExecutionRole", "Arn"]
98
98
  },
99
- Runtime: "nodejs20.x",
99
+ Runtime: "nodejs22.x",
100
100
  Environment: {
101
101
  Variables: {
102
102
  DATABASE_HOST: {
package/dist/esm/index.js CHANGED
@@ -49,7 +49,7 @@ var query = async params => {
49
49
  })
50
50
  };
51
51
  } catch (error) {
52
- console.error("Error invoking Lambda: ", error);
52
+ console.error("Error invoking lambda-postgres-query: ", error);
53
53
  throw error;
54
54
  }
55
55
  };
package/dist/index.js CHANGED
@@ -44,7 +44,7 @@ module.exports = __toCommonJS(index_exports);
44
44
 
45
45
  // src/query.ts
46
46
  var import_client_lambda = require("@aws-sdk/client-lambda");
47
- var import_camelcase_keys = __toESM(require("camelcase-keys"));
47
+ var import_camelcase_keys = __toESM(require("camelcase-keys"), 1);
48
48
  var lambdaClient = new import_client_lambda.LambdaClient();
49
49
  var asciiDecoder = new TextDecoder("ascii");
50
50
  var query = async params => {
@@ -91,7 +91,7 @@ var query = async params => {
91
91
  })
92
92
  };
93
93
  } catch (error) {
94
- console.error("Error invoking Lambda: ", error);
94
+ console.error("Error invoking lambda-postgres-query: ", error);
95
95
  throw error;
96
96
  }
97
97
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/lambda-postgres-query",
3
- "version": "0.2.18",
3
+ "version": "0.3.0",
4
4
  "description": "Create a Lambda function that queries a PostgreSQL database.",
5
5
  "license": "MIT",
6
6
  "author": "ttoss",
@@ -12,7 +12,7 @@
12
12
  "url": "https://github.com/ttoss/ttoss.git",
13
13
  "directory": "packages/lambda-postgres-query"
14
14
  },
15
- "type": "commonjs",
15
+ "type": "module",
16
16
  "exports": {
17
17
  ".": {
18
18
  "import": "./dist/esm/index.js",
File without changes