@crystaldesign/diva-utils 24.12.0-rc.9 → 24.12.1
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/build/cjs/index.js +4 -4
- package/build/esm/index.js +4 -4
- package/package.json +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -437,7 +437,7 @@ var DivaUtils = /*#__PURE__*/function () {
|
|
|
437
437
|
}, {
|
|
438
438
|
key: "formatPrice",
|
|
439
439
|
value: function formatPrice(price, priceFormat) {
|
|
440
|
-
if (price == undefined) return '';
|
|
440
|
+
if (price == undefined || isNaN(price)) return '';
|
|
441
441
|
var retPrice;
|
|
442
442
|
var priceFormatToUse = priceFormat ? priceFormat : this.defaultPriceFormat;
|
|
443
443
|
retPrice = format(price, priceFormatToUse);
|
|
@@ -727,9 +727,9 @@ var DivaUtils = /*#__PURE__*/function () {
|
|
|
727
727
|
HTML.appendChild(newElementInDom);
|
|
728
728
|
}
|
|
729
729
|
|
|
730
|
-
/**
|
|
731
|
-
* is used to Wait
|
|
732
|
-
* @param ms milliseconds waiting
|
|
730
|
+
/**
|
|
731
|
+
* is used to Wait
|
|
732
|
+
* @param ms milliseconds waiting
|
|
733
733
|
*/
|
|
734
734
|
}, {
|
|
735
735
|
key: "Sleep",
|
package/build/esm/index.js
CHANGED
|
@@ -419,7 +419,7 @@ var DivaUtils = /*#__PURE__*/function () {
|
|
|
419
419
|
}, {
|
|
420
420
|
key: "formatPrice",
|
|
421
421
|
value: function formatPrice(price, priceFormat) {
|
|
422
|
-
if (price == undefined) return '';
|
|
422
|
+
if (price == undefined || isNaN(price)) return '';
|
|
423
423
|
var retPrice;
|
|
424
424
|
var priceFormatToUse = priceFormat ? priceFormat : this.defaultPriceFormat;
|
|
425
425
|
retPrice = format(price, priceFormatToUse);
|
|
@@ -709,9 +709,9 @@ var DivaUtils = /*#__PURE__*/function () {
|
|
|
709
709
|
HTML.appendChild(newElementInDom);
|
|
710
710
|
}
|
|
711
711
|
|
|
712
|
-
/**
|
|
713
|
-
* is used to Wait
|
|
714
|
-
* @param ms milliseconds waiting
|
|
712
|
+
/**
|
|
713
|
+
* is used to Wait
|
|
714
|
+
* @param ms milliseconds waiting
|
|
715
715
|
*/
|
|
716
716
|
}, {
|
|
717
717
|
key: "Sleep",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-utils",
|
|
3
|
-
"version": "24.12.
|
|
3
|
+
"version": "24.12.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"module": "build/esm/index.js",
|
|
25
25
|
"types": "./build/types/utils/src/index.d.ts",
|
|
26
26
|
"main": "build/cjs/index.js",
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "10505d5064511472829e3a6dbf82b1a961fe6e53"
|
|
28
28
|
}
|