@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.
|
|
4
|
+
import { QueryParams } from '../index.cjs';
|
|
5
5
|
import 'pg';
|
|
6
6
|
|
|
7
7
|
declare const HANDLER_DEFAULT = "handler.handler";
|
package/dist/esm/index.js
CHANGED
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
|
|
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.
|
|
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": "
|
|
15
|
+
"type": "module",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
18
18
|
"import": "./dist/esm/index.js",
|
|
File without changes
|