@truedat/core 6.1.1 → 6.1.3

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": "@truedat/core",
3
- "version": "6.1.1",
3
+ "version": "6.1.3",
4
4
  "description": "Truedat Web Core",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -35,7 +35,7 @@
35
35
  "@testing-library/jest-dom": "^5.16.5",
36
36
  "@testing-library/react": "^12.0.0",
37
37
  "@testing-library/user-event": "^13.2.1",
38
- "@truedat/test": "6.1.1",
38
+ "@truedat/test": "6.1.3",
39
39
  "babel-jest": "^28.1.0",
40
40
  "babel-plugin-dynamic-import-node": "^2.3.3",
41
41
  "babel-plugin-lodash": "^3.3.4",
@@ -117,5 +117,5 @@
117
117
  "react-dom": ">= 16.8.6 < 17",
118
118
  "semantic-ui-react": ">= 2.0.3 < 2.2"
119
119
  },
120
- "gitHead": "8ba2e1d68380956d654d6927a6117734f1c50076"
120
+ "gitHead": "0f50f152b947693a64e36e6eb946fac33978ea8c"
121
121
  }
@@ -0,0 +1,15 @@
1
+ /*
2
+ * Global configuration object written by td-web and read by td-web-modules.
3
+ * Using this instead of a global variable. This is written just once, so
4
+ * no need for propagation of change with Redux Store.
5
+ */
6
+
7
+ // eslint-disable-next-line fp/no-let
8
+ let config = {};
9
+
10
+ function setConfig(newConfig) {
11
+ // eslint-disable-next-line fp/no-mutation
12
+ config = newConfig;
13
+ }
14
+
15
+ export { config, setConfig };