hyoo_sync_client 0.0.453 → 0.0.455

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.meta.tree CHANGED
@@ -1,13 +1,14 @@
1
1
  \/
2
+ pack bun git \https://github.com/spleekz/mam_bun.git
2
3
  pack hyoo git \https://github.com/hyoo-ru/mam_hyoo.git
3
4
  pack jin git \https://github.com/nin-jin/mam_jin.git
4
- pack node git \https://github.com/hyoo-ru/mam_node.git
5
- pack mol git \https://github.com/hyoo-ru/mam_mol.git
6
5
  pack lib git \https://github.com/hyoo-ru/mam_lib.git
6
+ pack mol git \https://github.com/hyoo-ru/mam_mol.git
7
+ pack mpds git \https://github.com/mpds-io/mam_mpds.git
8
+ pack node git \https://github.com/hyoo-ru/mam_node.git
9
+ pack optimade git \https://github.com/mpds-io/mam_optimade.git
7
10
  pack piterjs git \https://github.com/piterjs/piterjs.git
8
11
  pack psb git \https://github.com/MolDevHack/psb.git
9
- pack mpds git \https://github.com/mpds-io/mam_mpds
10
- pack bun git \https://github.com/spleekz/mam_bun
11
12
  pack yuf git \https://github.com/zerkalica/yuf.git
12
13
  \/hyoo
13
14
  pack about git \https://github.com/hyoo-ru/about.hyoo.ru.git
package/node.mjs CHANGED
@@ -245,7 +245,12 @@ var $;
245
245
  var $;
246
246
  (function ($) {
247
247
  function $mol_promise_like(val) {
248
- return val && typeof val === 'object' && 'then' in val && typeof val.then === 'function';
248
+ try {
249
+ return val && typeof val === 'object' && 'then' in val && typeof val.then === 'function';
250
+ }
251
+ catch {
252
+ return false;
253
+ }
249
254
  }
250
255
  $.$mol_promise_like = $mol_promise_like;
251
256
  })($ || ($ = {}));
@@ -744,6 +749,9 @@ var $;
744
749
  if (typeof json === 'string') {
745
750
  return $mol_tree2.data(json, [], span);
746
751
  }
