Skip to content

Commit 39cd00e

Browse files
committed
release changes ffor msal angular and angularjs
1 parent fdbf332 commit 39cd00e

File tree

19 files changed

+24
-252
lines changed

19 files changed

+24
-252
lines changed

lib/msal-angular/samples/MSALAngularDemoApp/e2e/app.e2e-spec.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

lib/msal-angular/samples/MSALAngularDemoApp/e2e/app.po.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

lib/msal-angular/samples/MSALAngularDemoApp/e2e/tsconfig.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

lib/msal-angular/samples/MSALAngularDemoApp/karma.conf.js

Lines changed: 0 additions & 43 deletions
This file was deleted.

lib/msal-angular/samples/MSALAngularDemoApp/package.json

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,16 @@
2323
"core-js": "^2.4.1",
2424
"rxjs": "^5.1.0",
2525
"ts-helpers": "^1.1.1",
26-
"zone.js": "^0.8.4"
26+
"zone.js": "^0.8.4",
27+
"@azure/msal-angular": "0.1.0"
2728
},
2829
"devDependencies": {
2930
"@angular/cli": "^1.0.1",
3031
"@angular/compiler-cli": "^5.0.0",
3132
"@types/jasmine": "2.5.38",
3233
"@types/node": "^6.0.60",
3334
"codelyzer": "~2.0.0",
34-
"jasmine-core": "2.5.2",
35-
"jasmine-spec-reporter": "3.2.0",
36-
"karma": "1.4.1",
37-
"karma-chrome-launcher": "^2.0.0",
38-
"karma-cli": "^1.0.1",
39-
"karma-jasmine": "^1.1.0",
40-
"karma-jasmine-html-reporter": "^0.2.2",
41-
"karma-coverage-istanbul-reporter": "^0.2.0",
42-
"protractor": "~5.1.0",
4335
"ts-node": "2.0.0",
44-
"tslint": "^4.4.0",
4536
"typescript": "~2.7.2"
4637
}
4738
}

lib/msal-angular/samples/MSALAngularDemoApp/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Component, OnDestroy, OnInit} from '@angular/core';
2-
import {BroadcastService, MsalService} from "ms-msal-angular";
2+
import {BroadcastService, MsalService} from "@azure/msal-angular";
33
import {ProductService} from "./product/product.service";
44
import {Subscription} from "rxjs/Subscription";
55

lib/msal-angular/samples/MSALAngularDemoApp/src/app/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {ProductDetailComponent} from './product/product-detail.component'
1111
import {ProductService} from './product/product.service';
1212
import {appRoutes} from './app.routes';
1313
import {HTTP_INTERCEPTORS, HttpClientModule} from "@angular/common/http";
14-
import {MsalModule, MsalInterceptor} from "ms-msal-angular";
14+
import {MsalModule, MsalInterceptor} from "@azure/msal-angular";
1515
import {LogLevel} from "msal";
1616
import { TodoListComponent } from './todo-list/todo-list.component';
1717
import {TodoListService} from "./todo-list/todo-list.service";

lib/msal-angular/samples/MSALAngularDemoApp/src/app/app.routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { HomeComponent} from './home/home.component'
33
import { ProductComponent} from './product/product.component'
44
import { ErrorComponent} from './error.component'
55
import { ProductDetailComponent} from './product/product-detail.component';
6-
import {MsalGuard} from "ms-msal-angular";
6+
import {MsalGuard} from "@azure/msal-angular";
77
import {TodoListComponent} from "./todo-list/todo-list.component";
88
import {UserDataComponent} from "./user-data/user-data.component";
99

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<h1>Product Details Page</h1>
22

3-
43
product : {{product.name}}
54
price : {{ product.price}}
65
<p>
76
<a class='btn btn-default' (click)="onBack()">Back </a>
8-
</p>
7+
</p>
Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
import { Component, OnInit } from '@angular/core';
1+
import { Component } from '@angular/core';
22
import { Router,ActivatedRoute } from '@angular/router';
3-
43
import { ProductService } from './product.service';
54
import { Product } from './product';
65

7-
86
@Component({
97
templateUrl: './product-detail.component.html',
108
})
@@ -14,44 +12,29 @@ export class ProductDetailComponent
1412

