@auth0/auth0-react 1.10.1 → 1.10.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,qBAAa,UAAW,SAAQ,KAAK;IAChB,KAAK,EAAE,MAAM;IAAS,iBAAiB,CAAC;gBAAxC,KAAK,EAAE,MAAM,EAAS,iBAAiB,CAAC,oBAAQ;CAGpE"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,qBAAa,UAAW,SAAQ,KAAK;IAChB,KAAK,EAAE,MAAM;IAAS,iBAAiB,CAAC;gBAAxC,KAAK,EAAE,MAAM,EAAS,iBAAiB,CAAC,oBAAQ;CAMpE"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Auth0",
3
3
  "name": "@auth0/auth0-react",
4
- "version": "1.10.1",
4
+ "version": "1.10.2",
5
5
  "description": "Auth0 SDK for React Single Page Applications (SPA)",
6
6
  "keywords": [
7
7
  "auth0",
@@ -74,8 +74,8 @@
74
74
  "oidc-provider": "^7.10.6",
75
75
  "prettier": "2.6.2",
76
76
  "pretty-quick": "^3.1.3",
77
- "react": "^18.0.0",
78
- "react-dom": "^18.0.0",
77
+ "react": "^18.1.0",
78
+ "react-dom": "^18.1.0",
79
79
  "react-test-renderer": "^18.0.0",
80
80
  "rollup": "^2.70.1",
81
81
  "rollup-plugin-analyzer": "^4.0.0",
@@ -102,6 +102,6 @@
102
102
  }
103
103
  },
104
104
  "dependencies": {
105
- "@auth0/auth0-spa-js": "^1.21.0"
105
+ "@auth0/auth0-spa-js": "^1.22.0"
106
106
  }
107
107
  }
package/src/errors.tsx CHANGED
@@ -7,5 +7,8 @@
7
7
  export class OAuthError extends Error {
8
8
  constructor(public error: string, public error_description?: string) {
9
9
  super(error_description || error);
10
+
11
+ // https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
12
+ Object.setPrototypeOf(this, OAuthError.prototype);
10
13
  }
11
14
  }