@faasjs/http 0.0.2-beta.273 → 0.0.2-beta.276

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.
package/lib/index.d.ts CHANGED
@@ -42,6 +42,7 @@ export declare class Http<TParams extends Record<string, any> = any, TCookie ext
42
42
  headers: {
43
43
  [key: string]: string;
44
44
  };
45
+ body: any;
45
46
  params: TParams;
46
47
  cookie: Cookie<TCookie, TSession>;
47
48
  session: Session<TSession, TCookie>;
package/lib/index.es.js CHANGED
@@ -379,6 +379,7 @@ class Http {
379
379
  async onInvoke(data, next) {
380
380
  var _a, _b;
381
381
  this.headers = data.event.headers || Object.create(null);
382
+ this.body = data.event.body;
382
383
  this.params = Object.create(null);
383
384
  this.response = { headers: Object.create(null) };
384
385
  if (data.event.body)
package/lib/index.js CHANGED
@@ -383,6 +383,7 @@ class Http {
383
383
  async onInvoke(data, next) {
384
384
  var _a, _b;
385
385
  this.headers = data.event.headers || Object.create(null);
386
+ this.body = data.event.body;
386
387
  this.params = Object.create(null);
387
388
  this.response = { headers: Object.create(null) };
388
389
  if (data.event.body)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/http",
3
- "version": "0.0.2-beta.273",
3
+ "version": "0.0.2-beta.276",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.es.js",
@@ -26,5 +26,5 @@
26
26
  "rollup-plugin-typescript2": "*",
27
27
  "typescript": "*"
28
28
  },
29
- "gitHead": "f7dc9d18202a0194a4cf2350b6fb97d1ca64c90e"
29
+ "gitHead": "7e82de988b4f9680004dd9de775a7762a053278c"
30
30
  }