auth0-lock 12.3.1 → 12.5.0
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/.github/actions/get-prerelease/action.yml +30 -0
- package/.github/actions/get-release-notes/action.yml +42 -0
- package/.github/actions/get-version/action.yml +21 -0
- package/.github/actions/npm-publish/action.yml +53 -0
- package/.github/actions/release-create/action.yml +47 -0
- package/.github/actions/tag-exists/action.yml +36 -0
- package/.github/workflows/codeql.yml +3 -3
- package/.github/workflows/npm-release.yml +83 -0
- package/.github/workflows/release.yml +25 -0
- package/.github/workflows/test.yml +8 -8
- package/.shiprc +3 -2
- package/.version +1 -0
- package/CHANGELOG.md +14 -0
- package/DEVELOPMENT.md +8 -8
- package/Makefile +4 -4
- package/README.md +1 -1
- package/lib/CSSCore.js +0 -1
- package/lib/__tests__/connection/database/actions.js +1 -2
- package/lib/__tests__/connection/database/index.js +1 -1
- package/lib/__tests__/connection/database/login_pane.js +1 -1
- package/lib/__tests__/connection/database/password_reset_confirmation.js +1 -1
- package/lib/__tests__/connection/database/signed_up_confirmation.js +1 -1
- package/lib/__tests__/connection/enterprise/actions.js +1 -1
- package/lib/__tests__/connection/enterprise/hrd_pane.js +1 -1
- package/lib/__tests__/connection/enterprise/hrd_screen.js +1 -1
- package/lib/__tests__/connection/enterprise/quick_auth_screen.js +1 -1
- package/lib/__tests__/connection/passwordless/ask_vcode.js +1 -1
- package/lib/__tests__/connection/passwordless/email_sent_confirmation.js +1 -1
- package/lib/__tests__/core/actions.js +3 -3
- package/lib/__tests__/core/remote_data.js +1 -1
- package/lib/__tests__/core/signed_in_confirmation.js +1 -1
- package/lib/__tests__/core/sso/last_login_screen.js +2 -2
- package/lib/__tests__/core/tenant.js +2 -2
- package/lib/__tests__/core/web_api.js +2 -2
- package/lib/__tests__/engine/classic.js +2 -2
- package/lib/__tests__/field/captcha/auth0_v2.js +28 -0
- package/lib/__tests__/field/captcha/third_party_captcha.js +261 -0
- package/lib/__tests__/field/captcha.js +22 -0
- package/lib/__tests__/field/field.js +2 -2
- package/lib/__tests__/i18n.js +1 -1
- package/lib/__tests__/testUtils.js +3 -3
- package/lib/__tests__/ui/box/chrome.js +2 -2
- package/lib/__tests__/ui/box/confirmation_pane.js +1 -1
- package/lib/avatar.js +1 -1
- package/lib/connection/captcha.js +54 -20
- package/lib/connection/database/actions.js +19 -8
- package/lib/connection/database/index.js +1 -1
- package/lib/connection/database/login_pane.js +12 -14
- package/lib/connection/database/login_sign_up_tabs.js +14 -18
- package/lib/connection/database/mfa_pane.js +9 -11
- package/lib/connection/database/password_reset_confirmation.js +10 -12
- package/lib/connection/database/reset_password.js +13 -17
- package/lib/connection/database/reset_password_pane.js +21 -13
- package/lib/connection/database/signed_up_confirmation.js +10 -12
- package/lib/connection/enterprise/actions.js +5 -5
- package/lib/connection/enterprise/hrd_pane.js +11 -13
- package/lib/connection/enterprise/hrd_screen.js +10 -12
- package/lib/connection/enterprise/kerberos_screen.js +10 -12
- package/lib/connection/enterprise/quick_auth_screen.js +10 -12
- package/lib/connection/enterprise.js +1 -1
- package/lib/connection/passwordless/actions.js +8 -8
- package/lib/connection/passwordless/ask_vcode.js +9 -11
- package/lib/connection/passwordless/email_sent_confirmation.js +17 -23
- package/lib/connection/passwordless/index.js +1 -1
- package/lib/connection/social/index.js +1 -1
- package/lib/core/actions.js +3 -3
- package/lib/core/client/index.js +3 -4
- package/lib/core/client/settings.js +1 -1
- package/lib/core/error_screen.js +10 -12
- package/lib/core/index.js +13 -4
- package/lib/core/loading_screen.js +13 -17
- package/lib/core/remote_data.js +9 -1
- package/lib/core/screen.js +4 -5
- package/lib/core/signed_in_confirmation.js +10 -12
- package/lib/core/sso/last_login_screen.js +10 -12
- package/lib/core/tenant/index.js +3 -4
- package/lib/core/tenant/settings.js +1 -1
- package/lib/core/web_api/helper.js +4 -4
- package/lib/core/web_api/p2_api.js +9 -4
- package/lib/core/web_api.js +8 -4
- package/lib/core.js +13 -15
- package/lib/engine/classic/login.js +10 -12
- package/lib/engine/classic/mfa_login_screen.js +10 -12
- package/lib/engine/classic/sign_up_pane.js +11 -13
- package/lib/engine/classic/sign_up_screen.js +10 -12
- package/lib/engine/classic.js +4 -5
- package/lib/engine/passwordless/social_or_email_login_screen.js +12 -14
- package/lib/engine/passwordless/social_or_phone_number_login_screen.js +12 -14
- package/lib/engine/passwordless.js +4 -5
- package/lib/field/captcha/captcha_pane.js +17 -16
- package/lib/field/captcha/third_party_captcha.js +79 -39
- package/lib/field/custom_input.js +1 -1
- package/lib/field/email/email_pane.js +10 -12
- package/lib/field/email.js +1 -1
- package/lib/field/index.js +1 -1
- package/lib/field/mfa-code/mfa_code_pane.js +10 -12
- package/lib/field/password/password_pane.js +12 -14
- package/lib/field/phone-number/phone_number_pane.js +11 -13
- package/lib/field/social/event.js +1 -1
- package/lib/field/social/social_buttons_pane.js +10 -12
- package/lib/field/username/username_pane.js +10 -12
- package/lib/field/vcode/vcode_pane.js +12 -14
- package/lib/i18n/af.js +3 -1
- package/lib/i18n/ar.js +3 -1
- package/lib/i18n/az.js +3 -1
- package/lib/i18n/bg.js +3 -1
- package/lib/i18n/ca.js +3 -1
- package/lib/i18n/cs.js +3 -1
- package/lib/i18n/da.js +3 -1
- package/lib/i18n/de.js +3 -1
- package/lib/i18n/el.js +3 -1
- package/lib/i18n/en.js +3 -1
- package/lib/i18n/es.js +3 -1
- package/lib/i18n/et.js +3 -1
- package/lib/i18n/fa.js +3 -1
- package/lib/i18n/fi.js +3 -1
- package/lib/i18n/fr.js +3 -1
- package/lib/i18n/he.js +3 -1
- package/lib/i18n/hr.js +3 -1
- package/lib/i18n/hu.js +3 -1
- package/lib/i18n/id.js +3 -1
- package/lib/i18n/it.js +3 -1
- package/lib/i18n/ja.js +3 -1
- package/lib/i18n/ko.js +3 -1
- package/lib/i18n/lt.js +3 -1
- package/lib/i18n/lv.js +3 -1
- package/lib/i18n/ms.js +3 -1
- package/lib/i18n/nb.js +3 -1
- package/lib/i18n/nl.js +3 -1
- package/lib/i18n/nn.js +3 -1
- package/lib/i18n/no.js +3 -1
- package/lib/i18n/pl.js +3 -1
- package/lib/i18n/pt-br.js +3 -1
- package/lib/i18n/pt.js +3 -1
- package/lib/i18n/ro.js +3 -1
- package/lib/i18n/ru.js +3 -1
- package/lib/i18n/sk.js +3 -1
- package/lib/i18n/sl.js +3 -1
- package/lib/i18n/sr.js +3 -1
- package/lib/i18n/sv.js +3 -1
- package/lib/i18n/tr.js +3 -1
- package/lib/i18n/ua.js +3 -1
- package/lib/i18n/uk.js +3 -1
- package/lib/i18n/vi.js +3 -1
- package/lib/i18n/zh-tw.js +3 -1
- package/lib/i18n/zh.js +3 -1
- package/lib/i18n.js +2 -2
- package/lib/lock.js +10 -11
- package/lib/passwordless.js +10 -11
- package/lib/quick-auth/actions.js +3 -3
- package/lib/sync.js +1 -1
- package/lib/ui/box/chrome.js +13 -17
- package/lib/ui/box/confirmation_pane.js +1 -1
- package/lib/ui/box/container.js +11 -14
- package/lib/ui/box/global_message.js +9 -11
- package/lib/ui/box/header.js +19 -27
- package/lib/ui/box/multisize_slide.js +13 -17
- package/lib/ui/box.js +4 -6
- package/lib/ui/input/captcha_input.js +14 -16
- package/lib/ui/input/checkbox_input.js +9 -11
- package/lib/ui/input/email_input.js +10 -12
- package/lib/ui/input/input_wrap.js +9 -11
- package/lib/ui/input/location_input.js +9 -11
- package/lib/ui/input/mfa_code_input.js +10 -12
- package/lib/ui/input/password/password_strength.js +15 -21
- package/lib/ui/input/password_input.js +11 -13
- package/lib/ui/input/phone_number_input.js +10 -12
- package/lib/ui/input/select_input.js +9 -11
- package/lib/ui/input/text_input.js +10 -12
- package/lib/ui/input/username_input.js +10 -12
- package/lib/ui/input/vcode_input.js +10 -12
- package/lib/ui/list.js +16 -22
- package/lib/utils/atom.js +3 -4
- package/lib/utils/cache.js +3 -4
- package/lib/utils/jsonp_utils.js +3 -4
- package/package.json +4 -3
- package/.github/workflows/publish.yml +0 -121
package/lib/ui/list.js
CHANGED
|
@@ -14,41 +14,40 @@ var _media_utils = require("../utils/media_utils");
|
|
|
14
14
|
var su = _interopRequireWildcard(require("../utils/string_utils"));
|
|
15
15
|
var l = _interopRequireWildcard(require("../core/index"));
|
|
16
16
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
17
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
17
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
20
20
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
21
21
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
22
22
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
23
23
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
24
|
-
function _toPropertyKey(
|
|
25
|
-
function _toPrimitive(
|
|
26
|
-
function
|
|
27
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
28
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
24
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
25
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
26
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
29
27
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
30
28
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
31
|
-
function _isNativeReflectConstruct() {
|
|
29
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
32
30
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
31
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
32
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
33
|
var cycle = function cycle(xs, x) {
|
|
34
34
|
return xs.skipWhile(function (y) {
|
|
35
35
|
return y !== x;
|
|
36
36
|
}).get(1, xs.get(0));
|
|
37
37
|
};
|
|
38
38
|
var FiltrableList = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
39
|
-
_inherits(FiltrableList, _React$Component);
|
|
40
|
-
var _super = _createSuper(FiltrableList);
|
|
41
39
|
function FiltrableList(props) {
|
|
42
40
|
var _this;
|
|
43
41
|
_classCallCheck(this, FiltrableList);
|
|
44
|
-
_this =
|
|
42
|
+
_this = _callSuper(this, FiltrableList, [props]);
|
|
45
43
|
_this.state = {
|
|
46
44
|
filteredItems: props.items,
|
|
47
45
|
highlighted: props.defaultItem
|
|
48
46
|
};
|
|
49
47
|
return _this;
|
|
50
48
|
}
|
|
51
|
-
|
|
49
|
+
_inherits(FiltrableList, _React$Component);
|
|
50
|
+
return _createClass(FiltrableList, [{
|
|
52
51
|
key: "filter",
|
|
53
52
|
value: function filter(str) {
|
|
54
53
|
var filteredItems = this.props.items.filter(function (x) {
|
|
@@ -136,16 +135,14 @@ var FiltrableList = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
136
135
|
}));
|
|
137
136
|
}
|
|
138
137
|
}]);
|
|
139
|
-
return FiltrableList;
|
|
140
138
|
}(_react.default.Component);
|
|
141
139
|
var List = /*#__PURE__*/function (_React$Component2) {
|
|
142
|
-
_inherits(List, _React$Component2);
|
|
143
|
-
var _super2 = _createSuper(List);
|
|
144
140
|
function List() {
|
|
145
141
|
_classCallCheck(this, List);
|
|
146
|
-
return
|
|
142
|
+
return _callSuper(this, List, arguments);
|
|
147
143
|
}
|
|
148
|
-
|
|
144
|
+
_inherits(List, _React$Component2);
|
|
145
|
+
return _createClass(List, [{
|
|
149
146
|
key: "componentDidUpdate",
|
|
150
147
|
value: function componentDidUpdate() {
|
|
151
148
|
var _this3 = this;
|
|
@@ -215,16 +212,14 @@ var List = /*#__PURE__*/function (_React$Component2) {
|
|
|
215
212
|
}, /*#__PURE__*/_react.default.createElement("ul", null, items));
|
|
216
213
|
}
|
|
217
214
|
}]);
|
|
218
|
-
return List;
|
|
219
215
|
}(_react.default.Component);
|
|
220
216
|
var Item = /*#__PURE__*/function (_React$Component3) {
|
|
221
|
-
_inherits(Item, _React$Component3);
|
|
222
|
-
var _super3 = _createSuper(Item);
|
|
223
217
|
function Item() {
|
|
224
218
|
_classCallCheck(this, Item);
|
|
225
|
-
return
|
|
219
|
+
return _callSuper(this, Item, arguments);
|
|
226
220
|
}
|
|
227
|
-
|
|
221
|
+
_inherits(Item, _React$Component3);
|
|
222
|
+
return _createClass(Item, [{
|
|
228
223
|
key: "shouldComponentUpdate",
|
|
229
224
|
value: function shouldComponentUpdate(nextProps) {
|
|
230
225
|
return this.props.highlighted != nextProps.highlighted;
|
|
@@ -245,7 +240,6 @@ var Item = /*#__PURE__*/function (_React$Component3) {
|
|
|
245
240
|
}, label);
|
|
246
241
|
}
|
|
247
242
|
}]);
|
|
248
|
-
return Item;
|
|
249
243
|
}(_react.default.Component);
|
|
250
244
|
_defineProperty(Item, "propTypes", {
|
|
251
245
|
highlighted: _propTypes.default.bool.isRequired,
|
package/lib/utils/atom.js
CHANGED
|
@@ -8,15 +8,15 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
8
8
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
9
9
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
10
10
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
11
|
-
function _toPropertyKey(
|
|
12
|
-
function _toPrimitive(
|
|
11
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
12
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
13
13
|
var Atom = /*#__PURE__*/function () {
|
|
14
14
|
function Atom(state) {
|
|
15
15
|
_classCallCheck(this, Atom);
|
|
16
16
|
this.state = state;
|
|
17
17
|
this.watches = {};
|
|
18
18
|
}
|
|
19
|
-
_createClass(Atom, [{
|
|
19
|
+
return _createClass(Atom, [{
|
|
20
20
|
key: "reset",
|
|
21
21
|
value: function reset(state) {
|
|
22
22
|
return this._change(state);
|
|
@@ -64,7 +64,6 @@ var Atom = /*#__PURE__*/function () {
|
|
|
64
64
|
return this.state;
|
|
65
65
|
}
|
|
66
66
|
}]);
|
|
67
|
-
return Atom;
|
|
68
67
|
}();
|
|
69
68
|
function atom(state) {
|
|
70
69
|
return new Atom(state);
|
package/lib/utils/cache.js
CHANGED
|
@@ -14,8 +14,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
14
14
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
15
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
16
16
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
|
-
function _toPropertyKey(
|
|
18
|
-
function _toPrimitive(
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
19
19
|
var Cache = exports.default = /*#__PURE__*/function () {
|
|
20
20
|
function Cache(fetchFn) {
|
|
21
21
|
_classCallCheck(this, Cache);
|
|
@@ -23,7 +23,7 @@ var Cache = exports.default = /*#__PURE__*/function () {
|
|
|
23
23
|
this.cbs = {};
|
|
24
24
|
this.fetchFn = fetchFn;
|
|
25
25
|
}
|
|
26
|
-
_createClass(Cache, [{
|
|
26
|
+
return _createClass(Cache, [{
|
|
27
27
|
key: "get",
|
|
28
28
|
value: function get() {
|
|
29
29
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -63,5 +63,4 @@ var Cache = exports.default = /*#__PURE__*/function () {
|
|
|
63
63
|
delete this.cbs[key];
|
|
64
64
|
}
|
|
65
65
|
}]);
|
|
66
|
-
return Cache;
|
|
67
66
|
}();
|
package/lib/utils/jsonp_utils.js
CHANGED
|
@@ -10,18 +10,17 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
10
10
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
11
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
12
12
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13
|
-
function _toPropertyKey(
|
|
14
|
-
function _toPrimitive(
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
15
15
|
var JSONPUtils = /*#__PURE__*/function () {
|
|
16
16
|
function JSONPUtils() {
|
|
17
17
|
_classCallCheck(this, JSONPUtils);
|
|
18
18
|
}
|
|
19
|
-
_createClass(JSONPUtils, [{
|
|
19
|
+
return _createClass(JSONPUtils, [{
|
|
20
20
|
key: "get",
|
|
21
21
|
value: function get() {
|
|
22
22
|
return _jsonp.default.apply(void 0, arguments);
|
|
23
23
|
}
|
|
24
24
|
}]);
|
|
25
|
-
return JSONPUtils;
|
|
26
25
|
}();
|
|
27
26
|
var _default = exports.default = new JSONPUtils();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "auth0-lock",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.5.0",
|
|
4
4
|
"description": "Auth0 Lock",
|
|
5
5
|
"author": "Auth0 <support@auth0.com> (http://auth0.com)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"main": "lib/index.js",
|
|
22
22
|
"scripts": {
|
|
23
23
|
"start": "grunt dev",
|
|
24
|
+
"prebuild": "grunt dist",
|
|
24
25
|
"build": "grunt build",
|
|
25
26
|
"design": "grunt design",
|
|
26
27
|
"dev": "grunt dev",
|
|
@@ -110,7 +111,7 @@
|
|
|
110
111
|
"puppeteer": "^10.1.0",
|
|
111
112
|
"react-test-renderer": "^18.2.0",
|
|
112
113
|
"sinon": "^1.15.4",
|
|
113
|
-
"stylus": "^0.
|
|
114
|
+
"stylus": "^0.62.0",
|
|
114
115
|
"stylus-loader": "^3.0.2",
|
|
115
116
|
"tmp": "^0.2.1",
|
|
116
117
|
"unminified-webpack-plugin": "^3.0.0",
|
|
@@ -120,7 +121,7 @@
|
|
|
120
121
|
"webpack-dev-server": "^4.11.1"
|
|
121
122
|
},
|
|
122
123
|
"dependencies": {
|
|
123
|
-
"auth0-js": "^9.
|
|
124
|
+
"auth0-js": "^9.26.0",
|
|
124
125
|
"auth0-password-policies": "^1.0.2",
|
|
125
126
|
"blueimp-md5": "^2.19.0",
|
|
126
127
|
"classnames": "^2.3.2",
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
name: Publish Release
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
workflow_dispatch:
|
|
5
|
-
inputs:
|
|
6
|
-
branch:
|
|
7
|
-
description: The branch to release from
|
|
8
|
-
required: true
|
|
9
|
-
default: master
|
|
10
|
-
version:
|
|
11
|
-
description: The version being published. This should be a valid semver version, such as `1.0.0`.
|
|
12
|
-
required: true
|
|
13
|
-
default: ''
|
|
14
|
-
type: string
|
|
15
|
-
tag:
|
|
16
|
-
description: The tag being published. This should be latest, beta or any tag you wish to support.
|
|
17
|
-
required: true
|
|
18
|
-
default: latest
|
|
19
|
-
type: string
|
|
20
|
-
dry-run:
|
|
21
|
-
type: boolean
|
|
22
|
-
description: Perform a publishing dry run. This will not publish the release, but will validate the release and log the commands that would be run.
|
|
23
|
-
default: false
|
|
24
|
-
|
|
25
|
-
permissions:
|
|
26
|
-
contents: read
|
|
27
|
-
id-token: write # For publishing to NPM with provenance. Allows developers to run `npm audit signatures` and verify release signature of SDK. @see https://github.blog/2023-04-19-introducing-npm-package-provenance/
|
|
28
|
-
|
|
29
|
-
env:
|
|
30
|
-
NODE_VERSION: 18
|
|
31
|
-
NODE_ENV: development
|
|
32
|
-
|
|
33
|
-
jobs:
|
|
34
|
-
configure:
|
|
35
|
-
name: Validate input parameters
|
|
36
|
-
runs-on: ubuntu-latest
|
|
37
|
-
|
|
38
|
-
outputs:
|
|
39
|
-
vtag: ${{ steps.vtag.outputs.vtag }} # The fully constructed release tag to use for publishing
|
|
40
|
-
dry-run: ${{ steps.dry-run.outputs.dry-run }} # The dry-run flag to use for publishing, if applicable
|
|
41
|
-
|
|
42
|
-
steps:
|
|
43
|
-
- name: Checkout repository
|
|
44
|
-
uses: actions/checkout@v4
|
|
45
|
-
with:
|
|
46
|
-
fetch-depth: 0
|
|
47
|
-
ref: ${{ github.event.inputs.branch }}
|
|
48
|
-
|
|
49
|
-
# Configure for dry-run, if applicable. @see https://docs.npmjs.com/cli/v9/commands/npm-publish#dry-run
|
|
50
|
-
- id: dry-run
|
|
51
|
-
if: ${{ github.event.inputs.dry-run == 'true' }}
|
|
52
|
-
name: Configure for `--dry-run`
|
|
53
|
-
run: |
|
|
54
|
-
echo "dry-run=--dry-run" >> $GITHUB_ENV
|
|
55
|
-
echo "dry-run=--dry-run" >> $GITHUB_OUTPUT
|
|
56
|
-
|
|
57
|
-
# Build the tag string from package.json version and release suffix. Produces something like `1.0.0-beta.1` for a beta, or `1.0.0` for a stable release.
|
|
58
|
-
- name: Build tag
|
|
59
|
-
id: vtag
|
|
60
|
-
run: |
|
|
61
|
-
PACKAGE_VERSION="${{ github.event.inputs.version }}"
|
|
62
|
-
echo "vtag=${PACKAGE_VERSION}" >> $GITHUB_ENV
|
|
63
|
-
echo "vtag=${PACKAGE_VERSION}" >> $GITHUB_OUTPUT
|
|
64
|
-
|
|
65
|
-
# Ensure tag does not already exist.
|
|
66
|
-
- name: Validate version
|
|
67
|
-
uses: actions/github-script@v6
|
|
68
|
-
env:
|
|
69
|
-
vtag: ${{ env.vtag }}
|
|
70
|
-
with:
|
|
71
|
-
script: |
|
|
72
|
-
const releaseMeta = github.rest.repos.listReleases.endpoint.merge({
|
|
73
|
-
owner: context.repo.owner,
|
|
74
|
-
repo: context.repo.repo,
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
const releases = await github.paginate(releaseMeta);
|
|
78
|
-
|
|
79
|
-
for (const release of releases) {
|
|
80
|
-
if (release.name === process.env.vtag) {
|
|
81
|
-
throw new Error(`${process.env.vtag} already exists`);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
console.log(`${process.env.vtag} does not exist. Proceeding with release.`)
|
|
86
|
-
|
|
87
|
-
publish-npm:
|
|
88
|
-
needs: configure
|
|
89
|
-
|
|
90
|
-
name: Publish to NPM
|
|
91
|
-
runs-on: ubuntu-latest
|
|
92
|
-
environment: 'release'
|
|
93
|
-
|
|
94
|
-
steps:
|
|
95
|
-
- name: Checkout code
|
|
96
|
-
uses: actions/checkout@v4
|
|
97
|
-
with:
|
|
98
|
-
fetch-depth: 0
|
|
99
|
-
ref: ${{ github.event.inputs.branch }}
|
|
100
|
-
|
|
101
|
-
- name: Setup Node
|
|
102
|
-
uses: actions/setup-node@v4
|
|
103
|
-
with:
|
|
104
|
-
node-version: ${{ env.NODE_VERSION }}
|
|
105
|
-
cache: yarn
|
|
106
|
-
registry-url: 'https://registry.npmjs.org'
|
|
107
|
-
|
|
108
|
-
- name: Install dependencies
|
|
109
|
-
run: yarn
|
|
110
|
-
|
|
111
|
-
- name: Build release
|
|
112
|
-
run: rm -rf dist && rm -rf build && yarn dist build
|
|
113
|
-
|
|
114
|
-
- name: Publish release to NPM
|
|
115
|
-
run: npm publish --provenance --tag ${{ github.event.inputs.tag }} ${{ needs.configure.outputs.dry-run }}
|
|
116
|
-
env:
|
|
117
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|