mam 1.11.729 → 1.11.731

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.mjs CHANGED
@@ -448,7 +448,7 @@ var $;
448
448
  this.data.length = this.sub_from;
449
449
  this.cursor = this.pub_from;
450
450
  this.track_cut();
451
- this.cursor = $mol_wire_cursor.final;
451
+ this.cursor = $mol_wire_cursor.stale;
452
452
  }
453
453
  track_cut() {
454
454
  if (this.cursor < this.pub_from) {
@@ -1722,6 +1722,10 @@ var $;
1722
1722
  this.emit();
1723
1723
  return next;
1724
1724
  }
1725
+ destructor() {
1726
+ super.destructor();
1727
+ this.cursor = $mol_wire_cursor.final;
1728
+ }
1725
1729
  }
1726
1730
  $.$mol_wire_task = $mol_wire_task;
1727
1731
  })($ || ($ = {}));
@@ -4315,15 +4319,30 @@ var $;
4315
4319
  '<=': bind => [call_of.call(this, bind, false)],
4316
4320
  '<=>': bind => [call_of.call(this, bind, true)],
4317
4321
  '=>': bind => [],
4318
- '^': (ref) => [
4322
+ '^': (ref, belt, context) => [
4319
4323
  ref.struct('...', [
4320
- ref.struct('()', [
4321
- ref.struct(ref.kids[0]?.type ? 'this' : 'super'),
4322
- ref.struct('[]', [
4323
- ref.data(ref.kids[0]?.type ? name_of.call(this, ref.kids[0]) : name),
4324
- ]),
4325
- ref.kids[0]?.type ? args_of.call(this, ref.kids[0]) : ref.struct('(,)')
4326
- ]),
4324
+ ref.kids[0]?.type
4325
+ ? ref.struct('()', [
4326
+ ref.struct('this'),
4327
+ ref.struct('[]', [ref.data(name_of.call(this, ref.kids[0]))]),
4328
+ args_of.call(this, ref.kids[0])
4329
+ ])
4330
+ : context.chain
4331
+ ? ref.struct('()', [
4332
+ ref.struct('this'),
4333
+ ref.struct('[]', [ref.data('$')]),
4334
+ ref.struct('[]', [ref.data(op.type)]),
4335
+ ref.struct('[]', [ref.data('prototype')]),
4336
+ ref.struct('[]', [ref.data(context.chain[0])]),
4337
+ ref.struct('[]', [ref.data('call')]),
4338
+ ref.struct('(,)', [ref.struct('obj')]),
4339
+ ...context.chain.slice(1).map(field => ref.struct('[]', [ref.data(field)]))
4340
+ ])
4341
+ : ref.struct('()', [
4342
+ ref.struct('super'),
4343
+ ref.struct('[]', [ref.data(name)]),
4344
+ ref.struct('(,)')
4345
+ ]),
4327
4346
  ]),
4328
4347
  ],
4329
4348
  '=': bind => [bind.struct('()', [
@@ -4339,7 +4358,7 @@ var $;
4339
4358
  return [
4340
4359
  input.struct('{,}', input.kids.map(field => {
4341
4360
  if (field.type === '^')
4342
- return field.list([field]).hack(belt)[0];
4361
+ return field.list([field]).hack(belt, context)[0];
4343
4362
  const field_name = (field.type || field.value).replace(/\?\w*$/, '');
4344
4363
  return field.struct(':', [
4345
4364
  field.data(field_name),
@@ -4355,7 +4374,7 @@ var $;
4355
4374
  }
4356
4375
  if (input.type[0] === '/')
4357
4376
  return [
4358
- input.struct('[,]', input.hack(belt)),
4377
+ input.struct('[,]', input.hack(belt, context)),
4359
4378
  ];
4360
4379
  if (input.type && $mol_tree2_js_is_number(input.type))
4361
4380
  return [
package/node.test.js CHANGED
@@ -439,7 +439,7 @@ var $;
439
439
  this.data.length = this.sub_from;
440
440
  this.cursor = this.pub_from;
441
441
  this.track_cut();
442
- this.cursor = $mol_wire_cursor.final;
442
+ this.cursor = $mol_wire_cursor.stale;
443
443
  }
444
444
  track_cut() {
445
445
  if (this.cursor < this.pub_from) {
@@ -1713,6 +1713,10 @@ var $;
1713
1713
  this.emit();
1714
1714
  return next;
1715
1715
  }
1716
+ destructor() {
1717
+ super.destructor();
1718
+ this.cursor = $mol_wire_cursor.final;
1719
+ }
1716
1720
  }
1717
1721
  $.$mol_wire_task = $mol_wire_task;
1718
1722
  })($ || ($ = {}));
@@ -4306,15 +4310,30 @@ var $;
4306
4310
  '<=': bind => [call_of.call(this, bind, false)],
4307
4311
  '<=>': bind => [call_of.call(this, bind, true)],
4308
4312
  '=>': bind => [],
4309
- '^': (ref) => [
4313
+ '^': (ref, belt, context) => [
4310
4314
  ref.struct('...', [
4311
- ref.struct('()', [
4312
- ref.struct(ref.kids[0]?.type ? 'this' : 'super'),
4313
- ref.struct('[]', [
4314
- ref.data(ref.kids[0]?.type ? name_of.call(this, ref.kids[0]) : name),
4315
- ]),
4316
- ref.kids[0]?.type ? args_of.call(this, ref.kids[0]) : ref.struct('(,)')
4317
- ]),
4315
+ ref.kids[0]?.type
4316
+ ? ref.struct('()', [
4317
+ ref.struct('this'),
4318
+ ref.struct('[]', [ref.data(name_of.call(this, ref.kids[0]))]),
4319
+ args_of.call(this, ref.kids[0])
4320
+ ])
4321
+ : context.chain
4322
+ ? ref.struct('()', [
4323
+ ref.struct('this'),
4324
+ ref.struct('[]', [ref.data('$')]),
4325
+ ref.struct('[]', [ref.data(op.type)]),
4326
+ ref.struct('[]', [ref.data('prototype')]),
4327
+ ref.struct('[]', [ref.data(context.chain[0])]),
4328
+ ref.struct('[]', [ref.data('call')]),
4329
+ ref.struct('(,)', [ref.struct('obj')]),
4330
+ ...context.chain.slice(1).map(field => ref.struct('[]', [ref.data(field)]))
4331
+ ])
4332
+ : ref.struct('()', [
4333
+ ref.struct('super'),
4334
+ ref.struct('[]', [ref.data(name)]),
4335
+ ref.struct('(,)')
4336
+ ]),
4318
4337
  ]),
4319
4338
  ],
4320
4339
  '=': bind => [bind.struct('()', [
@@ -4330,7 +4349,7 @@ var $;
4330
4349
  return [
4331
4350
  input.struct('{,}', input.kids.map(field => {
4332
4351
  if (field.type === '^')
4333
- return field.list([field]).hack(belt)[0];
4352
+ return field.list([field]).hack(belt, context)[0];
4334
4353
  const field_name = (field.type || field.value).replace(/\?\w*$/, '');
4335
4354
  return field.struct(':', [
4336
4355
  field.data(field_name),
@@ -4346,7 +4365,7 @@ var $;
4346
4365
  }
4347
4366
  if (input.type[0] === '/')
4348
4367
  return [
4349
- input.struct('[,]', input.hack(belt)),
4368
+ input.struct('[,]', input.hack(belt, context)),
4350
4369
  ];
4351
4370
  if (input.type && $mol_tree2_js_is_number(input.type))
4352
4371
  return [
@@ -15280,6 +15299,29 @@ var $;
15280
15299
  };
15281
15300
 
15282
15301
 
15302
+ ;
15303
+ ($.$mol_view_tree2_to_js_test_ex_simple_factory_inheritance_bar) = class $mol_view_tree2_to_js_test_ex_simple_factory_inheritance_bar extends ($.$mol_object) {
15304
+ config(){
15305
+ return {"ips": ["127.0.0.1"]};
15306
+ }
15307
+ };
15308
+ ($.$mol_view_tree2_to_js_test_ex_simple_factory_inheritance_foo) = class $mol_view_tree2_to_js_test_ex_simple_factory_inheritance_foo extends ($.$mol_object) {
15309
+ addon(){
15310
+ return ["1.1.1.1"];
15311
+ }
15312
+ Having(){
15313
+ const obj = new this.$.$mol_view_tree2_to_js_test_ex_simple_factory_inheritance_bar();
15314
+ (obj.config) = () => ({"ips": [
15315
+ ...(super.Having()),
15316
+ "0.0.0.0",
15317
+ ...(this.addon())
15318
+ ]});
15319
+ return obj;
15320
+ }
15321
+ };
15322
+ ($mol_mem(($.$mol_view_tree2_to_js_test_ex_simple_factory_inheritance_foo.prototype), "Having"));
15323
+
15324
+
15283
15325
  ;
15284
15326
  ($.$mol_view_tree2_to_js_test_ex_structural_with_inheritance_foo) = class $mol_view_tree2_to_js_test_ex_structural_with_inheritance_foo extends ($.$mol_object) {
15285
15327
  field(){
@@ -15562,6 +15604,9 @@ var $;
15562
15604
  ;
15563
15605
  "use strict";
15564
15606
 
15607
+ ;
15608
+ "use strict";
15609
+
15565
15610
  ;
15566
15611
  "use strict";
15567
15612
  var $;
@@ -15913,6 +15958,11 @@ sub
15913
15958
  $mol_assert_equal(foo.button().deep().loc, `$mol_view_tree2_to_js_test_ex_simple_factory_props_foo_button_deep_loc`);
15914
15959
  $mol_assert_equal(foo.button().sub()[0], 1);
15915
15960
  },
15961
+ 'simple factory inheritance'($) {
15962
+ const _foo = $mol_view_tree2_to_js_test_ex_simple_factory_inheritance_foo;
15963
+ const foo = _foo.make({ $ });
15964
+ $mol_assert_equal(foo.Having().config(), { ips: ['127.0.0.1', '0.0.0.0', '1.1.1.1'] });
15965
+ },
15916
15966
  'simple nan'($) {
15917
15967
  const _foo = $mol_view_tree2_to_js_test_ex_simple_nan_foo;
15918
15968
  const foo = _foo.make({ $ });