@cardinali-studio/adminkit 2.2.17 → 2.2.18
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.
|
@@ -123,6 +123,9 @@ async function rewriteDocuments({ db, data, replacements = {}, removals = [] })
|
|
|
123
123
|
schemaVersion: row.schemaVersion, tombstone: false, payload: normalized.payload,
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
|
+
/* Nessun riferimento è un esito valido: l'operazione Media deve proseguire
|
|
127
|
+
* senza costruire una transazione editoriale vuota, che `saveMany` rifiuta. */
|
|
128
|
+
if (!commands.length) return { documents: [] };
|
|
126
129
|
const who = editor(data);
|
|
127
130
|
const repository = new D1ContentRepository(db);
|
|
128
131
|
/* Every command was fully parsed and site-validated before the first write.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cardinali-studio/adminkit",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Motore riusabile di un pannello di amministrazione per siti Hugo su Cloudflare Pages: codec del front matter guidato dallo schema, form React, libreria media su R2. NIENTE di specifico di un sito qui dentro.",
|
|
6
6
|
"license": "UNLICENSED",
|