@microsoft/teams-js 2.0.0-beta.3-dev.59 → 2.0.0-beta.3-dev.63

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.
@@ -1120,7 +1120,7 @@ __webpack_require__.d(__webpack_exports__, {
1120
1120
  });
1121
1121
 
1122
1122
  ;// CONCATENATED MODULE: ./src/internal/constants.ts
1123
- var version = "2.0.0-beta.3-dev.59";
1123
+ var version = "2.0.0-beta.3-dev.63";
1124
1124
  /**
1125
1125
  * @hidden
1126
1126
  * The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
@@ -2729,6 +2729,10 @@ var app_app;
2729
2729
  // After Teams updates its client code, we can remove this default code.
2730
2730
  try {
2731
2731
  var givenRuntimeConfig = JSON.parse(runtimeConfig);
2732
+ // Check that givenRuntimeConfig is a valid instance of IRuntimeConfig
2733
+ if (!givenRuntimeConfig || !givenRuntimeConfig.apiVersion) {
2734
+ throw new Error('Received runtime config is invalid');
2735
+ }
2732
2736
  runtimeConfig && applyRuntimeConfig(givenRuntimeConfig);
2733
2737
  }
2734
2738
  catch (e) {