mol_dump_lib 0.0.944 → 0.0.945

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.mjs CHANGED
@@ -3677,6 +3677,8 @@ var $;
3677
3677
  if (this.$.$mol_fail_catch(error)) {
3678
3678
  if (error.code === 'ENOENT')
3679
3679
  return null;
3680
+ if (error.code === 'EPERM')
3681
+ return null;
3680
3682
  error.message += '\n' + path;
3681
3683
  this.$.$mol_fail_hidden(error);
3682
3684
  }
@@ -7142,6 +7144,34 @@ var $;
7142
7144
  ($mol_mem(($.$mol_check.prototype), "Title"));
7143
7145
 
7144
7146
 
7147
+ ;
7148
+ "use strict";
7149
+ var $;
7150
+ (function ($) {
7151
+ class $mol_dom_event extends $mol_object {
7152
+ native;
7153
+ constructor(native) {
7154
+ super();
7155
+ this.native = native;
7156
+ }
7157
+ prevented(next) {
7158
+ if (next)
7159
+ this.native.preventDefault();
7160
+ return this.native.defaultPrevented;
7161
+ }
7162
+ static wrap(event) {
7163
+ return new this.$.$mol_dom_event(event);
7164
+ }
7165
+ }
7166
+ __decorate([
7167
+ $mol_action
7168
+ ], $mol_dom_event.prototype, "prevented", null);
7169
+ __decorate([
7170
+ $mol_action
7171
+ ], $mol_dom_event, "wrap", null);
7172
+ $.$mol_dom_event = $mol_dom_event;
7173
+ })($ || ($ = {}));
7174
+
7145
7175
  ;
7146
7176
  "use strict";
7147
7177
  var $;
@@ -7160,11 +7190,11 @@ var $;
7160
7190
  (function ($$) {
7161
7191
  class $mol_check extends $.$mol_check {
7162
7192
  click(next) {
7163
- if (next?.defaultPrevented)
7193
+ const event = next ? $mol_dom_event.wrap(next) : null;
7194
+ if (event?.prevented())
7164
7195
  return;
7196
+ event?.prevented(true);
7165
7197
  this.checked(!this.checked());
7166
- if (next)
7167
- next.preventDefault();
7168
7198
  }
7169
7199
  sub() {
7170
7200
  return [
package/node.test.js CHANGED
@@ -3668,6 +3668,8 @@ var $;
3668
3668
  if (this.$.$mol_fail_catch(error)) {
3669
3669
  if (error.code === 'ENOENT')
3670
3670
  return null;
3671
+ if (error.code === 'EPERM')
3672
+ return null;
3671
3673
  error.message += '\n' + path;
3672
3674
  this.$.$mol_fail_hidden(error);
3673
3675
  }
@@ -7133,6 +7135,34 @@ var $;
7133
7135
  ($mol_mem(($.$mol_check.prototype), "Title"));
7134
7136
 
7135
7137
 
7138
+ ;
7139
+ "use strict";
7140
+ var $;
7141
+ (function ($) {
7142
+ class $mol_dom_event extends $mol_object {
7143
+ native;
7144
+ constructor(native) {
7145
+ super();
7146
+ this.native = native;
7147
+ }
7148
+ prevented(next) {
7149
+ if (next)
7150
+ this.native.preventDefault();
7151
+ return this.native.defaultPrevented;
7152
+ }
7153
+ static wrap(event) {
7154
+ return new this.$.$mol_dom_event(event);
7155
+ }
7156
+ }
7157
+ __decorate([
7158
+ $mol_action
7159
+ ], $mol_dom_event.prototype, "prevented", null);
7160
+ __decorate([
7161
+ $mol_action
7162
+ ], $mol_dom_event, "wrap", null);
7163
+ $.$mol_dom_event = $mol_dom_event;
7164
+ })($ || ($ = {}));
7165
+
7136
7166
  ;
7137
7167
  "use strict";
7138
7168
  var $;
@@ -7151,11 +7181,11 @@ var $;
7151
7181
  (function ($$) {
7152
7182
  class $mol_check extends $.$mol_check {
7153
7183
  click(next) {
7154
- if (next?.defaultPrevented)
7184
+ const event = next ? $mol_dom_event.wrap(next) : null;
7185
+ if (event?.prevented())
7155
7186
  return;
7187
+ event?.prevented(true);
7156
7188
  this.checked(!this.checked());
7157
- if (next)
7158
- next.preventDefault();
7159
7189
  }
7160
7190
  sub() {
7161
7191
  return [