diff --git a/package-lock.json b/package-lock.json index 4ceecd392..d2facd6a6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,7 @@ "packages": { "": { "name": "@auth0/nextjs-auth0", - "version": "1.4.0", + "version": "1.4.2", "license": "MIT", "dependencies": { "base64url": "^3.0.1", diff --git a/src/utils/errors.ts b/src/utils/errors.ts index ee1353666..3ca7e1c5b 100644 --- a/src/utils/errors.ts +++ b/src/utils/errors.ts @@ -9,7 +9,7 @@ export class AccessTokenError extends Error { public code: string; constructor(code: string, message: string) { - super(message); + super(message) /* istanbul ignore next */; // Saving class name in the property of our custom error as a shortcut. this.name = this.constructor.name; @@ -49,7 +49,7 @@ export class HandlerError extends Error { public code: string | undefined; constructor(error: Error | AccessTokenError | HttpError) { - super(htmlSafe(error.message)); + super(htmlSafe(error.message)) /* istanbul ignore next */; this.name = error.name; diff --git a/tsconfig.build.json b/tsconfig.build.json index 46382618c..41ab4259d 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -16,7 +16,9 @@ "noUnusedParameters": true, "sourceMap": true, "strict": true, - "target": "es6", + "target": "es5", + "lib": ["es6", "dom"], + "downlevelIteration": true, "resolveJsonModule": true, "jsx": "react", "outDir": "./dist",