Skip to content

Commit 20afd3e

Browse files
Merge branch 'master' into issue-13991
2 parents d1a05fd + 851e0bf commit 20afd3e

File tree

45 files changed

+790
-222
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+790
-222
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export default {
2+
type: "app",
3+
app: "chat_data",
4+
propDefinitions: {},
5+
methods: {
6+
// this.$auth contains connected account data
7+
authKeys() {
8+
console.log(Object.keys(this.$auth));
9+
},
10+
},
11+
};

components/chat_data/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@pipedream/chat_data",
3+
"version": "0.0.1",
4+
"description": "Pipedream Chat Data Components",
5+
"main": "chat_data.app.mjs",
6+
"keywords": [
7+
"pipedream",
8+
"chat_data"
9+
],
10+
"homepage": "https://pipedream.com/apps/chat_data",
11+
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
12+
"publishConfig": {
13+
"access": "public"
14+
}
15+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export default {
2+
type: "app",
3+
app: "customjs",
4+
propDefinitions: {},
5+
methods: {
6+
// this.$auth contains connected account data
7+
authKeys() {
8+
console.log(Object.keys(this.$auth));
9+
},
10+
},
11+
};

components/customjs/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@pipedream/customjs",
3+
"version": "0.0.1",
4+
"description": "Pipedream CustomJS Components",
5+
"main": "customjs.app.mjs",
6+
"keywords": [
7+
"pipedream",
8+
"customjs"
9+
],
10+
"homepage": "https://pipedream.com/apps/customjs",
11+
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
12+
"publishConfig": {
13+
"access": "public"
14+
}
15+
}

components/daktela/daktela.app.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export default {
2+
type: "app",
3+
app: "daktela",
4+
propDefinitions: {},
5+
methods: {
6+
// this.$auth contains connected account data
7+
authKeys() {
8+
console.log(Object.keys(this.$auth));
9+
},
10+
},
11+
};

components/daktela/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@pipedream/daktela",
3+
"version": "0.0.1",
4+
"description": "Pipedream Daktela Components",
5+
"main": "daktela.app.mjs",
6+
"keywords": [
7+
"pipedream",
8+
"daktela"
9+
],
10+
"homepage": "https://pipedream.com/apps/daktela",
11+
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
12+
"publishConfig": {
13+
"access": "public"
14+
}
15+
}

components/dust/dust.app.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export default {
2+
type: "app",
3+
app: "dust",
4+
propDefinitions: {},
5+
methods: {
6+
// this.$auth contains connected account data
7+
authKeys() {
8+
console.log(Object.keys(this.$auth));
9+
},
10+
},
11+
};

components/dust/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@pipedream/dust",
3+
"version": "0.0.1",
4+
"description": "Pipedream Dust Components",
5+
"main": "dust.app.mjs",
6+
"keywords": [
7+
"pipedream",
8+
"dust"
9+
],
10+
"homepage": "https://pipedream.com/apps/dust",
11+
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
12+
"publishConfig": {
13+
"access": "public"
14+
}
15+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import error from "../../error.app.mjs";
2+
3+
export default {
4+
name: "Throw Error",
5+
version: "0.0.1",
6+
key: "error-throw-error",
7+
description: "Quickly throw an error from your workflow.",
8+
props: {
9+
error,
10+
name: {
11+
propDefinition: [
12+
error,
13+
"name",
14+
],
15+
},
16+
errorMessage: {
17+
propDefinition: [
18+
error,
19+
"errorMessage",
20+
],
21+
},
22+
},
23+
type: "action",
24+
async run() {
25+
this.error.maybeCreateAndThrowError(this.name, this.errorMessage);
26+
},
27+
};

components/error/error.app.mjs

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
export default {
2+
type: "app",
3+
app: "error",
4+
propDefinitions: {
5+
name: {
6+
type: "string",
7+
label: "Error Name",
8+
description:
9+
"The **name** (class) of error to throw, which you can define as any custom string. This will show up in all of the standard Pipedream error handling destinations.",
10+
default: "Error",
11+
},
12+
errorMessage: {
13+
type: "string",
14+
label: "Error Message",
15+
description:
16+
"The error **message** to throw. This will show up in all of the standard Pipedream error handling destinations.",
17+
optional: true,
18+
},
19+
},
20+
methods: {
21+
maybeCreateAndThrowError(name, message) {
22+
const errorClass = global[name];
23+
24+
// Check if the error class exists and is a subclass of Error
25+
if (
26+
typeof errorClass === "function" &&
27+
errorClass.prototype.isPrototypeOf.call(Error)
28+
) {
29+
throw new errorClass(message);
30+
}
31+
32+
class DynamicError extends Error {
33+
constructor(msg) {
34+
super(msg);
35+
this.name = name;
36+
}
37+
}
38+
throw new DynamicError(message);
39+
},
40+
},
41+
};

0 commit comments

Comments
 (0)