@shipengine/react-api 0.15.0 → 0.15.1
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/hooks/use-download-rate-card.d.ts +1 -1
- package/index.js +1 -2
- package/index.mjs +1 -2
- package/package.json +1 -1
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* @category ShipEngine API Hooks
|
|
3
3
|
*
|
|
4
4
|
*/
|
|
5
|
-
export declare const useDownloadRateCard: (rateCardId: string) => import("react-query").UseQueryResult<Blob, import("@shipengine/js-api").CodedError[]>;
|
|
5
|
+
export declare const useDownloadRateCard: (rateCardId: string) => import("react-query").UseQueryResult<import("axios").AxiosResponse<Blob, any>, import("@shipengine/js-api").CodedError[]>;
|
package/index.js
CHANGED
|
@@ -511,8 +511,7 @@ const useDownloadRateCard = (rateCardId) => {
|
|
|
511
511
|
queryFn: () => {
|
|
512
512
|
return client.rateCards.download(rateCardId);
|
|
513
513
|
},
|
|
514
|
-
queryKey: ["useDownloadRateCard", rateCardId]
|
|
515
|
-
select: (result) => result.data
|
|
514
|
+
queryKey: ["useDownloadRateCard", rateCardId]
|
|
516
515
|
});
|
|
517
516
|
};
|
|
518
517
|
|
package/index.mjs
CHANGED
|
@@ -508,8 +508,7 @@ const useDownloadRateCard = (rateCardId) => {
|
|
|
508
508
|
queryFn: () => {
|
|
509
509
|
return client.rateCards.download(rateCardId);
|
|
510
510
|
},
|
|
511
|
-
queryKey: ["useDownloadRateCard", rateCardId]
|
|
512
|
-
select: (result) => result.data
|
|
511
|
+
queryKey: ["useDownloadRateCard", rateCardId]
|
|
513
512
|
});
|
|
514
513
|
};
|
|
515
514
|
|