mol_text_distance 0.0.1267 → 0.0.1269
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
|
@@ -1037,11 +1037,11 @@ var $;
|
|
|
1037
1037
|
function $mol_dev_format_button(label, click) {
|
|
1038
1038
|
return $mol_dev_format_auto({
|
|
1039
1039
|
[$.$mol_dev_format_head]() {
|
|
1040
|
-
return
|
|
1040
|
+
return $.$mol_dev_format_span({ color: 'cornflowerblue' }, label);
|
|
1041
1041
|
},
|
|
1042
1042
|
[$.$mol_dev_format_body]() {
|
|
1043
1043
|
Promise.resolve().then(click);
|
|
1044
|
-
return
|
|
1044
|
+
return $.$mol_dev_format_span({});
|
|
1045
1045
|
}
|
|
1046
1046
|
});
|
|
1047
1047
|
}
|
|
@@ -1063,7 +1063,7 @@ var $;
|
|
|
1063
1063
|
return $mol_dev_format_native(val);
|
|
1064
1064
|
}
|
|
1065
1065
|
if (val instanceof Error) {
|
|
1066
|
-
return
|
|
1066
|
+
return $.$mol_dev_format_span({}, $mol_dev_format_native(val), ' ', $mol_dev_format_button('throw', () => $mol_fail_hidden(val)));
|
|
1067
1067
|
}
|
|
1068
1068
|
if (val instanceof Promise) {
|
|
1069
1069
|
return $.$mol_dev_format_shade($mol_dev_format_native(val), ' ', val[Symbol.toStringTag] ?? '');
|
|
@@ -1135,28 +1135,23 @@ var $;
|
|
|
1135
1135
|
];
|
|
1136
1136
|
}
|
|
1137
1137
|
$.$mol_dev_format_element = $mol_dev_format_element;
|
|
1138
|
-
|
|
1139
|
-
return $mol_dev_format_element('span', {
|
|
1140
|
-
...style,
|
|
1141
|
-
}, ...content);
|
|
1142
|
-
}
|
|
1143
|
-
$.$mol_dev_format_span = $mol_dev_format_span;
|
|
1138
|
+
$.$mol_dev_format_span = $mol_dev_format_element.bind(null, 'span');
|
|
1144
1139
|
$.$mol_dev_format_div = $mol_dev_format_element.bind(null, 'div');
|
|
1145
1140
|
$.$mol_dev_format_ol = $mol_dev_format_element.bind(null, 'ol');
|
|
1146
1141
|
$.$mol_dev_format_li = $mol_dev_format_element.bind(null, 'li');
|
|
1147
1142
|
$.$mol_dev_format_table = $mol_dev_format_element.bind(null, 'table');
|
|
1148
1143
|
$.$mol_dev_format_tr = $mol_dev_format_element.bind(null, 'tr');
|
|
1149
1144
|
$.$mol_dev_format_td = $mol_dev_format_element.bind(null, 'td');
|
|
1150
|
-
$.$mol_dev_format_accent =
|
|
1145
|
+
$.$mol_dev_format_accent = $.$mol_dev_format_span.bind(null, {
|
|
1151
1146
|
'color': 'magenta',
|
|
1152
1147
|
});
|
|
1153
|
-
$.$mol_dev_format_strong =
|
|
1148
|
+
$.$mol_dev_format_strong = $.$mol_dev_format_span.bind(null, {
|
|
1154
1149
|
'font-weight': 'bold',
|
|
1155
1150
|
});
|
|
1156
|
-
$.$mol_dev_format_string =
|
|
1151
|
+
$.$mol_dev_format_string = $.$mol_dev_format_span.bind(null, {
|
|
1157
1152
|
'color': 'green',
|
|
1158
1153
|
});
|
|
1159
|
-
$.$mol_dev_format_shade =
|
|
1154
|
+
$.$mol_dev_format_shade = $.$mol_dev_format_span.bind(null, {
|
|
1160
1155
|
'color': 'gray',
|
|
1161
1156
|
});
|
|
1162
1157
|
$.$mol_dev_format_indent = $.$mol_dev_format_div.bind(null, {
|