hyoo_sync_client 0.0.255 → 0.0.257
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 +21 -12
- package/node.deps.json +1 -1
- package/node.js +77 -44
- package/node.js.map +1 -1
- package/node.mjs +77 -44
- package/node.test.js +77 -44
- package/node.test.js.map +1 -1
- package/package.json +5 -3
- 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
|
@@ -91,7 +91,7 @@ var $;
|
|
|
91
91
|
try {
|
|
92
92
|
if (!having)
|
|
93
93
|
return false;
|
|
94
|
-
if (typeof having !== 'object')
|
|
94
|
+
if (typeof having !== 'object' && typeof having !== 'function')
|
|
95
95
|
return false;
|
|
96
96
|
if (having instanceof $mol_delegate)
|
|
97
97
|
return false;
|
|
@@ -227,11 +227,12 @@ var $;
|
|
|
227
227
|
return this.name;
|
|
228
228
|
}
|
|
229
229
|
destructor() { }
|
|
230
|
+
static destructor() { }
|
|
230
231
|
toString() {
|
|
231
232
|
return this[Symbol.toStringTag] || this.constructor.name + '()';
|
|
232
233
|
}
|
|
233
234
|
static toJSON() {
|
|
234
|
-
return this.$.$mol_func_name(this);
|
|
235
|
+
return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
|
|
235
236
|
}
|
|
236
237
|
toJSON() {
|
|
237
238
|
return this.toString();
|
|
@@ -2364,7 +2365,12 @@ var $;
|
|
|
2364
2365
|
(function ($) {
|
|
2365
2366
|
class $mol_storage extends $mol_object2 {
|
|
2366
2367
|
static native() {
|
|
2367
|
-
return this.$.$mol_dom_context.navigator.storage
|
|
2368
|
+
return this.$.$mol_dom_context.navigator.storage ?? {
|
|
2369
|
+
persisted: async () => false,
|
|
2370
|
+
persist: async () => false,
|
|
2371
|
+
estimate: async () => ({}),
|
|
2372
|
+
getDirectory: async () => null,
|
|
2373
|
+
};
|
|
2368
2374
|
}
|
|
2369
2375
|
static persisted(next, cache) {
|
|
2370
2376
|
$mol_mem_persist();
|
|
@@ -2383,7 +2389,7 @@ var $;
|
|
|
2383
2389
|
return next ?? $mol_wire_sync(native).persisted();
|
|
2384
2390
|
}
|
|
2385
2391
|
static estimate() {
|
|
2386
|
-
return $mol_wire_sync(this.native()).estimate();
|
|
2392
|
+
return $mol_wire_sync(this.native() ?? {}).estimate();
|
|
2387
2393
|
}
|
|
2388
2394
|
static dir() {
|
|
2389
2395
|
return $mol_wire_sync(this.native()).getDirectory();
|
|
@@ -2397,7 +2403,7 @@ var $;
|
|
|
2397
2403
|
], $mol_storage, "persisted", null);
|
|
2398
2404
|
$.$mol_storage = $mol_storage;
|
|
2399
2405
|
})($ || ($ = {}));
|
|
2400
|
-
//mol/storage/storage.
|
|
2406
|
+
//mol/storage/storage.ts
|
|
2401
2407
|
;
|
|
2402
2408
|
"use strict";
|
|
2403
2409
|
var $;
|