@enonic-types/lib-context 7.16.2-RC2 → 8.0.0-A2
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/context.d.ts +2 -2
- package/package.json +2 -2
package/context.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export interface AuthInfo {
|
|
|
17
17
|
user?: User | null;
|
|
18
18
|
principals?: PrincipalKey[] | null;
|
|
19
19
|
}
|
|
20
|
-
export
|
|
20
|
+
export type ContextAttributes = Record<string, number | string | boolean | Record<string, unknown>>;
|
|
21
21
|
export interface Context {
|
|
22
22
|
branch: string;
|
|
23
23
|
repository: string;
|
|
@@ -45,7 +45,7 @@ export interface ContextParams {
|
|
|
45
45
|
* @param {string} [context.branch] Name of the branch to execute the callback in. Default is the current branch set in portal.
|
|
46
46
|
* @param {object} [context.user] User to execute the callback with. Default is the current user.
|
|
47
47
|
* @param {string} context.user.login Login of the user.
|
|
48
|
-
* @param {string} [context.user.idProvider] Id provider containing the user. By default,
|
|
48
|
+
* @param {string} [context.user.idProvider] Id provider containing the user. By default, the system id provider will be used.
|
|
49
49
|
* @param {array} [context.principals] Additional principals to execute the callback with.
|
|
50
50
|
* @param {object} [context.attributes] Additional Context attributes.
|
|
51
51
|
* @param {function} callback Function to execute.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enonic-types/lib-context",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0-A2",
|
|
4
4
|
"description": "Type definitions for lib-context.",
|
|
5
5
|
"types": "context.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://github.com/enonic/xp/tree/master#readme",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@enonic-types/core": "
|
|
30
|
+
"@enonic-types/core": "8.0.0-A2"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|