zapier-platform-core 18.5.0 → 18.5.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": "18.5.0",
3
+ "version": "18.5.1",
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/",
@@ -42,7 +42,7 @@
42
42
  "node-fetch": "2.7.0",
43
43
  "oauth-sign": "0.9.0",
44
44
  "semver": "7.7.2",
45
- "zapier-platform-schema": "18.5.0"
45
+ "zapier-platform-schema": "18.5.1"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/node-fetch": "^2.6.11",
@@ -4,7 +4,7 @@ const _ = require('lodash');
4
4
 
5
5
  // remove sensitive data from bundle before logging
6
6
  const logSafeBundle = (bundle) => {
7
- return _.omit(bundle, 'authData');
7
+ return _.omit(bundle, ['authData', 'platformData']);
8
8
  };
9
9
 
10
10
  /*
@@ -109,6 +109,17 @@ const copyPropertiesFromResource = (type, action, appRaw) => {
109
109
  };
110
110
 
111
111
  const compileApp = (appRaw) => {
112
+ if (appRaw == null) {
113
+ throw new Error(
114
+ `App definition could not be loaded (got ${appRaw === null ? 'null' : 'undefined'}). ` +
115
+ 'Try the following:\n' +
116
+ ' - Point package.json "main" at your built entry (often dist/index.js)\n' +
117
+ ' - Run your build so dist/ (or the entry path) exists (e.g. tsc, npm run build, or zapier build)\n' +
118
+ ' - Reinstall dependencies with your package manager (npm, pnpm, or yarn)\n' +
119
+ ' - If you use a lockfile, make sure it matches package.json (e.g. pnpm install --frozen-lockfile)\n' +
120
+ ' - Export the full app object from the entry: module.exports = { ... } in CommonJS, or export default in ESM',
121
+ );
122
+ }
112
123
  appRaw = dataTools.deepCopy(appRaw);
113
124
  appRaw = schemaTools.findSourceRequireFunctions(appRaw);
114
125
  const extras = convertResourceDos(appRaw);