minimonolith 0.19.0 → 0.20.1

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 CHANGED
@@ -124,7 +124,8 @@ There are 4 possible environments: DEV=TRUE & PROD=FALSE, DEV=TRUE & PROD=TRUE,
124
124
 
125
125
  To better understand their relevance:
126
126
  1. The "new concept" DEV environments (DEV=TRUE) aim to make the api crash if an "important" error happens
127
- 1. Its current only difference is it makes it crash on error at service registration phase
127
+ - Its current only difference is it makes it crash on error at service registration phase
128
+ - Some may think QA should also fail on "important" errors They can use DEV=TRUE there But some do training activities on QA that should be minimally disrupted
128
129
  2. The "new concept" QA environments (PROD=FALSE) aim at logging data about the system which on production environments would be forbiden personal information
129
130
  1. This is relevant because replication of QA activities (even security QA activities) depend heavily on this
130
131
 
@@ -137,6 +138,11 @@ MM_API_PROD_ENV=FALSE
137
138
  [...]
138
139
  ```
139
140
 
141
+ *NOTICE*: If this variables are not added to .env/Lambda environment it is assumed standard PROD environment (DEV=FLASE & PROD=TRUE)
142
+ - This means that sequelize will not alter automatically tables having mismatches with defined model.js files
143
+ - Database dialect/credentials detected will not be printed
144
+ - Critical errors will not make the app crash
145
+
140
146
  ## Database Authentication
141
147
 
142
148
  To set up authentication for the database, you need to provide the necessary environment variables in a `.env` file. Depending on the database dialect the required variables will differ.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "minimonolith",
3
3
  "type": "module",
4
- "version": "0.19.0",
4
+ "version": "0.20.1",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -1,5 +1,5 @@
1
1
  export default {
2
2
  error: (...ERROR) => { console.error(...ERROR) },
3
3
  log: (...MESSAGE) => { console.log(...MESSAGE) },
4
- qa: (...MESSAGE) => { if (process.env.MM_API_PROD_ENV!=='TRUE') console.log(...MESSAGE) }
4
+ qa: (...MESSAGE) => { if (process.env.MM_API_PROD_ENV==='FALSE') console.log(...MESSAGE) }
5
5
  };