@auth0/auth0-react 2.2.2 → 2.2.3

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.
@@ -135,13 +135,15 @@
135
135
  var OAuthError = /** @class */ (function (_super) {
136
136
  __extends(OAuthError, _super);
137
137
  function OAuthError(error, error_description) {
138
- var _this = _super.call(this, error, error_description || error) || this;
138
+ var _this = _super.call(this, error_description || error) || this;
139
+ _this.error = error;
140
+ _this.error_description = error_description;
139
141
  // https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
140
142
  Object.setPrototypeOf(_this, OAuthError.prototype);
141
143
  return _this;
142
144
  }
143
145
  return OAuthError;
144
- }(d));
146
+ }(Error));
145
147
 
146
148
  var CODE_RE = /[?&]code=[^&]+/;
147
149
  var STATE_RE = /[?&]state=[^&]+/;
@@ -224,7 +226,7 @@
224
226
  deprecateRedirectUri(opts);
225
227
  return __assign(__assign({}, opts), { auth0Client: {
226
228
  name: 'auth0-react',
227
- version: '2.2.2',
229
+ version: '2.2.3',
228
230
  } });
229
231
  };
230
232
  /**
@@ -550,6 +552,7 @@
550
552
  exports.Auth0Context = Auth0Context;
551
553
  exports.Auth0Provider = Auth0Provider;
552
554
  exports.AuthenticationError = u;
555
+ exports.GenericError = d;
553
556
  exports.InMemoryCache = x;
554
557
  exports.LocalStorageCache = z;
555
558
  exports.MfaRequiredError = m;