Skip to content

Commit 6e0350f

Browse files
committed
[FIX] Support file URLS and file paths in a single prop input deployment
1 parent b4cfd53 commit 6e0350f

File tree

4 files changed

+6
-26
lines changed

4 files changed

+6
-26
lines changed

components/cloudflare_api_key/actions/change-zone-development-mode/change-zone-development-mode.mjs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import cloudflare from "../../cloudflare_api_key.app.mjs";
2-
import constants from "../../common/constants.mjs";
32

43
export default {
54
key: "cloudflare_api_key-change-zone-development-mode",
65
name: "Change Development Mode",
7-
description: "Development Mode temporarily allows you to enter development mode for your websites if you need to make changes to your site. This will bypass Cloudflare's accelerated cache and slow down your site. [See the docs here](https://api.cloudflare.com/#zone-settings-change-development-mode-setting)",
6+
description: "Development Mode temporarily allows you to enter development mode for your websites if you need to make changes to your site. This will bypass Cloudflare's accelerated cache and slow down your site. [See the documentation](https://developers.cloudflare.com/api/node/resources/zones/subresources/settings/methods/edit/)",
87
version: "0.0.4",
98
type: "action",
109
props: {
@@ -15,23 +14,15 @@ export default {
1514
"zoneIdentifier",
1615
],
1716
},
18-
developmentMode: {
19-
type: "string",
20-
label: "Development Mode",
21-
description: "Development mode value",
22-
options: constants.DEVELOPMENT_MODE_OPTIONS,
23-
},
2417
},
2518
async run({ $ }) {
2619
const zoneId = this.zoneIdentifier;
27-
const developmentMode = this.developmentMode;
2820

2921
const response = await this.cloudflare.editZoneSetting({
3022
settingId: "development_mode",
3123
zone_id: zoneId,
32-
value: developmentMode,
3324
});
34-
$.export("$summary", `Turned ${developmentMode} development mode for #${zoneId}`);
25+
$.export("$summary", "Successfully changed zone to development mode");
3526

3627
return response;
3728
},

components/cloudflare_api_key/actions/update-zone-security-level/update-zone-security-level.mjs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import cloudflare from "../../cloudflare_api_key.app.mjs";
2-
import constants from "../../common/constants.mjs";
32

43
export default {
54
key: "cloudflare_api_key-update-zone-security-level",
@@ -15,23 +14,15 @@ export default {
1514
"zoneIdentifier",
1615
],
1716
},
18-
securityLevel: {
19-
type: "string",
20-
label: "Security Level",
21-
description: "Security level value",
22-
options: constants.ZONE_SECURITY_LEVEL_OPTIONS,
23-
},
2417
},
2518
async run({ $ }) {
2619
const zoneId = this.zoneIdentifier;
27-
const securityLevel = this.securityLevel;
2820

2921
const response = await this.cloudflare.editZoneSetting({
3022
settingId: "security_level",
3123
zone_id: zoneId,
32-
value: securityLevel,
3324
});
34-
$.export("$summary", `Successfully updated zone #${zoneId} security level to '${securityLevel}'`);
25+
$.export("$summary", "Successfully updated zone with security level");
3526

3627
return response;
3728
},

components/cloudflare_api_key/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/cloudflare_api_key",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Pipedream Cloudflare Components",
55
"main": "cloudflare_api_key.app.mjs",
66
"keywords": [

pnpm-lock.yaml

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)