mol_dump_lib 0.0.166 → 0.0.168
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.d.ts +9 -4
- package/node.deps.json +1 -1
- package/node.js +34 -8
- package/node.js.map +1 -1
- package/node.mjs +34 -8
- package/node.test.js +34 -8
- package/node.test.js.map +1 -1
- package/package.json +2 -1
- package/web.d.ts +2 -1
- package/web.deps.json +1 -1
- package/web.js +11 -5
- package/web.js.map +1 -1
- package/web.mjs +11 -5
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();
|
|
@@ -4662,7 +4663,12 @@ var $;
|
|
|
4662
4663
|
(function ($) {
|
|
4663
4664
|
class $mol_storage extends $mol_object2 {
|
|
4664
4665
|
static native() {
|
|
4665
|
-
return this.$.$mol_dom_context.navigator.storage
|
|
4666
|
+
return this.$.$mol_dom_context.navigator.storage ?? {
|
|
4667
|
+
persisted: async () => false,
|
|
4668
|
+
persist: async () => false,
|
|
4669
|
+
estimate: async () => ({}),
|
|
4670
|
+
getDirectory: async () => null,
|
|
4671
|
+
};
|
|
4666
4672
|
}
|
|
4667
4673
|
static persisted(next, cache) {
|
|
4668
4674
|
$mol_mem_persist();
|
|
@@ -4681,7 +4687,7 @@ var $;
|
|
|
4681
4687
|
return next ?? $mol_wire_sync(native).persisted();
|
|
4682
4688
|
}
|
|
4683
4689
|
static estimate() {
|
|
4684
|
-
return $mol_wire_sync(this.native()).estimate();
|
|
4690
|
+
return $mol_wire_sync(this.native() ?? {}).estimate();
|
|
4685
4691
|
}
|
|
4686
4692
|
static dir() {
|
|
4687
4693
|
return $mol_wire_sync(this.native()).getDirectory();
|
|
@@ -4695,7 +4701,7 @@ var $;
|
|
|
4695
4701
|
], $mol_storage, "persisted", null);
|
|
4696
4702
|
$.$mol_storage = $mol_storage;
|
|
4697
4703
|
})($ || ($ = {}));
|
|
4698
|
-
//mol/storage/storage.
|
|
4704
|
+
//mol/storage/storage.ts
|
|
4699
4705
|
;
|
|
4700
4706
|
"use strict";
|
|
4701
4707
|
var $;
|