@kevisual/router 0.2.3 → 0.2.5

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@kevisual/router",
4
- "version": "0.2.3",
4
+ "version": "0.2.5",
5
5
  "description": "",
6
6
  "type": "module",
7
7
  "main": "./dist/router.js",
package/src/commander.ts CHANGED
@@ -125,6 +125,8 @@ export const parse = async (opts: {
125
125
  token?: string,
126
126
  username?: string,
127
127
  id?: string,
128
+ /** https://kevisual.cn/ws/proxy */
129
+ url?: string,
128
130
  },
129
131
  exitOnEnd?: boolean,
130
132
  }) => {
@@ -141,12 +143,13 @@ export const parse = async (opts: {
141
143
  createCommand({ app: app as App, program: _program });
142
144
 
143
145
  if (opts.remote) {
144
- const { token, username, id } = opts.remote;
146
+ const { token, username, id , url } = opts.remote;
145
147
  const remoteApp = new RemoteApp({
146
148
  app,
147
149
  token,
148
150
  username,
149
151
  id,
152
+ url,
150
153
  });
151
154
  const isConnect = await remoteApp.isConnect();
152
155
  if (isConnect) {