hyoo_sync_client 0.0.235 → 0.0.237
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 +2 -7
- package/node.js.map +1 -1
- package/node.mjs +2 -7
- package/node.test.js +2 -7
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +5 -14
- package/web.deps.json +1 -1
- package/web.js +27 -40
- package/web.js.map +1 -1
- package/web.mjs +27 -40
package/web.mjs
CHANGED
|
@@ -2172,51 +2172,23 @@ var $;
|
|
|
2172
2172
|
;
|
|
2173
2173
|
"use strict";
|
|
2174
2174
|
var $;
|
|
2175
|
-
(function ($) {
|
|
2176
|
-
function $mol_wire_probe(task, def) {
|
|
2177
|
-
const warm = $mol_wire_fiber.warm;
|
|
2178
|
-
try {
|
|
2179
|
-
$mol_wire_fiber.warm = false;
|
|
2180
|
-
const res = task();
|
|
2181
|
-
if (res === undefined)
|
|
2182
|
-
return def;
|
|
2183
|
-
return res;
|
|
2184
|
-
}
|
|
2185
|
-
finally {
|
|
2186
|
-
$mol_wire_fiber.warm = warm;
|
|
2187
|
-
}
|
|
2188
|
-
}
|
|
2189
|
-
$.$mol_wire_probe = $mol_wire_probe;
|
|
2190
|
-
})($ || ($ = {}));
|
|
2191
|
-
//mol/wire/probe/probe.ts
|
|
2192
|
-
;
|
|
2193
|
-
"use strict";
|
|
2194
|
-
var $;
|
|
2195
|
-
(function ($) {
|
|
2196
|
-
$.$mol_mem_cached = $mol_wire_probe;
|
|
2197
|
-
})($ || ($ = {}));
|
|
2198
|
-
//mol/mem/cached/cached.ts
|
|
2199
|
-
;
|
|
2200
|
-
"use strict";
|
|
2201
|
-
var $;
|
|
2202
2175
|
(function ($) {
|
|
2203
2176
|
class $mol_storage extends $mol_object2 {
|
|
2204
2177
|
static native() {
|
|
2205
|
-
return
|
|
2178
|
+
return this.$.$mol_dom_context.navigator.storage;
|
|
2206
2179
|
}
|
|
2207
2180
|
static persisted(next) {
|
|
2208
2181
|
$mol_mem_persist();
|
|
2209
2182
|
const native = this.native();
|
|
2210
|
-
|
|
2211
|
-
if (next && !prev)
|
|
2183
|
+
if (next)
|
|
2212
2184
|
native.persist();
|
|
2213
|
-
return next ??
|
|
2185
|
+
return next ?? $mol_wire_sync(native).persisted();
|
|
2214
2186
|
}
|
|
2215
2187
|
static estimate() {
|
|
2216
|
-
return this.native().estimate();
|
|
2188
|
+
return $mol_wire_sync(this.native()).estimate();
|
|
2217
2189
|
}
|
|
2218
2190
|
static dir() {
|
|
2219
|
-
return this.native().getDirectory();
|
|
2191
|
+
return $mol_wire_sync(this.native()).getDirectory();
|
|
2220
2192
|
}
|
|
2221
2193
|
}
|
|
2222
2194
|
__decorate([
|
|
@@ -2270,12 +2242,7 @@ var $;
|
|
|
2270
2242
|
}
|
|
2271
2243
|
else {
|
|
2272
2244
|
this.native().setItem(key, JSON.stringify(next));
|
|
2273
|
-
|
|
2274
|
-
this.$.$mol_storage.persisted(true);
|
|
2275
|
-
}
|
|
2276
|
-
catch (error) {
|
|
2277
|
-
$mol_fail_log(error);
|
|
2278
|
-
}
|
|
2245
|
+
this.$.$mol_storage.persisted(true);
|
|
2279
2246
|
}
|
|
2280
2247
|
return next;
|
|
2281
2248
|
}
|
|
@@ -3985,6 +3952,26 @@ var $;
|
|
|
3985
3952
|
;
|
|
3986
3953
|
"use strict";
|
|
3987
3954
|
var $;
|
|
3955
|
+
(function ($) {
|
|
3956
|
+
function $mol_wire_probe(task, def) {
|
|
3957
|
+
const warm = $mol_wire_fiber.warm;
|
|
3958
|
+
try {
|
|
3959
|
+
$mol_wire_fiber.warm = false;
|
|
3960
|
+
const res = task();
|
|
3961
|
+
if (res === undefined)
|
|
3962
|
+
return def;
|
|
3963
|
+
return res;
|
|
3964
|
+
}
|
|
3965
|
+
finally {
|
|
3966
|
+
$mol_wire_fiber.warm = warm;
|
|
3967
|
+
}
|
|
3968
|
+
}
|
|
3969
|
+
$.$mol_wire_probe = $mol_wire_probe;
|
|
3970
|
+
})($ || ($ = {}));
|
|
3971
|
+
//mol/wire/probe/probe.ts
|
|
3972
|
+
;
|
|
3973
|
+
"use strict";
|
|
3974
|
+
var $;
|
|
3988
3975
|
(function ($) {
|
|
3989
3976
|
class $mol_db_database {
|
|
3990
3977
|
native;
|
|
@@ -4113,7 +4100,7 @@ var $;
|
|
|
4113
4100
|
Unit.put(unit, [unit.land, unit.head, unit.self]);
|
|
4114
4101
|
}
|
|
4115
4102
|
await trans.commit();
|
|
4116
|
-
this.$.$mol_storage.
|
|
4103
|
+
this.$.$mol_storage.persisted(true);
|
|
4117
4104
|
}
|
|
4118
4105
|
reconnects(reset) {
|
|
4119
4106
|
return ($mol_wire_probe(() => this.reconnects()) ?? 0) + 1;
|