dce-reactkit 3.6.21 → 3.6.22

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,5 +1,7 @@
1
1
  import LogFunction from '../types/LogFunction';
2
- type MetadataPopulator = () => Promise<{
2
+ type MetadataPopulator = () => {
3
+ [k: string]: any;
4
+ } | Promise<{
3
5
  [k: string]: any;
4
6
  }>;
5
7
  /**
@@ -1,5 +1,7 @@
1
1
  import LogFunction from '../types/LogFunction';
2
- type MetadataPopulator = () => Promise<{
2
+ type MetadataPopulator = () => {
3
+ [k: string]: any;
4
+ } | Promise<{
3
5
  [k: string]: any;
4
6
  }>;
5
7
  /**
package/dist/index.d.ts CHANGED
@@ -1188,7 +1188,9 @@ declare const onlyKeepLetters: (str: string) => string;
1188
1188
  */
1189
1189
  declare const parallelLimit: (taskFunctions: (() => Promise<any>)[], limit?: number) => Promise<any[]>;
1190
1190
 
1191
- type MetadataPopulator = () => Promise<{
1191
+ type MetadataPopulator = () => {
1192
+ [k: string]: any;
1193
+ } | Promise<{
1192
1194
  [k: string]: any;
1193
1195
  }>;
1194
1196
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dce-reactkit",
3
- "version": "3.6.21",
3
+ "version": "3.6.22",
4
4
  "description": "Shared components for Harvard DCE apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -10,7 +10,7 @@ import visitServerEndpoint from './visitServerEndpoint';
10
10
  /* ------- Metadata Populator ------- */
11
11
 
12
12
  // Type of a metadata populator function
13
- type MetadataPopulator = () => Promise<{ [k: string]: any }>;
13
+ type MetadataPopulator = () => { [k: string]: any } | Promise<{ [k: string]: any }>;
14
14
 
15
15
  // Current metadata populator function
16
16
  let metadataPopulator: MetadataPopulator;