mol_dump_lib 0.0.145 → 0.0.147
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.deps.json +1 -1
- package/node.js +1 -6
- package/node.js.map +1 -1
- package/node.mjs +1 -6
- package/node.test.js +1 -6
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +1 -6
- package/web.deps.json +1 -1
- package/web.js +6 -12
- package/web.js.map +1 -1
- package/web.mjs +6 -12
package/web.js
CHANGED
|
@@ -4595,21 +4595,20 @@ var $;
|
|
|
4595
4595
|
(function ($) {
|
|
4596
4596
|
class $mol_storage extends $mol_object2 {
|
|
4597
4597
|
static native() {
|
|
4598
|
-
return
|
|
4598
|
+
return this.$.$mol_dom_context.navigator.storage;
|
|
4599
4599
|
}
|
|
4600
4600
|
static persisted(next) {
|
|
4601
4601
|
$mol_mem_persist();
|
|
4602
4602
|
const native = this.native();
|
|
4603
|
-
|
|
4604
|
-
if (next && !prev)
|
|
4603
|
+
if (next)
|
|
4605
4604
|
native.persist();
|
|
4606
|
-
return next ??
|
|
4605
|
+
return next ?? $mol_wire_sync(native).persisted();
|
|
4607
4606
|
}
|
|
4608
4607
|
static estimate() {
|
|
4609
|
-
return this.native().estimate();
|
|
4608
|
+
return $mol_wire_sync(this.native()).estimate();
|
|
4610
4609
|
}
|
|
4611
4610
|
static dir() {
|
|
4612
|
-
return this.native().getDirectory();
|
|
4611
|
+
return $mol_wire_sync(this.native()).getDirectory();
|
|
4613
4612
|
}
|
|
4614
4613
|
}
|
|
4615
4614
|
__decorate([
|
|
@@ -4663,12 +4662,7 @@ var $;
|
|
|
4663
4662
|
}
|
|
4664
4663
|
else {
|
|
4665
4664
|
this.native().setItem(key, JSON.stringify(next));
|
|
4666
|
-
|
|
4667
|
-
this.$.$mol_storage.persisted(true);
|
|
4668
|
-
}
|
|
4669
|
-
catch (error) {
|
|
4670
|
-
$mol_fail_log(error);
|
|
4671
|
-
}
|
|
4665
|
+
this.$.$mol_storage.persisted(true);
|
|
4672
4666
|
}
|
|
4673
4667
|
return next;
|
|
4674
4668
|
}
|