auth0-lock 14.2.4 → 14.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.version CHANGED
@@ -1 +1 @@
1
- v14.2.4
1
+ v14.2.5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Change Log
2
2
 
3
+ ## [v14.2.5](https://github.com/auth0/lock/tree/v14.2.5) (2026-03-19)
4
+ [Full Changelog](https://github.com/auth0/lock/compare/v14.2.4...v14.2.5)
5
+
6
+ **Fixed**
7
+ - Fix: TypeError when CordovaAuth0Plugin is not a constructor (auth0-js 9.30.1+) [\#2742](https://github.com/auth0/lock/pull/2742) ([ankita10119](https://github.com/ankita10119))
8
+ - Fix: TypeError in matchConnection for enterprise connections with no domains [\#2736](https://github.com/auth0/lock/pull/2736) ([ankita10119](https://github.com/ankita10119))
9
+
3
10
  ## [v14.2.4](https://github.com/auth0/lock/tree/v14.2.4) (2026-01-21)
4
11
  [Full Changelog](https://github.com/auth0/lock/compare/v14.2.3...v14.2.4)
5
12
 
package/README.md CHANGED
@@ -31,7 +31,7 @@ From CDN
31
31
 
32
32
  ```html
33
33
  <!-- Latest patch release (recommended for production) -->
34
- <script src="https://cdn.auth0.com/js/lock/14.2.4/lock.min.js"></script>
34
+ <script src="https://cdn.auth0.com/js/lock/14.2.5/lock.min.js"></script>
35
35
  ```
36
36
 
37
37
  ### Configure Auth0
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ var _immutable = _interopRequireDefault(require("immutable"));
4
+ var _enterprise = require("../../../connection/enterprise");
5
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
6
+ jest.mock('core/index', function () {
7
+ return {
8
+ connections: jest.fn()
9
+ };
10
+ });
11
+ describe('matchConnection', function () {
12
+ afterEach(function () {
13
+ return jest.resetAllMocks();
14
+ });
15
+ it('does not throw when enterprise connection has no domains configured', function () {
16
+ var _require = require('core/index'),
17
+ connections = _require.connections;
18
+
19
+ // Simulate tenant endpoint returning a connection with no domains field
20
+ connections.mockReturnValue(_immutable.default.fromJS([{
21
+ name: 'samlp-connection',
22
+ strategy: 'samlp',
23
+ type: 'enterprise'
24
+ }]));
25
+ var m = _immutable.default.fromJS({
26
+ id: '__lock__'
27
+ });
28
+ var result;
29
+ expect(function () {
30
+ result = (0, _enterprise.matchConnection)(m, 'test@example.com');
31
+ }).not.toThrow();
32
+ expect(result).toBeFalsy();
33
+ });
34
+ });
@@ -105,7 +105,7 @@ function matchConnection(m, email) {
105
105
  var target = (0, _email.emailDomain)(email);
106
106
  if (!target) return false;
107
107
  return l.connections.apply(l, [m, 'enterprise'].concat(_toConsumableArray(strategies))).find(function (x) {
108
- return x.get('domains').contains(target);
108
+ return x.get('domains', (0, _immutable.List)()).contains(target);
109
109
  });
110
110
  }
111
111
  function isEnterpriseDomain(m, email) {
@@ -169,5 +169,5 @@ function trimAuthParams() {
169
169
  return p;
170
170
  }
171
171
  function getVersion() {
172
- return "14.2.4";
172
+ return "14.2.5";
173
173
  }
@@ -45,7 +45,7 @@ var Auth0APIClient = /*#__PURE__*/function () {
45
45
  responseMode: opts.responseMode,
46
46
  responseType: opts.responseType,
47
47
  leeway: opts.leeway || 60,
48
- plugins: opts.plugins || [new _cordovaAuth0PluginMin.default()],
48
+ plugins: opts.plugins || (typeof _cordovaAuth0PluginMin.default === 'function' ? [new _cordovaAuth0PluginMin.default()] : []),
49
49
  overrides: (0, _helper.webAuthOverrides)(opts.overrides),
50
50
  _sendTelemetry: opts._sendTelemetry === false ? false : true,
51
51
  _telemetryInfo: telemetry,
package/lib/i18n.js CHANGED
@@ -90,7 +90,7 @@ function assertLanguage(m, language, base) {
90
90
  function syncLang(m, language, _cb) {
91
91
  (0, _cdn_utils.load)({
92
92
  method: 'registerLanguageDictionary',
93
- url: "".concat(l.languageBaseUrl(m), "/js/lock/").concat("14.2.4", "/").concat(language, ".js"),
93
+ url: "".concat(l.languageBaseUrl(m), "/js/lock/").concat("14.2.5", "/").concat(language, ".js"),
94
94
  check: function check(str) {
95
95
  return str && str === language;
96
96
  },
package/lib/lock.js CHANGED
@@ -36,7 +36,7 @@ var Auth0Lock = exports.default = /*#__PURE__*/function (_Core) {
36
36
  _inherits(Auth0Lock, _Core);
37
37
  return _createClass(Auth0Lock);
38
38
  }(_core.default); // telemetry
39
- Auth0Lock.version = "14.2.4";
39
+ Auth0Lock.version = "14.2.5";
40
40
 
41
41
  // TODO: should we have different telemetry for classic/passwordless?
42
42
  // TODO: should we set telemetry info before each request?
@@ -36,4 +36,4 @@ var Auth0LockPasswordless = exports.default = /*#__PURE__*/function (_Core) {
36
36
  _inherits(Auth0LockPasswordless, _Core);
37
37
  return _createClass(Auth0LockPasswordless);
38
38
  }(_core.default);
39
- Auth0LockPasswordless.version = "14.2.4";
39
+ Auth0LockPasswordless.version = "14.2.5";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auth0-lock",
3
- "version": "14.2.4",
3
+ "version": "14.2.5",
4
4
  "description": "Auth0 Lock",
5
5
  "author": "Auth0 <support@auth0.com> (http://auth0.com)",
6
6
  "license": "MIT",