error-status-helper
Advanced tools
@@ -159,3 +159,3 @@ <?xml version="1.0" encoding="UTF-8"?> | ||
| <workItem from="1525845266379" duration="4879000" /> | ||
| <workItem from="1528458052991" duration="1144000" /> | ||
| <workItem from="1528458052991" duration="1845000" /> | ||
| </task> | ||
@@ -194,3 +194,3 @@ <task id="LOCAL-00001" summary="2.0"> | ||
| <component name="TimeTrackingManager"> | ||
| <option name="totallyTimeSpent" value="10200000" /> | ||
| <option name="totallyTimeSpent" value="10901000" /> | ||
| </component> | ||
@@ -208,3 +208,3 @@ <component name="ToolWindowManager"> | ||
| <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.31944445" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Terminal" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.49305555" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" /> | ||
@@ -211,0 +211,0 @@ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.5902778" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> |
+3
-3
@@ -8,6 +8,6 @@ /** | ||
| module.exports = function (express) { | ||
| express.response['sendData'] = function (data) { | ||
| express.response['sendData'] = function (data, message = null, statusCode = 0) { | ||
| return this.status(200).send({ | ||
| "statusCode": 0, | ||
| "message": null, | ||
| "statusCode": statusCode, | ||
| "message": message, | ||
| "result": data | ||
@@ -14,0 +14,0 @@ }); |
+1
-1
| { | ||
| "name": "error-status-helper", | ||
| "version": "2.1.1", | ||
| "version": "2.1.2", | ||
| "description": "Extends node.js response middleware with status codes helper methods.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
22889
0.19%