Skip to content

Commit aa8ef3a

Browse files
Release v9.25.0 (#1427)
1 parent 94d41dc commit aa8ef3a

27 files changed

+118
-200
lines changed

.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v9.24.1
1+
v9.25.0

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Log
22

3+
## [v9.25.0](https://github.com/auth0/auth0.js/tree/v9.25.0) (2024-04-25)
4+
[Full Changelog](https://github.com/auth0/auth0.js/compare/v9.24.1...v9.25.0)
5+
6+
**Added**
7+
- Add APIs to get captcha challenge for reset password [\#1426](https://github.com/auth0/auth0.js/pull/1426) ([srijonsaha](https://github.com/srijonsaha))
8+
39
## [v9.24.1](https://github.com/auth0/auth0.js/tree/v9.24.1) (2024-01-04)
410
[Full Changelog](https://github.com/auth0/auth0.js/compare/v9.24.0...v9.24.1)
511

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ From CDN:
2323

2424
```html
2525
<!-- Latest patch release -->
26-
<script src="https://cdn.auth0.com/js/auth0/9.24.1/auth0.min.js"></script>
26+
<script src="https://cdn.auth0.com/js/auth0/9.25.0/auth0.min.js"></script>
2727
```
2828

2929
From [npm](https://npmjs.org):

dist/auth0.js

Lines changed: 43 additions & 87 deletions
Large diffs are not rendered by default.

dist/auth0.min.esm.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/auth0.min.esm.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/auth0.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/auth0.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cordova-auth0-plugin.js

Lines changed: 39 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* auth0-js v9.24.1
2+
* auth0-js v9.25.0
33
* Author: Auth0
44
* Date: 2024-04-25
55
* License: MIT
@@ -11,7 +11,7 @@
1111
(global = global || self, global.CordovaAuth0Plugin = factory());
1212
}(this, (function () { 'use strict';
1313

14-
var version = { raw: '9.24.1' };
14+
var version = { raw: '9.25.0' };
1515

1616
var toString = Object.prototype.toString;
1717

@@ -504,88 +504,46 @@
504504
return shams();
505505
};
506506

507-
var test = {
508-
foo: {}
509-
};
510-
511-
var $Object = Object;
512-
513-
var hasProto = function hasProto() {
514-
return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
515-
};
516-
517507
/* eslint no-invalid-this: 1 */
518508

519509
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
510+
var slice = Array.prototype.slice;
520511
var toStr = Object.prototype.toString;
521-
var max = Math.max;
522512
var funcType = '[object Function]';
523513

524-
var concatty = function concatty(a, b) {
525-
var arr = [];
526-
527-
for (var i = 0; i < a.length; i += 1) {
528-
arr[i] = a[i];
529-
}
530-
for (var j = 0; j < b.length; j += 1) {
531-
arr[j + a.length] = b[j];
532-
}
533-
534-
return arr;
535-
};
536-
537-
var slicy = function slicy(arrLike, offset) {
538-
var arr = [];
539-
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
540-
arr[j] = arrLike[i];
541-
}
542-
return arr;
543-
};
544-
545-
var joiny = function (arr, joiner) {
546-
var str = '';
547-
for (var i = 0; i < arr.length; i += 1) {
548-
str += arr[i];
549-
if (i + 1 < arr.length) {
550-
str += joiner;
551-
}
552-
}
553-
return str;
554-
};
555-
556514
var implementation = function bind(that) {
557515
var target = this;
558-
if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
516+
if (typeof target !== 'function' || toStr.call(target) !== funcType) {
559517
throw new TypeError(ERROR_MESSAGE + target);
560518
}
561-
var args = slicy(arguments, 1);
519+
var args = slice.call(arguments, 1);
562520

563521
var bound;
564522
var binder = function () {
565523
if (this instanceof bound) {
566524
var result = target.apply(
567525
this,
568-
concatty(args, arguments)
526+
args.concat(slice.call(arguments))
569527
);
570528
if (Object(result) === result) {
571529
return result;
572530
}
573531
return this;
532+
} else {
533+
return target.apply(
534+
that,
535+
args.concat(slice.call(arguments))
536+
);
574537
}
575-
return target.apply(
576-
that,
577-
concatty(args, arguments)
578-
);
579-
580538
};
581539

582-
var boundLength = max(0, target.length - args.length);
540+
var boundLength = Math.max(0, target.length - args.length);
583541
var boundArgs = [];
584542
for (var i = 0; i < boundLength; i++) {
585-
boundArgs[i] = '$' + i;
543+
boundArgs.push('$' + i);
586544
}
587545

588-
bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
546+
bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
589547

590548
if (target.prototype) {
591549
var Empty = function Empty() {};
@@ -644,23 +602,18 @@
644602
: throwTypeError;
645603

646604
var hasSymbols$1 = hasSymbols();
647-
var hasProto$1 = hasProto();
648605

649-
var getProto = Object.getPrototypeOf || (
650-
hasProto$1
651-
? function (x) { return x.__proto__; } // eslint-disable-line no-proto
652-
: null
653-
);
606+
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
654607

655608
var needsEval = {};
656609

657-
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined$1 : getProto(Uint8Array);
610+
var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
658611

659612
var INTRINSICS = {
660613
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
661614
'%Array%': Array,
662615
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
663-
'%ArrayIteratorPrototype%': hasSymbols$1 && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
616+
'%ArrayIteratorPrototype%': hasSymbols$1 ? getProto([][Symbol.iterator]()) : undefined$1,
664617
'%AsyncFromSyncIteratorPrototype%': undefined$1,
665618
'%AsyncFunction%': needsEval,
666619
'%AsyncGenerator%': needsEval,
@@ -690,10 +643,10 @@
690643
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
691644
'%isFinite%': isFinite,
692645
'%isNaN%': isNaN,
693-
'%IteratorPrototype%': hasSymbols$1 && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
646+
'%IteratorPrototype%': hasSymbols$1 ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
694647
'%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
695648
'%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
696-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$1 || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
649+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$1 ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
697650
'%Math%': Math,
698651
'%Number%': Number,
699652
'%Object%': Object,
@@ -706,10 +659,10 @@
706659
'%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
707660
'%RegExp%': RegExp,
708661
'%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
709-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$1 || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
662+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$1 ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
710663
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
711664
'%String%': String,
712-
'%StringIteratorPrototype%': hasSymbols$1 && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
665+
'%StringIteratorPrototype%': hasSymbols$1 ? getProto(''[Symbol.iterator]()) : undefined$1,
713666
'%Symbol%': hasSymbols$1 ? Symbol : undefined$1,
714667
'%SyntaxError%': $SyntaxError,
715668
'%ThrowTypeError%': ThrowTypeError,
@@ -725,14 +678,12 @@
725678
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
726679
};
727680

728-
if (getProto) {
729-
try {
730-
null.error; // eslint-disable-line no-unused-expressions
731-
} catch (e) {
732-
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
733-
var errorProto = getProto(getProto(e));
734-
INTRINSICS['%Error.prototype%'] = errorProto;
735-
}
681+
try {
682+
null.error; // eslint-disable-line no-unused-expressions
683+
} catch (e) {
684+
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
685+
var errorProto = getProto(getProto(e));
686+
INTRINSICS['%Error.prototype%'] = errorProto;
736687
}
737688

738689
var doEval = function doEval(name) {
@@ -750,7 +701,7 @@
750701
}
751702
} else if (name === '%AsyncIteratorPrototype%') {
752703
var gen = doEval('%AsyncGenerator%');
753-
if (gen && getProto) {
704+
if (gen) {
754705
value = getProto(gen.prototype);
755706
}
756707
}
@@ -1943,6 +1894,7 @@
19431894
};
19441895

19451896
var isArray$3 = Array.isArray;
1897+
var split = String.prototype.split;
19461898
var push = Array.prototype.push;
19471899
var pushToArray = function (arr, valueOrArray) {
19481900
push.apply(arr, isArray$3(valueOrArray) ? valueOrArray : [valueOrArray]);
@@ -2044,6 +1996,14 @@
20441996
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
20451997
if (encoder) {
20461998
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
1999+
if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
2000+
var valuesArray = split.call(String(obj), ',');
2001+
var valuesJoined = '';
2002+
for (var i = 0; i < valuesArray.length; ++i) {
2003+
valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));
2004+
}
2005+
return [formatter(keyValue) + (commaRoundTrip && isArray$3(obj) && valuesArray.length === 1 ? '[]' : '') + '=' + valuesJoined];
2006+
}
20472007
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
20482008
}
20492009
return [formatter(prefix) + '=' + formatter(String(obj))];
@@ -2058,9 +2018,6 @@
20582018
var objKeys;
20592019
if (generateArrayPrefix === 'comma' && isArray$3(obj)) {
20602020
// we need to join elements in
2061-
if (encodeValuesOnly && encoder) {
2062-
obj = utils.maybeMap(obj, encoder);
2063-
}
20642021
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
20652022
} else if (isArray$3(filter)) {
20662023
objKeys = filter;
@@ -2093,7 +2050,7 @@
20932050
commaRoundTrip,
20942051
strictNullHandling,
20952052
skipNulls,
2096-
generateArrayPrefix === 'comma' && encodeValuesOnly && isArray$3(obj) ? null : encoder,
2053+
encoder,
20972054
filter,
20982055
sort,
20992056
allowDots,
@@ -2290,8 +2247,7 @@
22902247
var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
22912248

22922249
var parseValues = function parseQueryStringValues(str, options) {
2293-
var obj = { __proto__: null };
2294-
2250+
var obj = {};
22952251
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
22962252
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
22972253
var parts = cleanStr.split(options.delimiter, limit);

dist/cordova-auth0-plugin.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cordova-auth0-plugin.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/Authentication.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4202,7 +4202,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Authentic
42024202
<br class="clear">
42034203

42044204
<footer>
4205-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Thu Jan 04 2024 11:44:32 GMT+0100 (Central European Standard Time)
4205+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Thu Apr 25 2024 11:57:15 GMT+0100 (British Summer Time)
42064206
</footer>
42074207

42084208
<script> prettyPrint(); </script>

docs/Management.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Authentic
12051205
<br class="clear">
12061206

12071207
<footer>
1208-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Thu Jan 04 2024 11:44:32 GMT+0100 (Central European Standard Time)
1208+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Thu Apr 25 2024 11:57:15 GMT+0100 (British Summer Time)
12091209
</footer>
12101210

12111211
<script> prettyPrint(); </script>

docs/Popup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1995,7 +1995,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Authentic
19951995
<br class="clear">
19961996

19971997
<footer>
1998-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Thu Jan 04 2024 11:44:32 GMT+0100 (Central European Standard Time)
1998+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Thu Apr 25 2024 11:57:15 GMT+0100 (British Summer Time)
19991999
</footer>
20002000

20012001
<script> prettyPrint(); </script>

docs/Redirect.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Authentic
791791
<br class="clear">
792792

793793
<footer>
794-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Thu Jan 04 2024 11:44:32 GMT+0100 (Central European Standard Time)
794+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Thu Apr 25 2024 11:57:15 GMT+0100 (British Summer Time)
795795
</footer>
796796

797797
<script> prettyPrint(); </script>

docs/WebAuth.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7350,7 +7350,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Authentic
73507350
<br class="clear">
73517351

73527352
<footer>
7353-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Thu Jan 04 2024 11:44:32 GMT+0100 (Central European Standard Time)
7353+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Thu Apr 25 2024 11:57:15 GMT+0100 (British Summer Time)
73547354
</footer>
73557355

73567356
<script> prettyPrint(); </script>

docs/authentication_index.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Authentic
696696
<br class="clear">
697697

698698
<footer>
699-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Thu Jan 04 2024 11:44:32 GMT+0100 (Central European Standard Time)
699+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Thu Apr 25 2024 11:57:15 GMT+0100 (British Summer Time)
700700
</footer>
701701

702702
<script> prettyPrint(); </script>

docs/authentication_passwordless-authentication.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Authentic
289289
<br class="clear">
290290

291291
<footer>
292-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Thu Jan 04 2024 11:44:32 GMT+0100 (Central European Standard Time)
292+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Thu Apr 25 2024 11:57:15 GMT+0100 (British Summer Time)
293293
</footer>
294294

295295
<script> prettyPrint(); </script>

docs/global.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Authentic
10811081
<br class="clear">
10821082

10831083
<footer>
1084-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Thu Jan 04 2024 11:44:32 GMT+0100 (Central European Standard Time)
1084+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Thu Apr 25 2024 11:57:15 GMT+0100 (British Summer Time)
10851085
</footer>
10861086

10871087
<script> prettyPrint(); </script>

docs/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ <h1 class="page-title">Home</h1>
2626

2727

2828

29-
<h3>auth0-js 9.24.1</h3>
29+
<h3>auth0-js 9.25.0</h3>
3030

3131

3232

@@ -61,7 +61,7 @@ <h2>Getting started</h2>
6161
<h3>Installation</h3>
6262
<p>From CDN:</p>
6363
<pre class="prettyprint source lang-html"><code>&lt;!-- Latest patch release -->
64-
&lt;script src=&quot;https://cdn.auth0.com/js/auth0/9.24.1/auth0.min.js&quot;>&lt;/script>
64+
&lt;script src=&quot;https://cdn.auth0.com/js/auth0/9.25.0/auth0.min.js&quot;>&lt;/script>
6565
</code></pre>
6666
<p>From <a href="https://npmjs.org">npm</a>:</p>
6767
<pre class="prettyprint source lang-sh"><code>npm install auth0-js
@@ -167,7 +167,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Authentic
167167
<br class="clear">
168168

169169
<footer>
170-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Thu Jan 04 2024 11:44:32 GMT+0100 (Central European Standard Time)
170+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Thu Apr 25 2024 11:57:15 GMT+0100 (British Summer Time)
171171
</footer>
172172

173173
<script> prettyPrint(); </script>

docs/management_index.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Authentic
217217
<br class="clear">
218218

219219
<footer>
220-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Thu Jan 04 2024 11:44:32 GMT+0100 (Central European Standard Time)
220+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Thu Apr 25 2024 11:57:15 GMT+0100 (British Summer Time)
221221
</footer>
222222

223223
<script> prettyPrint(); </script>

docs/web-auth_index.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Authentic
12351235
<br class="clear">
12361236

12371237
<footer>
1238-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Thu Jan 04 2024 11:44:32 GMT+0100 (Central European Standard Time)
1238+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Thu Apr 25 2024 11:57:15 GMT+0100 (British Summer Time)
12391239
</footer>
12401240

12411241
<script> prettyPrint(); </script>

0 commit comments

Comments
 (0)