@ttoss/lambda-postgres-query 0.2.13 → 0.2.15

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.
@@ -0,0 +1,18 @@
1
+ import { CloudFormationTemplate } from '@ttoss/cloudformation';
2
+ export { CloudFormationTemplate } from '@ttoss/cloudformation';
3
+ import { Handler } from 'aws-lambda';
4
+ import { QueryParams } from '../index.mjs';
5
+ import 'pg';
6
+
7
+ declare const HANDLER_DEFAULT = "handler.handler";
8
+ declare const MEMORY_SIZE_DEFAULT = 128;
9
+ declare const TIMEOUT_DEFAULT = 30;
10
+ declare const createLambdaPostgresQueryTemplate: ({ handler, memorySize, timeout, }?: {
11
+ handler?: string;
12
+ memorySize?: number;
13
+ timeout?: number;
14
+ }) => CloudFormationTemplate;
15
+
16
+ declare const handler: Handler<QueryParams>;
17
+
18
+ export { HANDLER_DEFAULT, MEMORY_SIZE_DEFAULT, TIMEOUT_DEFAULT, createLambdaPostgresQueryTemplate, handler };
@@ -0,0 +1,18 @@
1
+ import { CloudFormationTemplate } from '@ttoss/cloudformation';
2
+ export { CloudFormationTemplate } from '@ttoss/cloudformation';
3
+ import { Handler } from 'aws-lambda';
4
+ import { QueryParams } from '../index.js';
5
+ import 'pg';
6
+
7
+ declare const HANDLER_DEFAULT = "handler.handler";
8
+ declare const MEMORY_SIZE_DEFAULT = 128;
9
+ declare const TIMEOUT_DEFAULT = 30;
10
+ declare const createLambdaPostgresQueryTemplate: ({ handler, memorySize, timeout, }?: {
11
+ handler?: string;
12
+ memorySize?: number;
13
+ timeout?: number;
14
+ }) => CloudFormationTemplate;
15
+
16
+ declare const handler: Handler<QueryParams>;
17
+
18
+ export { HANDLER_DEFAULT, MEMORY_SIZE_DEFAULT, TIMEOUT_DEFAULT, createLambdaPostgresQueryTemplate, handler };
@@ -0,0 +1,224 @@
1
+ /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
+ "use strict";
3
+
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
22
+ };
23
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
24
+ value: true
25
+ }), mod);
26
+
27
+ // src/cloudformation/index.ts
28
+ var cloudformation_exports = {};
29
+ __export(cloudformation_exports, {
30
+ HANDLER_DEFAULT: () => HANDLER_DEFAULT,
31
+ MEMORY_SIZE_DEFAULT: () => MEMORY_SIZE_DEFAULT,
32
+ TIMEOUT_DEFAULT: () => TIMEOUT_DEFAULT,
33
+ createLambdaPostgresQueryTemplate: () => createLambdaPostgresQueryTemplate,
34
+ handler: () => handler
35
+ });
36
+ module.exports = __toCommonJS(cloudformation_exports);
37
+
38
+ // src/cloudformation/createLambdaPostgresQueryTemplate.ts
39
+ var HANDLER_DEFAULT = "handler.handler";
40
+ var MEMORY_SIZE_DEFAULT = 128;
41
+ var TIMEOUT_DEFAULT = 30;
42
+ var createLambdaPostgresQueryTemplate = ({
43
+ handler: handler2 = HANDLER_DEFAULT,
44
+ memorySize = 128,
45
+ timeout = 30
46
+ } = {}) => {
47
+ return {
48
+ AWSTemplateFormatVersion: "2010-09-09",
49
+ Description: "A Lambda function to query PostgreSQL.",
50
+ Parameters: {
51
+ DatabaseHost: {
52
+ Type: "String",
53
+ Description: "Database host."
54
+ },
55
+ DatabaseHostReadOnly: {
56
+ Type: "String",
57
+ Description: "Database host read only."
58
+ },
59
+ DatabaseName: {
60
+ Type: "String",
61
+ Description: "Database name."
62
+ },
63
+ DatabaseUsername: {
64
+ Type: "String",
65
+ Description: "Database username."
66
+ },
67
+ DatabasePassword: {
68
+ Type: "String",
69
+ Description: "Database password."
70
+ },
71
+ DatabasePort: {
72
+ Type: "String",
73
+ Default: "5432",
74
+ Description: "Database port."
75
+ },
76
+ LambdaS3Bucket: {
77
+ Type: "String",
78
+ Description: "The S3 bucket where the Lambda code is stored."
79
+ },
80
+ LambdaS3Key: {
81
+ Type: "String",
82
+ Description: "The S3 key where the Lambda code is stored."
83
+ },
84
+ LambdaS3ObjectVersion: {
85
+ Type: "String",
86
+ Description: "The S3 object version of the Lambda code."
87
+ },
88
+ SecurityGroupIds: {
89
+ Description: "Security Group IDs",
90
+ Type: "List<AWS::EC2::SecurityGroup::Id>"
91
+ },
92
+ SubnetIds: {
93
+ Description: "Subnet IDs",
94
+ Type: "List<AWS::EC2::Subnet::Id>"
95
+ }
96
+ },
97
+ Resources: {
98
+ LambdaQueryExecutionRole: {
99
+ Type: "AWS::IAM::Role",
100
+ Properties: {
101
+ AssumeRolePolicyDocument: {
102
+ Version: "2012-10-17",
103
+ Statement: [{
104
+ Effect: "Allow",
105
+ Principal: {
106
+ Service: "lambda.amazonaws.com"
107
+ },
108
+ Action: "sts:AssumeRole"
109
+ }]
110
+ },
111
+ ManagedPolicyArns: ["arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", "arn:aws:iam::aws:policy/service-role/AWSLambdaVPCAccessExecutionRole"]
112
+ }
113
+ },
114
+ LambdaQueryFunction: {
115
+ Type: "AWS::Lambda::Function",
116
+ Properties: {
117
+ Code: {
118
+ S3Bucket: {
119
+ Ref: "LambdaS3Bucket"
120
+ },
121
+ S3Key: {
122
+ Ref: "LambdaS3Key"
123
+ },
124
+ S3ObjectVersion: {
125
+ Ref: "LambdaS3ObjectVersion"
126
+ }
127
+ },
128
+ MemorySize: memorySize,
129
+ Timeout: timeout,
130
+ Handler: handler2,
131
+ Role: {
132
+ "Fn::GetAtt": ["LambdaQueryExecutionRole", "Arn"]
133
+ },
134
+ Runtime: "nodejs20.x",
135
+ Environment: {
136
+ Variables: {
137
+ DATABASE_HOST: {
138
+ Ref: "DatabaseHost"
139
+ },
140
+ DATABASE_HOST_READ_ONLY: {
141
+ Ref: "DatabaseHostReadOnly"
142
+ },
143
+ DATABASE_NAME: {
144
+ Ref: "DatabaseName"
145
+ },
146
+ DATABASE_USERNAME: {
147
+ Ref: "DatabaseUsername"
148
+ },
149
+ DATABASE_PASSWORD: {
150
+ Ref: "DatabasePassword"
151
+ },
152
+ DATABASE_PORT: {
153
+ Ref: "DatabasePort"
154
+ }
155
+ }
156
+ },
157
+ VpcConfig: {
158
+ SecurityGroupIds: {
159
+ Ref: "SecurityGroupIds"
160
+ },
161
+ SubnetIds: {
162
+ Ref: "SubnetIds"
163
+ }
164
+ }
165
+ }
166
+ }
167
+ },
168
+ Outputs: {
169
+ LambdaPostgresQueryFunction: {
170
+ Description: "Lambda function to query PostgreSQL.",
171
+ Value: {
172
+ Ref: "LambdaQueryFunction"
173
+ }
174
+ },
175
+ LambdaPostgresQueryFunctionArn: {
176
+ Description: "Lambda function to query PostgreSQL ARN.",
177
+ Value: {
178
+ "Fn::GetAtt": ["LambdaQueryFunction", "Arn"]
179
+ }
180
+ }
181
+ }
182
+ };
183
+ };
184
+
185
+ // src/cloudformation/lambdaQueryHandler.ts
186
+ var import_pg = require("pg");
187
+ var database = process.env.DATABASE_NAME;
188
+ var username = process.env.DATABASE_USERNAME;
189
+ var password = process.env.DATABASE_PASSWORD;
190
+ var host = process.env.DATABASE_HOST;
191
+ var hostReadOnly = process.env.DATABASE_HOST_READ_ONLY;
192
+ var port = process.env.DATABASE_PORT;
193
+ var handler = async event => {
194
+ try {
195
+ const client = new import_pg.Client({
196
+ database,
197
+ user: username,
198
+ password,
199
+ host: event.readOnly && hostReadOnly ? hostReadOnly : host,
200
+ port: Number(port)
201
+ });
202
+ await client.connect();
203
+ try {
204
+ const res = await client.query(event);
205
+ return res;
206
+ } finally {
207
+ await client.end();
208
+ }
209
+ } catch (error) {
210
+ console.error("Error running query", {
211
+ error,
212
+ event
213
+ });
214
+ throw error;
215
+ }
216
+ };
217
+ // Annotate the CommonJS export names for ESM import in node:
218
+ 0 && (module.exports = {
219
+ HANDLER_DEFAULT,
220
+ MEMORY_SIZE_DEFAULT,
221
+ TIMEOUT_DEFAULT,
222
+ createLambdaPostgresQueryTemplate,
223
+ handler
224
+ });
@@ -0,0 +1,182 @@
1
+ /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
+
3
+ // src/cloudformation/createLambdaPostgresQueryTemplate.ts
4
+ var HANDLER_DEFAULT = "handler.handler";
5
+ var MEMORY_SIZE_DEFAULT = 128;
6
+ var TIMEOUT_DEFAULT = 30;
7
+ var createLambdaPostgresQueryTemplate = ({
8
+ handler: handler2 = HANDLER_DEFAULT,
9
+ memorySize = 128,
10
+ timeout = 30
11
+ } = {}) => {
12
+ return {
13
+ AWSTemplateFormatVersion: "2010-09-09",
14
+ Description: "A Lambda function to query PostgreSQL.",
15
+ Parameters: {
16
+ DatabaseHost: {
17
+ Type: "String",
18
+ Description: "Database host."
19
+ },
20
+ DatabaseHostReadOnly: {
21
+ Type: "String",
22
+ Description: "Database host read only."
23
+ },
24
+ DatabaseName: {
25
+ Type: "String",
26
+ Description: "Database name."
27
+ },
28
+ DatabaseUsername: {
29
+ Type: "String",
30
+ Description: "Database username."
31
+ },
32
+ DatabasePassword: {
33
+ Type: "String",
34
+ Description: "Database password."
35
+ },
36
+ DatabasePort: {
37
+ Type: "String",
38
+ Default: "5432",
39
+ Description: "Database port."
40
+ },
41
+ LambdaS3Bucket: {
42
+ Type: "String",
43
+ Description: "The S3 bucket where the Lambda code is stored."
44
+ },
45
+ LambdaS3Key: {
46
+ Type: "String",
47
+ Description: "The S3 key where the Lambda code is stored."
48
+ },
49
+ LambdaS3ObjectVersion: {
50
+ Type: "String",
51
+ Description: "The S3 object version of the Lambda code."
52
+ },
53
+ SecurityGroupIds: {
54
+ Description: "Security Group IDs",
55
+ Type: "List<AWS::EC2::SecurityGroup::Id>"
56
+ },
57
+ SubnetIds: {
58
+ Description: "Subnet IDs",
59
+ Type: "List<AWS::EC2::Subnet::Id>"
60
+ }
61
+ },
62
+ Resources: {
63
+ LambdaQueryExecutionRole: {
64
+ Type: "AWS::IAM::Role",
65
+ Properties: {
66
+ AssumeRolePolicyDocument: {
67
+ Version: "2012-10-17",
68
+ Statement: [{
69
+ Effect: "Allow",
70
+ Principal: {
71
+ Service: "lambda.amazonaws.com"
72
+ },
73
+ Action: "sts:AssumeRole"
74
+ }]
75
+ },
76
+ ManagedPolicyArns: ["arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", "arn:aws:iam::aws:policy/service-role/AWSLambdaVPCAccessExecutionRole"]
77
+ }
78
+ },
79
+ LambdaQueryFunction: {
80
+ Type: "AWS::Lambda::Function",
81
+ Properties: {
82
+ Code: {
83
+ S3Bucket: {
84
+ Ref: "LambdaS3Bucket"
85
+ },
86
+ S3Key: {
87
+ Ref: "LambdaS3Key"
88
+ },
89
+ S3ObjectVersion: {
90
+ Ref: "LambdaS3ObjectVersion"
91
+ }
92
+ },
93
+ MemorySize: memorySize,
94
+ Timeout: timeout,
95
+ Handler: handler2,
96
+ Role: {
97
+ "Fn::GetAtt": ["LambdaQueryExecutionRole", "Arn"]
98
+ },
99
+ Runtime: "nodejs20.x",
100
+ Environment: {
101
+ Variables: {
102
+ DATABASE_HOST: {
103
+ Ref: "DatabaseHost"
104
+ },
105
+ DATABASE_HOST_READ_ONLY: {
106
+ Ref: "DatabaseHostReadOnly"
107
+ },
108
+ DATABASE_NAME: {
109
+ Ref: "DatabaseName"
110
+ },
111
+ DATABASE_USERNAME: {
112
+ Ref: "DatabaseUsername"
113
+ },
114
+ DATABASE_PASSWORD: {
115
+ Ref: "DatabasePassword"
116
+ },
117
+ DATABASE_PORT: {
118
+ Ref: "DatabasePort"
119
+ }
120
+ }
121
+ },
122
+ VpcConfig: {
123
+ SecurityGroupIds: {
124
+ Ref: "SecurityGroupIds"
125
+ },
126
+ SubnetIds: {
127
+ Ref: "SubnetIds"
128
+ }
129
+ }
130
+ }
131
+ }
132
+ },
133
+ Outputs: {
134
+ LambdaPostgresQueryFunction: {
135
+ Description: "Lambda function to query PostgreSQL.",
136
+ Value: {
137
+ Ref: "LambdaQueryFunction"
138
+ }
139
+ },
140
+ LambdaPostgresQueryFunctionArn: {
141
+ Description: "Lambda function to query PostgreSQL ARN.",
142
+ Value: {
143
+ "Fn::GetAtt": ["LambdaQueryFunction", "Arn"]
144
+ }
145
+ }
146
+ }
147
+ };
148
+ };
149
+
150
+ // src/cloudformation/lambdaQueryHandler.ts
151
+ import { Client } from "pg";
152
+ var database = process.env.DATABASE_NAME;
153
+ var username = process.env.DATABASE_USERNAME;
154
+ var password = process.env.DATABASE_PASSWORD;
155
+ var host = process.env.DATABASE_HOST;
156
+ var hostReadOnly = process.env.DATABASE_HOST_READ_ONLY;
157
+ var port = process.env.DATABASE_PORT;
158
+ var handler = async event => {
159
+ try {
160
+ const client = new Client({
161
+ database,
162
+ user: username,
163
+ password,
164
+ host: event.readOnly && hostReadOnly ? hostReadOnly : host,
165
+ port: Number(port)
166
+ });
167
+ await client.connect();
168
+ try {
169
+ const res = await client.query(event);
170
+ return res;
171
+ } finally {
172
+ await client.end();
173
+ }
174
+ } catch (error) {
175
+ console.error("Error running query", {
176
+ error,
177
+ event
178
+ });
179
+ throw error;
180
+ }
181
+ };
182
+ export { HANDLER_DEFAULT, MEMORY_SIZE_DEFAULT, TIMEOUT_DEFAULT, createLambdaPostgresQueryTemplate, handler };
@@ -0,0 +1,56 @@
1
+ /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
+
3
+ // src/query.ts
4
+ import { InvokeCommand, LambdaClient } from "@aws-sdk/client-lambda";
5
+ import camelcaseKeys from "camelcase-keys";
6
+ var lambdaClient = new LambdaClient();
7
+ var asciiDecoder = new TextDecoder("ascii");
8
+ var query = async params => {
9
+ try {
10
+ const {
11
+ readOnly = true,
12
+ // eslint-disable-next-line turbo/no-undeclared-env-vars
13
+ lambdaPostgresQueryFunction = process.env.LAMBDA_POSTGRES_QUERY_FUNCTION,
14
+ ...pgParams
15
+ } = typeof params === "string" ? {
16
+ text: params
17
+ } : params;
18
+ const input = {
19
+ FunctionName: lambdaPostgresQueryFunction,
20
+ Payload: JSON.stringify({
21
+ readOnly,
22
+ ...pgParams
23
+ })
24
+ };
25
+ const {
26
+ Payload
27
+ } = await lambdaClient.send(new InvokeCommand(input));
28
+ if (!Payload) {
29
+ console.error("No payload returned from lambda query", {
30
+ input
31
+ });
32
+ throw new Error("No payload returned from lambda query");
33
+ }
34
+ const data = asciiDecoder.decode(Payload);
35
+ const result = JSON.parse(data);
36
+ if ("errorType" in result) {
37
+ throw result;
38
+ }
39
+ return {
40
+ ...result,
41
+ rows: result.rows.map(row => {
42
+ return {
43
+ ...row,
44
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
45
+ ...camelcaseKeys(row, {
46
+ deep: true
47
+ })
48
+ };
49
+ })
50
+ };
51
+ } catch (error) {
52
+ console.error("Error invoking Lambda: ", error);
53
+ throw error;
54
+ }
55
+ };
56
+ export { query };
@@ -0,0 +1,21 @@
1
+ import * as pg from 'pg';
2
+ import { QueryConfig, QueryResultRow } from 'pg';
3
+
4
+ type QueryParams = {
5
+ readOnly?: boolean;
6
+ lambdaPostgresQueryFunction?: string;
7
+ } & QueryConfig;
8
+ type LambdaError = {
9
+ errorType: 'Error';
10
+ errorMessage: string;
11
+ trace: string[];
12
+ };
13
+ declare const query: <Rows extends QueryResultRow = any>(params: QueryParams | string) => Promise<{
14
+ rows: any[];
15
+ command: string;
16
+ rowCount: number | null;
17
+ oid: number;
18
+ fields: pg.FieldDef[];
19
+ }>;
20
+
21
+ export { type LambdaError, type QueryParams, query };
@@ -0,0 +1,21 @@
1
+ import * as pg from 'pg';
2
+ import { QueryConfig, QueryResultRow } from 'pg';
3
+
4
+ type QueryParams = {
5
+ readOnly?: boolean;
6
+ lambdaPostgresQueryFunction?: string;
7
+ } & QueryConfig;
8
+ type LambdaError = {
9
+ errorType: 'Error';
10
+ errorMessage: string;
11
+ trace: string[];
12
+ };
13
+ declare const query: <Rows extends QueryResultRow = any>(params: QueryParams | string) => Promise<{
14
+ rows: any[];
15
+ command: string;
16
+ rowCount: number | null;
17
+ oid: number;
18
+ fields: pg.FieldDef[];
19
+ }>;
20
+
21
+ export { type LambdaError, type QueryParams, query };
package/dist/index.js ADDED
@@ -0,0 +1,101 @@
1
+ /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
+ "use strict";
3
+
4
+ var __create = Object.create;
5
+ var __defProp = Object.defineProperty;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __export = (target, all) => {
11
+ for (var name in all) __defProp(target, name, {
12
+ get: all[name],
13
+ enumerable: true
14
+ });
15
+ };
16
+ var __copyProps = (to, from, except, desc) => {
17
+ if (from && typeof from === "object" || typeof from === "function") {
18
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
19
+ get: () => from[key],
20
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
21
+ });
22
+ }
23
+ return to;
24
+ };
25
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
26
+ // If the importer is in node compatibility mode or this is not an ESM
27
+ // file that has been converted to a CommonJS file using a Babel-
28
+ // compatible transform (i.e. "__esModule" has not been set), then set
29
+ // "default" to the CommonJS "module.exports" for node compatibility.
30
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
31
+ value: mod,
32
+ enumerable: true
33
+ }) : target, mod));
34
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
35
+ value: true
36
+ }), mod);
37
+
38
+ // src/index.ts
39
+ var src_exports = {};
40
+ __export(src_exports, {
41
+ query: () => query
42
+ });
43
+ module.exports = __toCommonJS(src_exports);
44
+
45
+ // src/query.ts
46
+ var import_client_lambda = require("@aws-sdk/client-lambda");
47
+ var import_camelcase_keys = __toESM(require("camelcase-keys"));
48
+ var lambdaClient = new import_client_lambda.LambdaClient();
49
+ var asciiDecoder = new TextDecoder("ascii");
50
+ var query = async params => {
51
+ try {
52
+ const {
53
+ readOnly = true,
54
+ // eslint-disable-next-line turbo/no-undeclared-env-vars
55
+ lambdaPostgresQueryFunction = process.env.LAMBDA_POSTGRES_QUERY_FUNCTION,
56
+ ...pgParams
57
+ } = typeof params === "string" ? {
58
+ text: params
59
+ } : params;
60
+ const input = {
61
+ FunctionName: lambdaPostgresQueryFunction,
62
+ Payload: JSON.stringify({
63
+ readOnly,
64
+ ...pgParams
65
+ })
66
+ };
67
+ const {
68
+ Payload
69
+ } = await lambdaClient.send(new import_client_lambda.InvokeCommand(input));
70
+ if (!Payload) {
71
+ console.error("No payload returned from lambda query", {
72
+ input
73
+ });
74
+ throw new Error("No payload returned from lambda query");
75
+ }
76
+ const data = asciiDecoder.decode(Payload);
77
+ const result = JSON.parse(data);
78
+ if ("errorType" in result) {
79
+ throw result;
80
+ }
81
+ return {
82
+ ...result,
83
+ rows: result.rows.map(row => {
84
+ return {
85
+ ...row,
86
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
87
+ ...(0, import_camelcase_keys.default)(row, {
88
+ deep: true
89
+ })
90
+ };
91
+ })
92
+ };
93
+ } catch (error) {
94
+ console.error("Error invoking Lambda: ", error);
95
+ throw error;
96
+ }
97
+ };
98
+ // Annotate the CommonJS export names for ESM import in node:
99
+ 0 && (module.exports = {
100
+ query
101
+ });
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@ttoss/lambda-postgres-query",
3
- "version": "0.2.13",
3
+ "version": "0.2.15",
4
4
  "description": "Create a Lambda function that queries a PostgreSQL database.",
5
+ "license": "MIT",
5
6
  "author": "ttoss",
6
7
  "contributors": [
7
8
  "Pedro Arantes <pedro@arantespp.com> (https://arantespp.com)"
@@ -25,14 +26,13 @@
25
26
  }
26
27
  },
27
28
  "files": [
28
- "dist",
29
- "src"
29
+ "dist"
30
30
  ],
31
31
  "dependencies": {
32
32
  "@aws-sdk/client-lambda": "^3.624.0",
33
33
  "camelcase-keys": "^7.0.2",
34
34
  "pg": "^8.12.0",
35
- "@ttoss/cloudformation": "^0.10.9"
35
+ "@ttoss/cloudformation": "^0.10.11"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/jest": "^29.5.13",
@@ -40,8 +40,8 @@
40
40
  "aws-sdk-client-mock": "^4.0.1",
41
41
  "jest": "^29.7.0",
42
42
  "tsup": "^8.3.0",
43
- "@ttoss/config": "^1.33.0",
44
- "@ttoss/test-utils": "^2.1.15"
43
+ "@ttoss/config": "^1.34.1",
44
+ "@ttoss/test-utils": "^2.1.17"
45
45
  },
46
46
  "keywords": [
47
47
  "aws",