@wix/wix-code-diagnostics-plugin 1.1.6 → 1.1.8
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/README.md +21 -14
- package/dist/constants.d.ts +9 -3
- package/dist/constants.d.ts.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +3806 -58
- package/dist/protocol.d.ts +15 -0
- package/dist/protocol.d.ts.map +1 -0
- package/dist/requestPath.d.ts +6 -0
- package/dist/requestPath.d.ts.map +1 -0
- package/dist/runtimeErrorsServer.d.ts +2 -2
- package/dist/runtimeErrorsServer.d.ts.map +1 -1
- package/dist/wsClients.d.ts +3 -0
- package/dist/wsClients.d.ts.map +1 -0
- package/package.json +6 -4
- package/dist/sseClients.d.ts +0 -3
- package/dist/sseClients.d.ts.map +0 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { SerializedRuntimeError } from './runtimeError';
|
|
2
|
+
/**
|
|
3
|
+
* Messages the runtime-errors WebSocket sends to the editor, as JSON text frames. The editor
|
|
4
|
+
* mirrors this type; add a variant here before adding one there.
|
|
5
|
+
*/
|
|
6
|
+
export type RuntimeErrorsMessage = {
|
|
7
|
+
type: 'runtime-error';
|
|
8
|
+
error: SerializedRuntimeError;
|
|
9
|
+
}
|
|
10
|
+
/** Application-level heartbeat. Browsers cannot see protocol pings, so the editor uses this one. */
|
|
11
|
+
| {
|
|
12
|
+
type: 'ping';
|
|
13
|
+
};
|
|
14
|
+
export declare const encodeMessage: (message: RuntimeErrorsMessage) => string;
|
|
15
|
+
//# sourceMappingURL=protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../src/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAE7D;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAC5B;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,KAAK,EAAE,sBAAsB,CAAA;CAAE;AAC1D,oGAAoG;GAClG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAErB,eAAO,MAAM,aAAa,GAAI,SAAS,oBAAoB,KAAG,MAAiC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requestPath.d.ts","sourceRoot":"","sources":["../src/requestPath.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,eAAe,CAAC;CACxB;AAED,eAAO,MAAM,gBAAgB,GAAI,KAAK,MAAM,GAAG,SAAS,KAAG,iBAO1D,CAAC"}
|
|
@@ -4,9 +4,9 @@ export interface RuntimeErrorsServerOptions {
|
|
|
4
4
|
port?: number;
|
|
5
5
|
host?: string;
|
|
6
6
|
path?: string;
|
|
7
|
-
bufferSize?: number;
|
|
8
7
|
heartbeatIntervalMs?: number;
|
|
9
8
|
maxClientBufferBytes?: number;
|
|
9
|
+
closeGraceMs?: number;
|
|
10
10
|
allowedOrigins?: OriginAllowlist;
|
|
11
11
|
}
|
|
12
12
|
export interface RuntimeErrorsServer {
|
|
@@ -17,5 +17,5 @@ export interface RuntimeErrorsServer {
|
|
|
17
17
|
publish: (error: SerializedRuntimeError) => void;
|
|
18
18
|
close: () => Promise<void>;
|
|
19
19
|
}
|
|
20
|
-
export declare const startRuntimeErrorsServer: ({ port, host, path,
|
|
20
|
+
export declare const startRuntimeErrorsServer: ({ port, host, path, heartbeatIntervalMs, maxClientBufferBytes, closeGraceMs, allowedOrigins, }?: RuntimeErrorsServerOptions) => Promise<RuntimeErrorsServer>;
|
|
21
21
|
//# sourceMappingURL=runtimeErrorsServer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtimeErrorsServer.d.ts","sourceRoot":"","sources":["../src/runtimeErrorsServer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runtimeErrorsServer.d.ts","sourceRoot":"","sources":["../src/runtimeErrorsServer.ts"],"names":[],"mappings":"AAWA,OAAO,EAA0C,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAGxF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAG7D,MAAM,WAAW,0BAA0B;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,eAAe,CAAC;CAClC;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,IAAI,CAAC;IACjD,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5B;AAuDD,eAAO,MAAM,wBAAwB,GAAU,iGAQ5C,0BAA+B,KAAG,OAAO,CAAC,mBAAmB,CAkG/D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wsClients.d.ts","sourceRoot":"","sources":["../src/wsClients.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAI/B,eAAO,MAAM,aAAa,GACxB,SAAS,GAAG,CAAC,SAAS,CAAC,EACvB,SAAS,MAAM,EACf,kBAAkB,MAAM,KACvB,IAWF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/wix-code-diagnostics-plugin",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"description": "Wix CLI plugin that forwards CLI build/preview/dev diagnostics to the code-project-orchestrator over HTTP",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"scripts": {
|
|
16
16
|
"clean": "rm -rf dist",
|
|
17
17
|
"prebuild": "npm run clean",
|
|
18
|
-
"build": "tsc &&
|
|
18
|
+
"build": "tsc && node esbuild.config.mjs",
|
|
19
19
|
"test": "jest --runInBand",
|
|
20
20
|
"lint": "echo \"No lint for plugin package yet\" && exit 0",
|
|
21
21
|
"typecheck": "tsc --noEmit"
|
|
@@ -36,10 +36,12 @@
|
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/jest": "^29.5.14",
|
|
38
38
|
"@types/node": "^24.13.3",
|
|
39
|
+
"@types/ws": "^8.5.13",
|
|
39
40
|
"esbuild": "^0.24.0",
|
|
40
41
|
"jest": "^29.7.0",
|
|
41
42
|
"ts-jest": "^29.4.6",
|
|
42
|
-
"typescript": "^5.9.3"
|
|
43
|
+
"typescript": "^5.9.3",
|
|
44
|
+
"ws": "^8.21.3"
|
|
43
45
|
},
|
|
44
|
-
"falconPackageHash": "
|
|
46
|
+
"falconPackageHash": "a354338121504c210ebb8975e072aa6b5edcf948691d27683fce4ce8"
|
|
45
47
|
}
|
package/dist/sseClients.d.ts
DELETED
package/dist/sseClients.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sseClients.d.ts","sourceRoot":"","sources":["../src/sseClients.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,eAAO,MAAM,cAAc,GACzB,SAAS,GAAG,CAAC,cAAc,CAAC,EAC5B,OAAO,MAAM,EACb,kBAAkB,MAAM,KACvB,IAQF,CAAC"}
|