@omniumretail/shared-resources 0.2.16 → 0.2.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": "@omniumretail/shared-resources",
3
- "version": "0.2.16",
3
+ "version": "0.2.17",
4
4
  "private": false,
5
5
  "description": "Shared Components and services or utils to the frontend versions",
6
6
  "main": "dist/bundle.js",
@@ -11,7 +11,14 @@ export const getSitooVouchers = ({ id, ...options }: GetSitooVouchersProps) => {
11
11
  ['SITOO_VOUCHERS', id],
12
12
 
13
13
  () => get<SitooVoucher>(`/GNG/GiftCard/SPIGiftCard/giftcards/${id}.json`),
14
- options
14
+ {
15
+ ...options,
16
+ retry: false,
17
+ onError: (error) => {
18
+ // Permite que o erro seja acessível no componente
19
+ return error;
20
+ },
21
+ }
15
22
 
16
23
  );
17
24
  }