@magek/core 0.0.3 → 0.0.4
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/dist/magek.js +3 -1
- package/package.json +4 -4
package/dist/magek.js
CHANGED
|
@@ -120,7 +120,9 @@ Magek.config = new common_1.MagekConfig(checkAndGetCurrentEnv());
|
|
|
120
120
|
function checkAndGetCurrentEnv() {
|
|
121
121
|
const env = process.env.MAGEK_ENV;
|
|
122
122
|
if (!env || env.trim().length == 0) {
|
|
123
|
-
throw new Error('Magek environment is missing. You need to provide an environment to configure your Magek project'
|
|
123
|
+
throw new Error('Magek environment is missing. You need to provide an environment to configure your Magek project.\n\n' +
|
|
124
|
+
'To fix this error, set the MAGEK_ENV environment variable.\n' +
|
|
125
|
+
'Common environment names: local, development, staging, production, test');
|
|
124
126
|
}
|
|
125
127
|
return env;
|
|
126
128
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magek/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Library for your Magek apps",
|
|
5
5
|
"author": "Boosterin Labs SLU",
|
|
6
6
|
"homepage": "https://magek.ai",
|
|
@@ -23,19 +23,19 @@
|
|
|
23
23
|
"node": ">=22.0.0 <23.0.0"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@magek/common": "^0.0.
|
|
26
|
+
"@magek/common": "^0.0.4",
|
|
27
27
|
"fp-ts": "2.16.11",
|
|
28
28
|
"graphql-scalars": "1.25.0",
|
|
29
29
|
"inflected": "2.1.0",
|
|
30
30
|
"iterall": "1.3.0",
|
|
31
31
|
"jsonwebtoken": "9.0.3",
|
|
32
|
-
"jwks-rsa": "3.2.
|
|
32
|
+
"jwks-rsa": "3.2.1",
|
|
33
33
|
"tslib": "2.8.1",
|
|
34
34
|
"validator": "13.15.26",
|
|
35
35
|
"fast-check": "4.5.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@magek/eslint-config": "^0.0.
|
|
38
|
+
"@magek/eslint-config": "^0.0.4",
|
|
39
39
|
"@types/chai": "5.2.3",
|
|
40
40
|
"@types/chai-as-promised": "8.0.2",
|
|
41
41
|
"@types/inflected": "2.1.3",
|