@azure/msal-angular 2.5.2 → 2.5.4
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/azure-msal-angular.metadata.json +1 -1
- package/bundles/azure-msal-angular.umd.js +93 -13
- package/bundles/azure-msal-angular.umd.js.map +1 -1
- package/bundles/azure-msal-angular.umd.min.js +1 -1
- package/bundles/azure-msal-angular.umd.min.js.map +1 -1
- package/esm2015/msal.interceptor.config.js +1 -1
- package/esm2015/msal.interceptor.js +35 -13
- package/esm2015/packageMetadata.js +2 -2
- package/fesm2015/azure-msal-angular.js +33 -12
- package/fesm2015/azure-msal-angular.js.map +1 -1
- package/msal.interceptor.config.d.ts +1 -1
- package/msal.interceptor.config.d.ts.map +1 -1
- package/msal.interceptor.d.ts +11 -1
- package/msal.interceptor.d.ts.map +1 -1
- package/package.json +2 -2
- package/packageMetadata.d.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"MsalService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":24,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":30,"character":9},"arguments":[{"__symbolic":"reference","name":"MSAL_INSTANCE"}]}],null],"parameters":[{"__symbolic":"reference","module":"@azure/msal-browser","name":"IPublicClientApplication","line":30,"character":48},{"__symbolic":"reference","module":"@angular/common","name":"Location","line":31,"character":26}]}],"initialize":[{"__symbolic":"method"}],"acquireTokenPopup":[{"__symbolic":"method"}],"acquireTokenRedirect":[{"__symbolic":"method"}],"acquireTokenSilent":[{"__symbolic":"method"}],"handleRedirectObservable":[{"__symbolic":"method"}],"loginPopup":[{"__symbolic":"method"}],"loginRedirect":[{"__symbolic":"method"}],"logout":[{"__symbolic":"method"}],"logoutRedirect":[{"__symbolic":"method"}],"logoutPopup":[{"__symbolic":"method"}],"ssoSilent":[{"__symbolic":"method"}],"getLogger":[{"__symbolic":"method"}],"setLogger":[{"__symbolic":"method"}]}},"IMsalService":{"__symbolic":"interface"},"MsalGuard":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":16,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":21,"character":9},"arguments":[{"__symbolic":"reference","name":"MSAL_GUARD_CONFIG"}]}],null,null,null,null],"parameters":[{"__symbolic":"reference","name":"MsalGuardConfiguration"},{"__symbolic":"reference","name":"MsalBroadcastService"},{"__symbolic":"reference","name":"MsalService"},{"__symbolic":"reference","module":"@angular/common","name":"Location","line":24,"character":26},{"__symbolic":"reference","module":"@angular/router","name":"Router","line":25,"character":24}]}],"parseUrl":[{"__symbolic":"method"}],"getDestinationUrl":[{"__symbolic":"method"}],"loginInteractively":[{"__symbolic":"method"}],"activateHelper":[{"__symbolic":"method"}],"includesCode":[{"__symbolic":"method"}],"canActivate":[{"__symbolic":"method"}],"canActivateChild":[{"__symbolic":"method"}],"canLoad":[{"__symbolic":"method"}]}},"MsalGuardConfiguration":{"__symbolic":"interface"},"MsalGuardAuthRequest":{"__symbolic":"interface"},"MsalInterceptor":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":
|
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"MsalService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":24,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":30,"character":9},"arguments":[{"__symbolic":"reference","name":"MSAL_INSTANCE"}]}],null],"parameters":[{"__symbolic":"reference","module":"@azure/msal-browser","name":"IPublicClientApplication","line":30,"character":48},{"__symbolic":"reference","module":"@angular/common","name":"Location","line":31,"character":26}]}],"initialize":[{"__symbolic":"method"}],"acquireTokenPopup":[{"__symbolic":"method"}],"acquireTokenRedirect":[{"__symbolic":"method"}],"acquireTokenSilent":[{"__symbolic":"method"}],"handleRedirectObservable":[{"__symbolic":"method"}],"loginPopup":[{"__symbolic":"method"}],"loginRedirect":[{"__symbolic":"method"}],"logout":[{"__symbolic":"method"}],"logoutRedirect":[{"__symbolic":"method"}],"logoutPopup":[{"__symbolic":"method"}],"ssoSilent":[{"__symbolic":"method"}],"getLogger":[{"__symbolic":"method"}],"setLogger":[{"__symbolic":"method"}]}},"IMsalService":{"__symbolic":"interface"},"MsalGuard":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":16,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":21,"character":9},"arguments":[{"__symbolic":"reference","name":"MSAL_GUARD_CONFIG"}]}],null,null,null,null],"parameters":[{"__symbolic":"reference","name":"MsalGuardConfiguration"},{"__symbolic":"reference","name":"MsalBroadcastService"},{"__symbolic":"reference","name":"MsalService"},{"__symbolic":"reference","module":"@angular/common","name":"Location","line":24,"character":26},{"__symbolic":"reference","module":"@angular/router","name":"Router","line":25,"character":24}]}],"parseUrl":[{"__symbolic":"method"}],"getDestinationUrl":[{"__symbolic":"method"}],"loginInteractively":[{"__symbolic":"method"}],"activateHelper":[{"__symbolic":"method"}],"includesCode":[{"__symbolic":"method"}],"canActivate":[{"__symbolic":"method"}],"canActivateChild":[{"__symbolic":"method"}],"canLoad":[{"__symbolic":"method"}]}},"MsalGuardConfiguration":{"__symbolic":"interface"},"MsalGuardAuthRequest":{"__symbolic":"interface"},"MsalInterceptor":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":21,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":26,"character":9},"arguments":[{"__symbolic":"reference","name":"MSAL_INTERCEPTOR_CONFIG"}]}],null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":31,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":31,"character":16}]}]],"parameters":[{"__symbolic":"reference","name":"MsalInterceptorConfiguration"},{"__symbolic":"reference","name":"MsalService"},{"__symbolic":"reference","module":"@angular/common","name":"Location","line":28,"character":26},{"__symbolic":"reference","name":"MsalBroadcastService"},{"__symbolic":"reference","name":"any"}]}],"intercept":[{"__symbolic":"method"}],"acquireToken":[{"__symbolic":"method"}],"acquireTokenInteractively":[{"__symbolic":"method"}],"getScopesForEndpoint":[{"__symbolic":"method"}],"matchResourcesToEndpoint":[{"__symbolic":"method"}],"getAbsoluteUrl":[{"__symbolic":"method"}],"matchScopesToEndpoint":[{"__symbolic":"method"}]}},"MsalInterceptorConfiguration":{"__symbolic":"interface"},"MsalInterceptorAuthRequest":{"__symbolic":"interface"},"ProtectedResourceScopes":{"__symbolic":"interface"},"MSAL_INSTANCE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":7,"character":33},"arguments":["MSAL_INSTANCE"]},"MSAL_GUARD_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":9,"character":37},"arguments":["MSAL_GUARD_CONFIG"]},"MSAL_INTERCEPTOR_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":11,"character":43},"arguments":["MSAL_INTERCEPTOR_CONFIG"]},"MSAL_BROADCAST_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":13,"character":41},"arguments":["MSAL_BROADCAST_CONFIG"]},"MsalBroadcastService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":12,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":20,"character":9},"arguments":[{"__symbolic":"reference","name":"MSAL_INSTANCE"}]}],null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":22,"character":9}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":22,"character":21},"arguments":[{"__symbolic":"reference","name":"MSAL_BROADCAST_CONFIG"}]}]],"parameters":[{"__symbolic":"reference","module":"@azure/msal-browser","name":"IPublicClientApplication","line":20,"character":53},{"__symbolic":"reference","name":"MsalService"},{"__symbolic":"reference","name":"MsalBroadcastConfiguration"}]}]}},"MsalBroadcastConfiguration":{"__symbolic":"interface"},"MsalModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":16,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"MsalRedirectComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":19,"character":8}],"providers":[{"__symbolic":"reference","name":"MsalGuard"},{"__symbolic":"reference","name":"MsalBroadcastService"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["msalInstance","guardConfig","interceptorConfig"],"value":{"ngModule":{"__symbolic":"reference","name":"MsalModule"},"providers":[{"provide":{"__symbolic":"reference","name":"MSAL_INSTANCE"},"useValue":{"__symbolic":"reference","name":"msalInstance"}},{"provide":{"__symbolic":"reference","name":"MSAL_GUARD_CONFIG"},"useValue":{"__symbolic":"reference","name":"guardConfig"}},{"provide":{"__symbolic":"reference","name":"MSAL_INTERCEPTOR_CONFIG"},"useValue":{"__symbolic":"reference","name":"interceptorConfig"}},{"__symbolic":"reference","name":"MsalService"}]}}}},"MsalRedirectComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":15,"character":1},"arguments":[{"selector":"app-redirect","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"MsalService"}]}],"ngOnInit":[{"__symbolic":"method"}]}},"MsalCustomNavigationClient":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@azure/msal-browser","name":"NavigationClient","line":17,"character":48},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":16,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"MsalService"},{"__symbolic":"reference","module":"@angular/router","name":"Router","line":21,"character":24},{"__symbolic":"reference","module":"@angular/common","name":"Location","line":22,"character":26}]}],"navigateInternal":[{"__symbolic":"method"}]}},"version":"2.5.4"},"origins":{"MsalService":"./msal.service","IMsalService":"./IMsalService","MsalGuard":"./msal.guard","MsalGuardConfiguration":"./msal.guard.config","MsalGuardAuthRequest":"./msal.guard.config","MsalInterceptor":"./msal.interceptor","MsalInterceptorConfiguration":"./msal.interceptor.config","MsalInterceptorAuthRequest":"./msal.interceptor.config","ProtectedResourceScopes":"./msal.interceptor.config","MSAL_INSTANCE":"./constants","MSAL_GUARD_CONFIG":"./constants","MSAL_INTERCEPTOR_CONFIG":"./constants","MSAL_BROADCAST_CONFIG":"./constants","MsalBroadcastService":"./msal.broadcast.service","MsalBroadcastConfiguration":"./msal.broadcast.config","MsalModule":"./msal.module","MsalRedirectComponent":"./msal.redirect.component","MsalCustomNavigationClient":"./msal.navigation.client","version":"./packageMetadata"},"importAs":"@azure/msal-angular"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
/* eslint-disable header/header */
|
|
17
17
|
var name = "@azure/msal-angular";
|
|
18
|
-
var version = "2.5.
|
|
18
|
+
var version = "2.5.4";
|
|
19
19
|
|
|
20
20
|
/*
|
|
21
21
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -320,12 +320,13 @@
|
|
|
320
320
|
* Licensed under the MIT License.
|
|
321
321
|
*/
|
|
322
322
|
var MsalInterceptor = /** @class */ (function () {
|
|
323
|
-
function MsalInterceptor(msalInterceptorConfig, authService, location,
|
|
323
|
+
function MsalInterceptor(msalInterceptorConfig, authService, location, msalBroadcastService,
|
|
324
324
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
325
325
|
document) {
|
|
326
326
|
this.msalInterceptorConfig = msalInterceptorConfig;
|
|
327
327
|
this.authService = authService;
|
|
328
328
|
this.location = location;
|
|
329
|
+
this.msalBroadcastService = msalBroadcastService;
|
|
329
330
|
this._document = document;
|
|
330
331
|
}
|
|
331
332
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -356,23 +357,43 @@
|
|
|
356
357
|
: Object.assign(Object.assign({}, this.msalInterceptorConfig.authRequest), { account: account });
|
|
357
358
|
this.authService.getLogger().info("Interceptor - " + scopes.length + " scopes found for endpoint");
|
|
358
359
|
this.authService.getLogger().infoPii("Interceptor - [" + scopes + "] scopes found for " + req.url);
|
|
360
|
+
return this.acquireToken(authRequest, scopes, account)
|
|
361
|
+
.pipe(operators.switchMap(function (result) {
|
|
362
|
+
_this.authService.getLogger().verbose("Interceptor - setting authorization headers");
|
|
363
|
+
var headers = req.headers
|
|
364
|
+
.set("Authorization", "Bearer " + result.accessToken);
|
|
365
|
+
var requestClone = req.clone({ headers: headers });
|
|
366
|
+
return next.handle(requestClone);
|
|
367
|
+
}));
|
|
368
|
+
};
|
|
369
|
+
/**
|
|
370
|
+
* Try to acquire token silently. Invoke interaction if acquireTokenSilent rejected with error or resolved with null access token
|
|
371
|
+
* @param authRequest Request
|
|
372
|
+
* @param scopes Array of scopes for the request
|
|
373
|
+
* @param account Account
|
|
374
|
+
* @returns Authentication result
|
|
375
|
+
*/
|
|
376
|
+
MsalInterceptor.prototype.acquireToken = function (authRequest, scopes, account) {
|
|
377
|
+
var _this = this;
|
|
359
378
|
// Note: For MSA accounts, include openid scope when calling acquireTokenSilent to return idToken
|
|
360
379
|
return this.authService.acquireTokenSilent(Object.assign(Object.assign({}, authRequest), { scopes: scopes, account: account }))
|
|
361
380
|
.pipe(operators.catchError(function () {
|
|
362
381
|
_this.authService.getLogger().error("Interceptor - acquireTokenSilent rejected with error. Invoking interaction to resolve.");
|
|
363
|
-
return _this.
|
|
382
|
+
return _this.msalBroadcastService.inProgress$
|
|
383
|
+
.pipe(operators.take(1), operators.switchMap(function (status) {
|
|
384
|
+
if (status === msalBrowser.InteractionStatus.None) {
|
|
385
|
+
return _this.acquireTokenInteractively(authRequest, scopes);
|
|
386
|
+
}
|
|
387
|
+
return _this.msalBroadcastService.inProgress$
|
|
388
|
+
.pipe(operators.filter(function (status) { return status === msalBrowser.InteractionStatus.None; }), operators.take(1), operators.switchMap(function () { return _this.acquireToken(authRequest, scopes, account); }));
|
|
389
|
+
}));
|
|
364
390
|
}), operators.switchMap(function (result) {
|
|
365
391
|
if (!result.accessToken) {
|
|
366
392
|
_this.authService.getLogger().error("Interceptor - acquireTokenSilent resolved with null access token. Known issue with B2C tenants, invoking interaction to resolve.");
|
|
367
|
-
return _this.
|
|
393
|
+
return _this.msalBroadcastService.inProgress$
|
|
394
|
+
.pipe(operators.filter(function (status) { return status === msalBrowser.InteractionStatus.None; }), operators.take(1), operators.switchMap(function () { return _this.acquireTokenInteractively(authRequest, scopes); }));
|
|
368
395
|
}
|
|
369
396
|
return rxjs.of(result);
|
|
370
|
-
}), operators.switchMap(function (result) {
|
|
371
|
-
_this.authService.getLogger().verbose("Interceptor - setting authorization headers");
|
|
372
|
-
var headers = req.headers
|
|
373
|
-
.set("Authorization", "Bearer " + result.accessToken);
|
|
374
|
-
var requestClone = req.clone({ headers: headers });
|
|
375
|
-
return next.handle(requestClone);
|
|
376
397
|
}));
|
|
377
398
|
};
|
|
378
399
|
/**
|
|
@@ -481,7 +502,7 @@
|
|
|
481
502
|
var normalizedResourceMethod = entry.httpMethod.toLowerCase();
|
|
482
503
|
// Method in protectedResourceMap matches request http method
|
|
483
504
|
if (normalizedResourceMethod === normalizedRequestMethod) {
|
|
484
|
-
// Validate if scopes comes null to unprotect the resource in a certain http method
|
|
505
|
+
// Validate if scopes comes null to unprotect the resource in a certain http method
|
|
485
506
|
if (entry.scopes === null) {
|
|
486
507
|
allMatchedScopes.push(null);
|
|
487
508
|
}
|
|
@@ -516,6 +537,7 @@
|
|
|
516
537
|
{ type: undefined, decorators: [{ type: core.Inject, args: [MSAL_INTERCEPTOR_CONFIG,] }] },
|
|
517
538
|
{ type: MsalService },
|
|
518
539
|
{ type: common.Location },
|
|
540
|
+
{ type: MsalBroadcastService },
|
|
519
541
|
{ type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] }
|
|
520
542
|
]; };
|
|
521
543
|
|
|
@@ -655,6 +677,64 @@
|
|
|
655
677
|
function __param(paramIndex, decorator) {
|
|
656
678
|
return function (target, key) { decorator(target, key, paramIndex); };
|
|
657
679
|
}
|
|
680
|
+
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
681
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function")
|
|
682
|
+
throw new TypeError("Function expected"); return f; }
|
|
683
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
684
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
685
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
686
|
+
var _, done = false;
|
|
687
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
688
|
+
var context = {};
|
|
689
|
+
for (var p in contextIn)
|
|
690
|
+
context[p] = p === "access" ? {} : contextIn[p];
|
|
691
|
+
for (var p in contextIn.access)
|
|
692
|
+
context.access[p] = contextIn.access[p];
|
|
693
|
+
context.addInitializer = function (f) { if (done)
|
|
694
|
+
throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
695
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
696
|
+
if (kind === "accessor") {
|
|
697
|
+
if (result === void 0)
|
|
698
|
+
continue;
|
|
699
|
+
if (result === null || typeof result !== "object")
|
|
700
|
+
throw new TypeError("Object expected");
|
|
701
|
+
if (_ = accept(result.get))
|
|
702
|
+
descriptor.get = _;
|
|
703
|
+
if (_ = accept(result.set))
|
|
704
|
+
descriptor.set = _;
|
|
705
|
+
if (_ = accept(result.init))
|
|
706
|
+
initializers.push(_);
|
|
707
|
+
}
|
|
708
|
+
else if (_ = accept(result)) {
|
|
709
|
+
if (kind === "field")
|
|
710
|
+
initializers.push(_);
|
|
711
|
+
else
|
|
712
|
+
descriptor[key] = _;
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
if (target)
|
|
716
|
+
Object.defineProperty(target, contextIn.name, descriptor);
|
|
717
|
+
done = true;
|
|
718
|
+
}
|
|
719
|
+
;
|
|
720
|
+
function __runInitializers(thisArg, initializers, value) {
|
|
721
|
+
var useValue = arguments.length > 2;
|
|
722
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
723
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
724
|
+
}
|
|
725
|
+
return useValue ? value : void 0;
|
|
726
|
+
}
|
|
727
|
+
;
|
|
728
|
+
function __propKey(x) {
|
|
729
|
+
return typeof x === "symbol" ? x : "".concat(x);
|
|
730
|
+
}
|
|
731
|
+
;
|
|
732
|
+
function __setFunctionName(f, name, prefix) {
|
|
733
|
+
if (typeof name === "symbol")
|
|
734
|
+
name = name.description ? "[".concat(name.description, "]") : "";
|
|
735
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
736
|
+
}
|
|
737
|
+
;
|
|
658
738
|
function __metadata(metadataKey, metadataValue) {
|
|
659
739
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
660
740
|
return Reflect.metadata(metadataKey, metadataValue);
|
|
@@ -686,7 +766,7 @@
|
|
|
686
766
|
function step(op) {
|
|
687
767
|
if (f)
|
|
688
768
|
throw new TypeError("Generator is already executing.");
|
|
689
|
-
while (_)
|
|
769
|
+
while (g && (g = 0, op[0] && (_ = 0)), _)
|
|
690
770
|
try {
|
|
691
771
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
692
772
|
return t;
|
|
@@ -854,7 +934,7 @@
|
|
|
854
934
|
function __asyncDelegator(o) {
|
|
855
935
|
var i, p;
|
|
856
936
|
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
857
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done:
|
|
937
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
858
938
|
}
|
|
859
939
|
function __asyncValues(o) {
|
|
860
940
|
if (!Symbol.asyncIterator)
|