@rpcbase/server 0.255.0 → 0.256.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/mailer/index.js +3 -3
  2. package/package.json +1 -1
package/mailer/index.js CHANGED
@@ -4,15 +4,15 @@ const postmark = require("postmark")
4
4
 
5
5
  const log = debug("rb:mailer")
6
6
 
7
- const {POSTMARK_API_KEY, IS_PRODUCTION, RB_FORCE_SEND_EMAILS} = process.env
7
+ const {POSTMARK_API_KEY, NODE_ENV, RB_FORCE_SEND_EMAILS} = process.env
8
8
 
9
- const is_production = IS_PRODUCTION === "yes"
9
+ const is_production = NODE_ENV === "production"
10
10
  const force_send = RB_FORCE_SEND_EMAILS === "yes"
11
11
 
12
12
 
13
13
  // TMP use proper mock smtp server in development
14
14
 
15
- log("mailer, is_production:", is_production, "env:", JSON.stringify(IS_PRODUCTION))
15
+ log("mailer, is_production:", {is_production})
16
16
 
17
17
  let client
18
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/server",
3
- "version": "0.255.0",
3
+ "version": "0.256.0",
4
4
  "license": "SSPL-1.0",
5
5
  "main": "./index.js",
6
6
  "bin": {