Skip to content

[BUG] Fix packages with Import failure #17881

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/netlify/actions/get-site/get-site.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "netlify-get-site",
name: "Get Site",
description: "Get a specified site. [See docs](https://docs.netlify.com/api/get-started/#get-sites)",
version: "0.1.0",
version: "0.1.1",
type: "action",
props: {
netlify,
Expand All @@ -16,7 +16,7 @@ export default {
},
},
async run({ $ }) {
const response = this.netlify.getSite(this.siteId);
const response = await this.netlify.getSite(this.siteId);
$.export("$summary", `Got site ${response.name}`);
return response;
},
Expand Down
4 changes: 2 additions & 2 deletions components/netlify/actions/list-files/list-files.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "netlify-list-files",
name: "List Files",
description: "Returns a list of all the files in the current deploy. [See docs](https://docs.netlify.com/api/get-started/#get-files)",
version: "0.1.0",
version: "0.1.1",
type: "action",
props: {
netlify,
Expand All @@ -16,7 +16,7 @@ export default {
},
},
async run({ $ }) {
const response = this.netlify.listFiles(this.siteId);
const response = await this.netlify.listFiles(this.siteId);
$.export("$summary", "Got files for site");
return response;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "netlify-list-site-deploys",
name: "List Site Deploys",
description: "Returns a list of all deploys for a specific site. [See docs](https://docs.netlify.com/api/get-started/#get-deploys)",
version: "0.1.0",
version: "0.1.1",
type: "action",
props: {
netlify,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "netlify-rollback-deploy",
name: "Rollback Deploy",
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)",
version: "0.1.0",
version: "0.1.1",
type: "action",
props: {
netlify,
Expand All @@ -25,7 +25,7 @@ export default {
},
},
async run({ $ }) {
const response = this.netlify.rollbackDeploy(this.siteId, this.deployId);
const response = await this.netlify.rollbackDeploy(this.siteId, this.deployId);
$.export("$summary", "Rolling back deploy");
return response;
},
Expand Down
6 changes: 3 additions & 3 deletions components/netlify/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/netlify",
"version": "0.4.1",
"version": "0.4.2",
"description": "Pipedream Netlify Components",
"main": "netlify.app.mjs",
"keywords": [
Expand All @@ -10,9 +10,9 @@
"homepage": "https://pipedream.com/apps/netlify",
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
"dependencies": {
"@pipedream/platform": "^1.4.0",
"@pipedream/platform": "^3.1.0",
"jwt-simple": "^0.5.6",
"netlify": "^6.0.9",
"netlify": "^23.0.0",
"parse-link-header": "^2.0.0"
},
"gitHead": "e12480b94cc03bed4808ebc6b13e7fdb3a1ba535",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@ export default {
name: "New Deploy Failure (Instant)",
description: "Emit new event when a new deployment fails",
type: "source",
version: "0.1.0",
version: "0.1.1",
dedupe: "unique",
methods: {
...webhook.methods,
getHookEvent() {
return deployHooks.DEPLOY_FAILED;
},
getMetaSummary(data) {
const { commit_ref: commitRef } = data;
return `Deploy failed for commit ${commitRef}`;
getMetaSummary() {
return "New Deployment Failure";
},
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@ export default {
name: "New Deploy Start (Instant)",
description: "Emit new event when a new deployment is started",
type: "source",
version: "0.1.0",
version: "0.1.1",
dedupe: "unique",
methods: {
...webhook.methods,
getHookEvent() {
return deployHooks.DEPLOY_BUILDING;
},
getMetaSummary(data) {
const { commit_ref: commitRef } = data;
return `Deploy started for commit ${commitRef}`;
getMetaSummary() {
return "New Deployment Started";
},
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@ export default {
name: "New Deploy Success (Instant)",
description: "Emit new event when a new deployment is completed",
type: "source",
version: "0.1.0",
version: "0.1.1",
dedupe: "unique",
methods: {
...webhook.methods,
getHookEvent() {
return deployHooks.DEPLOY_CREATED;
},
getMetaSummary(data) {
const { commit_ref: commitRef } = data;
return `Deploy succeeded for commit ${commitRef}`;
getMetaSummary() {
return "New Deployment Success";
},
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
name: "New Form Submission (Instant)",
description: "Emit new event when a user submits a form",
type: "source",
version: "0.1.0",
version: "0.1.1",
dedupe: "unique",
methods: {
...webhook.methods,
Expand Down
25 changes: 19 additions & 6 deletions components/pdfless/actions/generate-pdf/generate-pdf.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import app from "../../pdfless.app.mjs";

export default {
name: "Create a PDF document",
version: "0.0.1",
version: "0.1.0",
key: "pdfless-generate-pdf",
description: "Create a PDF document based on selected template identifier and defined payload. [See the documentation](https://github.com/Pdfless/pdfless-js)",
type: "action",
Expand All @@ -21,14 +21,27 @@ export default {
},
},
async run({ $ }) {
const result = await this.app.generate({
templateId: this.templateId,
payload: this.payload,
const {
app,
templateId,
payload,
} = this;

const response = await app.generate({
$,
data: {
template_id: templateId,
payload,
},
});

if (result?.status === "success") {
if (response?.status === "success") {
$.export("$summary", "Successfully generated PDF");

} else {
$.export("$summary", "Failed to generate PDF");
}
return result;

return response;
},
};
4 changes: 2 additions & 2 deletions components/pdfless/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/pdfless",
"version": "0.1.0",
"version": "0.2.0",
"description": "Pipedream Pdfless Components",
"main": "pdfless.app.mjs",
"keywords": [
Expand All @@ -13,6 +13,6 @@
"access": "public"
},
"dependencies": {
"@pdfless/pdfless-js": "^1.0.510"
"@pipedream/platform": "^3.1.0"
}
}
68 changes: 42 additions & 26 deletions components/pdfless/pdfless.app.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
PdfService,
TemplateService,
} from "@pdfless/pdfless-js";
import { axios } from "@pipedream/platform";

export default {
type: "app",
Expand All @@ -11,36 +8,55 @@ export default {
type: "string",
label: "Template ID",
description: "The unique identifier of the template.",
async options({ prevContext }) {
const page = prevContext?.page || 1;
return {
options: await this.listTemplatesOpts(page),
context: {
async options({ page }) {
const templates = await this.listTemplates({
params: {
page: page + 1,
},
};
});
return templates.map((template) => ({
label: template.name,
value: template.id,
}));
},
},
},
methods: {
async listTemplatesOpts(page) {
const templateService = new TemplateService(this.$auth.api_key);
const templates = await templateService.list(page);
return templates.map((template) => ({
label: template.name,
value: template.id,
}));
getUrl(path) {
return `https://api.pdfless.com/v1${path}`;
},
generate({
templateId,
payload,
}) {
const pdfService = new PdfService(this.$auth.api_key);
const generatePDFCommand = {
template_id: templateId,
payload: JSON.stringify(payload),
getHeaders() {
return {
"apikey": this.$auth.api_key,
"Content-Type": "application/json",
};
return pdfService.generate(generatePDFCommand);
},
makeRequest({
$ = this, path, ...args
} = {}) {
return axios($, {
url: this.getUrl(path),
headers: this.getHeaders(),
...args,
});
},
post(args = {}) {
return this.makeRequest({
method: "POST",
...args,
});
},
listTemplates(args = {}) {
return this.makeRequest({
path: "/document-templates",
...args,
});
},
generate(args = {}) {
return this.post({
path: "/pdfs",
...args,
});
},
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "playwright-get-page-html",
name: "Get Page HTML",
description: "Returns the page's html. [See the documentation](https://playwright.dev/docs/api/class-page#page-content)",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
playwright,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "playwright-get-page-title",
name: "Get Page Title",
description: "Returns the page's title. [See the documentation](https://playwright.dev/docs/api/class-page#page-title)",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
playwright,
Expand Down
2 changes: 1 addition & 1 deletion components/playwright/actions/page-pdf/page-pdf.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "playwright-page-pdf",
name: "Page PDF",
description: "Generates a pdf of the page and store it on /tmp directory. [See the documentation](https://playwright.dev/docs/api/class-page#page-pdf)",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
playwright,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "playwright-take-screenshot",
name: "Take Screenshot",
description: "Store a new screenshot file on /tmp directory. [See the documentation](https://playwright.dev/docs/screenshots)",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
playwright,
Expand Down
3 changes: 2 additions & 1 deletion components/playwright/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/playwright",
"version": "0.1.1",
"version": "0.1.2",
"description": "Pipedream Playwright Components",
"main": "playwright.app.mjs",
"keywords": [
Expand All @@ -13,6 +13,7 @@
"access": "public"
},
"dependencies": {
"@pipedream/types": "^0.3.2",
"@sparticuz/chromium": "121.0.0",
"playwright-core": "1.41.2"
}
Expand Down
4 changes: 2 additions & 2 deletions components/playwright/playwright.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { defineApp } from "@pipedream/types";
// can be found here: https://www.browserstack.com/docs/automate/playwright/browsers-and-os
// The reason why playwright is locked to an old version is because
// the latest Puppeeter Chromium version that works in a code step is chromium@112
import { chromium as playwright } from "playwright-core@1.41.2";
import chromium from "@sparticuz/chromium@121.0.0";
import { chromium as playwright } from "playwright-core";
import chromium from "@sparticuz/chromium";

export default defineApp({
type: "app",
Expand Down
2 changes: 1 addition & 1 deletion components/puppeteer/actions/get-html/get-html.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
name: "Get HTML",
description:
"Get the HTML of a webpage using Puppeteer. [See the documentation](https://pptr.dev/api/puppeteer.page.content) for details.",
version: "1.0.2",
version: "1.0.3",
type: "action",
props: {
puppeteer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
name: "Get Page Title",
description:
"Get the title of a webpage using Puppeteer. [See the documentation](https://pptr.dev/api/puppeteer.page.title)",
version: "1.0.2",
version: "1.0.3",
type: "action",
props: {
puppeteer,
Expand Down
Loading
Loading