1513
product:Product;
1614
id;
17-
15+
sub;
1816

19-
constructor(private _Activatedroute:ActivatedRoute,
17+
constructor(private _Activatedroute:ActivatedRoute,
2018
private _router:Router,
2119
private _productService:ProductService){
2220
}
2321

24-
2522
onBack(): void {
2623
this._router.navigate(['product']);
2724
}
28-
29-
30-
/* Using snapshot*/
3125

32-
// ngOnInit() {
33-
// this.id=this._Activatedroute.snapshot.params['id'];
34-
// let products=this._productService.getProducts();
35-
// this.product=products.find(p => p.productID==this.id);
36-
// }
37-
38-
39-
/* Using Subscription */
40-
41-
sub;
42-
4326
ngOnInit() {
4427

45-
this.sub=this._Activatedroute.params.subscribe(params => {
46-
this.id = params['id'];
28+
this.sub=this._Activatedroute.params.subscribe(params => {
29+
this.id = params['id'];
4730
let products=this._productService.getProducts();
48-
this.product=products.find(p => p.productID==this.id);
49-
31+
this.product=products.find(p => p.productID==this.id);
32+
5033
});
5134
}
5235

5336
ngOnDestroy() {
5437
this.sub.unsubscribe();
5538
}
56-
57-
}
39+
40+
}

lib/msal-angular/samples/MSALAngularDemoApp/src/app/product/product.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Component, OnInit } from '@angular/core';
22
import { ProductService } from './product.service';
33
import { Product } from './product';
4-
import {BroadcastService, MsalService} from "ms-msal-angular";
4+
import {BroadcastService, MsalService} from "@azure/msal-angular";
55

66
@Component({
77
templateUrl: './product.component.html',

lib/msal-angular/samples/MSALAngularDemoApp/src/app/todo-list/todo-list.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {Component, OnDestroy, OnInit} from '@angular/core';
22
import {TodoListService} from "./todo-list.service";
3-
import {BroadcastService, MsalService} from "ms-msal-angular";
3+
import {BroadcastService, MsalService} from "@azure/msal-angular";
44
import {TodoList} from "./todoList";
55
import {Subscription} from "rxjs/Subscription";
66

lib/msal-angular/samples/MSALAngularDemoApp/src/app/user-data/user-data.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
<div id="userIdentifier">
3-
Welcome {{userData.displayName}} !!
3+
Welcome {{userData?.displayName}} !!
44
</div>
55

66
<br>

lib/msal-angular/samples/MSALAngularDemoApp/src/app/user-data/user-data.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import {Component, OnInit} from '@angular/core';
2-
import {MsalService} from "ms-msal-angular";
2+
import {MsalService, BroadcastService} from "@azure/msal-angular";
33
import {HttpClient} from "@angular/common/http";
44
import {HttpServiceHelper} from "../common/HttpServiceHelper";
55
import {Subscription} from "rxjs/Subscription";
6-
import {BroadcastService} from "ms-msal-angular";
6+
77

88
@Component({
99
selector: 'app-user-data',

lib/msal-angular/samples/MSALAngularDemoApp/tslint.json

Lines changed: 0 additions & 116 deletions
This file was deleted.

lib/msal-angularjs/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"email": "[email protected]",
66
"url": "https://www.microsoft.com"
77
},
8-
"license": "Apache-2.0",
8+
"license": "MIT",
99
"repository": {
1010
"type": "git",
1111
"url": "https://github.com/AzureAD/microsoft-authentication-library-for-js.git"
@@ -24,7 +24,6 @@
2424
"node": ">=0.8.0"
2525
},
2626
"dependencies": {
27-
"angular": "1.7.0",
2827
"msal": "0.1.9"
2928
},
3029
"devDependencies": {

lib/msal-angularjs/samples/MsalAngularjsDemoApp/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var Msal = require('msal');
22
var angular = require('angular');
3-
var MsalAngular = require('ms-msal-angularjs');
3+
var MsalAngular = require('@azure/msal-angularjs');
44

55
window.applicationConfig = {
66
clientID: '883bb2bc-6548-4906-b842-17014a0601a1',

0 commit comments

Comments
 (0)