@microsoft/teamsfx 2.3.0 → 2.3.1-alpha.040364b92.0

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.
@@ -1,5 +1,4 @@
1
1
  import jwt_decode from 'jwt-decode';
2
- import { __awaiter } from 'tslib';
3
2
  import { app, authentication } from '@microsoft/teams-js';
4
3
  import { PublicClientApplication } from '@azure/msal-browser';
5
4
  import { Client } from '@microsoft/microsoft-graph-client';
@@ -131,6 +130,7 @@ ErrorMessage.DuplicateHttpsOptionProperty = "Axios HTTPS agent already defined v
131
130
  ErrorMessage.DuplicateApiKeyInHeader = "The request already defined api key in request header with name {0}.";
132
131
  ErrorMessage.DuplicateApiKeyInQueryParam = "The request already defined api key in query parameter with name {0}.";
133
132
  ErrorMessage.OnlySupportInQueryActivity = "The handleMessageExtensionQueryWithToken only support in handleTeamsMessagingExtensionQuery with composeExtension/query type.";
133
+ ErrorMessage.OnlySupportInLinkQueryActivity = "The handleMessageExtensionLinkQueryWithSSO only support in handleTeamsAppBasedLinkQuery with composeExtension/queryLink type.";
134
134
  /**
135
135
  * Error class with code and message thrown by the SDK.
136
136
  */
@@ -476,6 +476,36 @@ class OnBehalfOfUserCredential {
476
476
  }
477
477
  }
478
478
 
479
+ /******************************************************************************
480
+ Copyright (c) Microsoft Corporation.
481
+
482
+ Permission to use, copy, modify, and/or distribute this software for any
483
+ purpose with or without fee is hereby granted.
484
+
485
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
486
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
487
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
488
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
489
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
490
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
491
+ PERFORMANCE OF THIS SOFTWARE.
492
+ ***************************************************************************** */
493
+
494
+ function __awaiter(thisArg, _arguments, P, generator) {
495
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
496
+ return new (P || (P = Promise))(function (resolve, reject) {
497
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
498
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
499
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
500
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
501
+ });
502
+ }
503
+
504
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
505
+ var e = new Error(message);
506
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
507
+ };
508
+
479
509
  // Copyright (c) Microsoft Corporation.
480
510
  const tokenRefreshTimeSpanInMillisecond = 5 * 60 * 1000;
481
511
  const loginPageWidth = 600;
@@ -1125,7 +1155,7 @@ function createApiClient(apiEndpoint, authProvider) {
1125
1155
  });
1126
1156
  instance.interceptors.request.use(function (config) {
1127
1157
  return __awaiter(this, void 0, void 0, function* () {
1128
- return yield authProvider.AddAuthenticationInfo(config);
1158
+ return (yield authProvider.AddAuthenticationInfo(config));
1129
1159
  });
1130
1160
  });
1131
1161
  return instance;