@alizarin/clm 2.0.0-alpha.130 → 2.0.0-alpha.131
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/dist/clm.js +5 -1
- package/package.json +2 -2
package/dist/clm.js
CHANGED
|
@@ -191,7 +191,11 @@ var ReferenceValueViewModel = class c extends String {
|
|
|
191
191
|
let f = l.nodeid, p = l.config?.controlledList || l.config?.rdmCollection;
|
|
192
192
|
if (!p) throw Error(`Node ${l.alias} (${l.nodeid}) missing controlledList or rdmCollection in config`);
|
|
193
193
|
if (e && (e.data.has(f) || e.data.set(f, null), u !== null)) {
|
|
194
|
-
if (Array.isArray(u)
|
|
194
|
+
if (Array.isArray(u)) {
|
|
195
|
+
if (u.length === 1) u = u[0];
|
|
196
|
+
else if (u.length === 0) return null;
|
|
197
|
+
}
|
|
198
|
+
if (u instanceof Promise) return u.then((u) => c.__create(e, l, u, d));
|
|
195
199
|
if (typeof u == "string") if (/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.exec(u)) {
|
|
196
200
|
let l = {
|
|
197
201
|
type: "uuid",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alizarin/clm",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.131",
|
|
4
4
|
"description": "Alizarin display serializers for CLM reference datatypes",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"repository": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"test": "cd ../../.. && npm test -- ext/alizarin-clm/js/tests/clm.test.ts"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"alizarin": "2.0.0-alpha.
|
|
26
|
+
"alizarin": "2.0.0-alpha.131"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"alizarin": "file:../../..",
|