mol_wire_lib 1.0.205 → 1.0.208

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/node.js CHANGED
@@ -1220,7 +1220,9 @@ var $;
1220
1220
  var $;
1221
1221
  (function ($) {
1222
1222
  function $mol_wire_solo(host, field, descr) {
1223
- const orig = descr.value;
1223
+ if (!descr)
1224
+ descr = Reflect.getOwnPropertyDescriptor(host, field);
1225
+ const orig = descr?.value ?? host[field];
1224
1226
  const sup = Reflect.getPrototypeOf(host);
1225
1227
  if (typeof sup[field] === 'function') {
1226
1228
  Object.defineProperty(orig, 'name', { value: sup[field].name });
@@ -1258,7 +1260,9 @@ var $;
1258
1260
  var $;
1259
1261
  (function ($) {
1260
1262
  function $mol_wire_plex(host, field, descr) {
1261
- const orig = descr.value;
1263
+ if (!descr)
1264
+ descr = Reflect.getOwnPropertyDescriptor(host, field);
1265
+ const orig = descr?.value ?? host[field];
1262
1266
  const sup = Reflect.getPrototypeOf(host);
1263
1267
  if (typeof sup[field] === 'function') {
1264
1268
  Object.defineProperty(orig, 'name', { value: sup[field].name });