752
+ if (typeof json.toJSON === 'function') {
753
+ return $mol_tree2_from_json(json.toJSON());
754
+ }
747
755
  if (Array.isArray(json)) {
748
756
  const sub = json.map(json => $mol_tree2_from_json(json, span));
749
757
  return new $mol_tree2('/', '', sub, span);
@@ -755,9 +763,6 @@ var $;
755
763
  if (json instanceof Date) {
756
764
  return new $mol_tree2('', json.toISOString(), [], span);
757
765
  }
758
- if (typeof json.toJSON === 'function') {
759
- return $mol_tree2_from_json(json.toJSON());
760
- }
761
766
  if (json.toString !== Object.prototype.toString) {
762
767
  return $mol_tree2.data(json.toString(), [], span);
763
768
  }
@@ -1852,24 +1857,21 @@ var $;
1852
1857
  "use strict";
1853
1858
  var $;
1854
1859
  (function ($) {
1855
- class $mol_after_tick extends $mol_object2 {
1860
+ class $mol_after_timeout extends $mol_object2 {
1861
+ delay;
1856
1862
  task;
1857
- promise;
1858
- cancelled = false;
1859
- constructor(task) {
1863
+ id;
1864
+ constructor(delay, task) {
1860
1865
  super();
1866
+ this.delay = delay;
1861
1867
  this.task = task;
1862
- this.promise = Promise.resolve().then(() => {
1863
- if (this.cancelled)
1864
- return;
1865
- task();
1866
- });
1868
+ this.id = setTimeout(task, delay);
1867
1869
  }
1868
1870
  destructor() {
1869
- this.cancelled = true;
1871
+ clearTimeout(this.id);
1870
1872
  }
1871
1873
  }
1872
- $.$mol_after_tick = $mol_after_tick;
1874
+ $.$mol_after_timeout = $mol_after_timeout;
1873
1875
  })($ || ($ = {}));
1874
1876
 
1875
1877
  ;
@@ -1887,7 +1889,7 @@ var $;
1887
1889
  static plan() {
1888
1890
  if (this.plan_task)
1889
1891
  return;
1890
- this.plan_task = new $mol_after_tick(() => {
1892
+ this.plan_task = new $mol_after_timeout(0, () => {
1891
1893
  try {
1892
1894
  this.sync();
1893
1895
  }
@@ -1947,6 +1949,7 @@ var $;
1947
1949
  plan() {
1948
1950
  $mol_wire_fiber.planning.add(this);
1949
1951
  $mol_wire_fiber.plan();
1952
+ return this;
1950
1953
  }
1951
1954
  reap() {
1952
1955
  $mol_wire_fiber.reaping.add(this);
@@ -2046,6 +2049,7 @@ var $;
2046
2049
  }
2047
2050
  this.track_off(bu);
2048
2051
  this.put(result);
2052
+ return this;
2049
2053
  }
2050
2054
  refresh() {
2051
2055
  this.cursor = $mol_wire_cursor.stale;
@@ -2159,27 +2163,6 @@ var $;
2159
2163
  $.$mol_key = $mol_key;
2160
2164
  })($ || ($ = {}));
2161
2165
 
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
2166
  ;
2184
2167
  "use strict";
2185
2168
  var $;
@@ -3072,6 +3055,8 @@ var $;
3072
3055
  return this.absolute($node.path.resolve(this.base, path).replace(/\\/g, '/'));
3073
3056
  }
3074
3057
  watcher() {
3058
+ if (/\/\./.test(this.path()))
3059
+ return { destructor() { } };
3075
3060
  const watcher = $node.chokidar.watch(this.path(), {
3076
3061
  persistent: true,
3077
3062
  ignored: /(^\.|___$)/,
package/node.test.js CHANGED
@@ -236,7 +236,12 @@ var $;
236
236
  var $;
237
237
  (function ($) {
238
238
  function $mol_promise_like(val) {
239
- return val && typeof val === 'object' && 'then' in val && typeof val.then === 'function';
239
+ try {
240
+ return val && typeof val === 'object' && 'then' in val && typeof val.then === 'function';
241
+ }
242
+ catch {
243
+ return false;
244
+ }
240
245
  }
241
246
  $.$mol_promise_like = $mol_promise_like;
242
247
  })($ || ($ = {}));
@@ -735,6 +740,9 @@ var $;
735
740
  if (typeof json === 'string') {
736
741
  return $mol_tree2.data(json, [], span);
737
742
  }
743
+ if (typeof json.toJSON === 'function') {
744
+ return $mol_tree2_from_json(json.toJSON());
745
+ }
738
746
  if (Array.isArray(json)) {
739
747
  const sub = json.map(json => $mol_tree2_from_json(json, span));
740
748
  return new $mol_tree2('/', '', sub, span);
@@ -746,9 +754,6 @@ var $;
746
754
  if (json instanceof Date) {
747
755
  return new $mol_tree2('', json.toISOString(), [], span);
748
756
  }
749
- if (typeof json.toJSON === 'function') {
750
- return $mol_tree2_from_json(json.toJSON());
751
- }
752
757
  if (json.toString !== Object.prototype.toString) {
753
758
  return $mol_tree2.data(json.toString(), [], span);
754
759
  }
@@ -1843,24 +1848,21 @@ var $;
1843
1848
  "use strict";
1844
1849
  var $;
1845
1850
  (function ($) {
1846
- class $mol_after_tick extends $mol_object2 {
1851
+ class $mol_after_timeout extends $mol_object2 {
1852
+ delay;
1847
1853
  task;
1848
- promise;
1849
- cancelled = false;
1850
- constructor(task) {
1854
+ id;
1855
+ constructor(delay, task) {
1851
1856
  super();
1857
+ this.delay = delay;
1852
1858
  this.task = task;
1853
- this.promise = Promise.resolve().then(() => {
1854
- if (this.cancelled)
1855
- return;
1856
- task();
1857
- });
1859
+ this.id = setTimeout(task, delay);
1858
1860
  }
1859
1861
  destructor() {
1860
- this.cancelled = true;
1862
+ clearTimeout(this.id);
1861
1863
  }
1862
1864
  }
1863
- $.$mol_after_tick = $mol_after_tick;
1865
+ $.$mol_after_timeout = $mol_after_timeout;
1864
1866
  })($ || ($ = {}));
1865
1867
 
1866
1868
  ;
@@ -1878,7 +1880,7 @@ var $;
1878
1880
  static plan() {
1879
1881
  if (this.plan_task)
1880
1882
  return;
1881
- this.plan_task = new $mol_after_tick(() => {
1883
+ this.plan_task = new $mol_after_timeout(0, () => {
1882
1884
  try {
1883
1885
  this.sync();
1884
1886
  }
@@ -1938,6 +1940,7 @@ var $;
1938
1940
  plan() {
1939
1941
  $mol_wire_fiber.planning.add(this);
1940
1942
  $mol_wire_fiber.plan();
1943
+ return this;
1941
1944
  }
1942
1945
  reap() {
1943
1946
  $mol_wire_fiber.reaping.add(this);
@@ -2037,6 +2040,7 @@ var $;
2037
2040
  }
2038
2041
  this.track_off(bu);
2039
2042
  this.put(result);
2043
+ return this;
2040
2044
  }
2041
2045
  refresh() {
2042
2046
  this.cursor = $mol_wire_cursor.stale;
@@ -2150,27 +2154,6 @@ var $;
2150
2154
  $.$mol_key = $mol_key;
2151
2155
  })($ || ($ = {}));
2152
2156
 
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
2157
  ;
2175
2158
  "use strict";
2176
2159
  var $;
@@ -3063,6 +3046,8 @@ var $;
3063
3046
  return this.absolute($node.path.resolve(this.base, path).replace(/\\/g, '/'));
3064
3047
  }
3065
3048
  watcher() {
3049
+ if (/\/\./.test(this.path()))
3050
+ return { destructor() { } };
3066
3051
  const watcher = $node.chokidar.watch(this.path(), {
3067
3052
  persistent: true,
3068
3053
  ignored: /(^\.|___$)/,
@@ -6391,7 +6376,7 @@ var $;
6391
6376
  var $;
6392
6377
  (function ($_1) {
6393
6378
  $mol_test_mocks.push($ => {
6394
- $.$mol_after_tick = $mol_after_mock_commmon;
6379
+ $.$mol_after_timeout = $mol_after_mock_timeout;
6395
6380
  });
6396
6381
  })($ || ($ = {}));
6397
6382
 
@@ -6480,15 +6465,6 @@ var $;
6480
6465
  ;
6481
6466
  "use strict";
6482
6467
 
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
-
6492
6468
  ;
6493
6469
  "use strict";
6494
6470
  var $;