a12n-server
Advanced tools
Comparing version 0.3.2 to 0.3.3
Changelog | ||
========= | ||
0.3.3 (2018-11-01) | ||
------------------ | ||
* Added a few missing files from npm distribution. | ||
* Updated dependencies. | ||
0.3.2 (2018-11-01) | ||
@@ -5,0 +12,0 @@ ------------------ |
@@ -15,3 +15,3 @@ "use strict"; | ||
if (http_errors_1.isHttpError(e)) { | ||
status = e.httpCode; | ||
status = e.httpStatus; | ||
clientError = http_errors_1.isClientError(e); | ||
@@ -18,0 +18,0 @@ if (e.title) { |
@@ -8,13 +8,13 @@ import { Context } from '@curveball/core'; | ||
export declare class InvalidRequest extends Error implements OAuthError { | ||
httpCode: number; | ||
httpStatus: number; | ||
errorCode: string; | ||
} | ||
export declare class UnsupportedGrantType extends Error implements OAuthError { | ||
httpCode: number; | ||
httpStatus: number; | ||
errorCode: string; | ||
} | ||
export declare class UnauthorizedClient extends Error implements OAuthError { | ||
httpCode: number; | ||
httpStatus: number; | ||
errorCode: string; | ||
} | ||
export {}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
function serializeError(ctx, err) { | ||
ctx.response.status = err.httpCode; | ||
ctx.response.status = err.httpStatus; | ||
ctx.response.headers.set('Content-Type', 'application/json'); | ||
@@ -15,3 +15,3 @@ ctx.response.body = { | ||
super(...arguments); | ||
this.httpCode = 400; | ||
this.httpStatus = 400; | ||
this.errorCode = 'invalid_request'; | ||
@@ -24,3 +24,3 @@ } | ||
super(...arguments); | ||
this.httpCode = 400; | ||
this.httpStatus = 400; | ||
this.errorCode = 'unsupported_grant_type'; | ||
@@ -33,3 +33,3 @@ } | ||
super(...arguments); | ||
this.httpCode = 400; | ||
this.httpStatus = 400; | ||
this.errorCode = 'unauthorized_client'; | ||
@@ -36,0 +36,0 @@ } |
{ | ||
"name": "a12n-server", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"main": "dist/index.js", | ||
@@ -20,3 +20,5 @@ "description": "A ready-to-launch User and Authentication system for those that don't want to build it", | ||
"dist", | ||
"LICENSE" | ||
"LICENSE", | ||
"assets", | ||
"templates" | ||
], | ||
@@ -47,4 +49,4 @@ "author": "Evert Pot (https://evertpot.com/)", | ||
"@curveball/bodyparser": "^0.3.0", | ||
"@curveball/core": "^0.7.0", | ||
"@curveball/http-errors": "^0.2.2", | ||
"@curveball/core": "^0.8.1", | ||
"@curveball/http-errors": "^0.3.0", | ||
"@curveball/router": "^0.2.0", | ||
@@ -51,0 +53,0 @@ "@curveball/session": "^0.3.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
112335
137
1742
+ Added@curveball/core@0.8.6(transitive)
- Removed@curveball/http-errors@0.2.2(transitive)
Updated@curveball/core@^0.8.1