@monkvision/network 4.3.10 → 4.3.11

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/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monkvision/network",
3
- "version": "4.3.9",
3
+ "version": "4.3.10",
4
4
  "license": "BSD-3-Clause-Clear",
5
5
  "packageManager": "yarn@3.2.4",
6
6
  "description": "MonkJs core package used to communicate with the API",
@@ -28,8 +28,8 @@
28
28
  "lint:fix": "yarn run prettier:fix && yarn run eslint:fix"
29
29
  },
30
30
  "dependencies": {
31
- "@monkvision/common": "4.3.9",
32
- "@monkvision/sights": "4.3.9",
31
+ "@monkvision/common": "4.3.10",
32
+ "@monkvision/sights": "4.3.10",
33
33
  "jsonwebtoken": "^9.0.2",
34
34
  "jwt-decode": "^4.0.0",
35
35
  "ky": "^1.2.0",
@@ -42,12 +42,12 @@
42
42
  "react-router-dom": "^6.22.3"
43
43
  },
44
44
  "devDependencies": {
45
- "@monkvision/eslint-config-base": "4.3.9",
46
- "@monkvision/eslint-config-typescript": "4.3.9",
47
- "@monkvision/jest-config": "4.3.9",
48
- "@monkvision/prettier-config": "4.3.9",
49
- "@monkvision/types": "4.3.9",
50
- "@monkvision/typescript-config": "4.3.9",
45
+ "@monkvision/eslint-config-base": "4.3.10",
46
+ "@monkvision/eslint-config-typescript": "4.3.10",
47
+ "@monkvision/jest-config": "4.3.10",
48
+ "@monkvision/prettier-config": "4.3.10",
49
+ "@monkvision/types": "4.3.10",
50
+ "@monkvision/typescript-config": "4.3.10",
51
51
  "@types/jest": "^29.2.2",
52
52
  "@types/jsonwebtoken": "^9.0.5",
53
53
  "@types/node": "^18.11.9",
@@ -1,3 +1,5 @@
1
+ import { Auth0ContextInterface } from '@auth0/auth0-react';
2
+ import { Context } from 'react';
1
3
  /**
2
4
  * Parameters of the `useAuth` hook.
3
5
  */
@@ -8,6 +10,10 @@ export interface UseAuthParams {
8
10
  * @default true
9
11
  */
10
12
  storeToken?: boolean;
13
+ /**
14
+ * Optional custom Auth0 context that will be passed through to the `useAuth0` hook.
15
+ */
16
+ context?: Context<Auth0ContextInterface>;
11
17
  }
12
18
  /**
13
19
  * Handle used to manage the authentication state of a Monk app using the `useAuth` hook.
@@ -62,7 +62,7 @@ var defaultOptions = {
62
62
  function useAuth(params) {
63
63
  var _this = this;
64
64
  var options = __assign(__assign({}, defaultOptions), (params !== null && params !== void 0 ? params : {}));
65
- var _a = (0, auth0_react_1.useAuth0)(), getAccessTokenWithPopup = _a.getAccessTokenWithPopup, logout = _a.logout;
65
+ var _a = (0, auth0_react_1.useAuth0)(params === null || params === void 0 ? void 0 : params.context), getAccessTokenWithPopup = _a.getAccessTokenWithPopup, logout = _a.logout;
66
66
  var setAuthToken = (0, common_1.useMonkAppState)().setAuthToken;
67
67
  (0, react_1.useEffect)(function () {
68
68
  if (options.storeToken) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monkvision/network",
3
- "version": "4.3.10",
3
+ "version": "4.3.11",
4
4
  "license": "BSD-3-Clause-Clear",
5
5
  "packageManager": "yarn@3.2.4",
6
6
  "description": "MonkJs core package used to communicate with the API",
@@ -28,8 +28,8 @@
28
28
  "lint:fix": "yarn run prettier:fix && yarn run eslint:fix"
29
29
  },
30
30
  "dependencies": {
31
- "@monkvision/common": "4.3.10",
32
- "@monkvision/sights": "4.3.10",
31
+ "@monkvision/common": "4.3.11",
32
+ "@monkvision/sights": "4.3.11",
33
33
  "jsonwebtoken": "^9.0.2",
34
34
  "jwt-decode": "^4.0.0",
35
35
  "ky": "^1.2.0",
@@ -42,12 +42,12 @@
42
42
  "react-router-dom": "^6.22.3"
43
43
  },
44
44
  "devDependencies": {
45
- "@monkvision/eslint-config-base": "4.3.10",
46
- "@monkvision/eslint-config-typescript": "4.3.10",
47
- "@monkvision/jest-config": "4.3.10",
48
- "@monkvision/prettier-config": "4.3.10",
49
- "@monkvision/types": "4.3.10",
50
- "@monkvision/typescript-config": "4.3.10",
45
+ "@monkvision/eslint-config-base": "4.3.11",
46
+ "@monkvision/eslint-config-typescript": "4.3.11",
47
+ "@monkvision/jest-config": "4.3.11",
48
+ "@monkvision/prettier-config": "4.3.11",
49
+ "@monkvision/types": "4.3.11",
50
+ "@monkvision/typescript-config": "4.3.11",
51
51
  "@types/jest": "^29.2.2",
52
52
  "@types/jsonwebtoken": "^9.0.5",
53
53
  "@types/node": "^18.11.9",
@@ -84,5 +84,5 @@
84
84
  "url": "https://github.com/monkvision/monkjs/issues"
85
85
  },
86
86
  "homepage": "https://github.com/monkvision/monkjs",
87
- "gitHead": "c5ef74dd7e20333edbdda44364b15e1f83f7cafd"
87
+ "gitHead": "4d831f9a606fba471837296214ef748c03e7a2e9"
88
88
  }