@rpcbase/server 0.362.0 → 0.363.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/shared.js CHANGED
@@ -3,8 +3,6 @@ if (typeof __RB_IS_WEBPACK__ === "undefined") {
3
3
  throw new Error("cannot run without webpack bundling")
4
4
  }
5
5
 
6
- require("./setup_env")
7
-
8
6
  require("@rpcbase/std/extend-expect")
9
7
 
10
8
  const mongoose = require("../mongoose")
package/database.js CHANGED
@@ -1,7 +1,8 @@
1
1
  /* @flow */
2
2
  const isPort = require("validator/lib/isPort")
3
3
 
4
- const {is_docker} = require("@rpcbase/std")
4
+ // const {is_docker} = require("@rpcbase/std")
5
+ const is_docker = () => true
5
6
 
6
7
  const mongoose = require("./mongoose")
7
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/server",
3
- "version": "0.362.0",
3
+ "version": "0.363.0",
4
4
  "license": "SSPL-1.0",
5
5
  "main": "./index.js",
6
6
  "scripts": {
package/queue/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  /* @flow */
2
2
  const Queue = require("bull")
3
3
 
4
- const {is_docker} = require("@rpcbase/std")
4
+ // const {is_docker} = require("@rpcbase/std")
5
+ const is_docker = () => true
5
6
 
6
7
  const {WORKER_QUEUE_PORT} = process.env
7
8
 
@@ -6,7 +6,8 @@ const validator = require("validator")
6
6
  const {createClient} = require("redis")
7
7
  const RedisStore = require("connect-redis").default
8
8
 
9
- const {is_docker} = require("@rpcbase/std")
9
+ // const {is_docker} = require("@rpcbase/std")
10
+ const is_docker = () => true
10
11
 
11
12
 
12
13
  const {SESSION_STORE_PORT, APP_DOMAIN} = process.env
package/store/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  /* @flow */
2
2
  const {createClient} = require("redis")
3
3
 
4
- const {is_docker} = require("@rpcbase/std")
4
+ // const {is_docker} = require("@rpcbase/std")
5
+ const is_docker = () => true
5
6
 
6
7
 
7
8
  const {SERVER_STORE_PORT} = process.env
package/boot/setup_env.js DELETED
@@ -1,19 +0,0 @@
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 env_path = path.join(wd, "./.env")
9
-
10
- const res_shared = dotenv.config({path: shared_env_path})
11
- const res = dotenv.config({path: env_path})
12
-
13
- if (res.error) {
14
- throw res.error
15
- }
16
-
17
- if (res.error) {
18
- throw res.error
19
- }