@truffle/events
Advanced tools
@@ -13,3 +13,3 @@ const Spinner = require("@truffle/spinners").Spinner; | ||
| this.messageBus = new DashboardMessageBusClient(dashboardConfig); | ||
| this.messageBusClient = new DashboardMessageBusClient(dashboardConfig); | ||
@@ -33,3 +33,3 @@ this._logger = { | ||
| try { | ||
| const publishLifecycle = await this.messageBus.publish({ | ||
| const publishLifecycle = await this.messageBusClient.publish({ | ||
| type: "debug", | ||
@@ -46,2 +46,16 @@ payload: { | ||
| ], | ||
| "compile:succeed": [ | ||
| async function ({ result }) { | ||
| try { | ||
| const publishLifecycle = await this.messageBusClient.publish({ | ||
| type: "cli-event", | ||
| payload: { | ||
| label: "workflow-compile-result", | ||
| data: result | ||
| } | ||
| }); | ||
| publishLifecycle.abandon(); | ||
| } catch (err) {} | ||
| } | ||
| ], | ||
| "rpc:request": [ | ||
@@ -48,0 +62,0 @@ function (event) { |
+4
-4
| { | ||
| "name": "@truffle/events", | ||
| "version": "0.1.18", | ||
| "version": "0.1.19", | ||
| "description": "Event system for Truffle", | ||
@@ -25,4 +25,4 @@ "main": "index.js", | ||
| "dependencies": { | ||
| "@truffle/dashboard-message-bus-client": "^0.1.8", | ||
| "@truffle/spinners": "^0.2.2", | ||
| "@truffle/dashboard-message-bus-client": "^0.1.9", | ||
| "@truffle/spinners": "^0.2.3", | ||
| "debug": "^4.3.1", | ||
@@ -32,3 +32,3 @@ "emittery": "^0.4.1", | ||
| }, | ||
| "gitHead": "8db49f7df3f7e32846a5f42c03d8fa116288ebf7" | ||
| "gitHead": "94dda0c2a75fda1ace35ab0009856699e2e06ede" | ||
| } |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
51484
0.77%1495
0.95%0
-100%