@lucid-evolution/utils 0.1.13 → 0.1.14

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/dist/index.cjs CHANGED
@@ -1115,7 +1115,7 @@ var selectUTxOs = (utxos, totalAssets) => {
1115
1115
  return selectedUtxos;
1116
1116
  };
1117
1117
  var sortUTxOs = (utxos, order = "descending") => {
1118
- return utxos.toSorted((a, b) => {
1118
+ return [...utxos].sort((a, b) => {
1119
1119
  if (a.assets["lovelace"] > b.assets["lovelace"]) {
1120
1120
  return order === "ascending" ? 1 : -1;
1121
1121
  }
package/dist/index.js CHANGED
@@ -1035,7 +1035,7 @@ var selectUTxOs = (utxos, totalAssets) => {
1035
1035
  return selectedUtxos;
1036
1036
  };
1037
1037
  var sortUTxOs = (utxos, order = "descending") => {
1038
- return utxos.toSorted((a, b) => {
1038
+ return [...utxos].sort((a, b) => {
1039
1039
  if (a.assets["lovelace"] > b.assets["lovelace"]) {
1040
1040
  return order === "ascending" ? 1 : -1;
1041
1041
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucid-evolution/utils",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",