zapier-platform-core 9.7.0 → 9.7.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zapier-platform-core",
|
|
3
|
-
"version": "9.7.
|
|
3
|
+
"version": "9.7.1",
|
|
4
4
|
"description": "The core SDK for CLI apps in the Zapier Developer Platform.",
|
|
5
5
|
"repository": "zapier/zapier-platform-core",
|
|
6
6
|
"homepage": "https://zapier.com/",
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"form-data": "4.0.0",
|
|
45
45
|
"lodash": "4.17.15",
|
|
46
46
|
"mime-types": "2.1.34",
|
|
47
|
-
"node-fetch": "2.6.
|
|
47
|
+
"node-fetch": "2.6.7",
|
|
48
48
|
"oauth-sign": "0.9.0",
|
|
49
49
|
"semver": "5.6.0",
|
|
50
|
-
"zapier-platform-schema": "9.7.
|
|
50
|
+
"zapier-platform-schema": "9.7.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"adm-zip": "0.4.13",
|
|
@@ -6,6 +6,10 @@ const createHttpPatch = (event) => {
|
|
|
6
6
|
const httpPatch = (object, logger) => {
|
|
7
7
|
const originalRequest = object.request;
|
|
8
8
|
|
|
9
|
+
// Important not to reuse logger between calls, because we always destroy
|
|
10
|
+
// the logger at the end of a Lambda call.
|
|
11
|
+
object.zapierLogger = logger;
|
|
12
|
+
|
|
9
13
|
// Avoids multiple patching and memory leaks (mostly when running tests locally)
|
|
10
14
|
if (object.patchedByZapier) {
|
|
11
15
|
return;
|
|
@@ -65,7 +69,7 @@ const createHttpPatch = (event) => {
|
|
|
65
69
|
response_content: responseBody,
|
|
66
70
|
};
|
|
67
71
|
|
|
68
|
-
|
|
72
|
+
object.zapierLogger(
|
|
69
73
|
`${logData.response_status_code} ${logData.request_method} ${logData.request_url}`,
|
|
70
74
|
logData
|
|
71
75
|
);
|