@rango-dev/widget-embedded 0.1.11-next.15 → 0.1.11-next.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/widget-embedded",
3
- "version": "0.1.11-next.15",
3
+ "version": "0.1.11-next.17",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "@rango-dev/provider-all": "^0.1.11-next.84",
32
32
  "@rango-dev/queue-manager-core": "^0.1.11-next.0",
33
- "@rango-dev/queue-manager-rango-preset": "^0.1.11-next.5",
33
+ "@rango-dev/queue-manager-rango-preset": "^0.1.11-next.3",
34
34
  "@rango-dev/queue-manager-react": "^0.1.10-next.76",
35
35
  "@rango-dev/ui": "^0.1.11-next.8",
36
36
  "@rango-dev/wallets-core": "^0.1.11-next.88",
@@ -7,14 +7,14 @@ export function ConfirmSwapErrors(errors: ConfirmSwapError[]) {
7
7
  return errors.flatMap((error) => {
8
8
  switch (error.type) {
9
9
  case ConfirmSwapErrorTypes.NO_ROUTE:
10
- return "No routes found. Please try again later."
10
+ return 'No routes found. Please try again later.';
11
11
  case ConfirmSwapErrorTypes.REQUEST_FAILED:
12
12
  return `Failed to confirm swap ${
13
- error.status ? `'status': ${error.status})` : ''
14
- }, please try again.`
13
+ error.status ? `'status': ${error.status})` : ''
14
+ }, please try again.`;
15
15
 
16
16
  case ConfirmSwapErrorTypes.ROUTE_UPDATED_WITH_HIGH_VALUE_LOSS:
17
- return "Route updated and price impact is too high, try again later!"
17
+ return 'Route updated and price impact is too high, try again later!';
18
18
  case ConfirmSwapErrorTypes.INSUFFICIENT_SLIPPAGE:
19
19
  return (
20
20
  <MinRequiredSlippage
@@ -27,4 +27,4 @@ export function ConfirmSwapErrors(errors: ConfirmSwapError[]) {
27
27
  return [];
28
28
  }
29
29
  });
30
- }
30
+ }