@sitevision/api 1.0.15 → 1.0.16

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.
@@ -73,6 +73,15 @@ export function use(callback: () => void): void;
73
73
  export function getUrl(url: string): string;
74
74
  export function getStandaloneUrl(url: string): string;
75
75
 
76
+ /**
77
+ * Note! Client side only
78
+ */
79
+ export function on(event: string, callback: () => void, context: any): void;
80
+ /**
81
+ * Note! Client side only
82
+ */
83
+ export function off(event: string, callback: () => void, context: any): void;
84
+
76
85
  declare namespace router {
77
86
  export { get, post, put, use, getUrl, getStandaloneUrl };
78
87
  }
@@ -14,6 +14,8 @@ var _default = {
14
14
  },
15
15
  getStandaloneUrl: function getStandaloneUrl(path) {
16
16
  return path;
17
- }
17
+ },
18
+ on: function on() {},
19
+ off: function off() {}
18
20
  };
19
21
  exports["default"] = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitevision/api",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "author": "Sitevision AB",
5
5
  "license": "MIT",
6
6
  "types": "index.d.ts",
@@ -26,5 +26,5 @@
26
26
  "access": "public",
27
27
  "directory": "dist"
28
28
  },
29
- "gitHead": "d4640984b1059f1e43389dd511688ff0b75a6bd5"
29
+ "gitHead": "380c3ff3713ccb3a667f6c8768242b9d44e37a40"
30
30
  }