module-connector
Advanced tools
Comparing version 1.0.4 to 1.0.5
15
index.js
'use strict' | ||
/** | ||
* @version 1.0.0 | ||
* @version 1.0.5 | ||
* @author Jhonnattan Rivera | ||
* v1.0.0 creation | ||
* @description | ||
@@ -60,2 +59,14 @@ * object used to connect different backend and frontend components. | ||
accepted ( response, message) { | ||
return this.successFunctions( response, message, 202); | ||
}; | ||
nonAuthoritative ( response, message) { | ||
return this.successFunctions( response, message, 203); | ||
}; | ||
noContent ( response, message) { | ||
return this.successFunctions( response, message, 204); | ||
}; | ||
badRequest ( response, message) { | ||
@@ -62,0 +73,0 @@ return this.failedFunctions( response, message, 400); |
{ | ||
"name": "module-connector", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "object used to connect different backend and frontend components. in order to better control the different scenarios that could occur with the communication of these", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -116,2 +116,5 @@ # module-connector | ||
| .created() | true | 201 | | ||
| .accepted() | true | 202 | | ||
| .nonAuthoritative() | true | 203 | | ||
| .noContent() | true | 203 | | ||
| .badRequest() | false | 400 | | ||
@@ -118,0 +121,0 @@ | .unauthorized() | false | 401 | |
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
7860
71
124