auth0-lock 11.30.4 → 11.31.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.
Files changed (46) hide show
  1. package/.circleci/config.yml +66 -19
  2. package/.eslintrc.json +9 -2
  3. package/.prettierignore +1 -0
  4. package/.prettierrc.yaml +5 -0
  5. package/.shiprc +7 -0
  6. package/CHANGELOG.md +393 -210
  7. package/DEVELOPMENT.md +13 -3
  8. package/LICENSE +23 -0
  9. package/README.md +163 -140
  10. package/karma.conf.js +129 -0
  11. package/lib/__tests__/connection/database/reset_password.js +82 -4
  12. package/lib/__tests__/connection/enterprise/actions.js +19 -0
  13. package/lib/__tests__/core/index.js +134 -0
  14. package/lib/__tests__/core/web_api/helper.js +3 -3
  15. package/lib/__tests__/core/web_api.js +7 -7
  16. package/lib/__tests__/setup-tests.js +1 -1
  17. package/lib/__tests__/ui/box/chrome.js +16 -3
  18. package/lib/__tests__/utils/format.js +33 -0
  19. package/lib/browser.js +12 -10
  20. package/lib/connection/captcha.js +94 -0
  21. package/lib/connection/database/actions.js +9 -69
  22. package/lib/connection/database/index.js +2 -2
  23. package/lib/connection/database/login_pane.js +3 -1
  24. package/lib/connection/database/reset_password.js +15 -0
  25. package/lib/connection/enterprise/actions.js +10 -0
  26. package/lib/core/actions.js +3 -3
  27. package/lib/core/index.js +11 -18
  28. package/lib/core/web_api/helper.js +1 -1
  29. package/lib/core.js +1 -1
  30. package/lib/engine/classic/login.js +2 -2
  31. package/lib/engine/classic/sign_up_pane.js +2 -2
  32. package/lib/i18n.js +11 -7
  33. package/lib/lock.js +1 -1
  34. package/lib/passwordless.js +1 -1
  35. package/lib/store/index.js +1 -1
  36. package/lib/sync.js +1 -1
  37. package/lib/ui/box/chrome.js +16 -5
  38. package/lib/ui/box/container.js +4 -4
  39. package/lib/ui/box/header.js +9 -4
  40. package/lib/ui/box.js +5 -5
  41. package/lib/ui/input/password/password_strength.js +3 -3
  42. package/lib/utils/cdn_utils.js +6 -6
  43. package/lib/utils/format.js +48 -0
  44. package/package.json +40 -36
  45. package/.zuul.yml +0 -19
  46. package/circle.yml +0 -19
@@ -66,7 +66,7 @@ function shouldRenderTabs(m) {
66
66
  if (l.hasSomeConnections(m, 'social') && (0, _index.hasInitialScreen)(m, 'signUp')) return (0, _index.hasScreen)(m, 'signUp');
67
67
  }
68
68
 
