@bdlite/domains 1.1.30 → 1.1.31

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.
@@ -70,6 +70,21 @@ export function storeSysConfig(systemConfig) {
70
70
  publish(_systemConfig)
71
71
  }
72
72
 
73
+ /**
74
+ * @function storePreload
75
+ * @param {?object} config
76
+ */
77
+ export function storePreload(config) {
78
+ if (!config) return
79
+ const { title, favicon, loginLogo, copyright, eula, appRunning } = config
80
+ Object.assign(_systemConfig, {
81
+ favicon, loginLogo, app: appRunning,
82
+ title: title?.trim(), copyright: copyright?.trim(), useragreement: eula?.trim()
83
+ })
84
+ storage.appendObject(CHANNEL_NAME, _systemConfig)
85
+ publish(_systemConfig)
86
+ }
87
+
73
88
  /**
74
89
  * @function publishPreload
75
90
  * @param {?object} config
@@ -58,7 +58,13 @@ function isValidId(id) {
58
58
  export function storeProject(projectId = '', rest) {
59
59
  if (isObject(rest)) {
60
60
  const { teamId, projectName, orgName = '', name = '', ..._rest } = rest
61
- Object.assign(_currentProject, { id: projectId, projectId, teamId, projectName: projectName || name || orgName, ..._rest })
61
+ Object.assign(_currentProject, {
62
+ id: projectId,
63
+ projectId,
64
+ teamId, name, orgName,
65
+ projectName: projectName || name || orgName,
66
+ ..._rest
67
+ })
62
68
  } else {
63
69
  Object.assign(_currentProject, { id: projectId, projectId })
64
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bdlite/domains",
3
- "version": "1.1.30",
3
+ "version": "1.1.31",
4
4
  "description": "A domains entity collection library driven by @bdlite/observable",
5
5
  "keywords": [
6
6
  "DDD",