@whiplashmerch/whiplash-api-client 3.2.15 → 3.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/dist/client.esm.js
CHANGED
|
@@ -23673,6 +23673,7 @@ var PostApiV21CarrierAccountsRequestProvider;
|
|
|
23673
23673
|
PostApiV21CarrierAccountsRequestProvider["Easypost"] = "easypost";
|
|
23674
23674
|
PostApiV21CarrierAccountsRequestProvider["Shippo"] = "shippo";
|
|
23675
23675
|
PostApiV21CarrierAccountsRequestProvider["Shipium"] = "shipium";
|
|
23676
|
+
PostApiV21CarrierAccountsRequestProvider["Globale"] = "globale";
|
|
23676
23677
|
})(PostApiV21CarrierAccountsRequestProvider || (PostApiV21CarrierAccountsRequestProvider = {}));
|
|
23677
23678
|
/** white-, black-, etc-list */
|
|
23678
23679
|
var PostApiV21ChromalistsRequestChroma;
|
|
@@ -24511,6 +24512,7 @@ var PostApiV2CarrierAccountsRequestProvider;
|
|
|
24511
24512
|
PostApiV2CarrierAccountsRequestProvider["Easypost"] = "easypost";
|
|
24512
24513
|
PostApiV2CarrierAccountsRequestProvider["Shippo"] = "shippo";
|
|
24513
24514
|
PostApiV2CarrierAccountsRequestProvider["Shipium"] = "shipium";
|
|
24515
|
+
PostApiV2CarrierAccountsRequestProvider["Globale"] = "globale";
|
|
24514
24516
|
})(PostApiV2CarrierAccountsRequestProvider || (PostApiV2CarrierAccountsRequestProvider = {}));
|
|
24515
24517
|
/** white-, black-, etc-list */
|
|
24516
24518
|
var PostApiV2ChromalistsRequestChroma;
|
|
@@ -41982,6 +41984,8 @@ const loadRelatedObjects = async (client, input, config, perPage = 25) => {
|
|
|
41982
41984
|
const isArray = Array.isArray(input);
|
|
41983
41985
|
// normalize input to always be processed as array
|
|
41984
41986
|
const proxy = isArray ? input : [input];
|
|
41987
|
+
if (isArray && input.length === 0)
|
|
41988
|
+
return input;
|
|
41985
41989
|
const promises = [];
|
|
41986
41990
|
// for concurrency safety
|
|
41987
41991
|
const promiseMap = {};
|