mol_mutable 0.0.995 → 0.0.996
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.test.js +21 -19
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.test.js +8 -13
- package/web.test.js.map +1 -1
package/package.json
CHANGED
package/web.test.js
CHANGED
|
@@ -1046,11 +1046,11 @@ var $;
|
|
|
1046
1046
|
function $mol_dev_format_button(label, click) {
|
|
1047
1047
|
return $mol_dev_format_auto({
|
|
1048
1048
|
[$.$mol_dev_format_head]() {
|
|
1049
|
-
return
|
|
1049
|
+
return $.$mol_dev_format_span({ color: 'cornflowerblue' }, label);
|
|
1050
1050
|
},
|
|
1051
1051
|
[$.$mol_dev_format_body]() {
|
|
1052
1052
|
Promise.resolve().then(click);
|
|
1053
|
-
return
|
|
1053
|
+
return $.$mol_dev_format_span({});
|
|
1054
1054
|
}
|
|
1055
1055
|
});
|
|
1056
1056
|
}
|
|
@@ -1072,7 +1072,7 @@ var $;
|
|
|
1072
1072
|
return $mol_dev_format_native(val);
|
|
1073
1073
|
}
|
|
1074
1074
|
if (val instanceof Error) {
|
|
1075
|
-
return
|
|
1075
|
+
return $.$mol_dev_format_span({}, $mol_dev_format_native(val), ' ', $mol_dev_format_button('throw', () => $mol_fail_hidden(val)));
|
|
1076
1076
|
}
|
|
1077
1077
|
if (val instanceof Promise) {
|
|
1078
1078
|
return $.$mol_dev_format_shade($mol_dev_format_native(val), ' ', val[Symbol.toStringTag] ?? '');
|
|
@@ -1144,28 +1144,23 @@ var $;
|
|
|
1144
1144
|
];
|
|
1145
1145
|
}
|
|
1146
1146
|
$.$mol_dev_format_element = $mol_dev_format_element;
|
|
1147
|
-
|
|
1148
|
-
return $mol_dev_format_element('span', {
|
|
1149
|
-
...style,
|
|
1150
|
-
}, ...content);
|
|
1151
|
-
}
|
|
1152
|
-
$.$mol_dev_format_span = $mol_dev_format_span;
|
|
1147
|
+
$.$mol_dev_format_span = $mol_dev_format_element.bind(null, 'span');
|
|
1153
1148
|
$.$mol_dev_format_div = $mol_dev_format_element.bind(null, 'div');
|
|
1154
1149
|
$.$mol_dev_format_ol = $mol_dev_format_element.bind(null, 'ol');
|
|
1155
1150
|
$.$mol_dev_format_li = $mol_dev_format_element.bind(null, 'li');
|
|
1156
1151
|
$.$mol_dev_format_table = $mol_dev_format_element.bind(null, 'table');
|
|
1157
1152
|
$.$mol_dev_format_tr = $mol_dev_format_element.bind(null, 'tr');
|
|
1158
1153
|
$.$mol_dev_format_td = $mol_dev_format_element.bind(null, 'td');
|
|
1159
|
-
$.$mol_dev_format_accent =
|
|
1154
|
+
$.$mol_dev_format_accent = $.$mol_dev_format_span.bind(null, {
|
|
1160
1155
|
'color': 'magenta',
|
|
1161
1156
|
});
|
|
1162
|
-
$.$mol_dev_format_strong =
|
|
1157
|
+
$.$mol_dev_format_strong = $.$mol_dev_format_span.bind(null, {
|
|
1163
1158
|
'font-weight': 'bold',
|
|
1164
1159
|
});
|
|
1165
|
-
$.$mol_dev_format_string =
|
|
1160
|
+
$.$mol_dev_format_string = $.$mol_dev_format_span.bind(null, {
|
|
1166
1161
|
'color': 'green',
|
|
1167
1162
|
});
|
|
1168
|
-
$.$mol_dev_format_shade =
|
|
1163
|
+
$.$mol_dev_format_shade = $.$mol_dev_format_span.bind(null, {
|
|
1169
1164
|
'color': 'gray',
|
|
1170
1165
|
});
|
|
1171
1166
|
$.$mol_dev_format_indent = $.$mol_dev_format_div.bind(null, {
|