Skip to content

Commit

Permalink
Removed code coverage from msal-core and fixed aot compilation for ms…
Browse files Browse the repository at this point in the history
…al-angular
  • Loading branch information
nehaagrawal authored Aug 14, 2018
1 parent 8754f5b commit 138c37c
Show file tree
Hide file tree
Showing 89 changed files with 3,780 additions and 455 deletions.
11 changes: 10 additions & 1 deletion lib/msal-angular/dist/msal-angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -43128,6 +43128,15 @@ var common_1 = __webpack_require__(9);
var msal_service_1 = __webpack_require__(10);
var msal_guard_service_1 = __webpack_require__(57);
var broadcast_service_1 = __webpack_require__(6);
core_1.Injectable();
var WindowWrapper = /** @class */ (function (_super) {
tslib_1.__extends(WindowWrapper, _super);
function WindowWrapper() {
return _super !== null && _super.apply(this, arguments) || this;
}
return WindowWrapper;
}(Window));
exports.WindowWrapper = WindowWrapper;
var MsalModule = /** @class */ (function () {
function MsalModule() {
}
Expand All @@ -43136,7 +43145,7 @@ var MsalModule = /** @class */ (function () {
return {
ngModule: MsalModule_1,
providers: [
{ provide: msal_service_1.MSAL_CONFIG, useValue: config }, msal_service_1.MsalService, { provide: Window, useValue: window }
{ provide: msal_service_1.MSAL_CONFIG, useValue: config }, msal_service_1.MsalService, { provide: WindowWrapper, useValue: window }
]
};
};
Expand Down
2 changes: 1 addition & 1 deletion lib/msal-angular/dist/msal-angular.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/msal-angular/dist/msal-angular.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/msal-angular/dist/msal-angular.min.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions lib/msal-angular/dist/msal.module.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { MsalConfig } from "./msal-config";
import { ModuleWithProviders } from "@angular/core";
export declare class WindowWrapper extends Window {
}
export declare class MsalModule {
static forRoot(config: MsalConfig): ModuleWithProviders;
}
7 changes: 5 additions & 2 deletions lib/msal-angular/dist/msal.module.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/msal-angular/dist/msal.module.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/msal-angular/dist/msal.module.metadata.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"__symbolic":"module","version":3,"metadata":{"MsalModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"declarations":[],"providers":[{"__symbolic":"reference","module":"./msal-guard.service","name":"MsalGuard"},{"__symbolic":"reference","module":"./broadcast.service","name":"BroadcastService"}]}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"MsalModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./msal.service","name":"MSAL_CONFIG"},"useValue":{"__symbolic":"reference","name":"config"}},{"__symbolic":"reference","module":"./msal.service","name":"MsalService"},{"provide":{"__symbolic":"reference","name":"Window"},"useValue":{"__symbolic":"reference","name":"window"}}]}}}}}},{"__symbolic":"module","version":1,"metadata":{"MsalModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"declarations":[],"providers":[{"__symbolic":"reference","module":"./msal-guard.service","name":"MsalGuard"},{"__symbolic":"reference","module":"./broadcast.service","name":"BroadcastService"}]}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"MsalModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./msal.service","name":"MSAL_CONFIG"},"useValue":{"__symbolic":"reference","name":"config"}},{"__symbolic":"reference","module":"./msal.service","name":"MsalService"},{"provide":{"__symbolic":"reference","name":"Window"},"useValue":{"__symbolic":"reference","name":"window"}}]}}}}}}]
[{"__symbolic":"module","version":3,"metadata":{"WindowWrapper":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"Window"}},"MsalModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"declarations":[],"providers":[{"__symbolic":"reference","module":"./msal-guard.service","name":"MsalGuard"},{"__symbolic":"reference","module":"./broadcast.service","name":"BroadcastService"}]}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"MsalModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./msal.service","name":"MSAL_CONFIG"},"useValue":{"__symbolic":"reference","name":"config"}},{"__symbolic":"reference","module":"./msal.service","name":"MsalService"},{"provide":{"__symbolic":"reference","name":"WindowWrapper"},"useValue":{"__symbolic":"reference","name":"window"}}]}}}}}},{"__symbolic":"module","version":1,"metadata":{"WindowWrapper":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"Window"}},"MsalModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"declarations":[],"providers":[{"__symbolic":"reference","module":"./msal-guard.service","name":"MsalGuard"},{"__symbolic":"reference","module":"./broadcast.service","name":"BroadcastService"}]}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"MsalModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./msal.service","name":"MSAL_CONFIG"},"useValue":{"__symbolic":"reference","name":"config"}},{"__symbolic":"reference","module":"./msal.service","name":"MsalService"},{"provide":{"__symbolic":"reference","name":"WindowWrapper"},"useValue":{"__symbolic":"reference","name":"window"}}]}}}}}}]
2 changes: 1 addition & 1 deletion lib/msal-angular/docs/assets/js/search.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion lib/msal-angular/docs/classes/_msal_module_.msalmodule.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> for<wbr>Root</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-angular/src/msal.module.ts#L16">msal.module.ts:16</a></li>
<li>Defined in <a href="https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-angular/src/msal.module.ts#L21">msal.module.ts:21</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down Expand Up @@ -166,6 +166,9 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ModuleWit
</li>
</ul>
<ul class="after-current">
<li class=" tsd-kind-class tsd-parent-kind-external-module tsd-is-external">
<a href="_msal_module_.windowwrapper.html" class="tsd-kind-icon">Window<wbr>Wrapper</a>
</li>
</ul>
</nav>
</div>
Expand Down
4 changes: 4 additions & 0 deletions lib/msal-angular/docs/modules/_msal_module_.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ <h2>Index</h2>
<h3>Classes</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-class tsd-parent-kind-external-module tsd-is-external"><a href="../classes/_msal_module_.msalmodule.html" class="tsd-kind-icon">Msal<wbr>Module</a></li>
<li class="tsd-kind-class tsd-parent-kind-external-module tsd-is-external"><a href="../classes/_msal_module_.windowwrapper.html" class="tsd-kind-icon">Window<wbr>Wrapper</a></li>
</ul>
</section>
</div>
Expand Down Expand Up @@ -120,6 +121,9 @@ <h3>Classes</h3>
<li class=" tsd-kind-class tsd-parent-kind-external-module tsd-is-external">
<a href="../classes/_msal_module_.msalmodule.html" class="tsd-kind-icon">Msal<wbr>Module</a>
</li>
<li class=" tsd-kind-class tsd-parent-kind-external-module tsd-is-external">
<a href="../classes/_msal_module_.windowwrapper.html" class="tsd-kind-icon">Window<wbr>Wrapper</a>
</li>
</ul>
</nav>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {Component, OnDestroy, OnInit} from '@angular/core';
import {BroadcastService, MsalService} from "@azure/msal-angular";
import {BroadcastService} from "../../../../dist/broadcast.service";
import { MsalService} from "../../../../dist/msal.service";
import {ProductService} from "./product/product.service";
import {Subscription} from "rxjs/Subscription";

