Socket
Socket
Sign inDemoInstall

auth0-lock

Package Overview
Dependencies
Maintainers
8
Versions
338
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auth0-lock - npm Package Compare versions

Comparing version 11.18.1 to 11.19.0

2

lib/__tests__/auth_button.js

@@ -37,5 +37,5 @@ 'use strict';

var wrapper = (0, _enzyme.mount)(_react2.default.createElement(_auth_button2.default, defaultProps));
wrapper.find('button').simulate('click');
wrapper.find('a').simulate('click');
expect(defaultProps.onClick.mock.calls.length).toBe(1);
});
});

@@ -137,2 +137,4 @@ 'use strict';

l.emitEvent(lock, 'signup success');
if ((0, _index4.shouldAutoLogin)(lock)) {

@@ -139,0 +141,0 @@ (0, _index.swap)(_index.updateEntity, 'lock', id, function (m) {

@@ -171,3 +171,3 @@ 'use strict';

function getVersion() {
return '11.18.1';
return '11.19.0';
}

@@ -119,3 +119,3 @@ 'use strict';

method: 'registerLanguageDictionary',
url: l.languageBaseUrl(m) + '/js/lock/' + '11.18.1' + '/' + language + '.js',
url: l.languageBaseUrl(m) + '/js/lock/' + '11.19.0' + '/' + language + '.js',
check: function check(str) {

@@ -122,0 +122,0 @@ return str && str === language;

@@ -40,3 +40,3 @@ 'use strict';

exports.default = Auth0Lock;
Auth0Lock.version = '11.18.1';
Auth0Lock.version = '11.19.0';

@@ -43,0 +43,0 @@ // TODO: should we have different telemetry for classic/passwordless?

@@ -39,2 +39,2 @@ 'use strict';

Auth0LockPasswordless.version = '11.18.1';
Auth0LockPasswordless.version = '11.19.0';

@@ -29,3 +29,3 @@ 'use strict';

return _react2.default.createElement(
'button',
'a',
{

@@ -32,0 +32,0 @@ className: 'auth0-lock-social-button auth0-lock-social-big-button',

@@ -7,3 +7,3 @@ 'use strict';

function getLocationFromUrl(href) {
var match = href.match(/^(https?:)\/\/(([^:/?#]*)(?::([0-9]+))?)([/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);
var match = href.match(/^(https?:|chrome-extension:)\/\/(([^:/?#]*)(?::([0-9]+))?)([/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);
return match && {

@@ -10,0 +10,0 @@ href: href,

{
"name": "auth0-lock",
"version": "11.18.1",
"version": "11.19.0",
"description": "Auth0 Lock",

@@ -5,0 +5,0 @@ "author": "Auth0 <support@auth0.com> (http://auth0.com)",

@@ -26,3 +26,3 @@ [![NPM version][npm-image]][npm-url]

<!-- Latest patch release (recommended for production) -->
<script src="https://cdn.auth0.com/js/lock/11.18.1/lock.min.js"></script>
<script src="https://cdn.auth0.com/js/lock/11.19.0/lock.min.js"></script>
```

@@ -75,5 +75,7 @@

var lock = new Auth0Lock(clientId, domain);
var accessToken = null;
var profile = null;
lock.on("authenticated", function(authResult) {
lock.getUserInfo(authResult.accessToken, function(error, profile) {
lock.getUserInfo(authResult.accessToken, function(error, profileResult) {
if (error) {

@@ -84,4 +86,4 @@ // Handle error

localStorage.setItem("accessToken", authResult.accessToken);
localStorage.setItem("profile", JSON.stringify(profile));
accessToken = authResult.accessToken;
profile = profileResult;

@@ -111,5 +113,7 @@ // Update DOM

var lock = new Auth0LockPasswordless(clientId, domain);
var accessToken = null;
var profile = null;
lock.on("authenticated", function(authResult) {
lock.getUserInfo(authResult.accessToken, function(error, profile) {
lock.getUserInfo(authResult.accessToken, function(error, profileResult) {
if (error) {

@@ -120,4 +124,4 @@ // Handle error

localStorage.setItem("accessToken", authResult.accessToken);
localStorage.setItem("profile", JSON.stringify(profile));
accessToken = authResult.accessToken;
profile = profileResult;

@@ -161,2 +165,3 @@ // Update DOM

- `signup error`: emitted when signup fails. Has the error as an argument.
- `signup success`: emitted when signup succeeds. Has the error as an argument.
- `federated login`: emitted when the user clicks on a social connection button. Has the connection name and the strategy as arguments.

@@ -163,0 +168,0 @@ - `sso login`: emitted when the user clicks on an enterprise SSO connection button. Has the lock ID, connection object, and field name as arguments.

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc