sptc 0.0.17 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -123,6 +123,13 @@ function buildRequestContext(req, res, {srvDir, debug, env, isRouterMode}) {
123
123
  reqCtx.setResponseHeaders=headers=>{
124
124
  Object.assign(state.responseHeaders, headers)
125
125
  }
126
+ reqCtx.getStatus=_=>{
127
+ return [state.statusCode, state.statusText]
128
+ }
129
+ reqCtx.getResponseHeaders=_=>{
130
+ return state.responseHeaders
131
+ }
132
+
126
133
  reqCtx.flushHeader=_=>{
127
134
  flushHeader()
128
135
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sptc",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "Simple Pretreat Toolkit CLI",
5
5
  "main": "index.js",
6
6
  "engines": {