oidc-client
Advanced tools
Comparing version 1.5.1 to 1.5.2-beta.1
@@ -6,6 +6,4 @@ var gulp = require('gulp'); | ||
var createWebpackConfig = require('./webpack.base'); | ||
var UglifyJsPlugin = require('uglifyjs-webpack-plugin'); | ||
var Uglify = require('uglifyjs-webpack-plugin'); | ||
var uglifyPlugin = new Uglify(); | ||
// entry points for both configs | ||
@@ -19,2 +17,3 @@ var npmEntry ='./index.js'; | ||
return gulp.src('index.js').pipe(webpackStream(createWebpackConfig({ | ||
mode: 'development', | ||
entry: npmEntry, | ||
@@ -27,3 +26,3 @@ output: { | ||
devtool:'inline-source-map' | ||
}))) | ||
}), webpack)) | ||
.pipe(gulp.dest('lib/')); | ||
@@ -36,2 +35,3 @@ }); | ||
return gulp.src('index.js').pipe(webpackStream(createWebpackConfig({ | ||
mode: 'production', | ||
entry: npmEntry, | ||
@@ -42,5 +42,14 @@ output: { | ||
}, | ||
plugins: [uglifyPlugin], | ||
devtool: false | ||
}))) | ||
plugins: [], | ||
devtool: false, | ||
optimization: { | ||
minimizer: [ | ||
new UglifyJsPlugin({ | ||
uglifyOptions: { | ||
keep_fnames: true | ||
} | ||
}) | ||
] | ||
} | ||
}), webpack)) | ||
.pipe(gulp.dest('lib/')); | ||
@@ -53,2 +62,3 @@ }); | ||
return gulp.src('index.js').pipe(webpackStream(createWebpackConfig({ | ||
mode: 'development', | ||
entry: classicEntry, | ||
@@ -62,3 +72,3 @@ output: { | ||
devtool:'inline-source-map' | ||
}))) | ||
}), webpack)) | ||
.pipe(gulp.dest('dist/')); | ||
@@ -71,2 +81,3 @@ }); | ||
return gulp.src('index.js').pipe(webpackStream(createWebpackConfig({ | ||
mode: 'production', | ||
entry: classicEntry, | ||
@@ -78,5 +89,14 @@ output: { | ||
}, | ||
plugins: [uglifyPlugin], | ||
devtool: false | ||
}))) | ||
plugins: [], | ||
devtool: false, | ||
optimization: { | ||
minimizer: [ | ||
new UglifyJsPlugin({ | ||
uglifyOptions: { | ||
keep_fnames: true | ||
} | ||
}) | ||
] | ||
} | ||
}), webpack)) | ||
.pipe(gulp.dest('dist/')); | ||
@@ -83,0 +103,0 @@ }); |
@@ -108,6 +108,6 @@ /* Provides a namespace for when the library is loaded outside a module loader environment */ | ||
createSigninRequest(args?: any): Promise<SigninRequest>; | ||
processSigninResponse(url: string, stateStore: StateStore): Promise<SigninResponse>; | ||
processSigninResponse(url?: string, stateStore?: StateStore): Promise<SigninResponse>; | ||
createSignoutRequest(args?: any): Promise<SignoutRequest>; | ||
processSignoutResponse(url: string, stateStore: StateStore): Promise<SignoutResponse>; | ||
processSignoutResponse(url?: string, stateStore?: StateStore): Promise<SignoutResponse>; | ||
@@ -349,2 +349,20 @@ clearStaleState(stateStore: StateStore): Promise<any>; | ||
code_challenge_methods_supported: string[]; | ||
} | ||
} | ||
export interface CheckSessionIFrame { | ||
new (callback: () => void, client_id: string, url: string, interval?: number, stopOnError?: boolean): CheckSessionIFrame | ||
load(): Promise<void>; | ||
start(session_state: string): void; | ||
stop(): void; | ||
} | ||
export interface CheckSessionIFrameCtor { | ||
(callback: () => void, client_id: string, url: string, interval?: number, stopOnError?: boolean): CheckSessionIFrame; | ||
} | ||
export class SessionMonitor { | ||
constructor(userManager: UserManager, CheckSessionIFrameCtor: CheckSessionIFrameCtor); | ||
} |
{ | ||
"name": "oidc-client", | ||
"version": "1.5.1", | ||
"version": "1.5.2-beta.1", | ||
"description": "OpenID Connect (OIDC) & OAuth2 client library", | ||
@@ -8,3 +8,3 @@ "main": "lib/oidc-client.min.js", | ||
"build": "gulp build", | ||
"start": "node sample/server.js", | ||
"start": "node samples/VanillaJS/server.js", | ||
"test": "mocha --compilers js:babel-register test/unit/*.spec.js", | ||
@@ -47,3 +47,4 @@ "all": "gulp build & mocha --compilers js:babel-register test/unit/*.spec.js" | ||
"open": "0.0.5", | ||
"webpack": "^4.8.3", | ||
"uglifyjs-webpack-plugin": "^1.2.7", | ||
"webpack": "^4.12.2", | ||
"webpack-stream": "^4.0.3" | ||
@@ -50,0 +51,0 @@ }, |
// create a webpack configuration with all common parts included here | ||
var createWebpackConfig = function(options) { | ||
return { | ||
mode: options.mode, | ||
entry: options.entry, | ||
@@ -9,6 +10,6 @@ output: options.output, | ||
fs: 'empty', // Because of jsrsasign usage of fs | ||
buffer: 'empty', | ||
buffer: 'empty' | ||
}, | ||
module: { | ||
loaders: [ | ||
rules: [ | ||
{ | ||
@@ -23,3 +24,4 @@ test: /.js$/, | ||
// this is for the sourcemaps | ||
devtool: options.devtool | ||
devtool: options.devtool, | ||
optimization: options.optimization | ||
}; | ||
@@ -26,0 +28,0 @@ }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
5081301
205
41591
16
1