@ejfdelgado/ejflab-common 1.10.6 → 1.11.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/MyConstants.js +10 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ejfdelgado/ejflab-common",
3
3
  "type": "commonjs",
4
- "version": "1.10.6",
4
+ "version": "1.11.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ejfdelgado/ejflab-common.git"
@@ -121,6 +121,16 @@ class MyConstants {
121
121
  }
122
122
  return keyNameXs;
123
123
  }
124
+
125
+ static overwriteEnvVariables() {
126
+ MyConstants.EMAIL_SENDER = process.env.EMAIL_SENDER;
127
+ MyConstants.BUCKET.PUBLIC = process.env.BUCKET_PUBLIC;
128
+ MyConstants.BUCKET.PRIVATE = process.env.BUCKET_PRIVATE;
129
+
130
+ console.log(`EMAIL_SENDER=${MyConstants.EMAIL_SENDER}`);
131
+ console.log(`BUCKET_PUBLIC=${MyConstants.BUCKET_PUBLIC}`);
132
+ console.log(`BUCKET_PRIVATE=${MyConstants.BUCKET_PRIVATE}`);
133
+ }
124
134
  }
125
135
 
126
136
  try {