hyoo_sync_client 0.0.419 → 0.0.420
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 +22 -12
- package/node.d.ts.map +1 -1
- package/node.deps.json +1 -1
- package/node.js +48 -24
- package/node.js.map +1 -1
- package/node.mjs +48 -24
- package/node.test.js +67 -34
- package/node.test.js.map +1 -1
- package/package.json +4 -3
- package/web.d.ts +15 -5
- package/web.d.ts.map +1 -1
- package/web.deps.json +1 -1
- package/web.js +47 -23
- package/web.js.map +1 -1
- package/web.mjs +47 -23
- package/web.test.js +10 -1
- package/web.test.js.map +1 -1
package/node.mjs
CHANGED
|
@@ -1852,35 +1852,24 @@ var $;
|
|
|
1852
1852
|
"use strict";
|
|
1853
1853
|
var $;
|
|
1854
1854
|
(function ($) {
|
|
1855
|
-
class $
|
|
1856
|
-
delay;
|
|
1855
|
+
class $mol_after_tick extends $mol_object2 {
|
|
1857
1856
|
task;
|
|
1858
|
-
|
|
1859
|
-
|
|
1857
|
+
promise;
|
|
1858
|
+
cancelled = false;
|
|
1859
|
+
constructor(task) {
|
|
1860
1860
|
super();
|
|
1861
|
-
this.delay = delay;
|
|
1862
1861
|
this.task = task;
|
|
1863
|
-
this.
|
|
1862
|
+
this.promise = Promise.resolve().then(() => {
|
|
1863
|
+
if (this.cancelled)
|
|
1864
|
+
return;
|
|
1865
|
+
task();
|
|
1866
|
+
});
|
|
1864
1867
|
}
|
|
1865
1868
|
destructor() {
|
|
1866
|
-
|
|
1867
|
-
}
|
|
1868
|
-
}
|
|
1869
|
-
$.$mol_after_timeout = $mol_after_timeout;
|
|
1870
|
-
})($ || ($ = {}));
|
|
1871
|
-
|
|
1872
|
-
;
|
|
1873
|
-
"use strict";
|
|
1874
|
-
var $;
|
|
1875
|
-
(function ($) {
|
|
1876
|
-
class $mol_after_frame extends $mol_after_timeout {
|
|
1877
|
-
task;
|
|
1878
|
-
constructor(task) {
|
|
1879
|
-
super(16, task);
|
|
1880
|
-
this.task = task;
|
|
1869
|
+
this.cancelled = true;
|
|
1881
1870
|
}
|
|
1882
1871
|
}
|
|
1883
|
-
$.$
|
|
1872
|
+
$.$mol_after_tick = $mol_after_tick;
|
|
1884
1873
|
})($ || ($ = {}));
|
|
1885
1874
|
|
|
1886
1875
|
;
|
|
@@ -1898,7 +1887,7 @@ var $;
|
|
|
1898
1887
|
static plan() {
|
|
1899
1888
|
if (this.plan_task)
|
|
1900
1889
|
return;
|
|
1901
|
-
this.plan_task = new $
|
|
1890
|
+
this.plan_task = new $mol_after_tick(() => {
|
|
1902
1891
|
try {
|
|
1903
1892
|
this.sync();
|
|
1904
1893
|
}
|
|
@@ -2100,7 +2089,7 @@ var $;
|
|
|
2100
2089
|
sub.track_off(prev);
|
|
2101
2090
|
sub.absorb = () => {
|
|
2102
2091
|
done(null);
|
|
2103
|
-
sub.destructor();
|
|
2092
|
+
setTimeout(() => sub.destructor());
|
|
2104
2093
|
};
|
|
2105
2094
|
});
|
|
2106
2095
|
}
|
|
@@ -2170,6 +2159,41 @@ var $;
|
|
|
2170
2159
|
$.$mol_key = $mol_key;
|
|
2171
2160
|
})($ || ($ = {}));
|
|
2172
2161
|
|
|
2162
|
+
;
|
|
2163
|
+
"use strict";
|
|
2164
|
+
var $;
|
|
2165
|
+
(function ($) {
|
|
2166
|
+
class $mol_after_timeout extends $mol_object2 {
|
|
2167
|
+
delay;
|
|
2168
|
+
task;
|
|
2169
|
+
id;
|
|
2170
|
+
constructor(delay, task) {
|
|
2171
|
+
super();
|
|
2172
|
+
this.delay = delay;
|
|
2173
|
+
this.task = task;
|
|
2174
|
+
this.id = setTimeout(task, delay);
|
|
2175
|
+
}
|
|
2176
|
+
destructor() {
|
|
2177
|
+
clearTimeout(this.id);
|
|
2178
|
+
}
|
|
2179
|
+
}
|
|
2180
|
+
$.$mol_after_timeout = $mol_after_timeout;
|
|
2181
|
+
})($ || ($ = {}));
|
|
2182
|
+
|
|
2183
|
+
;
|
|
2184
|
+
"use strict";
|
|
2185
|
+
var $;
|
|
2186
|
+
(function ($) {
|
|
2187
|
+
class $mol_after_frame extends $mol_after_timeout {
|
|
2188
|
+
task;
|
|
2189
|
+
constructor(task) {
|
|
2190
|
+
super(16, task);
|
|
2191
|
+
this.task = task;
|
|
2192
|
+
}
|
|
2193
|
+
}
|
|
2194
|
+
$.$mol_after_frame = $mol_after_frame;
|
|
2195
|
+
})($ || ($ = {}));
|
|
2196
|
+
|
|
2173
2197
|
;
|
|
2174
2198
|
"use strict";
|
|
2175
2199
|
var $;
|
package/node.test.js
CHANGED
|
@@ -1843,35 +1843,24 @@ var $;
|
|
|
1843
1843
|
"use strict";
|
|
1844
1844
|
var $;
|
|
1845
1845
|
(function ($) {
|
|
1846
|
-
class $
|
|
1847
|
-
delay;
|
|
1846
|
+
class $mol_after_tick extends $mol_object2 {
|
|
1848
1847
|
task;
|
|
1849
|
-
|
|
1850
|
-
|
|
1848
|
+
promise;
|
|
1849
|
+
cancelled = false;
|
|
1850
|
+
constructor(task) {
|
|
1851
1851
|
super();
|
|
1852
|
-
this.delay = delay;
|
|
1853
1852
|
this.task = task;
|
|
1854
|
-
this.
|
|
1853
|
+
this.promise = Promise.resolve().then(() => {
|
|
1854
|
+
if (this.cancelled)
|
|
1855
|
+
return;
|
|
1856
|
+
task();
|
|
1857
|
+
});
|
|
1855
1858
|
}
|
|
1856
1859
|
destructor() {
|
|
1857
|
-
|
|
1860
|
+
this.cancelled = true;
|
|
1858
1861
|
}
|
|
1859
1862
|
}
|
|
1860
|
-
$.$
|
|
1861
|
-
})($ || ($ = {}));
|
|
1862
|
-
|
|
1863
|
-
;
|
|
1864
|
-
"use strict";
|
|
1865
|
-
var $;
|
|
1866
|
-
(function ($) {
|
|
1867
|
-
class $mol_after_frame extends $mol_after_timeout {
|
|
1868
|
-
task;
|
|
1869
|
-
constructor(task) {
|
|
1870
|
-
super(16, task);
|
|
1871
|
-
this.task = task;
|
|
1872
|
-
}
|
|
1873
|
-
}
|
|
1874
|
-
$.$mol_after_frame = $mol_after_frame;
|
|
1863
|
+
$.$mol_after_tick = $mol_after_tick;
|
|
1875
1864
|
})($ || ($ = {}));
|
|
1876
1865
|
|
|
1877
1866
|
;
|
|
@@ -1889,7 +1878,7 @@ var $;
|
|
|
1889
1878
|
static plan() {
|
|
1890
1879
|
if (this.plan_task)
|
|
1891
1880
|
return;
|
|
1892
|
-
this.plan_task = new $
|
|
1881
|
+
this.plan_task = new $mol_after_tick(() => {
|
|
1893
1882
|
try {
|
|
1894
1883
|
this.sync();
|
|
1895
1884
|
}
|
|
@@ -2091,7 +2080,7 @@ var $;
|
|
|
2091
2080
|
sub.track_off(prev);
|
|
2092
2081
|
sub.absorb = () => {
|
|
2093
2082
|
done(null);
|
|
2094
|
-
sub.destructor();
|
|
2083
|
+
setTimeout(() => sub.destructor());
|
|
2095
2084
|
};
|
|
2096
2085
|
});
|
|
2097
2086
|
}
|
|
@@ -2161,6 +2150,41 @@ var $;
|
|
|
2161
2150
|
$.$mol_key = $mol_key;
|
|
2162
2151
|
})($ || ($ = {}));
|
|
2163
2152
|
|
|
2153
|
+
;
|
|
2154
|
+
"use strict";
|
|
2155
|
+
var $;
|
|
2156
|
+
(function ($) {
|
|
2157
|
+
class $mol_after_timeout extends $mol_object2 {
|
|
2158
|
+
delay;
|
|
2159
|
+
task;
|
|
2160
|
+
id;
|
|
2161
|
+
constructor(delay, task) {
|
|
2162
|
+
super();
|
|
2163
|
+
this.delay = delay;
|
|
2164
|
+
this.task = task;
|
|
2165
|
+
this.id = setTimeout(task, delay);
|
|
2166
|
+
}
|
|
2167
|
+
destructor() {
|
|
2168
|
+
clearTimeout(this.id);
|
|
2169
|
+
}
|
|
2170
|
+
}
|
|
2171
|
+
$.$mol_after_timeout = $mol_after_timeout;
|
|
2172
|
+
})($ || ($ = {}));
|
|
2173
|
+
|
|
2174
|
+
;
|
|
2175
|
+
"use strict";
|
|
2176
|
+
var $;
|
|
2177
|
+
(function ($) {
|
|
2178
|
+
class $mol_after_frame extends $mol_after_timeout {
|
|
2179
|
+
task;
|
|
2180
|
+
constructor(task) {
|
|
2181
|
+
super(16, task);
|
|
2182
|
+
this.task = task;
|
|
2183
|
+
}
|
|
2184
|
+
}
|
|
2185
|
+
$.$mol_after_frame = $mol_after_frame;
|
|
2186
|
+
})($ || ($ = {}));
|
|
2187
|
+
|
|
2164
2188
|
;
|
|
2165
2189
|
"use strict";
|
|
2166
2190
|
var $;
|
|
@@ -6367,16 +6391,7 @@ var $;
|
|
|
6367
6391
|
var $;
|
|
6368
6392
|
(function ($_1) {
|
|
6369
6393
|
$mol_test_mocks.push($ => {
|
|
6370
|
-
$.$
|
|
6371
|
-
});
|
|
6372
|
-
})($ || ($ = {}));
|
|
6373
|
-
|
|
6374
|
-
;
|
|
6375
|
-
"use strict";
|
|
6376
|
-
var $;
|
|
6377
|
-
(function ($_1) {
|
|
6378
|
-
$mol_test_mocks.push($ => {
|
|
6379
|
-
$.$mol_after_frame = $mol_after_mock_commmon;
|
|
6394
|
+
$.$mol_after_tick = $mol_after_mock_commmon;
|
|
6380
6395
|
});
|
|
6381
6396
|
})($ || ($ = {}));
|
|
6382
6397
|
|
|
@@ -6465,6 +6480,15 @@ var $;
|
|
|
6465
6480
|
;
|
|
6466
6481
|
"use strict";
|
|
6467
6482
|
|
|
6483
|
+
;
|
|
6484
|
+
"use strict";
|
|
6485
|
+
var $;
|
|
6486
|
+
(function ($_1) {
|
|
6487
|
+
$mol_test_mocks.push($ => {
|
|
6488
|
+
$.$mol_after_timeout = $mol_after_mock_timeout;
|
|
6489
|
+
});
|
|
6490
|
+
})($ || ($ = {}));
|
|
6491
|
+
|
|
6468
6492
|
;
|
|
6469
6493
|
"use strict";
|
|
6470
6494
|
var $;
|
|
@@ -9582,6 +9606,15 @@ var $;
|
|
|
9582
9606
|
});
|
|
9583
9607
|
})($ || ($ = {}));
|
|
9584
9608
|
|
|
9609
|
+
;
|
|
9610
|
+
"use strict";
|
|
9611
|
+
var $;
|
|
9612
|
+
(function ($_1) {
|
|
9613
|
+
$mol_test_mocks.push($ => {
|
|
9614
|
+
$.$mol_after_frame = $mol_after_mock_commmon;
|
|
9615
|
+
});
|
|
9616
|
+
})($ || ($ = {}));
|
|
9617
|
+
|
|
9585
9618
|
;
|
|
9586
9619
|
"use strict";
|
|
9587
9620
|
|