@openmrs/esm-react-utils 3.3.2-pre.75 → 3.4.1-pre.101
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-react-utils",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.1-pre.101",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "React utilities for OpenMRS.",
|
|
6
6
|
"browser": "dist/openmrs-esm-react-utils.js",
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
"react-i18next": "11.x"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@openmrs/esm-api": "^3.
|
|
59
|
-
"@openmrs/esm-config": "^3.
|
|
60
|
-
"@openmrs/esm-error-handling": "^3.
|
|
61
|
-
"@openmrs/esm-extensions": "^3.
|
|
62
|
-
"@openmrs/esm-globals": "^3.
|
|
58
|
+
"@openmrs/esm-api": "^3.4.1-pre.101",
|
|
59
|
+
"@openmrs/esm-config": "^3.4.1-pre.101",
|
|
60
|
+
"@openmrs/esm-error-handling": "^3.4.1-pre.101",
|
|
61
|
+
"@openmrs/esm-extensions": "^3.4.1-pre.101",
|
|
62
|
+
"@openmrs/esm-globals": "^3.4.1-pre.101",
|
|
63
63
|
"dayjs": "^1.10.8",
|
|
64
64
|
"i18next": "^19.6.0",
|
|
65
65
|
"react": "^16.13.1",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"rxjs": "^6.5.3",
|
|
69
69
|
"unistore": "^3.5.2"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "4345cd54761bce3dec527238a31bb8ad0f5a7a49"
|
|
72
72
|
}
|
package/src/useSession.tsx
CHANGED
|
@@ -98,11 +98,11 @@ export function useSession(): Session {
|
|
|
98
98
|
if (!result) {
|
|
99
99
|
if (promise) {
|
|
100
100
|
console.warn(
|
|
101
|
-
"
|
|
101
|
+
"useSession is in an unexpected state. Attempting to recover."
|
|
102
102
|
);
|
|
103
103
|
throw promise;
|
|
104
104
|
} else {
|
|
105
|
-
throw Error("
|
|
105
|
+
throw Error("useSession is in an invalid state.");
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
return result;
|