@fluidframework/container-loader 2.4.0 → 2.5.0-302463

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/container.js CHANGED
@@ -147,7 +147,7 @@ class Container extends internal_5.EventEmitterWithErrorHandling {
147
147
  // to return container, so ignore this value and use undefined for opsBeforeReturn
148
148
  const mode = pendingLocalState
149
149
  ? { ...(loadMode ?? defaultMode), opsBeforeReturn: undefined }
150
- : loadMode ?? defaultMode;
150
+ : (loadMode ?? defaultMode);
151
151
  const onClosed = (err) => {
152
152
  // pre-0.58 error message: containerClosedWithoutErrorDuringLoad
153
153
  reject(err ?? new internal_5.GenericError("Container closed without error during load"));
@@ -1056,7 +1056,7 @@ class Container extends internal_5.EventEmitterWithErrorHandling {
1056
1056
  const codeDetails = this.getCodeDetailsFromQuorum();
1057
1057
  await this.instantiateRuntime(codeDetails, baseSnapshotTree,
1058
1058
  // give runtime a dummy value so it knows we're loading from a stash blob
1059
- pendingLocalState ? pendingLocalState?.pendingRuntimeState ?? {} : undefined, (0, internal_4.isInstanceOfISnapshot)(baseSnapshot) ? baseSnapshot : undefined);
1059
+ pendingLocalState ? (pendingLocalState?.pendingRuntimeState ?? {}) : undefined, (0, internal_4.isInstanceOfISnapshot)(baseSnapshot) ? baseSnapshot : undefined);
1060
1060
  // replay saved ops
1061
1061
  if (pendingLocalState) {
1062
1062
  for (const message of pendingLocalState.savedOps) {