@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/dist/app.d.ts +5 -0
- package/dist/app.js +20208 -0
- package/dist/commander.d.ts +821 -0
- package/dist/commander.js +16409 -0
- package/dist/opencode.d.ts +813 -0
- package/dist/opencode.js +15308 -0
- package/dist/router-browser.d.ts +681 -0
- package/dist/router-browser.js +33416 -0
- package/dist/router-define.d.ts +565 -0
- package/dist/router-define.js +135 -0
- package/dist/router-simple.d.ts +109 -0
- package/dist/router-simple.js +749 -0
- package/dist/router.d.ts +1081 -0
- package/dist/router.js +19092 -0
- package/dist/ws.d.ts +862 -0
- package/dist/ws.js +3041 -0
- package/package.json +1 -1
- package/src/commander.ts +4 -1
package/package.json
CHANGED
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) {
|