@openmrs/esm-config 6.3.1-pre.3136 → 6.3.1-pre.3139

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.
@@ -1,3 +1,3 @@
1
- [0] Successfully compiled: 8 files with swc (204.12ms)
1
+ [0] Successfully compiled: 8 files with swc (241.28ms)
2
2
  [0] swc --strip-leading-paths src -d dist exited with code 0
3
3
  [1] tsc --project tsconfig.build.json exited with code 0
@@ -41,7 +41,6 @@ configExtensionStore.subscribe((extensionState)=>{
41
41
  temporaryConfigStore.subscribe((tempConfigState)=>{
42
42
  computeExtensionConfigs(configInternalStore.getState(), configExtensionStore.getState(), tempConfigState);
43
43
  });
44
- /** Keep track of which validation errors we have displayed. Each one should only be displayed once. */ let displayedValidationMessages = new Set();
45
44
  function computeModuleConfig(state, tempState) {
46
45
  for (let moduleName of Object.keys(state.schemas)){
47
46
  // At this point the schema could be either just the implicit schema or the actually
@@ -724,6 +723,7 @@ function hasObjectSchema(elementsSchema) {
724
723
  function isOrdinaryObject(value) {
725
724
  return typeof value === 'object' && !Array.isArray(value) && value !== null;
726
725
  }
726
+ /** Keep track of which validation errors we have displayed. Each one should only be displayed once. */ let displayedValidationMessages = new Set();
727
727
  function logError(keyPath, message) {
728
728
  const key = `${keyPath}:::${message}`;
729
729
  // technically, this should not be possible, but because of how things wind-up transpiled, this isn't impossible
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-config",
3
- "version": "6.3.1-pre.3136",
3
+ "version": "6.3.1-pre.3139",
4
4
  "license": "MPL-2.0",
5
5
  "description": "A configuration library for the OpenMRS Single-Spa framework.",
6
6
  "type": "module",
@@ -61,9 +61,9 @@
61
61
  "single-spa": "6.x"
62
62
  },
63
63
  "devDependencies": {
64
- "@openmrs/esm-globals": "6.3.1-pre.3136",
65
- "@openmrs/esm-state": "6.3.1-pre.3136",
66
- "@openmrs/esm-utils": "6.3.1-pre.3136",
64
+ "@openmrs/esm-globals": "6.3.1-pre.3139",
65
+ "@openmrs/esm-state": "6.3.1-pre.3139",
66
+ "@openmrs/esm-utils": "6.3.1-pre.3139",
67
67
  "@swc/cli": "^0.7.7",
68
68
  "@swc/core": "^1.11.29",
69
69
  "@types/ramda": "^0.26.44",
@@ -74,9 +74,6 @@ temporaryConfigStore.subscribe((tempConfigState) => {
74
74
  computeExtensionConfigs(configInternalStore.getState(), configExtensionStore.getState(), tempConfigState);
75
75
  });
76
76
 
77
- /** Keep track of which validation errors we have displayed. Each one should only be displayed once. */
78
- let displayedValidationMessages = new Set<string>();
79
-
80
77
  function computeModuleConfig(state: ConfigInternalStore, tempState: TemporaryConfigStore) {
81
78
  for (let moduleName of Object.keys(state.schemas)) {
82
79
  // At this point the schema could be either just the implicit schema or the actually
@@ -831,6 +828,8 @@ function hasObjectSchema(elementsSchema: unknown): elementsSchema is ConfigSchem
831
828
  function isOrdinaryObject(value) {
832
829
  return typeof value === 'object' && !Array.isArray(value) && value !== null;
833
830
  }
831
+ /** Keep track of which validation errors we have displayed. Each one should only be displayed once. */
832
+ let displayedValidationMessages = new Set<string>();
834
833
 
835
834
  function logError(keyPath: string, message: string) {
836
835
  const key = `${keyPath}:::${message}`;