@ikoabo/server
Advanced tools
Comparing version 1.1.24 to 1.1.25
@@ -54,3 +54,2 @@ "use strict"; | ||
boError: core_1.SERVER_ERRORS.OBJECT_NOT_FOUND, | ||
boStr: "object-not-found", | ||
boStatus: core_1.HTTP_STATUS.HTTP_4XX_NOT_FOUND | ||
@@ -88,3 +87,2 @@ }); | ||
boError: core_1.SERVER_ERRORS.OBJECT_NOT_FOUND, | ||
boStr: "object-not-found", | ||
boStatus: core_1.HTTP_STATUS.HTTP_4XX_NOT_FOUND | ||
@@ -147,3 +145,2 @@ }); | ||
boError: core_1.SERVER_ERRORS.OBJECT_NOT_FOUND, | ||
boStr: "object-not-found", | ||
boStatus: core_1.HTTP_STATUS.HTTP_4XX_NOT_FOUND | ||
@@ -168,3 +165,2 @@ }); | ||
boError: core_1.SERVER_ERRORS.OBJECT_NOT_FOUND, | ||
boStr: "object-not-found", | ||
boStatus: core_1.HTTP_STATUS.HTTP_4XX_NOT_FOUND | ||
@@ -186,3 +182,2 @@ }); | ||
boError: core_1.SERVER_ERRORS.OBJECT_NOT_FOUND, | ||
boStr: "object-not-found", | ||
boStatus: core_1.HTTP_STATUS.HTTP_4XX_NOT_FOUND | ||
@@ -196,3 +191,2 @@ }); | ||
boError: core_1.SERVER_ERRORS.OBJECT_NOT_FOUND, | ||
boStr: "object-not-found", | ||
boStatus: core_1.HTTP_STATUS.HTTP_4XX_NOT_FOUND | ||
@@ -204,3 +198,2 @@ }); | ||
boError: core_1.SERVER_ERRORS.INVALID_OWNER, | ||
boStr: "invalid-owner", | ||
boStatus: core_1.HTTP_STATUS.HTTP_4XX_FORBIDDEN | ||
@@ -207,0 +200,0 @@ }); |
@@ -19,4 +19,4 @@ "use strict"; | ||
response: { | ||
error: err.boError || core_1.SERVER_ERRORS.UNKNOW_ERROR, | ||
description: err.boStr || "no-description" | ||
error: err.boError.value || core_1.SERVER_ERRORS.UNKNOWN_ERROR.value, | ||
description: err.boError.str || core_1.SERVER_ERRORS.UNKNOWN_ERROR.str | ||
} | ||
@@ -30,9 +30,9 @@ }; | ||
case 11000: | ||
error.response.error = core_1.SERVER_ERRORS.OBJECT_DUPLICATED; | ||
error.response.description = "object-duplicated"; | ||
error.response.error = core_1.SERVER_ERRORS.OBJECT_DUPLICATED.value; | ||
error.response.description = core_1.SERVER_ERRORS.OBJECT_DUPLICATED.str; | ||
error.status = core_1.HTTP_STATUS.HTTP_4XX_CONFLICT; | ||
break; | ||
default: | ||
error.response.error = core_1.SERVER_ERRORS.INVALID_OPERATION; | ||
error.response.description = "invalid-operation"; | ||
error.response.error = core_1.SERVER_ERRORS.INVALID_OPERATION.value; | ||
error.response.description = core_1.SERVER_ERRORS.INVALID_OPERATION.str; | ||
error.status = core_1.HTTP_STATUS.HTTP_4XX_BAD_REQUEST; | ||
@@ -45,9 +45,9 @@ } | ||
case 401: | ||
error.response.error = core_1.SERVER_ERRORS.INVALID_OPERATION; | ||
error.response.description = "invalid-operation"; | ||
error.response.error = core_1.SERVER_ERRORS.INVALID_OPERATION.value; | ||
error.response.description = core_1.SERVER_ERRORS.INVALID_OPERATION.str; | ||
error.status = core_1.HTTP_STATUS.HTTP_4XX_UNAUTHORIZED; | ||
break; | ||
default: | ||
error.response.error = core_1.SERVER_ERRORS.INVALID_OPERATION; | ||
error.response.description = "invalid-operation"; | ||
error.response.error = core_1.SERVER_ERRORS.INVALID_OPERATION.value; | ||
error.response.description = core_1.SERVER_ERRORS.INVALID_OPERATION.str; | ||
error.status = err.status || core_1.HTTP_STATUS.HTTP_4XX_FORBIDDEN; | ||
@@ -54,0 +54,0 @@ } |
@@ -158,3 +158,2 @@ "use strict"; | ||
boError: core_1.SERVER_ERRORS.INVALID_OPERATION, | ||
boStr: "invalid-operation", | ||
boStatus: core_1.HTTP_STATUS.HTTP_4XX_NOT_FOUND | ||
@@ -161,0 +160,0 @@ }); |
@@ -40,3 +40,2 @@ "use strict"; | ||
boError: core_1.SERVER_ERRORS.INVALID_FIELDS, | ||
boStr: "invalid-fields", | ||
boData: { fields: fields } | ||
@@ -43,0 +42,0 @@ }; |
{ | ||
"name": "@ikoabo/server", | ||
"version": "1.1.24", | ||
"version": "1.1.25", | ||
"description": "IKOA Business Opportunity Server Package", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
84885
956