Expand All @@ -13,7 +14,7 @@ export class AppComponent implements OnInit, OnDestroy {
loggedIn : boolean;
public userInfo: any = null;
private subscription: Subscription;
private isIframe: boolean;
public isIframe: boolean;

constructor(private broadcastService: BroadcastService , private authService : MsalService, private productService: ProductService)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ import {ProductDetailComponent} from './product/product-detail.component'
import {ProductService} from './product/product.service';
import {appRoutes} from './app.routes';
import {HTTP_INTERCEPTORS, HttpClientModule} from "@angular/common/http";
import {MsalModule, MsalInterceptor} from "@azure/msal-angular";
//import {MsalModule, MsalInterceptor} from "@azure/msal-angular";
import {MsalModule} from "../../../../dist/msal.module";
import { MsalInterceptor} from "../../../../dist/msal.interceptor";
import {LogLevel} from "msal";
import { TodoListComponent } from './todo-list/todo-list.component';
import {TodoListService} from "./todo-list/todo-list.service";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { HomeComponent} from './home/home.component'
import { ProductComponent} from './product/product.component'
import { ErrorComponent} from './error.component'
import { ProductDetailComponent} from './product/product-detail.component';
import {MsalGuard} from "@azure/msal-angular";
import {MsalGuard} from "../../../../dist/msal-guard.service";
import {TodoListComponent} from "./todo-list/todo-list.component";
import {UserDataComponent} from "./user-data/user-data.component";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Component, OnInit } from '@angular/core';
import { ProductService } from './product.service';
import { Product } from './product';
import {BroadcastService, MsalService} from "@azure/msal-angular";
import {BroadcastService} from "../../../../../dist/broadcast.service";
import { MsalService} from "../../../../../dist/msal.service";

@Component({
templateUrl: './product.component.html',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {Component, OnDestroy, OnInit} from '@angular/core';
import {TodoListService} from "./todo-list.service";
import {BroadcastService, MsalService} from "@azure/msal-angular";
import {TodoList} from "./todoList";
import {Subscription} from "rxjs/Subscription";
import {BroadcastService} from "../../../../../dist/broadcast.service";
import { MsalService} from "../../../../../dist/msal.service";

@Component({
selector: 'app-todo-list',
Expand All @@ -12,9 +13,9 @@ import {Subscription} from "rxjs/Subscription";
export class TodoListComponent implements OnInit, OnDestroy {

private error = "";
private loadingMessage = "Loading...";
public loadingMessage = "Loading...";
todoList: TodoList[];
private newTodoCaption = "";
public newTodoCaption = "";
private submitted = false;
private subscription: Subscription;
constructor(private todoListService: TodoListService, private broadcastService : BroadcastService, private msalService: MsalService) { }
Expand Down
Loading

0 comments on commit 138c37c

Please sign in to comment.