Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ikoabo/server

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ikoabo/server - npm Package Compare versions

Comparing version 1.1.24 to 1.1.25

7

lib/controllers/crud.controller.js

@@ -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 @@ });

20

lib/controllers/error.controller.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc