@ttoss/lambda-postgres-query 0.6.2 → 1.1.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/dist/index.js CHANGED
@@ -54,14 +54,14 @@ var textDecoder = new TextDecoder("utf-8");
54
54
  var query = /* @__PURE__ */__name(async params => {
55
55
  try {
56
56
  const {
57
- lambdaPostgresQueryFunction = process.env.LAMBDA_POSTGRES_QUERY_FUNCTION,
57
+ functionName,
58
58
  camelCaseKeys = true,
59
59
  ...pgParams
60
60
  } = typeof params === "string" ? {
61
61
  text: params
62
62
  } : params;
63
63
  const input = {
64
- FunctionName: lambdaPostgresQueryFunction,
64
+ FunctionName: functionName || process.env.LAMBDA_POSTGRES_QUERY_FUNCTION_NAME,
65
65
  Payload: JSON.stringify({
66
66
  ...pgParams
67
67
  })
package/package.json CHANGED
@@ -1,17 +1,22 @@
1
1
  {
2
2
  "name": "@ttoss/lambda-postgres-query",
3
- "version": "0.6.2",
3
+ "version": "1.1.0",
4
4
  "description": "Create a Lambda function that queries a PostgreSQL database.",
5
- "license": "MIT",
6
- "author": "ttoss",
7
- "contributors": [
8
- "Pedro Arantes <pedro@arantespp.com> (https://arantespp.com)"
5
+ "keywords": [
6
+ "aws",
7
+ "cloudformation",
8
+ "lambda"
9
9
  ],
10
10
  "repository": {
11
11
  "type": "git",
12
12
  "url": "https://github.com/ttoss/ttoss.git",
13
13
  "directory": "packages/lambda-postgres-query"
14
14
  },
15
+ "license": "MIT",
16
+ "author": "ttoss",
17
+ "contributors": [
18
+ "Pedro Arantes <pedro@arantespp.com> (https://arantespp.com)"
19
+ ],
15
20
  "type": "module",
16
21
  "exports": {
17
22
  ".": {
@@ -32,7 +37,7 @@
32
37
  "@aws-sdk/client-lambda": "^3.1025.0",
33
38
  "camelcase-keys": "^7.0.2",
34
39
  "pg": "^8.20.0",
35
- "@ttoss/cloudformation": "^0.12.12"
40
+ "@ttoss/cloudformation": "^0.13.0"
36
41
  },
37
42
  "devDependencies": {
38
43
  "@types/jest": "^30.0.0",
@@ -40,14 +45,9 @@
40
45
  "aws-sdk-client-mock": "^4.1.0",
41
46
  "jest": "^30.3.0",
42
47
  "tsup": "^8.5.1",
43
- "@ttoss/config": "^1.37.10",
44
- "@ttoss/test-utils": "^4.2.10"
48
+ "@ttoss/config": "^1.37.11",
49
+ "@ttoss/test-utils": "^4.2.11"
45
50
  },
46
- "keywords": [
47
- "aws",
48
- "cloudformation",
49
- "lambda"
50
- ],
51
51
  "publishConfig": {
52
52
  "access": "public",
53
53
  "provenance": true