69
- var Component = function Component(_ref) {
69
+ var LoginComponent = function LoginComponent(_ref) {
70
70
  var i18n = _ref.i18n,
71
71
  model = _ref.model;
72
72
 
@@ -182,7 +182,7 @@ var Login = function (_Screen) {
182
182
  };
183
183
 
184
184
  Login.prototype.render = function render() {
185
- return Component;
185
+ return LoginComponent;
186
186
  };
187
187
 
188
188
  return Login;
@@ -32,7 +32,7 @@ var _index2 = require('../../core/index');
32
32
 
33
33
  var l = _interopRequireWildcard(_index2);
34
34
 
35
- var _actions = require('../../connection/database/actions');
35
+ var _captcha = require('../../connection/captcha');
36
36
 
37
37
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
38
38
 
@@ -97,7 +97,7 @@ var SignUpPane = function (_React$Component) {
97
97
  });
98
98
 
99
99
  var captchaPane = l.captcha(model) && l.captcha(model).get('required') ? _react2.default.createElement(_captcha_pane2.default, { i18n: i18n, lock: model, onReload: function onReload() {
100
- return (0, _actions.swapCaptcha)(l.id(model), false);
100
+ return (0, _captcha.swapCaptcha)(l.id(model), false);
101
101
  } }) : null;
102
102
 
103
103
  var passwordPane = !onlyEmail && _react2.default.createElement(_password_pane2.default, {
package/lib/i18n.js CHANGED
@@ -17,7 +17,9 @@ var _immutable = require('immutable');
17
17
 
18
18
  var _immutable2 = _interopRequireDefault(_immutable);
19
19
 
20
- var _util = require('util');
20
+ var _format = require('./utils/format');
21
+
22
+ var _format2 = _interopRequireDefault(_format);
21
23
 
22
24
  var _dompurify = require('dompurify');
23
25
 
@@ -50,7 +52,7 @@ function str(m, keyPath) {
50
52
  args[_key - 2] = arguments[_key];
51
53
  }
52
54
 
53
- return _util.format.apply(undefined, [get(m, ['strings'].concat(keyPath), '')].concat(args));
55
+ return _format2.default.apply(undefined, [get(m, ['strings'].concat(keyPath), '')].concat(args));
54
56
  }
55
57
 
56
58
  function html(m, keyPath) {
@@ -123,7 +125,7 @@ function assertLanguage(m, language, base) {
123
125
  function syncLang(m, language, _cb) {
124
126
  (0, _cdn_utils.load)({
125
127
  method: 'registerLanguageDictionary',
126
- url: l.languageBaseUrl(m) + '/js/lock/' + '11.30.4' + '/' + language + '.js',
128
+ url: l.languageBaseUrl(m) + '/js/lock/' + '11.31.1' + '/' + language + '.js',
127
129
  check: function check(str) {
128
130
  return str && str === language;
129
131
  },
@@ -139,7 +141,9 @@ function registerLanguageDictionary(language, dictionary) {
139
141
  languageDictionaries[language] = _immutable2.default.fromJS(dictionary);
140
142
  }
141
143
 
142
- (0, _cdn_utils.preload)({
143
- method: 'registerLanguageDictionary',
144
- cb: registerLanguageDictionary
145
- });
144
+ if (typeof window !== 'undefined') {
145
+ (0, _cdn_utils.preload)({
146
+ method: 'registerLanguageDictionary',
147
+ cb: registerLanguageDictionary
148
+ });
149
+ }
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.30.4';
45
+ Auth0Lock.version = '11.31.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.30.4';
44
+ Auth0LockPasswordless.version = '11.31.1';
@@ -101,6 +101,6 @@ function getState() {
101
101
 
102
102
  // DEV
103
103
  // store.addWatch("keepHistory", (key, oldState, newState) => {
104
- // if (!global.window.h) global.window.h = []; global.window.h.push(newState);
104
+ // if (!window.h) window.h = []; window.h.push(newState);
105
105
  // console.debug("something changed", newState.toJS());
106
106
  // });
package/lib/sync.js CHANGED
@@ -40,7 +40,7 @@ exports.default = function (m, key, opts) {
40
40
  };
41
41
 
42
42
  var syncStatusKey = function syncStatusKey(key) {
43
- return (global.Array.isArray(key) ? key : [key]).concat(['syncStatus']);
43
+ return (window.Array.isArray(key) ? key : [key]).concat(['syncStatus']);
44
44
  };
45
45
  var getStatus = function getStatus(m, key) {
46
46
  return get(m, syncStatusKey(key));
@@ -36,6 +36,10 @@ var _header = require('./header');
36
36
 
37
37
  var _header2 = _interopRequireDefault(_header);
38
38
 
39
+ var _classnames = require('classnames');
40
+
41
+ var _classnames2 = _interopRequireDefault(_classnames);
42
+
39
43
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
40
44
 
41
45
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -246,7 +250,7 @@ var Chrome = function (_React$Component2) {
246
250
  }
247
251
 
248
252
  if (!auxiliaryPane && nextProps.auxiliaryPane) {
249
- this.auxiliaryPaneTriggerInput = global.document.activeElement;
253
+ this.auxiliaryPaneTriggerInput = window.document.activeElement;
250
254
  this.setState({ moving: true });
251
255
  }
252
256
 
@@ -374,6 +378,7 @@ var Chrome = function (_React$Component2) {
374
378
  title = _props5.title,
375
379
  classNames = _props5.classNames,
376
380
  scrollGlobalMessagesIntoView = _props5.scrollGlobalMessagesIntoView;
381
+ var model = contentProps.model;
377
382
  var _state = this.state,
378
383
  delayingShowSubmitButton = _state.delayingShowSubmitButton,
379
384
  moving = _state.moving,
@@ -418,17 +423,23 @@ var Chrome = function (_React$Component2) {
418
423
  }) : null;
419
424
 
420
425
  var Content = contentComponent;
421
-
422
- var className = 'auth0-lock-cred-pane';
423
426
  var isQuiet = !moving && !delayingShowSubmitButton;
424
- className += isQuiet ? ' auth0-lock-quiet' : ' auth0-lock-moving';
427
+
428
+ var className = (0, _classnames2.default)('auth0-lock-cred-pane', {
429
+ 'auth0-lock-quiet': isQuiet,
430
+ 'auth0-lock-moving': !isQuiet
431
+ });
432
+
433
+ var internalWrapperClass = (0, _classnames2.default)('auth0-lock-cred-pane-internal-wrapper', {
434
+ 'auto-height': l.ui.forceAutoHeight(model)
435
+ });
425
436
 
426
437
  return _react2.default.createElement(
427
438
  'div',
428
439
  { className: className },
429
440
  _react2.default.createElement(
430
441
  'div',
431
- { className: 'auth0-lock-cred-pane-internal-wrapper' },
442
+ { className: internalWrapperClass },
432
443
  _react2.default.createElement(
433
444
  'div',
434
445
  { className: 'auth0-lock-content-wrapper' },
@@ -102,17 +102,17 @@ var EscKeyDownHandler = function () {
102
102
  f();
103
103
  }
104
104
  };
105
- global.document.addEventListener('keydown', this.handler, false);
105
+ window.document.addEventListener('keydown', this.handler, false);
106
106
  }
107
107
 
108
108
  EscKeyDownHandler.prototype.release = function release() {
109
- global.document.removeEventListener('keydown', this.handler);
109
+ window.document.removeEventListener('keydown', this.handler);
110
110
  };
111
111
 
112
112
  return EscKeyDownHandler;
113
113
  }();
114
114
 
115
- var IPHONE = global.navigator && !!global.navigator.userAgent.match(/iPhone/i);
115
+ var IPHONE = typeof window !== 'undefined' && window.navigator && !!window.navigator.userAgent.match(/iPhone/i);
116
116
 
117
117
  var Container = function (_React$Component) {
118
118
  _inherits(Container, _React$Component);
@@ -384,7 +384,7 @@ Container.propTypes = {
384
384
  };
385
385
 
386
386
  // NOTE: detecting the file protocol is important for things like electron.
387
- var isFileProtocol = global.window && global.window.location && global.window.location.protocol === 'file:';
387
+ var isFileProtocol = typeof window !== 'undefined' && window.window && window.location && window.location.protocol === 'file:';
388
388
 
389
389
  var defaultProps = exports.defaultProps = Container.defaultProps = {
390
390
  autofocus: false,
@@ -155,13 +155,18 @@ WelcomeMessage.propTypes = {
155
155
  };
156
156
 
157
157
  var cssBlurSupport = function () {
158
+ if (typeof window === 'undefined') {
159
+ return;
160
+ }
161
+
158
162
  // Check stolen from Modernizr, see https://github.com/Modernizr/Modernizr/blob/29eab707f7a2fb261c8a9c538370e97eb1f86e25/feature-detects/css/filters.js
159
- var isEdge = global.navigator && !!global.navigator.userAgent.match(/Edge/i);
160
- if (typeof global.document === 'undefined' || isEdge) return false;
163
+ var isEdge = window.navigator && !!window.navigator.userAgent.match(/Edge/i);
164
+ if (typeof window.document === 'undefined' || isEdge) return false;
161
165
 
162
- var el = global.document.createElement('div');
166
+ var el = window.document.createElement('div');
163
167
  el.style.cssText = 'filter: blur(2px); -webkit-filter: blur(2px)';
164
- return !!el.style.length && (global.document.documentMode === undefined || global.document.documentMode > 9);
168
+
169
+ return !!el.style.length && (window.document.documentMode === undefined || window.document.documentMode > 9);
165
170
  }();
166
171
 
167
172
  var Background = function (_React$Component4) {
package/lib/ui/box.js CHANGED
@@ -29,13 +29,13 @@ var ContainerManager = function () {
29
29
  }
30
30
 
31
31
  ContainerManager.prototype.ensure = function ensure(id, shouldAppend) {
32
- var container = global.document.getElementById(id);
32
+ var container = window.document.getElementById(id);
33
33
 
34
34
  if (!container && shouldAppend) {
35
- container = global.document.createElement('div');
35
+ container = window.document.createElement('div');
36
36
  container.id = id;
37
37
  container.className = 'auth0-lock-container';
38
- global.document.body.appendChild(container);
38
+ window.document.body.appendChild(container);
39
39
  }
40
40
 
41
41
  if (!container) {
@@ -62,7 +62,7 @@ var Renderer = function () {
62
62
  var container = this.containerManager.ensure(containerId, isModal);
63
63
 
64
64
  if (isModal && !this.modals[containerId]) {
65
- _CSSCore2.default.addClass(global.document.getElementsByTagName('html')[0], 'auth0-lock-html');
65
+ _CSSCore2.default.addClass(window.document.getElementsByTagName('html')[0], 'auth0-lock-html');
66
66
  }
67
67
  // eslint-disable-next-line
68
68
  var component = _reactDom2.default.render(_react2.default.createElement(_container2.default, props), container);
@@ -100,7 +100,7 @@ var Renderer = function () {
100
100
  if (this.modals[containerId]) {
101
101
  delete this.modals[containerId];
102
102
 
103
- _CSSCore2.default.removeClass(global.document.getElementsByTagName('html')[0], 'auth0-lock-html');
103
+ _CSSCore2.default.removeClass(window.document.getElementsByTagName('html')[0], 'auth0-lock-html');
104
104
  }
105
105
  };
106
106
 
@@ -16,9 +16,9 @@ var _policy = require('password-sheriff/lib/policy');
16
16
 
17
17
  var _policy2 = _interopRequireDefault(_policy);
18
18
 
19
- var _util = require('util');
19
+ var _format = require('../../../utils/format');
20
20
 
21
- var _util2 = _interopRequireDefault(_util);
21
+ var _format2 = _interopRequireDefault(_format);
22
22
 
23
23
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
24
24
 
@@ -53,7 +53,7 @@ var PasswordStrength = function (_React$Component) {
53
53
  o.message = messages[o.code];
54
54
  }
55
55
 
56
- o.message = _util2.default.format.apply(_util2.default, [o.message].concat(o.format || []));
56
+ o.message = _format2.default.apply(undefined, [o.message].concat(o.format || []));
57
57
 
58
58
  if (o.items) {
59
59
  prepareMessage(o.items);
@@ -10,8 +10,8 @@ var _auth0Js2 = _interopRequireDefault(_auth0Js);
10
10
 
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
12
 
13
- if (!global.Auth0) {
14
- global.Auth0 = {};
13
+ if (typeof window !== 'undefined' && !window.Auth0) {
14
+ window.Auth0 = {};
15
15
  }
16
16
 
17
17
  var cbs = {};
@@ -25,7 +25,7 @@ function load(attrs) {
25
25
 
26
26
  if (!cbs[method]) {
27
27
  cbs[method] = [];
28
- global.Auth0[method] = function () {
28
+ window.Auth0[method] = function () {
29
29
  for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
30
30
  args[_key] = arguments[_key];
31
31
  }
@@ -51,9 +51,9 @@ function load(attrs) {
51
51
 
52
52
  if (count > 1) return;
53
53
 
54
- var script = global.document.createElement('script');
54
+ var script = window.document.createElement('script');
55
55
  script.src = url;
56
- global.document.getElementsByTagName('head')[0].appendChild(script);
56
+ window.document.getElementsByTagName('head')[0].appendChild(script);
57
57
 
58
58
  var handleError = function handleError(err) {
59
59
  cbs[method] = cbs[method].filter(function (x) {
@@ -86,5 +86,5 @@ function preload(_ref) {
86
86
  var method = _ref.method,
87
87
  cb = _ref.cb;
88
88
 
89
- global.Auth0[method] = cb;
89
+ window.Auth0[method] = cb;
90
90
  }
@@ -0,0 +1,48 @@
1
+ 'use strict';
2
+
3
+ exports.__esModule = true;
4
+
5
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
6
+
7
+ exports.default = format;
8
+ // Code attribution
9
+ // Inlined and modified from https://github.com/browserify/node-util/blob/e37ce41f4063bcd7bc27e01470d6654053bdcd14/util.js#L33-L69
10
+ // Copyright Joyent, Inc. and other Node contributors.
11
+ // Please see LICENSE for full copyright and license attribution.
12
+ var formatRegExp = /%[sdj%]/g;
13
+
14
+ function format(f) {
15
+ var i = 1;
16
+ var args = arguments;
17
+ var len = args.length;
18
+ var str = String(f).replace(formatRegExp, function (x) {
19
+ if (x === '%%') return '%';
20
+ if (i >= len) return x;
21
+ switch (x) {
22
+ case '%s':
23
+ return String(args[i++]);
24
+ case '%d':
25
+ return Number(args[i++]);
26
+ case '%j':
27
+ try {
28
+ return JSON.stringify(args[i++]);
29
+ } catch (_) {
30
+ return '[Circular]';
31
+ }
32
+ default:
33
+ return x;
34
+ }
35
+ });
36
+ for (var x = args[i]; i < len; x = args[++i]) {
37
+ if (x === null || !isObject(x)) {
38
+ str += ' ' + x;
39
+ } else if (x !== null) {
40
+ str += ' ' + JSON.stringify(x);
41
+ }
42
+ }
43
+ return str;
44
+ }
45
+
46
+ function isObject(arg) {
47
+ return (typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) === 'object' && arg !== null;
48
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auth0-lock",
3
- "version": "11.30.4",
3
+ "version": "11.31.1",
4
4
  "description": "Auth0 Lock",
5
5
  "author": "Auth0 <support@auth0.com> (http://auth0.com)",
6
6
  "license": "MIT",
@@ -25,19 +25,17 @@
25
25
  "dev": "grunt dev",
26
26
  "dist": "grunt dist",
27
27
  "prepublish": "cross-env BABEL_ENV=npm grunt dist",
28
- "precommit": "lint-staged",
28
+ "precommit": "yarn lint-staged",
29
29
  "lint": "eslint --ext .jsx,.js src/",
30
- "test": "cross-env BABEL_ENV=test zuul -- test/**/*.test.js",
31
- "test:browser": "cross-env BABEL_ENV=test zuul --local 8080 --disable-tunnel -- test/**/*.test.js",
32
- "test:cli": "cross-env BABEL_ENV=test mochify --extension=.jsx --transform=babelify ./test/setup.js test/**/*.test.js",
33
- "test:watch": "cross-env BABEL_ENV=test mochify --watch --extension=.jsx --transform=babelify ./test/setup.js test/**/*.test.js",
34
- "test:jest": "jest --coverage --runInBand",
35
- "test:jest:watch": "jest --watch --coverage",
30
+ "test:e2e": "cross-env BABEL_ENV=test karma start --browsers ChromeHeadless",
31
+ "test:e2e:watch": "cross-env BABEL_ENV=test karma start --browsers Chrome --single-run=false",
32
+ "test:e2e:browserstack": "cross-env BABEL_ENV=test karma start",
33
+ "test": "jest --coverage --runInBand",
34
+ "test:watch": "jest --watch --coverage",
36
35
  "test:es-check": "es-check es5 'build/*.js'",
37
36
  "publish:cdn": "ccu --trace",
38
- "release": "scripts/release.sh",
39
37
  "i18n:translate": "grunt dist && node scripts/complete-translations.js && npm run i18n:prettier && npm run build",
40
- "i18n:prettier": "prettier --write --print-width 100 --single-quote src/i18n/*",
38
+ "i18n:prettier": "prettier --write src/i18n/*",
41
39
  "i18n:validate": "node -r esm scripts/lang-audit.js"
42
40
  },
43
41
  "devDependencies": {
@@ -47,27 +45,28 @@
47
45
  "babel-eslint": "^7.2.2",
48
46
  "babel-loader": "^6.2.5",
49
47
  "babel-plugin-stylus-compiler": "^1.4.0",
48
+ "babel-plugin-transform-class-properties": "^6.24.1",
50
49
  "babel-plugin-transform-css-import-to-string": "0.0.2",
51
50
  "babel-plugin-version-inline": "^1.0.0",
52
51
  "babel-preset-es2015": "^6.22.0",
53
52
  "babel-preset-react": "^6.24.1",
54
53
  "babel-preset-stage-0": "^6.3.13",
55
- "babelify": "^7.2.0",
54
+ "babelify": "^8.0.0",
55
+ "browserify": "^17.0.0",
56
56
  "bump-version": "^0.5.0",
57
- "chalk": "^3.0.0",
58
- "cross-env": "^3.1.4",
57
+ "chalk": "^4.1.2",
58
+ "cross-env": "^7.0.3",
59
59
  "css-loader": "^0.26.1",
60
- "dotenv": "^8.0.0",
61
60
  "emojic": "^1.1.15",
62
61
  "enzyme": "^3.1.0",
63
62
  "enzyme-adapter-react-15": "^1.0.1",
64
- "es-check": "^4.0.0",
65
- "eslint": "^4.8.0",
66
- "eslint-config-prettier": "^2.6.0",
63
+ "es-check": "^6.0.0",
64
+ "eslint": "^7.32.0",
65
+ "eslint-config-prettier": "^8.3.0",
67
66
  "eslint-plugin-react": "^7.4.0",
68
67
  "esm": "^3.2.25",
69
68
  "expect.js": "^0.3.1",
70
- "flat": "^2.0.1",
69
+ "flat": "^5.0.2",
71
70
  "glob": "^7.1.6",
72
71
  "grunt": "^1.3.0",
73
72
  "grunt-babel": "^6.0.0",
@@ -77,50 +76,56 @@
77
76
  "grunt-env": "^0.4.4",
78
77
  "grunt-exec": "^0.4.6",
79
78
  "grunt-webpack": "^2.0.1",
80
- "husky": "^0.14.3",
79
+ "husky": "^7.0.2",
81
80
  "jest": "^21.2.1",
82
81
  "json-beautify": "^1.0.1",
83
- "jsonwebtoken": "^7.3.0",
84
- "lint-staged": "^4.2.3",
85
- "mochify": "^6.3.0",
82
+ "karma": "^6.3.4",
83
+ "karma-babel-preprocessor": "^7.0.0",
84
+ "karma-browserify": "^8.1.0",
85
+ "karma-browserstack-launcher": "^1.6.0",
86
+ "karma-chrome-launcher": "^3.1.0",
87
+ "karma-mocha": "^2.0.1",
88
+ "karma-mocha-reporter": "^2.2.5",
89
+ "lint-staged": "^11.1.2",
90
+ "mocha": "^9.1.1",
86
91
  "node-es-module-loader": "^0.3.8",
87
- "prettier": "^1.7.4",
92
+ "prettier": "^2.4.1",
93
+ "puppeteer": "^10.1.0",
88
94
  "react-test-renderer": "^15.6.2",
89
- "semver": "^6.2.0",
90
95
  "sinon": "^1.15.4",
91
96
  "stylus": "^0.54.5",
92
97
  "stylus-loader": "^2.3.1",
93
- "superagent": "^5.2.2",
94
98
  "tmp": "^0.1.0",
95
99
  "uglify-js": "^2.7.4",
96
100
  "unminified-webpack-plugin": "^1.1.1",
97
101
  "unreleased": "^0.1.0",
98
- "watchify": "^3.7.0",
102
+ "watchify": "^4.0.0",
99
103
  "webpack": "^2.2.1",
100
104
  "webpack-core": "^0.6.8",
101
- "webpack-dev-server": "^2.3.0",
102
- "zuul": "^3.12.0",
103
- "zuul-ngrok": "4.0.0"
105
+ "webpack-dev-server": "^2.3.0"
104
106
  },
105
107
  "dependencies": {
106
- "auth0-js": "^9.16.2",
108
+ "auth0-js": "^9.16.4",
107
109
  "auth0-password-policies": "^1.0.2",
108
- "blueimp-md5": "2.3.1",
110
+ "blueimp-md5": "^2.19.0",
111
+ "classnames": "^2.3.1",
109
112
  "dompurify": "^2.2.8",
110
113
  "immutable": "^3.7.3",
111
114
  "jsonp": "^0.2.1",
112
- "password-sheriff": "^1.1.0",
115
+ "node-fetch": "^2.6.1",
116
+ "password-sheriff": "^1.1.1",
113
117
  "prop-types": "^15.6.0",
114
118
  "qs": "^6.7.0",
115
119
  "react": "^15.6.2",
116
120
  "react-dom": "^15.6.2",
117
121
  "react-transition-group": "^2.2.1",
118
- "trim": "1.0.0",
122
+ "trim": "^1.0.1",
119
123
  "url-join": "^1.1.0",
120
124
  "validator": "^13.6.0"
121
125
  },
122
126
  "resolutions": {
123
- "node-fetch": "^2.6.1"
127
+ "node-fetch": "^2.6.1",
128
+ "crypto-js": "^4.1.1"
124
129
  },
125
130
  "ccu": {
126
131
  "name": "lock",
@@ -169,8 +174,7 @@
169
174
  "npm run lint"
170
175
  ],
171
176
  "*.{js,jsx,json}": [
172
- "prettier --write --print-width 100 --single-quote",
173
- "git add"
177
+ "prettier --write"
174
178
  ]
175
179
  }
176
180
  }
package/.zuul.yml DELETED
@@ -1,19 +0,0 @@
1
- ui: mocha-bdd
2
- tunnel:
3
- type: ngrok
4
- authtoken: LsVZFxFqgxA4h7ibWV9V_iuA9afbQwaSnGqH9dApL
5
- browsers:
6
- - name: chrome
7
- version: latest
8
- - name: safari
9
- version: 9
10
- - name: firefox
11
- version: latest
12
- - name: ie
13
- version: 10..latest
14
- browserify:
15
- - transform:
16
- name: babelify
17
- - options:
18
- extensions:
19
- - .jsx
package/circle.yml DELETED
@@ -1,19 +0,0 @@
1
- machine:
2
- node:
3
- version: v6.10.0
4
- environment:
5
- PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
6
- dependencies:
7
- override:
8
- - yarn
9
- cache_directories:
10
- - ~/.cache/yarn
11
- test:
12
- pre:
13
- - yarn run build
14
- override:
15
- - yarn run test:cli
16
- - yarn run test:jest
17
- general:
18
- artifacts:
19
- - build