@openmrs/esm-react-utils 3.4.1-pre.77 → 3.4.1-pre.87

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.4.1-pre.77",
3
+ "version": "3.4.1-pre.87",
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.4.1-pre.77",
59
- "@openmrs/esm-config": "^3.4.1-pre.77",
60
- "@openmrs/esm-error-handling": "^3.4.1-pre.77",
61
- "@openmrs/esm-extensions": "^3.4.1-pre.77",
62
- "@openmrs/esm-globals": "^3.4.1-pre.77",
58
+ "@openmrs/esm-api": "^3.4.1-pre.87",
59
+ "@openmrs/esm-config": "^3.4.1-pre.87",
60
+ "@openmrs/esm-error-handling": "^3.4.1-pre.87",
61
+ "@openmrs/esm-extensions": "^3.4.1-pre.87",
62
+ "@openmrs/esm-globals": "^3.4.1-pre.87",
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": "30a2b9dc801dd627606f4d692eb84ab8ccd24955"
71
+ "gitHead": "516a1e01edfe478cd832f8ba9fab9f6b2e4928f5"
72
72
  }
@@ -98,11 +98,11 @@ export function useSession(): Session {
98
98
  if (!result) {
99
99
  if (promise) {
100
100
  console.warn(
101
- "useSessionUser is in an unexpected state. Attempting to recover."
101
+ "useSession is in an unexpected state. Attempting to recover."
102
102
  );
103
103
  throw promise;
104
104
  } else {
105
- throw Error("useSessionUser is in an invalid state.");
105
+ throw Error("useSession is in an invalid state.");
106
106
  }
107
107
  }
108
108
  return result;