dce-reactkit 3.3.3-beta.1 → 3.3.3-beta.2

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/cjs/index.js CHANGED
@@ -560,15 +560,14 @@ let storedSendRequest;
560
560
  * @returns sendRequest function
561
561
  */
562
562
  const getSendRequest = () => __awaiter(void 0, void 0, void 0, function* () {
563
- // Wait for initialization or timeout
563
+ // Track timeout
564
564
  let timedOut = false;
565
- yield Promise.all([
566
- (() => __awaiter(void 0, void 0, void 0, function* () {
567
- yield waitMs(5000);
568
- timedOut = true;
569
- }))(),
570
- initialized,
571
- ]);
565
+ (() => __awaiter(void 0, void 0, void 0, function* () {
566
+ yield waitMs(5000);
567
+ timedOut = true;
568
+ }))(),
569
+ // Wait for initialization
570
+ yield initialized;
572
571
  // Error if no send request function
573
572
  if (timedOut) {
574
573
  showFatalError(new ErrorWithCode('Could not send a request because the request needed to be sent before dce-reactkit was properly initialized. Perhaps dce-reactkit was not initialized with initClient.', ReactKitErrorCode$1.NoCACCLSendRequestFunction));