@jay-framework/editor-client 0.6.4 → 0.6.6
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/index.cjs +9 -3
- package/dist/index.js +9 -3
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -134,8 +134,10 @@ class ConnectionManager {
|
|
|
134
134
|
await new Promise((resolve) => setTimeout(resolve, 1e3));
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
throw new Error(
|
|
138
|
-
${
|
|
137
|
+
throw new Error(
|
|
138
|
+
`No editor server found in port range ${startPort}-${endPort}:
|
|
139
|
+
${errors.join("\n")}`
|
|
140
|
+
);
|
|
139
141
|
}
|
|
140
142
|
async checkPort(port) {
|
|
141
143
|
return new Promise((resolve, reject) => {
|
|
@@ -156,7 +158,11 @@ ${errors.join("\n")}`);
|
|
|
156
158
|
resolve(data);
|
|
157
159
|
} else {
|
|
158
160
|
if (data.id)
|
|
159
|
-
reject(
|
|
161
|
+
reject(
|
|
162
|
+
new Error(
|
|
163
|
+
`failed to match on editorId ${this.editorId} !== port's ${data.id}`
|
|
164
|
+
)
|
|
165
|
+
);
|
|
160
166
|
else
|
|
161
167
|
reject(new Error(`failed to match on editorId ${this.editorId}`));
|
|
162
168
|
}
|
package/dist/index.js
CHANGED
|
@@ -132,8 +132,10 @@ class ConnectionManager {
|
|
|
132
132
|
await new Promise((resolve) => setTimeout(resolve, 1e3));
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
throw new Error(
|
|
136
|
-
${
|
|
135
|
+
throw new Error(
|
|
136
|
+
`No editor server found in port range ${startPort}-${endPort}:
|
|
137
|
+
${errors.join("\n")}`
|
|
138
|
+
);
|
|
137
139
|
}
|
|
138
140
|
async checkPort(port) {
|
|
139
141
|
return new Promise((resolve, reject) => {
|
|
@@ -154,7 +156,11 @@ ${errors.join("\n")}`);
|
|
|
154
156
|
resolve(data);
|
|
155
157
|
} else {
|
|
156
158
|
if (data.id)
|
|
157
|
-
reject(
|
|
159
|
+
reject(
|
|
160
|
+
new Error(
|
|
161
|
+
`failed to match on editorId ${this.editorId} !== port's ${data.id}`
|
|
162
|
+
)
|
|
163
|
+
);
|
|
158
164
|
else
|
|
159
165
|
reject(new Error(`failed to match on editorId ${this.editorId}`));
|
|
160
166
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jay-framework/editor-client",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"test:watch": "vitest"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@jay-framework/editor-protocol": "^0.6.
|
|
30
|
+
"@jay-framework/editor-protocol": "^0.6.6",
|
|
31
31
|
"get-port": "^7.0.0",
|
|
32
32
|
"socket.io-client": "^4.7.4",
|
|
33
33
|
"uuid": "^9.0.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@jay-framework/dev-environment": "^0.6.
|
|
37
|
-
"@jay-framework/jay-cli": "^0.6.
|
|
36
|
+
"@jay-framework/dev-environment": "^0.6.6",
|
|
37
|
+
"@jay-framework/jay-cli": "^0.6.6",
|
|
38
38
|
"@types/node": "^22.15.21",
|
|
39
39
|
"@types/uuid": "^9.0.7",
|
|
40
40
|
"rimraf": "^5.0.5",
|