@taiga-ui/addon-doc 2.49.2 → 2.50.2
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/bundles/taiga-ui-addon-doc.umd.js +2 -0
- package/bundles/taiga-ui-addon-doc.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc.umd.min.js.map +1 -1
- package/esm2015/interfaces/code-editor.js +1 -1
- package/esm2015/utils/coerce-value.js +3 -1
- package/esm5/interfaces/code-editor.js +1 -1
- package/esm5/utils/coerce-value.js +3 -1
- package/fesm2015/taiga-ui-addon-doc.js +2 -0
- package/fesm2015/taiga-ui-addon-doc.js.map +1 -1
- package/fesm5/taiga-ui-addon-doc.js +2 -0
- package/fesm5/taiga-ui-addon-doc.js.map +1 -1
- package/package.json +5 -5
|
@@ -702,6 +702,7 @@
|
|
|
702
702
|
return inspectObject(data, depth);
|
|
703
703
|
}
|
|
704
704
|
|
|
705
|
+
/* eslint-disable unicorn/no-unsafe-regex */
|
|
705
706
|
function coerceValue(value) {
|
|
706
707
|
var prepared = String(value).trim();
|
|
707
708
|
if (isEmptyParamValue(prepared)) {
|
|
@@ -730,6 +731,7 @@
|
|
|
730
731
|
return value === 'true' || value === 'false';
|
|
731
732
|
}
|
|
732
733
|
function isNumberParamValue(value) {
|
|
734
|
+
// TODO: investigate to disallow potentially catastrophic exponential-time regular expressions.
|
|
733
735
|
return /^-?[\d.]+(?:e-?\d+)?$/.test(value);
|
|
734
736
|
}
|
|
735
737
|
function isPossibleArray(value) {
|