@sitevision/api 1.0.12 → 1.0.15

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.
@@ -0,0 +1,24 @@
1
+ export declare namespace security {
2
+ export namespace csrf {
3
+ /**
4
+ * Used to acquire the current csrf-token. If the user is anonymous or if csrf-protection is disabled on the server this will return null.
5
+ *
6
+ * @returns {string} the current token as string or null for anonymous users.
7
+ */
8
+ export function getToken(): string;
9
+ /**
10
+ * Used to acquire the parameter name that should be used when passing the token as a form field.
11
+ *
12
+ * @returns {string} the name that should be used when passing the token as form data.
13
+ */
14
+ export function getParameterName(): string;
15
+ /**
16
+ * Used to acquire the header name that should be used when passing the token as a request header.
17
+ *
18
+ * @returns {string} the name that should be used when passing the token as a header.
19
+ */
20
+ export function getHeaderName(): string;
21
+ }
22
+ }
23
+
24
+ export default security;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _default = {
8
+ csrf: {
9
+ getToken: function getToken() {},
10
+ getParameterName: function getParameterName() {},
11
+ getHeaderName: function getHeaderName() {}
12
+ }
13
+ };
14
+ exports["default"] = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitevision/api",
3
- "version": "1.0.12",
3
+ "version": "1.0.15",
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": "d514eb8b9219d901e11cbda190e5812a5522fbdc"
29
+ "gitHead": "d4640984b1059f1e43389dd511688ff0b75a6bd5"
30
30
  }
@@ -30,7 +30,7 @@ export interface ICollaborationGroupWrapper {
30
30
  * Gets the followers/eavesdroppers of the wrapped collaboration group.
31
31
  * @returns {Set<Node>} the followers of the wrapped collaboration group. Never null.
32
32
  */
33
- getFollower(): Set<Node>;
33
+ getFollowers(): Set<Node>;
34
34
 
35
35
  /**
36
36
  * Gets the group description of the wrapped collaboration group.