advanced-lambda-context 1.2.10 → 1.2.13

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,4 +1,4 @@
1
- import main from '../aws/index.js'
1
+ import main from './index.js'
2
2
 
3
3
  export const AwsContext = main.AwsContext
4
4
  export const SharedAwsContext = new main.AwsContext()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "advanced-lambda-context",
3
- "version": "1.2.10",
3
+ "version": "1.2.13",
4
4
  "description": "A flexible wrapper function for various common lambda use-cases.",
5
5
  "engines": {
6
6
  "node": ">=14.19.0"
@@ -14,19 +14,20 @@
14
14
  },
15
15
  "./aws": {
16
16
  "require": "./aws/index.js",
17
- "import": "./esm/aws.js"
17
+ "import": "./aws/aws.mjs"
18
18
  },
19
19
  "./with/https/axios": {
20
20
  "require": "./with/https/axios.js",
21
- "import": "./esm/axios.js"
21
+ "import": "./https/axios.mjs"
22
22
  },
23
23
  "./with/logger/bunyan": {
24
24
  "require": "./with/logger/bunyan.js",
25
- "import": "./esm/bunyan.js"
25
+ "import": "./with/logger/bunyan.mjs"
26
+ },
27
+ "./with/database": {
28
+ "require": "./with/database/database.js",
29
+ "import": "./with/database/database.mjs"
26
30
  },
27
- "./with/database": "./esm/database.js",
28
- "./with/database/mysql": "./with/database/serverless-mysql.js",
29
- "./with/database/dataApi": "./with/database/data-api.js",
30
31
  "./package.json": "./package.json"
31
32
  },
32
33
  "repository": {
@@ -0,0 +1,7 @@
1
+ const dataApi = require('./data-api')
2
+ const mysql = require('./serverless-mysql')
3
+
4
+ module.exports = {
5
+ mysql,
6
+ dataApi,
7
+ }
@@ -0,0 +1,4 @@
1
+ import _dataApi from './data-api.js'
2
+ import _mysql from './serverless-mysql.js'
3
+ export const dataApi = _dataApi
4
+ export const mysql = _mysql
@@ -0,0 +1,2 @@
1
+ import main from './axios.js'
2
+ export default main
@@ -0,0 +1,2 @@
1
+ import main from './bunyan.js'
2
+ export default main
package/esm/axios.js DELETED
@@ -1,2 +0,0 @@
1
- import main from '../with/https/axios.js'
2
- export default main
package/esm/bunyan.js DELETED
@@ -1,2 +0,0 @@
1
- import main from './with/logger/bunyan.js'
2
- export default main
package/esm/database.js DELETED
@@ -1,4 +0,0 @@
1
- import _dataApi from '../with/database/data-api.js'
2
- import _mysql from '../with/database/serverless-mysql.js'
3
- export const dataApi = _dataApi
4
- export const mysql = _mysql