@wox-launcher/wox-plugin 0.0.74 → 0.0.76

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/context.js CHANGED
@@ -1,6 +1,8 @@
1
1
  export function NewContext() {
2
2
  return {
3
- Values: {},
3
+ Values: {
4
+ traceId: crypto.randomUUID()
5
+ },
4
6
  Get: function (key) {
5
7
  return this.Values[key];
6
8
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wox-launcher/wox-plugin",
3
- "version": "0.0.74",
3
+ "version": "0.0.76",
4
4
  "description": "All nodejs plugin for Wox should use types in this package",
5
5
  "repository": {
6
6
  "type": "git",
package/types/index.d.ts CHANGED
@@ -205,6 +205,11 @@ export interface PublicAPI {
205
205
  */
206
206
  OnDeepLink: (ctx: Context, callback: (arguments: MapString) => void) => Promise<void>
207
207
 
208
+ /**
209
+ * Register on load event
210
+ */
211
+ OnUnload: (ctx: Context) => Promise<void>
212
+
208
213
  /**
209
214
  * Register query commands
210
215
  */