@wix/wix-code-diagnostics-plugin 1.1.0 → 1.1.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAM5C,eAAO,MAAM,wBAAwB,QAAO,YAqB1C,CAAC;AAEH,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAM5C,eAAO,MAAM,wBAAwB,QAAO,YAe1C,CAAC;AAEH,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
package/dist/index.mjs CHANGED
@@ -52,18 +52,14 @@ var ENV_TOKEN = "WIX_CODE_DIAGNOSTICS_TOKEN";
52
52
  var wixCodeDiagnosticsPlugin = () => ({
53
53
  name: "wix-code-diagnostics",
54
54
  hooks: {
55
- "cli:setup"({ emitter }) {
55
+ "cli:setup"({ cmd }) {
56
56
  const endpoint = process.env[ENV_ENDPOINT];
57
57
  const token = process.env[ENV_TOKEN];
58
58
  if (!endpoint || !token) {
59
59
  return;
60
60
  }
61
- emitter.on("dc-updated", () => {
62
- void reportDiagnostic({ endpoint, token, phase: "dev", status: "success" }).catch(
63
- (error) => {
64
- console.error("[wix-code-diagnostics] failed to report diagnostic:", error);
65
- }
66
- );
61
+ void reportDiagnostic({ endpoint, token, phase: cmd, status: "success" }).catch((error) => {
62
+ console.error("[wix-code-diagnostics] failed to report diagnostic:", error);
67
63
  });
68
64
  }
69
65
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/wix-code-diagnostics-plugin",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
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",
@@ -38,5 +38,5 @@
38
38
  "esbuild": "^0.24.0",
39
39
  "typescript": "^5.9.3"
40
40
  },
41
- "falconPackageHash": "c6beccf57b910a51a8360086b9cfc6d5fc3ceddd12d1ee12559a4b08"
41
+ "falconPackageHash": "7d46a8e485ac2401fd2eef29af95cbc842ca4f4158a942b4c46daf24"
42
42
  }