zapier-platform-core 18.2.1 → 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.1",
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.1"
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
- if (!LegacyScriptingRunner) {
49
- return null;
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')) {