@openmrs/esm-react-utils 5.8.1-pre.2234 → 5.8.1-pre.2238
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/.turbo/turbo-build.log +1 -1
- package/mock.tsx +1 -5
- package/package.json +10 -10
package/.turbo/turbo-build.log
CHANGED
|
@@ -11,4 +11,4 @@ built modules 261 KiB [built]
|
|
|
11
11
|
./src/index.ts + 131 modules 253 KiB [built] [code generated]
|
|
12
12
|
../esm-state/dist/openmrs-esm-state.js 4.79 KiB [built] [code generated]
|
|
13
13
|
+ 5 modules
|
|
14
|
-
webpack 5.88.0 compiled successfully in
|
|
14
|
+
webpack 5.88.0 compiled successfully in 7283 ms
|
package/mock.tsx
CHANGED
|
@@ -26,12 +26,8 @@ export const useAttachments = jest.fn(() => ({
|
|
|
26
26
|
|
|
27
27
|
export const useConfig = jest.fn().mockImplementation((options?: { externalModuleName?: string }) => {
|
|
28
28
|
if (options?.externalModuleName) {
|
|
29
|
-
|
|
30
|
-
return {
|
|
31
|
-
[options.externalModuleName]: utils.getDefaultsFromConfigSchema(configSchema),
|
|
32
|
-
};
|
|
29
|
+
console.warn(`Mock useConfig called with externalModuleName: ${options.externalModuleName}`);
|
|
33
30
|
}
|
|
34
|
-
// Return the default mock implementation for the current module
|
|
35
31
|
return utils.getDefaultsFromConfigSchema(configSchema);
|
|
36
32
|
});
|
|
37
33
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-react-utils",
|
|
3
|
-
"version": "5.8.1-pre.
|
|
3
|
+
"version": "5.8.1-pre.2238",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "React utilities for OpenMRS.",
|
|
6
6
|
"browser": "dist/openmrs-esm-react-utils.js",
|
|
@@ -61,15 +61,15 @@
|
|
|
61
61
|
"swr": "2.x"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@openmrs/esm-api": "5.8.1-pre.
|
|
65
|
-
"@openmrs/esm-config": "5.8.1-pre.
|
|
66
|
-
"@openmrs/esm-context": "5.8.1-pre.
|
|
67
|
-
"@openmrs/esm-error-handling": "5.8.1-pre.
|
|
68
|
-
"@openmrs/esm-extensions": "5.8.1-pre.
|
|
69
|
-
"@openmrs/esm-feature-flags": "5.8.1-pre.
|
|
70
|
-
"@openmrs/esm-globals": "5.8.1-pre.
|
|
71
|
-
"@openmrs/esm-navigation": "5.8.1-pre.
|
|
72
|
-
"@openmrs/esm-utils": "5.8.1-pre.
|
|
64
|
+
"@openmrs/esm-api": "5.8.1-pre.2238",
|
|
65
|
+
"@openmrs/esm-config": "5.8.1-pre.2238",
|
|
66
|
+
"@openmrs/esm-context": "5.8.1-pre.2238",
|
|
67
|
+
"@openmrs/esm-error-handling": "5.8.1-pre.2238",
|
|
68
|
+
"@openmrs/esm-extensions": "5.8.1-pre.2238",
|
|
69
|
+
"@openmrs/esm-feature-flags": "5.8.1-pre.2238",
|
|
70
|
+
"@openmrs/esm-globals": "5.8.1-pre.2238",
|
|
71
|
+
"@openmrs/esm-navigation": "5.8.1-pre.2238",
|
|
72
|
+
"@openmrs/esm-utils": "5.8.1-pre.2238",
|
|
73
73
|
"dayjs": "^1.10.8",
|
|
74
74
|
"i18next": "^21.10.0",
|
|
75
75
|
"react": "^18.1.0",
|