🐛 Fix inconsistencies on using obj/reify on plugins

This commit is contained in:
Andrey Antukh
2025-12-02 17:26:23 +01:00
parent 33bcc9544a
commit 9dfe5b0865

View File

@@ -289,10 +289,10 @@
(assert (uuid? id))
(obj/reify {:name "LibraryTypographyProxy"}
:$plugin {:name "" :enumerable false :get (constantly plugin-id)}
:$id {:name "" :enumerable false :get (constantly id)}
:$file {:name "" :enumerable false :get (constantly file-id)}
:id {:name "" :get (fn [_] (dm/str id))}
:$plugin {:enumerable false :get (constantly plugin-id)}
:$id {:enumerable false :get (constantly id)}
:$file {:enumerable false :get (constantly file-id)}
:id {:get (fn [] (dm/str id))}
:name
{:this true
@@ -629,8 +629,8 @@
:$file {:enumerable false :get (constantly file-id)}
:$id {:enumerable false :get (constantly id)}
:id {:get (fn [_] (dm/str id))}
:libraryId {:get (fn [_] (dm/str file-id))}
:id {:get (fn [] (dm/str id))}
:libraryId {:get (fn [] (dm/str file-id))}
:properties
{:this true
@@ -706,7 +706,7 @@
:$plugin {:enumerable false :get (constantly plugin-id)}
:$id {:enumerable false :get (constantly id)}
:$file {:enumerable false :get (constantly file-id)}
:id {:get (fn [_] (dm/str id))}
:id {:get (fn [] (dm/str id))}
:name
{:this true