auth0-lock 11.32.0 → 11.32.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Change Log
2
2
 
3
+ ## [v11.32.1](https://github.com/auth0/lock/tree/v11.32.1) (2022-01-27)
4
+ [Full Changelog](https://github.com/auth0/lock/compare/v11.32.0...v11.32.1)
5
+
6
+ **Changed**
7
+ - Update auth0-js and support legacySameSiteCookie option [\#2089](https://github.com/auth0/lock/pull/2089) ([stevehobbsdev](https://github.com/stevehobbsdev))
8
+
9
+ **Security**
10
+ - Bump log4js from 6.3.0 to 6.4.0 [\#2087](https://github.com/auth0/lock/pull/2087) ([dependabot[bot]](https://github.com/apps/dependabot))
11
+ - Security upgrade node-fetch to 2.6.7 [\#2085](https://github.com/auth0/lock/pull/2085) ([evansims](https://github.com/evansims))
12
+ - [Snyk] Upgrade prop-types from 15.7.2 to 15.8.0 [\#2083](https://github.com/auth0/lock/pull/2083) ([snyk-bot](https://github.com/snyk-bot))
13
+ - Bump engine.io from 4.1.1 to 4.1.2 [\#2082](https://github.com/auth0/lock/pull/2082) ([dependabot[bot]](https://github.com/apps/dependabot))
14
+ - Bump follow-redirects from 1.14.4 to 1.14.7 [\#2081](https://github.com/auth0/lock/pull/2081) ([dependabot[bot]](https://github.com/apps/dependabot))
15
+
3
16
  ## [v11.32.0](https://github.com/auth0/lock/tree/v11.32.0) (2022-01-07)
4
17
  [Full Changelog](https://github.com/auth0/lock/compare/v11.31.1...v11.32.0)
5
18
 
package/README.md CHANGED
@@ -25,7 +25,7 @@ From CDN
25
25
 
26
26
  ```html
27
27
  <!-- Latest patch release (recommended for production) -->
28
- <script src="https://cdn.auth0.com/js/lock/11.32.0/lock.min.js"></script>
28
+ <script src="https://cdn.auth0.com/js/lock/11.32.1/lock.min.js"></script>
29
29
  ```
30
30
 
31
31
  From [npm](https://npmjs.org)
@@ -415,11 +415,11 @@ Specify your hooks using a new `hooks` configuration item when setting up the li
415
415
  ```js
416
416
  new Auth0Lock('client ID', 'domain', {
417
417
  hooks: {
418
- loggingIn: function(context, cb) {
418
+ loggingIn: function (context, cb) {
419
419
  console.log('Hello from the login hook!');
420
420
  cb();
421
421
  },
422
- signingUp: function(context, cb) {
422
+ signingUp: function (context, cb) {
423
423
  console.log('Hello from the sign-up hook!');
424
424
  cb();
425
425
  }
@@ -434,12 +434,12 @@ The developer can throw an error to block the login or sign-up process. The deve
434
434
  ```js
435
435
  new Auth0Lock('client ID', 'domain', {
436
436
  hooks: {
437
- loggingIn: function(context, cb) {
437
+ loggingIn: function (context, cb) {
438
438
  // Throw an object with code: `hook_error` to display this on the Login screen
439
439
  throw { code: 'hook_error', description: 'There was an error in the login hook!' };
440
440
 
441
441
  // Throw something generic to show a fallback error message
442
- throw "Some error happened";
442
+ throw 'Some error happened';
443
443
  }
444
444
  }
445
445
  });
@@ -453,6 +453,7 @@ new Auth0Lock('client ID', 'domain', {
453
453
  - **languageBaseUrl {String}**: Overrides the language source URL for Auth0's provided translations. By default it uses to Auth0's CDN URL `https://cdn.auth0.com`.
454
454
  - **hashCleanup {Boolean}**: When enabled, it will remove the hash part of the callback URL after the user authentication. Defaults to `true`.
455
455
  - **connectionResolver {Function}**: When in use, provides an extensibility point to make it possible to choose which connection to use based on the username information. Has `username`, `context`, and `callback` as parameters. The callback expects an object like: `{type: 'database', name: 'connection name'}`. **This only works for database connections.** Keep in mind that this resolver will run in the form's `onSubmit` event, so keep it simple and fast. **This is a beta feature. If you find a bug, please open a GitHub [issue](https://github.com/auth0/lock/issues/new).**
456
+ - **legacySameSiteCookie**: If `false`, no compatibility cookies will be created for those browsers that do not understand the `SameSite` attribute. Defaults to `true`
456
457
 
457
458
  ```js
458
459
  var options = {
@@ -176,5 +176,5 @@ function trimAuthParams() {
176
176
  }
177
177
 
178
178
  function getVersion() {
179
- return '11.32.0';
179
+ return '11.32.1';
180
180
  }
@@ -60,7 +60,8 @@ var Auth0APIClient = function () {
60
60
  _telemetryInfo: telemetry,
61
61
  state: state,
62
62
  nonce: nonce,
63
- scope: scope
63
+ scope: scope,
64
+ legacySameSiteCookie: opts.legacySameSiteCookie
64
65
  });
65
66
 
66
67
  this.authOpt = {
package/lib/i18n.js CHANGED
@@ -125,7 +125,7 @@ function assertLanguage(m, language, base) {
125
125
  function syncLang(m, language, _cb) {
126
126
  (0, _cdn_utils.load)({
127
127
  method: 'registerLanguageDictionary',
128
- url: l.languageBaseUrl(m) + '/js/lock/' + '11.32.0' + '/' + language + '.js',
128
+ url: l.languageBaseUrl(m) + '/js/lock/' + '11.32.1' + '/' + language + '.js',
129
129
  check: function check(str) {
130
130
  return str && str === language;
131
131
  },
package/lib/lock.js CHANGED
@@ -42,7 +42,7 @@ var Auth0Lock = function (_Core) {
42
42
 
43
43
 
44
44
  exports.default = Auth0Lock;
45
- Auth0Lock.version = '11.32.0';
45
+ Auth0Lock.version = '11.32.1';
46
46
 
47
47
  // TODO: should we have different telemetry for classic/passwordless?
48
48
  // TODO: should we set telemetry info before each request?
@@ -41,4 +41,4 @@ var Auth0LockPasswordless = function (_Core) {
41
41
  exports.default = Auth0LockPasswordless;
42
42
 
43
43
 
44
- Auth0LockPasswordless.version = '11.32.0';
44
+ Auth0LockPasswordless.version = '11.32.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auth0-lock",
3
- "version": "11.32.0",
3
+ "version": "11.32.1",
4
4
  "description": "Auth0 Lock",
5
5
  "author": "Auth0 <support@auth0.com> (http://auth0.com)",
6
6
  "license": "MIT",
@@ -105,16 +105,16 @@
105
105
  "webpack-dev-server": "^2.3.0"
106
106
  },
107
107
  "dependencies": {
108
- "auth0-js": "^9.18.0",
108
+ "auth0-js": "^9.19.0",
109
109
  "auth0-password-policies": "^1.0.2",
110
110
  "blueimp-md5": "^2.19.0",
111
111
  "classnames": "^2.3.1",
112
112
  "dompurify": "^2.3.4",
113
113
  "immutable": "^3.7.3",
114
114
  "jsonp": "^0.2.1",
115
- "node-fetch": "^2.6.6",
115
+ "node-fetch": "^2.6.7",
116
116
  "password-sheriff": "^1.1.1",
117
- "prop-types": "^15.6.0",
117
+ "prop-types": "^15.8.0",
118
118
  "qs": "^6.10.2",
119
119
  "react": "^15.6.2",
120
120
  "react-dom": "^15.6.2",