Skip to content

Commit ca435c0

Browse files
committed
refactor: inline js-sha256
1 parent 026dcb3 commit ca435c0

File tree

9 files changed

+523
-15
lines changed

9 files changed

+523
-15
lines changed

CREDITS.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This lib uses an inlined version of [js-sha256](https://www.npmjs.com/package/js-sha256) (MIT license)

package-lock.json

-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"angular-oauth2-oidc-jwks": "^9.0.0",
4040
"base64-js": "^1.3.0",
4141
"bootstrap": "^3.3.7",
42-
"js-sha256": "^0.9.0",
4342
"jsrsasign": "^8.0.19",
4443
"ngx-semantic-version": "^1.2.1",
4544
"rxjs": "6.5.4",

projects/lib/ng-package.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,5 @@
55
"lib": {
66
"languageLevel": ["dom", "es2017"],
77
"entryFile": "src/public_api.ts"
8-
},
9-
"whitelistedNonPeerDependencies": [
10-
"js-sha256"
11-
]
8+
}
129
}

projects/lib/package.json

-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
},
77
"version": "9.2.2",
88
"repository": "manfredsteyer/angular-oauth2-oidc",
9-
"dependencies": {
10-
"js-sha256": "^0.9.0"
11-
},
129
"peerDependencies": {
1310
"@angular/common": ">=8.0.0",
1411
"@angular/core": ">=8.0.0"

projects/lib/src/deps.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
declare var require: any;
1+
//declare var require: any;

projects/lib/src/oauth-service.ts

+1
Original file line numberDiff line numberDiff line change
@@ -2300,6 +2300,7 @@ export class OAuthService extends AuthConfig implements OnDestroy {
23002300
*/
23012301
public logOut(): void;
23022302
public logOut(customParameters: object): void;
2303+
public logOut(noRedirectToLogoutUrl: boolean): void;
23032304
public logOut(noRedirectToLogoutUrl: boolean, state: string): void;
23042305
public logOut(customParameters: boolean | object = {}, state = ''): void {
23052306
let noRedirectToLogoutUrl = false;

projects/lib/src/token-validation/hash-handler.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Injectable } from '@angular/core';
22

3-
import { sha256 } from 'js-sha256';
3+
import { sha256 } from './js-sha256';
44

55
/**
66
* Abstraction for crypto algorithms

0 commit comments

Comments
 (0)