@domain.js/main 0.7.0 → 0.7.2

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.
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BridgeSocket = void 0;
4
4
  const basic_errors_1 = require("../basic-errors");
5
- const proxyIps = new Set(["127.0.0.1"]);
5
+ const proxyIps = new Set((process.env["PROXY_IPS"] || "127.0.0.1").split(","));
6
6
  class MyError extends Error {
7
7
  constructor(code, message, data) {
8
8
  super(message);
@@ -121,7 +121,7 @@ function BridgeSocket(io, domain) {
121
121
  client.extra.entrancing = true;
122
122
  try {
123
123
  if (!client.profile || !client.inited)
124
- return;
124
+ throw basic_errors_1.errors.notAllowed("请先执行 init");
125
125
  if (opts.length)
126
126
  Object.assign(client, { entranceOpts: opts });
127
127
  const ret = await entrance({ ...client.profile, roomId }, client);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domain.js/main",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "description": "DDD framework",
5
5
  "main": "dist/index.js",
6
6
  "bin": {