auth0-lock
Advanced tools
Comparing version 11.25.0 to 11.25.1
@@ -31,3 +31,2 @@ ## Environment | ||
``` | ||
``` | ||
@@ -34,0 +33,0 @@ ## The SDK Playground |
@@ -135,5 +135,6 @@ 'use strict'; | ||
it('renders the connection using the connection name when there is no domain available', function () { | ||
it('renders the connection using the connection display name when preferConnectionDisplayName is true and there are no IdP domains configured', function () { | ||
var mockConnection = _immutable2.default.fromJS({ | ||
name: 'Test' | ||
name: 'Test', | ||
displayName: 'My Connection' | ||
}); | ||
@@ -146,2 +147,5 @@ | ||
var l = require('core/index'); | ||
l.ui.preferConnectionDisplayName.mockReturnValue(true); | ||
var Component = getComponent(); | ||
@@ -151,2 +155,17 @@ | ||
}); | ||
it('renders the connection using the connection name when there is no domain available', function () { | ||
var mockConnection = _immutable2.default.fromJS({ | ||
name: 'Test' | ||
}); | ||
var _require4 = require('connection/enterprise'), | ||
quickAuthConnection = _require4.quickAuthConnection; | ||
quickAuthConnection.mockReturnValue(mockConnection); | ||
var Component = getComponent(); | ||
(0, _testUtils.expectComponent)(_react2.default.createElement(Component, defaultProps)).toMatchSnapshot(); | ||
}); | ||
}); |
@@ -62,6 +62,5 @@ 'use strict'; | ||
var preferConnectionDisplayName = l.ui.preferConnectionDisplayName(model); | ||
var buttonTheme = theme.get(connection.get('name')); | ||
var buttonLabel = buttonTheme && buttonTheme.get('displayName') || connectionDomain && i18n.str('loginAtLabel', preferConnectionDisplayName && connectionDisplayName ? connectionDisplayName : connectionDomain) || i18n.str('loginAtLabel', connectionName); | ||
var buttonLabel = buttonTheme && buttonTheme.get('displayName') || preferConnectionDisplayName && connectionDisplayName && i18n.str('loginAtLabel', connectionDisplayName) || connectionDomain && i18n.str('loginAtLabel', connectionDomain) || i18n.str('loginAtLabel', connectionName); | ||
@@ -68,0 +67,0 @@ var primaryColor = buttonTheme && buttonTheme.get('primaryColor'); |
@@ -179,3 +179,3 @@ 'use strict'; | ||
function getVersion() { | ||
return '11.25.0'; | ||
return '11.25.1'; | ||
} |
@@ -119,3 +119,3 @@ 'use strict'; | ||
method: 'registerLanguageDictionary', | ||
url: l.languageBaseUrl(m) + '/js/lock/' + '11.25.0' + '/' + language + '.js', | ||
url: l.languageBaseUrl(m) + '/js/lock/' + '11.25.1' + '/' + language + '.js', | ||
check: function check(str) { | ||
@@ -122,0 +122,0 @@ return str && str === language; |
@@ -45,3 +45,3 @@ 'use strict'; | ||
exports.default = Auth0Lock; | ||
Auth0Lock.version = '11.25.0'; | ||
Auth0Lock.version = '11.25.1'; | ||
@@ -48,0 +48,0 @@ // TODO: should we have different telemetry for classic/passwordless? |
@@ -44,2 +44,2 @@ 'use strict'; | ||
Auth0LockPasswordless.version = '11.25.0'; | ||
Auth0LockPasswordless.version = '11.25.1'; |
{ | ||
"name": "auth0-lock", | ||
"version": "11.25.0", | ||
"version": "11.25.1", | ||
"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.25.0/lock.min.js"></script> | ||
<script src="https://cdn.auth0.com/js/lock/11.25.1/lock.min.js"></script> | ||
``` | ||
@@ -29,0 +29,0 @@ |
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
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
1356649
21925