@faasjs/http 0.0.3-beta.90 → 0.0.3-beta.91
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/dist/index.js +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -448,6 +448,7 @@ var Http = class {
|
|
|
448
448
|
}
|
|
449
449
|
if (this.params && typeof this.params === "object" && this.params["_"])
|
|
450
450
|
delete this.params["_"];
|
|
451
|
+
data.event.params = this.params;
|
|
451
452
|
data.logger.debug("[onInvoke] Params: %j", this.params);
|
|
452
453
|
}
|
|
453
454
|
this.cookie.invoke(this.headers.cookie, data.logger);
|
|
@@ -487,7 +488,8 @@ var Http = class {
|
|
|
487
488
|
this.response.statusCode = this.response.body ? 200 : 201;
|
|
488
489
|
this.response.headers = Object.assign({
|
|
489
490
|
"Content-Type": "application/json; charset=utf-8",
|
|
490
|
-
"Cache-Control": "no-cache, no-store"
|
|
491
|
+
"Cache-Control": "no-cache, no-store",
|
|
492
|
+
"X-FaasJS-Request-Id": data.logger.label
|
|
491
493
|
}, this.cookie.headers(), this.response.headers);
|
|
492
494
|
data.response = Object.assign({}, data.response, this.response);
|
|
493
495
|
const originBody = data.response.body;
|
package/dist/index.mjs
CHANGED
|
@@ -446,6 +446,7 @@ var Http = class {
|
|
|
446
446
|
}
|
|
447
447
|
if (this.params && typeof this.params === "object" && this.params["_"])
|
|
448
448
|
delete this.params["_"];
|
|
449
|
+
data.event.params = this.params;
|
|
449
450
|
data.logger.debug("[onInvoke] Params: %j", this.params);
|
|
450
451
|
}
|
|
451
452
|
this.cookie.invoke(this.headers.cookie, data.logger);
|
|
@@ -485,7 +486,8 @@ var Http = class {
|
|
|
485
486
|
this.response.statusCode = this.response.body ? 200 : 201;
|
|
486
487
|
this.response.headers = Object.assign({
|
|
487
488
|
"Content-Type": "application/json; charset=utf-8",
|
|
488
|
-
"Cache-Control": "no-cache, no-store"
|
|
489
|
+
"Cache-Control": "no-cache, no-store",
|
|
490
|
+
"X-FaasJS-Request-Id": data.logger.label
|
|
489
491
|
}, this.cookie.headers(), this.response.headers);
|
|
490
492
|
data.response = Object.assign({}, data.response, this.response);
|
|
491
493
|
const originBody = data.response.body;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/http",
|
|
3
|
-
"version": "0.0.3-beta.
|
|
3
|
+
"version": "0.0.3-beta.91",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@faasjs/func": "^0.0.3-beta.
|
|
26
|
-
"@faasjs/logger": "^0.0.3-beta.
|
|
25
|
+
"@faasjs/func": "^0.0.3-beta.91",
|
|
26
|
+
"@faasjs/logger": "^0.0.3-beta.91"
|
|
27
27
|
},
|
|
28
28
|
"engines": {
|
|
29
29
|
"npm": ">=8.0.0",
|