@rpcbase/server 0.206.0 → 0.207.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.
package/boot/index.js ADDED
@@ -0,0 +1,3 @@
1
+ /* @flow */
2
+
3
+ require("./setup_env")
@@ -0,0 +1,25 @@
1
+ /* @flow */
2
+ const path = require("path")
3
+ const dotenv = require("dotenv")
4
+
5
+ const wd = process.cwd()
6
+
7
+ const shared_env_path = path.join(wd, "../../.env")
8
+ const base_env_path = path.join(wd, "./.env.base")
9
+ const env_path = path.join(wd, "./.env")
10
+
11
+ const res_shared = dotenv.config({path: shared_env_path})
12
+ const res_base = dotenv.config({path: base_env_path})
13
+ const res = dotenv.config({path: env_path})
14
+
15
+ if (res_base.error) {
16
+ throw res_base.error
17
+ }
18
+
19
+ if (res.error) {
20
+ throw res.error
21
+ }
22
+
23
+ if (res.error) {
24
+ throw res.error
25
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/server",
3
- "version": "0.206.0",
3
+ "version": "0.207.0",
4
4
  "license": "SSPL-1.0",
5
5
  "main": "./index.js",
6
6
  "bin": {