@rpcbase/server 0.42.0 → 0.45.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/bin.js CHANGED
@@ -13,12 +13,11 @@ let is_command = false
13
13
  const args = yargs(hideBin(process.argv))
14
14
  .command("start", "run server/infrastructure", () => {}, (argv) => {
15
15
  is_command = true
16
- console.log("run start server/infrastructure")
17
16
  start_server()
18
17
  })
19
18
  .command("ping", "ping", () => {}, (argv) => {
20
19
  is_command = true
21
- console.log("OING")
20
+ console.log("PING")
22
21
  })
23
22
  .option("verbose", {
24
23
  alias: "v",
package/cli/run_docker.js CHANGED
@@ -4,7 +4,6 @@ const path = require("path")
4
4
 
5
5
  const is_production = "yes" === process.env.INFRASTRUCTURE_IS_PRODUCTION
6
6
 
7
-
8
7
  const run_docker = async(infrastructure_dir, proj_prefix) => {
9
8
  // env
10
9
  const env_path = path.relative(infrastructure_dir, path.join(process.cwd(), "./.env"))
@@ -20,6 +19,7 @@ const run_docker = async(infrastructure_dir, proj_prefix) => {
20
19
  const cmd = `docker-compose --env-file ${env_path} -p ${proj_prefix} ${compose_files.join(" ")} up ${opts.join(" ")}`
21
20
 
22
21
  console.log(cmd)
22
+
23
23
  try {
24
24
  execSync(cmd, {stdio: "inherit", cwd: infrastructure_dir})
25
25
  } catch (err) {
@@ -20,7 +20,6 @@ const start_server = async() => {
20
20
 
21
21
  const runtime = get_runtime()
22
22
 
23
- console.log("RUN", runtime)
24
23
  if (runtime === "native") {
25
24
  run_native(infrastructure_dir, proj_prefix)
26
25
  } else {
@@ -0,0 +1,8 @@
1
+ /* @flow */
2
+ const postmark = require("postmark")
3
+
4
+ const {POSTMARK_API_KEY} = process.env
5
+
6
+ const client = new postmark.ServerClient(POSTMARK_API_KEY)
7
+
8
+ module.exports = client
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/server",
3
- "version": "0.42.0",
3
+ "version": "0.45.0",
4
4
  "license": "SSPL-1.0",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -19,6 +19,7 @@
19
19
  "express-session": "1.17.2",
20
20
  "glob": "7.2.0",
21
21
  "mongoose": "6.2.7",
22
+ "postmark": "3.0.1",
22
23
  "redis": "4.0.4",
23
24
  "validator": "13.7.0",
24
25
  "yargs": "17.4.0"