Skip to content
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
29 changes: 29 additions & 0 deletions .github/workflows/validate-publishable-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,32 @@ jobs:

- name: validate publishable packages
run: npx ts-node -r tsconfig-paths/register -P packages/server/engine/tsconfig.lib.json tools/scripts/validate-publishable-packages.ts

- name: find changed pieces
id: changed
run: |
OUTPUT=$(npx ts-node -r tsconfig-paths/register -P packages/server/engine/tsconfig.lib.json tools/scripts/pieces/find-changed-pieces.ts)
TURBO_FILTER=$(echo "$OUTPUT" | grep '^TURBO_FILTER:' | sed 's/^TURBO_FILTER://')
CHANGED_DIRS=$(echo "$OUTPUT" | sed -n '/^CHANGED_DIRS:$/,/^TURBO_FILTER:/{ /^CHANGED_DIRS:$/d; /^TURBO_FILTER:/d; p; }')
if [ -z "$TURBO_FILTER" ]; then
echo "No changed pieces found"
echo "has_changes=false" >> "$GITHUB_OUTPUT"
else
echo "has_changes=true" >> "$GITHUB_OUTPUT"
echo "turbo_filter=$TURBO_FILTER" >> "$GITHUB_OUTPUT"
{
echo "changed_dirs<<PIECES_EOF"
echo "$CHANGED_DIRS"
echo "PIECES_EOF"
} >> "$GITHUB_OUTPUT"
fi

- name: build changed pieces
if: steps.changed.outputs.has_changes == 'true'
run: npx turbo run build ${{ steps.changed.outputs.turbo_filter }}

- name: check piece heap usage
if: steps.changed.outputs.has_changes == 'true' && !contains(github.event.pull_request.labels.*.name, 'skip-heap-check')
env:
CHANGED_PIECES: ${{ steps.changed.outputs.changed_dirs }}
run: npx ts-node -r tsconfig-paths/register -P packages/server/engine/tsconfig.lib.json tools/scripts/pieces/check-pieces-heap.ts
2 changes: 1 addition & 1 deletion bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/pieces/core/http/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@activepieces/piece-http",
"version": "0.11.19",
"version": "0.11.20",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"dependencies": {
Expand Down
23 changes: 18 additions & 5 deletions packages/pieces/core/http/src/i18n/translation.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"Sends HTTP requests and return responses": "Sends HTTP requests and return responses",
"Send HTTP requests to any URL and use the response in your flow": "Send HTTP requests to any URL and use the response in your flow",
"Send HTTP request": "Send HTTP request",
"Parse URL": "Parse URL",
"Call any URL with a chosen method, optional authentication and body.": "Call any URL with a chosen method, optional authentication and body.",
"Extract the domain, path, and query parameters from a URL.": "Extract the domain, path, and query parameters from a URL.",
"Method": "Method",
"URL": "URL",
"Headers": "Headers",
Expand All @@ -12,11 +15,21 @@
"Response is Binary": "Response is Binary",
"Use Proxy": "Use Proxy",
"Proxy Settings": "Proxy Settings",
"Timeout(in seconds)": "Timeout(in seconds)",
"Timeout": "Timeout",
"Follow redirects": "Follow redirects",
"On Failure": "On Failure",
"Enable for files like PDFs, images, etc. A base64 body will be returned.": "Enable for files like PDFs, images, etc. A base64 body will be returned.",
"Use a proxy for this request": "Use a proxy for this request",
"Return Values as Arrays": "Return Values as Arrays",
"GET reads data, POST creates it.": "GET reads data, POST creates it.",
"The full URL to call, including https:// or http://": "The full URL to call, including https:// or http://",
"Sent with the request as key-value pairs.": "Sent with the request as key-value pairs.",
"Appended to the URL as a query string.": "Appended to the URL as a query string.",
"How to encode the request body. Leave as None for GET requests.": "How to encode the request body. Leave as None for GET requests.",
"Return the response as base64, for files like PDFs.": "Return the response as base64, for files like PDFs.",
"Route this request through an HTTP proxy.": "Route this request through an HTTP proxy.",
"Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Seconds to wait for a response. Empty: up to the flow limit (10 min).",
"Follow 3xx redirects instead of returning the response.": "Follow 3xx redirects instead of returning the response.",
"The full URL you want to parse (e.g., https://example.com/page?utm_source=twitter)": "The full URL you want to parse (e.g., https://example.com/page?utm_source=twitter)",
"If checked (recommended), all query parameters are returned as JSON arrays to safely group duplicate keys (e.g., {\"tags\": [\"shoes\", \"hats\"]}). If unchecked, standard web behavior applies, returning only the first value as text.": "If checked (recommended), all query parameters are returned as JSON arrays to safely group duplicate keys (e.g., {\"tags\": [\"shoes\", \"hats\"]}). If unchecked, standard web behavior applies, returning only the first value as text.",
"GET": "GET",
"POST": "POST",
"PATCH": "PATCH",
Expand All @@ -26,8 +39,8 @@
"None": "None",
"Basic Auth": "Basic Auth",
"Bearer Token": "Bearer Token",
"Form Data": "Form Data",
"JSON": "JSON",
"Form Data": "Form Data",
"Raw": "Raw",
"Retry on all errors (4xx, 5xx)": "Retry on all errors (4xx, 5xx)",
"Retry on internal errors (5xx)": "Retry on internal errors (5xx)",
Expand Down
4 changes: 2 additions & 2 deletions packages/pieces/core/http/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { parseUrl } from './lib/actions/parse-url';

export const http = createPiece({
displayName: 'HTTP',
description: 'Sends HTTP requests and return responses',
description: 'Send HTTP requests to any URL and use the response in your flow',
logoUrl: 'https://cdn.activepieces.com/pieces/new-core/http.svg',
categories: [PieceCategory.CORE],
auth: PieceAuth.None(),
minimumSupportedRelease: '0.20.3',
minimumSupportedRelease: '0.88.2',
actions: [httpSendRequestAction, parseUrl],
authors: [
'bibhuty-did-this',
Expand Down
Loading
Loading