zapier-platform-core 18.2.0 → 18.2.2
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": "18.2.
|
|
3
|
+
"version": "18.2.2",
|
|
4
4
|
"description": "The core SDK for CLI apps in the Zapier Developer Platform.",
|
|
5
5
|
"repository": "zapier/zapier-platform",
|
|
6
6
|
"homepage": "https://platform.zapier.com/",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"node-fetch": "2.7.0",
|
|
42
42
|
"oauth-sign": "0.9.0",
|
|
43
43
|
"semver": "7.7.2",
|
|
44
|
-
"zapier-platform-schema": "18.2.
|
|
44
|
+
"zapier-platform-schema": "18.2.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/node-fetch": "^2.6.11",
|
|
@@ -43,10 +43,21 @@ const createLegacyScriptingRunner = (z, input) => {
|
|
|
43
43
|
} catch (e2) {
|
|
44
44
|
// Do nothing
|
|
45
45
|
}
|
|
46
|
-
}
|
|
47
46
|
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
if (!LegacyScriptingRunner) {
|
|
48
|
+
// Only warn when the package is installed but failed to load
|
|
49
|
+
const isNotInstalled =
|
|
50
|
+
e.code === 'MODULE_NOT_FOUND' &&
|
|
51
|
+
e.message?.includes('zapier-platform-legacy-scripting-runner');
|
|
52
|
+
if (!isNotInstalled) {
|
|
53
|
+
console.warn(
|
|
54
|
+
'Failed to load zapier-platform-legacy-scripting-runner.\nError details:',
|
|
55
|
+
e.message,
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
50
61
|
}
|
|
51
62
|
|
|
52
63
|
if (version === 'dev' || semver.gte(version, '3.0.0')) {
|
package/src/tools/environment.js
CHANGED
|
@@ -21,8 +21,9 @@ const applyEnvironment = (event) => {
|
|
|
21
21
|
const cleanEnvironment = () => {
|
|
22
22
|
// not really a security measure - just prevent useless security bounty emails
|
|
23
23
|
if (
|
|
24
|
-
process.env.
|
|
25
|
-
process.env.
|
|
24
|
+
!process.env.ZAPIER_SUPPRESS_CLEAN_ENVIRONMENT &&
|
|
25
|
+
(process.env.AWS_LAMBDA_FUNCTION_VERSION ||
|
|
26
|
+
process.env.AWS_LAMBDA_FUNCTION_NAME)
|
|
26
27
|
) {
|
|
27
28
|
delete process.env.AWS_ACCESS_KEY_ID;
|
|
28
29
|
delete process.env.AWS_SECURITY_TOKEN;
|