lambda-toolkit 0.0.3-beta → 0.0.5-beta
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 +20 -1
- package/package.json +16 -17
- package/dist/index.mjs +0 -2541
- /package/dist/{index.cjs → index.js} +0 -0
package/README.md
CHANGED
|
@@ -2,9 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
A set of tools to simplify Node Js code development specific for AWS Lambdas, including common functions and AWS SDK v3 abstractions.
|
|
4
4
|
|
|
5
|
+
## Origin
|
|
6
|
+
|
|
7
|
+
This project was created based on my personal experience after I have been working with lambdas for almost 10 years. The need to abstract the AWS SDK integration for common day-to-day tasks led me to create this library, first as a private re-usable piece of code, now as a public package. I also added together some common functions I needed the most over the years. The goal of this library is to make the developer's life easier.
|
|
8
|
+
|
|
5
9
|
## Dependencies
|
|
6
10
|
|
|
7
|
-
This project has no dependency other than
|
|
11
|
+
This project has no dependency other than the AWS SDKs. My goal is to always have the minimal number of dependencies, so commons functions in this code base, like `camelize`, `mean` or `splitBatches` were implemented instead of relying on external providers.
|
|
12
|
+
|
|
13
|
+
As for the AWS SDK dependencies, this code is intended to run on AWS Lambda environments and __I strong suggest__ that you don't include these packages when bundling your code for deploy, as they are all available at the AWS runtime. For example, at your `webpack.config.js`, include:
|
|
14
|
+
```js
|
|
15
|
+
{
|
|
16
|
+
...,
|
|
17
|
+
externals: [
|
|
18
|
+
/@aws-sdk\/*/
|
|
19
|
+
],
|
|
20
|
+
...
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## ES6
|
|
25
|
+
|
|
26
|
+
This codebase was written in ES5 flavor. I plan to re-write it in ES6 and then provide both ES5 and ES6 builds when publishing to npm.
|
|
8
27
|
|
|
9
28
|
## Documentation
|
|
10
29
|
|
package/package.json
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lambda-toolkit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5-beta",
|
|
4
4
|
"description": "A set of tools to help and simplify Node Js code development for AWS Lambdas",
|
|
5
5
|
"files": [
|
|
6
6
|
"./license",
|
|
7
7
|
"./dist"
|
|
8
8
|
],
|
|
9
|
-
"
|
|
10
|
-
"require": "./dist/index.cjs",
|
|
11
|
-
"import": "./dist/index.mjs"
|
|
12
|
-
},
|
|
9
|
+
"main": "./dist/index.js",
|
|
13
10
|
"author": "Stéfano Zanata",
|
|
14
11
|
"scripts": {
|
|
15
12
|
"build": "webpack --stats errors-only",
|
|
@@ -26,19 +23,21 @@
|
|
|
26
23
|
"url": "https://github.com/szanata/lambda-toolkit/issues"
|
|
27
24
|
},
|
|
28
25
|
"homepage": "https://github.com/szanata/lambda-toolkit",
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@aws-sdk/client-athena": "^3.734.0",
|
|
28
|
+
"@aws-sdk/client-dynamodb": "^3.734.0",
|
|
29
|
+
"@aws-sdk/client-lambda": "^3.734.0",
|
|
30
|
+
"@aws-sdk/client-s3": "^3.735.0",
|
|
31
|
+
"@aws-sdk/client-sesv2": "^3.734.0",
|
|
32
|
+
"@aws-sdk/client-sns": "^3.734.0",
|
|
33
|
+
"@aws-sdk/client-sqs": "^3.734.0",
|
|
34
|
+
"@aws-sdk/client-ssm": "^3.735.0",
|
|
35
|
+
"@aws-sdk/client-timestream-query": "^3.734.0",
|
|
36
|
+
"@aws-sdk/client-timestream-write": "^3.734.0",
|
|
37
|
+
"@aws-sdk/lib-dynamodb": "^3.734.0",
|
|
38
|
+
"@aws-sdk/s3-request-presigner": "^3.735.0"
|
|
39
|
+
},
|
|
29
40
|
"devDependencies": {
|
|
30
|
-
"@aws-sdk/client-athena": "3.709.0",
|
|
31
|
-
"@aws-sdk/client-dynamodb": "3.709.0",
|
|
32
|
-
"@aws-sdk/client-lambda": "3.709.0",
|
|
33
|
-
"@aws-sdk/client-s3": "3.709.0",
|
|
34
|
-
"@aws-sdk/client-sesv2": "3.710.0",
|
|
35
|
-
"@aws-sdk/client-sns": "3.709.0",
|
|
36
|
-
"@aws-sdk/client-sqs": "3.709.0",
|
|
37
|
-
"@aws-sdk/client-ssm": "3.709.0",
|
|
38
|
-
"@aws-sdk/client-timestream-query": "3.709.0",
|
|
39
|
-
"@aws-sdk/client-timestream-write": "3.709.0",
|
|
40
|
-
"@aws-sdk/lib-dynamodb": "3.709.0",
|
|
41
|
-
"@aws-sdk/s3-request-presigner": "3.709.0",
|
|
42
41
|
"eslint": "9.17.0",
|
|
43
42
|
"eslint-plugin-import": "2.31.0",
|
|
44
43
|
"jest": "29.7.0",
|