auth0-lock
Advanced tools
Comparing version 11.18.1 to 11.19.0
@@ -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
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1720825
20519
606