@auth0/angular-jwt
Advanced tools
Comparing version 3.0.1 to 4.0.0
# Change log | ||
## Version [4.0.0](https://github.com/auth0/angular2-jwt/tags/v4.0.0) (2020-02-07) | ||
[Full Changelog](https://github.com/auth0/angular2-jwt/compare/3.0.1..4.0.0) | ||
From [\#622](https://github.com/auth0/angular2-jwt/pull/622) [avatsaev](https://github.com/avatsaev): | ||
- Angular 9 compatibility | ||
- Angular Ivy compatibility | ||
## Version [3.0.1](https://github.com/auth0/angular2-jwt/tags/v3.0.1) (2019-10-28) | ||
@@ -4,0 +13,0 @@ |
@@ -1,20 +0,4 @@ | ||
import { ModuleWithProviders, Provider } from '@angular/core'; | ||
export * from './src/jwt.interceptor'; | ||
export * from './src/jwthelper.service'; | ||
export * from './src/jwtoptions.token'; | ||
export interface JwtModuleOptions { | ||
jwtOptionsProvider?: Provider; | ||
config?: { | ||
tokenGetter?: () => string | null | Promise<string | null>; | ||
headerName?: string; | ||
authScheme?: string; | ||
whitelistedDomains?: Array<string | RegExp>; | ||
blacklistedRoutes?: Array<string | RegExp>; | ||
throwNoTokenError?: boolean; | ||
skipWhenExpired?: boolean; | ||
}; | ||
} | ||
export declare class JwtModule { | ||
constructor(parentModule: JwtModule); | ||
static forRoot(options: JwtModuleOptions): ModuleWithProviders; | ||
} | ||
export * from './lib/jwt.interceptor'; | ||
export * from './lib/jwthelper.service'; | ||
export * from './lib/jwtoptions.token'; | ||
export * from './lib/angular-jwt.module'; |
{ | ||
"name": "@auth0/angular-jwt", | ||
"version": "3.0.1", | ||
"version": "4.0.0", | ||
"description": "JSON Web Token helper library for Angular", | ||
"scripts": { | ||
"prepare": "ngc && npm run build", | ||
"build": "webpack --mode production" | ||
}, | ||
"private": false, | ||
"repository": { | ||
@@ -13,2 +10,7 @@ "type": "git", | ||
}, | ||
"author": "Ryan Chenkie", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/auth0/angular2-jwt/issues" | ||
}, | ||
"keywords": [ | ||
@@ -20,50 +22,20 @@ "angular", | ||
], | ||
"author": "Ryan Chenkie", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/auth0/angular2-jwt/issues" | ||
}, | ||
"main": "bundles/core.umd.js", | ||
"module": "index.js", | ||
"typings": "index.d.ts", | ||
"homepage": "https://github.com/auth0/angular2-jwt", | ||
"peerDependencies": { | ||
"@angular/common": ">=6.0.0" | ||
"@angular/common": ">=7.1.0", | ||
"tslib": "^1.10.0" | ||
}, | ||
"devDependencies": { | ||
"@angular/animations": "^6.0.0", | ||
"@angular/common": "^6.0.0", | ||
"@angular/compiler": "^6.0.0", | ||
"@angular/compiler-cli": "^6.0.0", | ||
"@angular/core": "^6.0.0", | ||
"@angular/http": "^6.0.0", | ||
"@angular/platform-browser": "^6.0.0", | ||
"@angular/platform-browser-dynamic": "^6.0.0", | ||
"@angular/platform-server": "^6.0.0", | ||
"@angular/router": "^6.0.0", | ||
"@types/hammerjs": "^2.0.35", | ||
"@types/jasmine": "^2.8.7", | ||
"@types/node": "^10.0.6", | ||
"awesome-typescript-loader": "^5.0.0", | ||
"clean-webpack-plugin": "^0.1.19", | ||
"core-js": "^2.5.6", | ||
"istanbul-instrumenter-loader": "^3.0.1", | ||
"jasmine-core": "^3.1.0", | ||
"loader-utils": "^1.1.0", | ||
"reflect-metadata": "^0.1.12", | ||
"rimraf": "^2.6.2", | ||
"rxjs": "^6.1.0", | ||
"semantic-release": "^15.4.0", | ||
"source-map-loader": "^0.2.3", | ||
"ts-helpers": "^1.1.2", | ||
"tslint": "^5.10.0", | ||
"tslint-loader": "^3.6.0", | ||
"typescript": ">=2.7.0 <2.8.0", | ||
"webpack": "^4.8.1", | ||
"webpack-cli": "^2.1.3", | ||
"zone.js": "^0.8.26" | ||
}, | ||
"dependencies": { | ||
"url": "^0.11.0" | ||
} | ||
}, | ||
"main": "bundles/auth0-angular-jwt.umd.js", | ||
"module": "fesm5/auth0-angular-jwt.js", | ||
"es2015": "fesm2015/auth0-angular-jwt.js", | ||
"esm5": "esm5/auth0-angular-jwt.js", | ||
"esm2015": "esm2015/auth0-angular-jwt.js", | ||
"fesm5": "fesm5/auth0-angular-jwt.js", | ||
"fesm2015": "fesm2015/auth0-angular-jwt.js", | ||
"typings": "auth0-angular-jwt.d.ts", | ||
"metadata": "auth0-angular-jwt.metadata.json", | ||
"sideEffects": false | ||
} |
@@ -5,5 +5,5 @@ # @auth0/angular-jwt | ||
### **NOTE:** This library is now at version 3 and is published on npm as `@auth0/angular-jwt`. If you're looking for the pre-v1.0 version of this library, it can be found in the `pre-v1.0` branch and on npm as `angular2-jwt`. | ||
### **NOTE:** This library is now at version 4 and is published on npm as `@auth0/angular-jwt`. If you're looking for the pre-v1.0 version of this library, it can be found in the `pre-v1.0` branch and on npm as `angular2-jwt`. | ||
**@auth0/angular-jwt v3 is to be used with Angular v6+ and RxJS v6+. For Angular v4.3 to v5+, use @auth0/angular-jwt v1** | ||
**@auth0/angular-jwt v4 is to be used with Angular v6+ and RxJS v6+. For Angular v4.3 to v5+, use @auth0/angular-jwt v1** | ||
@@ -82,5 +82,6 @@ This library provides an `HttpInterceptor` which automatically attaches a [JSON Web Token](https://jwt.io) to `HttpClient` requests. | ||
ping() { | ||
this.http | ||
.get("http://example.com/api/things") | ||
.subscribe(data => console.log(data), err => console.log(err)); | ||
this.http.get("http://example.com/api/things").subscribe( | ||
data => console.log(data), | ||
err => console.log(err) | ||
); | ||
} | ||
@@ -112,3 +113,3 @@ } | ||
List any domains you wish to allow authenticated requests to be sent to by specifying them in the the `whitelistedDomains` array. **Note that standard http port 80 and https port 443 requests don't require a port to be specified. A port is only required in the whitelisted host name if you are authenticating against a non-standard port e.g. localhost:3001** | ||
List any domains you wish to allow authenticated requests to be sent to by specifying them in the `whitelistedDomains` array. **Note that standard http port 80 and https port 443 requests don't require a port to be specified. A port is only required in the whitelisted host name if you are authenticating against a non-standard port e.g. localhost:3001** | ||
@@ -115,0 +116,0 @@ ```ts |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
231264
0
39
1482
359
1
3
1