mol_plot_all 1.2.832 → 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/node.test.js +31 -6
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.test.js +8 -3
- package/web.test.js.map +1 -1
package/node.test.js
CHANGED
|
@@ -9422,19 +9422,44 @@ var $;
|
|
|
9422
9422
|
;
|
|
9423
9423
|
"use strict";
|
|
9424
9424
|
var $;
|
|
9425
|
+
(function ($) {
|
|
9426
|
+
$.$mol_mem_persist = $mol_wire_solid;
|
|
9427
|
+
})($ || ($ = {}));
|
|
9428
|
+
//mol/mem/persist/persist.ts
|
|
9429
|
+
;
|
|
9430
|
+
"use strict";
|
|
9431
|
+
var $;
|
|
9425
9432
|
(function ($) {
|
|
9426
9433
|
class $mol_storage extends $mol_object2 {
|
|
9427
9434
|
static native() {
|
|
9428
|
-
return
|
|
9435
|
+
return this.$.$mol_dom_context.navigator.storage ?? {
|
|
9436
|
+
persisted: async () => false,
|
|
9437
|
+
persist: async () => false,
|
|
9438
|
+
estimate: async () => ({}),
|
|
9439
|
+
getDirectory: async () => null,
|
|
9440
|
+
};
|
|
9429
9441
|
}
|
|
9430
|
-
static persisted(next) {
|
|
9431
|
-
|
|
9442
|
+
static persisted(next, cache) {
|
|
9443
|
+
$mol_mem_persist();
|
|
9444
|
+
if (cache)
|
|
9445
|
+
return Boolean(next);
|
|
9446
|
+
const native = this.native();
|
|
9447
|
+
if (next && !$mol_mem_cached(() => this.persisted())) {
|
|
9448
|
+
native.persist().then(actual => {
|
|
9449
|
+
setTimeout(() => this.persisted(actual, 'cache'), 5000);
|
|
9450
|
+
if (actual)
|
|
9451
|
+
this.$.$mol_log3_rise({ place: `$mol_storage`, message: `Persist: Yes` });
|
|
9452
|
+
else
|
|
9453
|
+
this.$.$mol_log3_fail({ place: `$mol_storage`, message: `Persist: No` });
|
|
9454
|
+
});
|
|
9455
|
+
}
|
|
9456
|
+
return next ?? $mol_wire_sync(native).persisted();
|
|
9432
9457
|
}
|
|
9433
9458
|
static estimate() {
|
|
9434
|
-
return
|
|
9459
|
+
return $mol_wire_sync(this.native() ?? {}).estimate();
|
|
9435
9460
|
}
|
|
9436
9461
|
static dir() {
|
|
9437
|
-
return
|
|
9462
|
+
return $mol_wire_sync(this.native()).getDirectory();
|
|
9438
9463
|
}
|
|
9439
9464
|
}
|
|
9440
9465
|
__decorate([
|
|
@@ -9445,7 +9470,7 @@ var $;
|
|
|
9445
9470
|
], $mol_storage, "persisted", null);
|
|
9446
9471
|
$.$mol_storage = $mol_storage;
|
|
9447
9472
|
})($ || ($ = {}));
|
|
9448
|
-
//mol/storage/storage.
|
|
9473
|
+
//mol/storage/storage.ts
|
|
9449
9474
|
;
|
|
9450
9475
|
"use strict";
|
|
9451
9476
|
var $;
|