@sitevision/api 1.0.18 → 1.0.20
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/common/router/index.d.ts +19 -2
- package/package.json +2 -2
package/common/router/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ interface IResponse {
|
|
|
15
15
|
sendFile(file: any): void;
|
|
16
16
|
status(status: number): Response;
|
|
17
17
|
agnosticRender(html: string, initialData: any);
|
|
18
|
+
json(data: any): void;
|
|
18
19
|
/**
|
|
19
20
|
* This method will render a component with data
|
|
20
21
|
*/
|
|
@@ -61,7 +62,12 @@ export function put(
|
|
|
61
62
|
route: string,
|
|
62
63
|
callback: (req: IRequest, res: IResponse) => void
|
|
63
64
|
): void;
|
|
64
|
-
|
|
65
|
+
declare function _delete(
|
|
66
|
+
route: string,
|
|
67
|
+
callback: (req: IRequest, res: IResponse) => void
|
|
68
|
+
): void;
|
|
69
|
+
|
|
70
|
+
export { _delete as delete };
|
|
65
71
|
|
|
66
72
|
/**
|
|
67
73
|
* Note! Server side only
|
|
@@ -88,7 +94,18 @@ export function off(event: string, callback: () => void, context: any): void;
|
|
|
88
94
|
export function navigate(url: string, options: any): void;
|
|
89
95
|
|
|
90
96
|
declare namespace router {
|
|
91
|
-
export {
|
|
97
|
+
export {
|
|
98
|
+
get,
|
|
99
|
+
post,
|
|
100
|
+
put,
|
|
101
|
+
_delete as delete,
|
|
102
|
+
use,
|
|
103
|
+
getUrl,
|
|
104
|
+
getStandaloneUrl,
|
|
105
|
+
on,
|
|
106
|
+
off,
|
|
107
|
+
navigate,
|
|
108
|
+
};
|
|
92
109
|
}
|
|
93
110
|
|
|
94
111
|
export default router;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sitevision/api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.20",
|
|
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": "
|
|
29
|
+
"gitHead": "248d3b7c373c815deb730d304fa9a5a4cd46fc70"
|
|
30
30
|
}
|