@taiga-ui/addon-doc 2.49.0 → 2.50.0
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 -1
- package/bundles/taiga-ui-addon-doc.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc.umd.min.js.map +1 -1
- package/components/documentation/documentation.component.d.ts +1 -1
- package/esm2015/components/documentation/documentation.component.js +1 -1
- package/esm2015/interfaces/code-editor.js +1 -1
- package/esm2015/utils/coerce-value.js +3 -1
- package/esm2015/utils/generate-routes.js +1 -1
- package/esm2015/utils/inspect.js +1 -2
- package/esm5/components/documentation/documentation.component.js +1 -1
- package/esm5/interfaces/code-editor.js +1 -1
- package/esm5/utils/coerce-value.js +3 -1
- package/esm5/utils/generate-routes.js +1 -1
- package/esm5/utils/inspect.js +1 -2
- package/fesm2015/taiga-ui-addon-doc.js +2 -1
- package/fesm2015/taiga-ui-addon-doc.js.map +1 -1
- package/fesm5/taiga-ui-addon-doc.js +2 -1
- package/fesm5/taiga-ui-addon-doc.js.map +1 -1
- package/package.json +5 -5
- package/utils/generate-routes.d.ts +1 -1
- package/utils/inspect.d.ts +1 -1
|
@@ -674,7 +674,6 @@
|
|
|
674
674
|
}
|
|
675
675
|
return "{" + result + "}";
|
|
676
676
|
}
|
|
677
|
-
// @bad TODO add more types
|
|
678
677
|
/**
|
|
679
678
|
* Returns readable JS entity
|
|
680
679
|
* @param data
|
|
@@ -703,6 +702,7 @@
|
|
|
703
702
|
return inspectObject(data, depth);
|
|
704
703
|
}
|
|
705
704
|
|
|
705
|
+
/* eslint-disable unicorn/no-unsafe-regex */
|
|
706
706
|
function coerceValue(value) {
|
|
707
707
|
var prepared = String(value).trim();
|
|
708
708
|
if (isEmptyParamValue(prepared)) {
|
|
@@ -731,6 +731,7 @@
|
|
|
731
731
|
return value === 'true' || value === 'false';
|
|
732
732
|
}
|
|
733
733
|
function isNumberParamValue(value) {
|
|
734
|
+
// TODO: investigate to disallow potentially catastrophic exponential-time regular expressions.
|
|
734
735
|
return /^-?[\d.]+(?:e-?\d+)?$/.test(value);
|
|
735
736
|
}
|
|
736
737
|
function isPossibleArray(value) {
|