mol_plot_all 1.2.831 → 1.2.833

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/web.mjs CHANGED
@@ -84,7 +84,7 @@ var $;
84
84
  try {
85
85
  if (!having)
86
86
  return false;
87
- if (typeof having !== 'object')
87
+ if (typeof having !== 'object' && typeof having !== 'function')
88
88
  return false;
89
89
  if (having instanceof $mol_delegate)
90
90
  return false;
@@ -220,11 +220,12 @@ var $;
220
220
  return this.name;
221
221
  }
222
222
  destructor() { }
223
+ static destructor() { }
223
224
  toString() {
224
225
  return this[Symbol.toStringTag] || this.constructor.name + '()';
225
226
  }
226
227
  static toJSON() {
227
- return this.$.$mol_func_name(this);
228
+ return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
228
229
  }
229
230
  toJSON() {
230
231
  return this.toString();
package/web.test.js CHANGED
@@ -2997,7 +2997,12 @@ var $;
2997
2997
  (function ($) {
2998
2998
  class $mol_storage extends $mol_object2 {
2999
2999
  static native() {
3000
- return this.$.$mol_dom_context.navigator.storage;
3000
+ return this.$.$mol_dom_context.navigator.storage ?? {
3001
+ persisted: async () => false,
3002
+ persist: async () => false,
3003
+ estimate: async () => ({}),
3004
+ getDirectory: async () => null,
3005
+ };
3001
3006
  }
3002
3007
  static persisted(next, cache) {
3003
3008
  $mol_mem_persist();
@@ -3016,7 +3021,7 @@ var $;
3016
3021
  return next ?? $mol_wire_sync(native).persisted();
3017
3022
  }
3018
3023
  static estimate() {
3019
- return $mol_wire_sync(this.native()).estimate();
3024
+ return $mol_wire_sync(this.native() ?? {}).estimate();
3020
3025
  }
3021
3026
  static dir() {
3022
3027
  return $mol_wire_sync(this.native()).getDirectory();
@@ -3030,7 +3035,7 @@ var $;
3030
3035
  ], $mol_storage, "persisted", null);
3031
3036
  $.$mol_storage = $mol_storage;
3032
3037
  })($ || ($ = {}));
3033
- //mol/storage/storage.web.ts
3038
+ //mol/storage/storage.ts
3034
3039
  ;
3035
3040
  "use strict";
3036
3041
  var $;