Skip to content

Commit 4ae047b

Browse files
authored
[BUG] Fix packages with Import failure (#17881)
1 parent 146894b commit 4ae047b

File tree

32 files changed

+5123
-1096
lines changed

32 files changed

+5123
-1096
lines changed

components/netlify/actions/get-site/get-site.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "netlify-get-site",
55
name: "Get Site",
66
description: "Get a specified site. [See docs](https://docs.netlify.com/api/get-started/#get-sites)",
7-
version: "0.1.0",
7+
version: "0.1.1",
88
type: "action",
99
props: {
1010
netlify,
@@ -16,7 +16,7 @@ export default {
1616
},
1717
},
1818
async run({ $ }) {
19-
const response = this.netlify.getSite(this.siteId);
19+
const response = await this.netlify.getSite(this.siteId);
2020
$.export("$summary", `Got site ${response.name}`);
2121
return response;
2222
},

components/netlify/actions/list-files/list-files.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "netlify-list-files",
55
name: "List Files",
66
description: "Returns a list of all the files in the current deploy. [See docs](https://docs.netlify.com/api/get-started/#get-files)",
7-
version: "0.1.0",
7+
version: "0.1.1",
88
type: "action",
99
props: {
1010
netlify,
@@ -16,7 +16,7 @@ export default {
1616
},
1717
},
1818
async run({ $ }) {
19-
const response = this.netlify.listFiles(this.siteId);
19+
const response = await this.netlify.listFiles(this.siteId);
2020
$.export("$summary", "Got files for site");
2121
return response;
2222
},

components/netlify/actions/list-site-deploys/list-site-deploys.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "netlify-list-site-deploys",
55
name: "List Site Deploys",
66
description: "Returns a list of all deploys for a specific site. [See docs](https://docs.netlify.com/api/get-started/#get-deploys)",
7-
version: "0.1.0",
7+
version: "0.1.1",
88
type: "action",
99
props: {
1010
netlify,

components/netlify/actions/rollback-deploy/rollback-deploy.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "netlify-rollback-deploy",
55
name: "Rollback Deploy",
66
description: "Restores an old deploy and makes it the live version of the site. [See docs](https://docs.netlify.com/api/get-started/#restore-deploy-rollback)",
7-
version: "0.1.0",
7+
version: "0.1.1",
88
type: "action",
99
props: {
1010
netlify,
@@ -25,7 +25,7 @@ export default {
2525
},
2626
},
2727
async run({ $ }) {
28-
const response = this.netlify.rollbackDeploy(this.siteId, this.deployId);
28+
const response = await this.netlify.rollbackDeploy(this.siteId, this.deployId);
2929
$.export("$summary", "Rolling back deploy");
3030
return response;
3131
},

components/netlify/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/netlify",
3-
"version": "0.4.1",
3+
"version": "0.4.2",
44
"description": "Pipedream Netlify Components",
55
"main": "netlify.app.mjs",
66
"keywords": [
@@ -10,9 +10,9 @@
1010
"homepage": "https://pipedream.com/apps/netlify",
1111
"author": "Pipedream <support@pipedream.com> (https://pipedream.com/)",
1212
"dependencies": {
13-
"@pipedream/platform": "^1.4.0",
13+
"@pipedream/platform": "^3.1.0",
1414
"jwt-simple": "^0.5.6",
15-
"netlify": "^6.0.9",
15+
"netlify": "^23.0.0",
1616
"parse-link-header": "^2.0.0"
1717
},
1818
"gitHead": "e12480b94cc03bed4808ebc6b13e7fdb3a1ba535",

components/netlify/sources/new-deploy-failure/new-deploy-failure.mjs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,15 @@ export default {
77
name: "New Deploy Failure (Instant)",
88
description: "Emit new event when a new deployment fails",
99
type: "source",
10-
version: "0.1.0",
10+
version: "0.1.1",
1111
dedupe: "unique",
1212
methods: {
1313
...webhook.methods,
1414
getHookEvent() {
1515
return deployHooks.DEPLOY_FAILED;
1616
},
17-
getMetaSummary(data) {
18-
const { commit_ref: commitRef } = data;
19-
return `Deploy failed for commit ${commitRef}`;
17+
getMetaSummary() {
18+
return "New Deployment Failure";
2019
},
2120
},
2221
};

components/netlify/sources/new-deploy-start/new-deploy-start.mjs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,15 @@ export default {
77
name: "New Deploy Start (Instant)",
88
description: "Emit new event when a new deployment is started",
99
type: "source",
10-
version: "0.1.0",
10+
version: "0.1.1",
1111
dedupe: "unique",
1212
methods: {
1313
...webhook.methods,
1414
getHookEvent() {
1515
return deployHooks.DEPLOY_BUILDING;
1616
},
17-
getMetaSummary(data) {
18-
const { commit_ref: commitRef } = data;
19-
return `Deploy started for commit ${commitRef}`;
17+
getMetaSummary() {
18+
return "New Deployment Started";
2019
},
2120
},
2221
};

components/netlify/sources/new-deploy-success/new-deploy-success.mjs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,15 @@ export default {
77
name: "New Deploy Success (Instant)",
88
description: "Emit new event when a new deployment is completed",
99
type: "source",
10-
version: "0.1.0",
10+
version: "0.1.1",
1111
dedupe: "unique",
1212
methods: {
1313
...webhook.methods,
1414
getHookEvent() {
1515
return deployHooks.DEPLOY_CREATED;
1616
},
17-
getMetaSummary(data) {
18-
const { commit_ref: commitRef } = data;
19-
return `Deploy succeeded for commit ${commitRef}`;
17+
getMetaSummary() {
18+
return "New Deployment Success";
2019
},
2120
},
2221
};

components/netlify/sources/new-form-submission/new-form-submission.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
name: "New Form Submission (Instant)",
88
description: "Emit new event when a user submits a form",
99
type: "source",
10-
version: "0.1.0",
10+
version: "0.1.1",
1111
dedupe: "unique",
1212
methods: {
1313
...webhook.methods,

components/pdfless/actions/generate-pdf/generate-pdf.mjs

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import app from "../../pdfless.app.mjs";
22

33
export default {
44
name: "Create a PDF document",
5-
version: "0.0.1",
5+
version: "0.1.0",
66
key: "pdfless-generate-pdf",
77
description: "Create a PDF document based on selected template identifier and defined payload. [See the documentation](https://github.com/Pdfless/pdfless-js)",
88
type: "action",
@@ -21,14 +21,27 @@ export default {
2121
},
2222
},
2323
async run({ $ }) {
24-
const result = await this.app.generate({
25-
templateId: this.templateId,
26-
payload: this.payload,
24+
const {
25+
app,
26+
templateId,
27+
payload,
28+
} = this;
29+
30+
const response = await app.generate({
31+
$,
32+
data: {
33+
template_id: templateId,
34+
payload,
35+
},
2736
});
2837

29-
if (result?.status === "success") {
38+
if (response?.status === "success") {
3039
$.export("$summary", "Successfully generated PDF");
40+
41+
} else {
42+
$.export("$summary", "Failed to generate PDF");
3143
}
32-
return result;
44+
45+
return response;
3346
},
3447
};

0 commit comments

Comments
 (0)