zapier-platform-core 12.0.0 → 12.0.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 +2 -2
- package/src/execute.js +12 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zapier-platform-core",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.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/",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"node-fetch": "2.6.7",
|
|
51
51
|
"oauth-sign": "0.9.0",
|
|
52
52
|
"semver": "7.3.5",
|
|
53
|
-
"zapier-platform-schema": "12.0.
|
|
53
|
+
"zapier-platform-schema": "12.0.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"adm-zip": "0.5.5",
|
package/src/execute.js
CHANGED
|
@@ -11,7 +11,18 @@ const ZapierPromise = require('./tools/promise');
|
|
|
11
11
|
const constants = require('./constants');
|
|
12
12
|
|
|
13
13
|
const executeHttpRequest = (input, options) => {
|
|
14
|
-
options = _.extend(
|
|
14
|
+
options = _.extend(
|
|
15
|
+
{},
|
|
16
|
+
// shorthand requests should always throw _unless_ the object specifically opts out
|
|
17
|
+
// this covers godzilla devs who use shorthand requests (most of them) that rely on the throwing behavior
|
|
18
|
+
// when we set the app-wide skip for everyone, we don't want their behavior to change
|
|
19
|
+
// so, this line takes precedence over the global setting, but not the local one (`options`)
|
|
20
|
+
{
|
|
21
|
+
skipThrowForStatus: false,
|
|
22
|
+
},
|
|
23
|
+
options,
|
|
24
|
+
constants.REQUEST_OBJECT_SHORTHAND_OPTIONS
|
|
25
|
+
);
|
|
15
26
|
return input.z.request(options).then((response) => {
|
|
16
27
|
if (response.data === undefined) {
|
|
17
28
|
throw new Error(
|