mol_dump_lib 0.0.196 → 0.0.198
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 +4 -2
- package/node.deps.json +1 -1
- package/node.js +4 -1
- package/node.js.map +1 -1
- package/node.mjs +4 -1
- package/node.test.js +6 -2
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +4 -2
- package/web.deps.json +1 -1
- package/web.js +4 -1
- package/web.js.map +1 -1
- package/web.mjs +4 -1
- package/web.test.js +2 -1
- package/web.test.js.map +1 -1
package/node.mjs
CHANGED
|
@@ -2489,6 +2489,9 @@ var $;
|
|
|
2489
2489
|
}
|
|
2490
2490
|
prefix() { return this.name + '('; }
|
|
2491
2491
|
postfix() { return ')'; }
|
|
2492
|
+
static linear_gradient(value) {
|
|
2493
|
+
return new $mol_style_func('linear-gradient', value);
|
|
2494
|
+
}
|
|
2492
2495
|
static calc(value) {
|
|
2493
2496
|
return new $mol_style_func('calc', value);
|
|
2494
2497
|
}
|
|
@@ -4711,7 +4714,7 @@ var $;
|
|
|
4711
4714
|
this.status([null]);
|
|
4712
4715
|
}
|
|
4713
4716
|
catch (error) {
|
|
4714
|
-
this.status([error]);
|
|
4717
|
+
Promise.resolve().then(() => this.status([error]));
|
|
4715
4718
|
$mol_fail_hidden(error);
|
|
4716
4719
|
}
|
|
4717
4720
|
}
|
package/node.test.js
CHANGED
|
@@ -2481,6 +2481,9 @@ var $;
|
|
|
2481
2481
|
}
|
|
2482
2482
|
prefix() { return this.name + '('; }
|
|
2483
2483
|
postfix() { return ')'; }
|
|
2484
|
+
static linear_gradient(value) {
|
|
2485
|
+
return new $mol_style_func('linear-gradient', value);
|
|
2486
|
+
}
|
|
2484
2487
|
static calc(value) {
|
|
2485
2488
|
return new $mol_style_func('calc', value);
|
|
2486
2489
|
}
|
|
@@ -4703,7 +4706,7 @@ var $;
|
|
|
4703
4706
|
this.status([null]);
|
|
4704
4707
|
}
|
|
4705
4708
|
catch (error) {
|
|
4706
|
-
this.status([error]);
|
|
4709
|
+
Promise.resolve().then(() => this.status([error]));
|
|
4707
4710
|
$mol_fail_hidden(error);
|
|
4708
4711
|
}
|
|
4709
4712
|
}
|
|
@@ -10662,13 +10665,14 @@ var $;
|
|
|
10662
10665
|
element.dispatchEvent(event);
|
|
10663
10666
|
$mol_assert_not(clicked);
|
|
10664
10667
|
},
|
|
10665
|
-
'Store error'($) {
|
|
10668
|
+
async 'Store error'($) {
|
|
10666
10669
|
const clicker = $mol_button.make({
|
|
10667
10670
|
$,
|
|
10668
10671
|
click: (event) => $.$mol_fail(new Error('Test error')),
|
|
10669
10672
|
});
|
|
10670
10673
|
const event = $mol_dom_context.document.createEvent('mouseevent');
|
|
10671
10674
|
$mol_assert_fail(() => clicker.event_activate(event), 'Test error');
|
|
10675
|
+
await Promise.resolve();
|
|
10672
10676
|
$mol_assert_equal(clicker.status()[0].message, 'Test error');
|
|
10673
10677
|
},
|
|
10674
10678
|
});
|