🔧 Sanitize and check tokens when deserializing from db (#6838)

This commit is contained in:
Andrés Moya 2025-07-02 17:01:10 +02:00 committed by GitHub
parent be43365909
commit 0a71134652
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1769,7 +1769,7 @@ Will return a value that matches this schema:
(fres/write-object! w (into {} o)))
:rfn (fn [r]
(let [obj (fres/read-object! r)]
(map->Token obj)))}
(make-token obj)))}
{:name "penpot/token-set/v1"
:class TokenSet
@ -1787,7 +1787,7 @@ Will return a value that matches this schema:
(fres/write-object! w (into {} o)))
:rfn (fn [r]
(let [obj (fres/read-object! r)]
(map->TokenTheme obj)))}
(make-token-theme obj)))}
;; LEGACY TOKENS LIB READERS (with migrations)
{:name "penpot/tokens-lib/v1"