@felloh-org/lambda-wrapper 1.11.215 → 1.11.217

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/jest.config.js CHANGED
@@ -13,4 +13,12 @@ module.exports = {
13
13
  '/src/migration/',
14
14
  '/src/enums/',
15
15
  ],
16
+ coverageThreshold: {
17
+ global: {
18
+ statements: 95,
19
+ branches: 90,
20
+ functions: 95,
21
+ lines: 95,
22
+ },
23
+ },
16
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.11.215",
3
+ "version": "1.11.217",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -13,7 +13,7 @@
13
13
  "concourse:login": "fly --target felloh-cicd login --insecure --concourse-url https://ci.vpn.felloh.com --team-name libraries",
14
14
  "concourse:sync": "sudo fly -t ci sync",
15
15
  "lint": "./node_modules/.bin/eslint ./src",
16
- "orm:migration:generate": "rm -rf dist && yarn build:orm && ./node_modules/.bin/typeorm migration:generate -o -n -d ./data-source.js",
16
+ "orm:migration:generate": "sh -c 'rm -rf dist && yarn build:orm && ./node_modules/.bin/typeorm migration:generate -o -d ./data-source.js src/migration/$0'",
17
17
  "orm:migration:run": "rm -rf dist && yarn build:orm && ./node_modules/.bin/typeorm migration:run -d ./data-source.js",
18
18
  "orm:schema:create": "babel-node ./cli/seed/create-schema.js",
19
19
  "orm:revert": "rm -rf dist && yarn build:orm && ./node_modules/.bin/typeorm migration:revert -d ./data-source.js",
package/ormconfig.js DELETED
@@ -1,38 +0,0 @@
1
- const DotEnv = require('dotenv');
2
-
3
- DotEnv.config();
4
-
5
- const connectionParams = {
6
- database: process.env.WAREHOUSE_DATABASE,
7
- entities: [
8
- `${__dirname}/dist/entity/**/*.ts`,
9
- `${__dirname}/dist/entity/**/*.js`,
10
- ],
11
- migrations: [
12
- `${__dirname}/dist/migration/**/*.ts`,
13
- `${__dirname}/dist/migration/**/*.js`,
14
- ],
15
- cli: {
16
- migrationsDir: `${__dirname}/src/migration`,
17
- },
18
- synchronize: true,
19
- logging: false,
20
- schema: 'user',
21
- };
22
-
23
- if (process.env.WAREHOUSE_TYPE === 'postgres') {
24
- connectionParams.type = 'postgres';
25
- connectionParams.host = process.env.WAREHOUSE_HOST;
26
- connectionParams.port = 5432;
27
- connectionParams.username = process.env.WAREHOUSE_USERNAME;
28
- connectionParams.password = process.env.WAREHOUSE_PASSWORD;
29
- connectionParams.database = process.env.WAREHOUSE_DATABASE;
30
- connectionParams.ssl = true;
31
- } else {
32
- connectionParams.type = 'aurora-data-api-pg';
33
- connectionParams.secretArn = process.env.WAREHOUSE_SECRET_ARN;
34
- connectionParams.resourceArn = process.env.WAREHOUSE_ARN;
35
- connectionParams.region = process.env.REGION;
36
- }
37
-
38
- module.exports = connectionParams;