@fileverse-dev/formulajs 4.4.21-price-and-wallet-4 → 4.4.21-price-and-wallet-5
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/lib/cjs/index.cjs
CHANGED
|
@@ -19195,11 +19195,12 @@ async function PRICE() {
|
|
|
19195
19195
|
url += `&time=${encodeURIComponent(input3)}`;
|
|
19196
19196
|
}
|
|
19197
19197
|
} else {
|
|
19198
|
-
const coin = input1;
|
|
19198
|
+
const coin = input1.replace(/\s+/g, "");
|
|
19199
19199
|
url += `&coin=${encodeURIComponent(coin)}`;
|
|
19200
19200
|
if (input2) {
|
|
19201
19201
|
url += `&time=${encodeURIComponent(input2)}`;
|
|
19202
|
-
|
|
19202
|
+
url += `&coin=${encodeURIComponent(coin)}`;
|
|
19203
|
+
} else if(coin.split(',') === 1) {
|
|
19203
19204
|
returnSingleValue = true;
|
|
19204
19205
|
}
|
|
19205
19206
|
}
|
package/lib/esm/index.mjs
CHANGED
|
@@ -19193,11 +19193,12 @@ async function PRICE() {
|
|
|
19193
19193
|
url += `&time=${encodeURIComponent(input3)}`;
|
|
19194
19194
|
}
|
|
19195
19195
|
} else {
|
|
19196
|
-
const coin = input1;
|
|
19196
|
+
const coin = input1.replace(/\s+/g, "");
|
|
19197
19197
|
url += `&coin=${encodeURIComponent(coin)}`;
|
|
19198
19198
|
if (input2) {
|
|
19199
19199
|
url += `&time=${encodeURIComponent(input2)}`;
|
|
19200
|
-
|
|
19200
|
+
url += `&coin=${encodeURIComponent(coin)}`;
|
|
19201
|
+
} else if(coin.split(',') === 1) {
|
|
19201
19202
|
returnSingleValue = true;
|
|
19202
19203
|
}
|
|
19203
19204
|
}
|
package/package.json
CHANGED