@fileverse-dev/fortune-react 1.0.58 → 1.0.59
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.
|
@@ -1401,7 +1401,9 @@ var Toolbar = function Toolbar(_a) {
|
|
|
1401
1401
|
type: "fiat"
|
|
1402
1402
|
};
|
|
1403
1403
|
}), true);
|
|
1404
|
-
var found = allOptions.
|
|
1404
|
+
var found = __spreadArray([], allOptions, true).sort(function (a, b) {
|
|
1405
|
+
return b.value.length - a.value.length;
|
|
1406
|
+
}).find(function (o) {
|
|
1405
1407
|
return curr_3.fa.includes(o.value);
|
|
1406
1408
|
});
|
|
1407
1409
|
if (found) {
|
|
@@ -1410,7 +1410,9 @@ var Toolbar = function Toolbar(_a) {
|
|
|
1410
1410
|
type: "fiat"
|
|
1411
1411
|
};
|
|
1412
1412
|
}), true);
|
|
1413
|
-
var found = allOptions.
|
|
1413
|
+
var found = __spreadArray([], allOptions, true).sort(function (a, b) {
|
|
1414
|
+
return b.value.length - a.value.length;
|
|
1415
|
+
}).find(function (o) {
|
|
1414
1416
|
return curr_3.fa.includes(o.value);
|
|
1415
1417
|
});
|
|
1416
1418
|
if (found) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fileverse-dev/fortune-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"tsc": "tsc"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@fileverse-dev/fortune-core": "1.0.
|
|
19
|
+
"@fileverse-dev/fortune-core": "1.0.59",
|
|
20
20
|
"@fileverse/ui": "^4.1.7-patch-16",
|
|
21
21
|
"@tippyjs/react": "^4.2.6",
|
|
22
22
|
"@types/regenerator-runtime": "^0.13.6",
|