Socket
Socket
Sign inDemoInstall

oidc-client

Package Overview
Dependencies
7
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.10.1 to 1.11.0-beta.1

2

dist/oidc-client.d.ts

@@ -211,3 +211,3 @@ /* Provides a namespace for when the library is loaded outside a module loader environment */

/** Proxy to Popup and Redirect callbacks */
signoutCallback(url?: string): Promise<SignoutResponse | void>;
signoutCallback(url?: string, keepWindowOpen?: boolean): Promise<SignoutResponse | void>;

@@ -214,0 +214,0 @@ /** Query OP for user's current signin status */

@@ -9,3 +9,3 @@ var package = require('./package.json');

var createWebpackConfig = require('./webpack.base');
var UglifyJsPlugin = require('uglifyjs-webpack-plugin');
var TerserPlugin = require('terser-webpack-plugin');

@@ -17,11 +17,10 @@ // entry points for both configs

const optimization = {
minimizer: [
new UglifyJsPlugin({
uglifyOptions: {
compress: {
keep_fnames: true
}
minimizer: [new TerserPlugin({
extractComments: false,
terserOptions: {
compress: {
keep_fnames: true
}
})
]
}
})]
};

@@ -28,0 +27,0 @@

@@ -211,3 +211,3 @@ /* Provides a namespace for when the library is loaded outside a module loader environment */

/** Proxy to Popup and Redirect callbacks */
signoutCallback(url?: string): Promise<SignoutResponse | void>;
signoutCallback(url?: string, keepWindowOpen?: boolean): Promise<SignoutResponse | void>;

@@ -214,0 +214,0 @@ /** Query OP for user's current signin status */

{
"name": "oidc-client",
"version": "1.10.1",
"version": "1.11.0-beta.1",
"description": "OpenID Connect (OIDC) & OAuth2 client library",

@@ -33,6 +33,7 @@ "main": "lib/oidc-client.min.js",

"dependencies": {
"uuid": "^3.3.2",
"core-js": "^2.6.4",
"acorn": "^7.4.0",
"base64-js": "^1.3.0",
"core-js": "^3.6.5",
"crypto-js": "^3.1.9-1",
"base64-js": "^1.3.0"
"serialize-javascript": "^4.0.0"
},

@@ -57,8 +58,8 @@ "devDependencies": {

"open": "^6.1.0",
"uglifyjs-webpack-plugin": "^1.3.0",
"terser-webpack-plugin": "^4.0.0",
"vinyl-source-stream": "^2.0.0",
"webpack": "^4.29.6",
"webpack-stream": "^4.0.3"
"webpack-stream": "^5.2.1"
},
"typings": "index.d.ts"
}

@@ -7,8 +7,8 @@ // Declare the ES6 features we're using

import 'core-js/es6/promise';
import 'core-js/fn/function/bind';
import 'core-js/fn/object/assign';
import 'core-js/fn/array/find';
import 'core-js/fn/array/some';
import 'core-js/fn/array/is-array';
import 'core-js/fn/array/splice';
import 'core-js/features/promise';
import 'core-js/features/function/bind';
import 'core-js/features/object/assign';
import 'core-js/features/array/find';
import 'core-js/features/array/some';
import 'core-js/features/array/is-array';
import 'core-js/features/array/splice';

@@ -108,10 +108,8 @@ // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.

Log.debug("IFrameWindow.notifyParent");
if (window.frameElement) {
url = url || window.location.href;
if (url) {
Log.debug("IFrameWindow.notifyParent: posting url message to parent");
window.parent.postMessage(url, location.protocol + "//" + location.host);
}
url = url || window.location.href;
if (url) {
Log.debug("IFrameWindow.notifyParent: posting url message to parent");
window.parent.postMessage(url, location.protocol + "//" + location.host);
}
}
}

@@ -187,3 +187,3 @@ // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.

return Promise.resolve({undefined, response});
return Promise.resolve({state: undefined, response});
}

@@ -190,0 +190,0 @@

@@ -1,3 +0,1 @@

import uuid4 from 'uuid/v4';
/**

@@ -7,4 +5,21 @@ * Generates RFC4122 version 4 guid ()

var crypto = (typeof window !== 'undefined') ? (window.crypto || window.msCrypto) : null;
function _cryptoUuidv4() {
return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g, c =>
(c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16)
)
}
function _uuidv4() {
return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g, c =>
(c ^ Math.random() * 16 >> c / 4).toString(16)
)
}
export default function random() {
return uuid4().replace(/-/g, '');
var hasCrypto = crypto != 'undefined' && crypto !== null;
var hasRandomValues = hasCrypto && (typeof(crypto.getRandomValues) != 'undefined');
var uuid = hasRandomValues ? _cryptoUuidv4 : _uuidv4;
return uuid().replace(/-/g, '');
}

@@ -48,3 +48,3 @@ // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.

while (m = regex.exec(value)) {
params[decodeURIComponent(m[1])] = decodeURIComponent(m[2]);
params[decodeURIComponent(m[1])] = decodeURIComponent(m[2].replace(/\+/g, ' '));
if (counter++ > 50) {

@@ -51,0 +51,0 @@ Log.error("UrlUtility.parseUrlFragment: response exceeded expected number of parameters", value);

@@ -1,1 +0,1 @@

const Version = "1.10.1"; export {Version};
const Version = "1.11.0-beta.1"; export {Version};

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

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

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 not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc