sumba 2.8.0 → 2.8.1
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.
|
@@ -29,8 +29,16 @@
|
|
|
29
29
|
"maxLength": 100,
|
|
30
30
|
"rules": ["email"]
|
|
31
31
|
}],
|
|
32
|
-
"features": [
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
|
|
32
|
+
"features": [
|
|
33
|
+
"sumba:personInCharge",
|
|
34
|
+
"sumba:address",
|
|
35
|
+
"sumba:social",
|
|
36
|
+
{
|
|
37
|
+
"name": "sumba:status",
|
|
38
|
+
"default": "ACTIVE"
|
|
39
|
+
},
|
|
40
|
+
"dobo:createdAt",
|
|
41
|
+
"dobo:updatedAt",
|
|
42
|
+
"dobo:immutable"
|
|
43
|
+
]
|
|
36
44
|
}
|
package/lib/create-new-site.js
CHANGED
|
@@ -72,6 +72,10 @@ async function createNewSite (alias, hostname, verbose) {
|
|
|
72
72
|
const fixtures = data[m]
|
|
73
73
|
for (const f of fixtures) {
|
|
74
74
|
f.siteId = newSite.id + ''
|
|
75
|
+
for (const key in f) {
|
|
76
|
+
const val = f[key]
|
|
77
|
+
if (isString(val) && val.slice(0, 2) === '?:') f[key] = await mdl._simpleLookup(val.slice(2), options)
|
|
78
|
+
}
|
|
75
79
|
await mdl.createRecord(f, options)
|
|
76
80
|
}
|
|
77
81
|
if (verbose) this.print.succeed('writingModel%s%s', mdl.name, fixtures.length)
|
package/package.json
CHANGED
package/wiki/CHANGES.md
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
- [2.8.0] Add ```createNewSite()``` and ```applet.crateNewSite```
|
|
6
6
|
- [2.8.0] Add ```removeSite()``` and ```applet.removeSite```
|
|
7
7
|
- [2.8.0] Set ```site.json```, ```user.json```, ```team.json```, ```team-user.json``` first fixture as immutable row
|
|
8
|
+
- [2.8.1] Bug fix in ```createNewSite()```
|
|
8
9
|
|
|
9
10
|
## 2026-03-08
|
|
10
11
|
|