rice-node-sdk 1.0.2 → 1.0.3

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/Client.js CHANGED
@@ -74,9 +74,12 @@ class Client {
74
74
  }
75
75
  const token = process.env.STORAGE_AUTH_TOKEN;
76
76
  const user = process.env.STORAGE_USER || "admin";
77
+ const httpPort = process.env.STORAGE_HTTP_PORT
78
+ ? parseInt(process.env.STORAGE_HTTP_PORT, 10)
79
+ : 3000;
77
80
  // We assume STORAGE_INSTANCE_URL points to the gRPC port
78
81
  // Pass token to constructor initially (if it's a valid token, it works; if it's a password, we login)
79
- this._storage = new RiceDBClient_1.RiceDBClient(host, "auto", port, 3000, token);
82
+ this._storage = new RiceDBClient_1.RiceDBClient(host, "auto", port, httpPort, token);
80
83
  await this._storage.connect();
81
84
  if (token) {
82
85
  try {