@live-change/frontend-auto-form 0.9.167 → 0.9.171

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.
@@ -67,13 +67,15 @@ export default function editorData(options) {
67
67
  for(const identifier of identifiersNames) {
68
68
  if(typeof identifier === 'object') {
69
69
  if(identifier.field === 'id') idKey = identifier.name
70
- draftIdParts.push('id')
70
+ draftIdParts.push(identifier.field)
71
71
  } else {
72
72
  draftIdParts.push(identifier)
73
73
  }
74
74
  }
75
- let draftId = (idKey ? identifiers[idKey]
76
- : draftIdParts.map(key => JSON.stringify(identifiers[key])).join('_')) ?? 'new'
75
+ let draftId = idKey
76
+ ? (identifiers[idKey])
77
+ : (draftIdParts.map(key => JSON.stringify(identifiers[key])).join('_'))
78
+ if(!draftId) draftId = 'new'
77
79
  if(draftId.length > 16) {
78
80
  draftId = cyrb128(draftId).slice(0, 16)
79
81
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/frontend-auto-form",
3
- "version": "0.9.167",
3
+ "version": "0.9.171",
4
4
  "scripts": {
5
5
  "memDev": "node server/start.js memDev --enableSessions --initScript ./init.js --dbAccess",
6
6
  "localDevInit": "rm tmp.db; lcli localDev --enableSessions --initScript ./init.js",
@@ -22,16 +22,16 @@
22
22
  "type": "module",
23
23
  "dependencies": {
24
24
  "@fortawesome/fontawesome-free": "^6.7.2",
25
- "@live-change/cli": "^0.9.167",
26
- "@live-change/dao": "^0.9.167",
27
- "@live-change/dao-vue3": "^0.9.167",
28
- "@live-change/dao-websocket": "^0.9.167",
29
- "@live-change/framework": "^0.9.167",
30
- "@live-change/image-frontend": "^0.9.167",
31
- "@live-change/image-service": "^0.9.167",
32
- "@live-change/session-service": "^0.9.167",
33
- "@live-change/vue3-components": "^0.9.167",
34
- "@live-change/vue3-ssr": "^0.9.167",
25
+ "@live-change/cli": "^0.9.171",
26
+ "@live-change/dao": "^0.9.171",
27
+ "@live-change/dao-vue3": "^0.9.171",
28
+ "@live-change/dao-websocket": "^0.9.171",
29
+ "@live-change/framework": "^0.9.171",
30
+ "@live-change/image-frontend": "^0.9.171",
31
+ "@live-change/image-service": "^0.9.171",
32
+ "@live-change/session-service": "^0.9.171",
33
+ "@live-change/vue3-components": "^0.9.171",
34
+ "@live-change/vue3-ssr": "^0.9.171",
35
35
  "@vueuse/core": "^12.3.0",
36
36
  "codeceptjs-assert": "^0.0.5",
37
37
  "compression": "^1.7.5",
@@ -52,7 +52,7 @@
52
52
  "vue3-scroll-border": "0.1.7"
53
53
  },
54
54
  "devDependencies": {
55
- "@live-change/codeceptjs-helper": "^0.9.167",
55
+ "@live-change/codeceptjs-helper": "^0.9.171",
56
56
  "codeceptjs": "^3.6.10",
57
57
  "generate-password": "1.7.1",
58
58
  "playwright": "1.49.1",
@@ -63,5 +63,5 @@
63
63
  "author": "Michał Łaszczewski <michal@laszczewski.pl>",
64
64
  "license": "ISC",
65
65
  "description": "",
66
- "gitHead": "1051ad24a384d88af662d655f647349281fab23a"
66
+ "gitHead": "2a684f9d6b097ef5b8e1e08edb4995949ee33330"
67
67
  }