Skip to content

Commit 6c3b36f

Browse files
committed
Fixing linting errors
1 parent 08192f6 commit 6c3b36f

File tree

13 files changed

+25
-16
lines changed

13 files changed

+25
-16
lines changed

components/clientary/actions/create-estimate/create-estimate.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ export default defineAction({
4444
try {
4545
estimateItemsAttributes = JSON.parse(this.estimateItemsAttributes);
4646
} catch (err) {
47-
throw new ConfigurationError("`Estimate Items Attributes` must be a valid JSON Array string");
47+
throw new ConfigurationError(`Estimate Items Attributes must be a valid JSON Array string
48+
49+
${err.message}`);
4850
}
4951
}
5052
const response = await this.app.getRequestMethod("createEstimate")({

components/clientary/actions/create-invoice/create-invoice.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ export default defineAction({
4949
try {
5050
invoiceItemsAttributes = JSON.parse(this.invoiceItemsAttributes);
5151
} catch (err) {
52-
throw new ConfigurationError("`Estimate Items Attributes` must be a valid JSON Array string");
52+
throw new ConfigurationError(`\`Estimate Items Attributes\` must be a valid JSON Array string
53+
54+
${err.message}`);
5355
}
5456
}
5557
const response = await this.app.getRequestMethod("createInvoice")({

components/clientary/package.json

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

components/formatting/actions/date-time-format/date-time-format.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ export default defineAction({
4141

4242
$.export("$summary", "Successfully formatted date/time");
4343
return output;
44-
} catch (err) {
45-
throw new ConfigurationError("**Parse error** - check your input and if the selected format is correct.");
44+
} catch (_err) {
45+
throw new ConfigurationError(`**Parse error** - check your input and if the selected format is correct.
46+
47+
${err.message}`);
4648
}
4749
},
4850
});

components/formatting/actions/transform-case/transform-case.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ export default defineAction({
4343
$.export("$summary", "Successfully transformed text case");
4444
return result;
4545
} catch (err) {
46-
throw new ConfigurationError("**Parse error** - check your input and if the selected operation is correct.");
46+
throw new ConfigurationError(`**Parse error** - check your input and if the selected operation is correct.
47+
48+
${err.message}`);
4749
}
4850
},
4951
});

components/formatting/package.json

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

components/kanbanflow/actions/create-task/create-task.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ export default defineAction({
117117
try {
118118
additionalOptions = JSON.parse(this.additionalOptions);
119119
} catch (err) {
120-
throw new ConfigurationError("Error when parsing the **additionalOptions** prop. Check if it is a valid JSON-stringified object.");
120+
throw new ConfigurationError(`Error when parsing the **additionalOptions** prop. Check if it is a valid JSON-stringified object.
121+
122+
${err.message}`);
121123
}
122124
}
123125

components/kanbanflow/package.json

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

components/namely/actions/create-user/create-user.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defineAction } from "@pipedream/types";
1+
import { defineAction, JSONValue } from "@pipedream/types";
22
import dayjs from "dayjs";
33
import namely from "../../app/namely.app";
44

@@ -62,7 +62,7 @@ export default defineAction({
6262

6363
},
6464
async run({ $ }) {
65-
const body: any = {
65+
const body: Record<string, JSONValue> = {
6666
first_name: this.firstName,
6767
last_name: this.lastName,
6868
user_status: this.userStatus,

components/namely/actions/update-user/update-user.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defineAction } from "@pipedream/types";
1+
import { defineAction, JSONValue } from "@pipedream/types";
22
import dayjs from "dayjs";
33
import namely from "../../app/namely.app";
44

@@ -73,7 +73,7 @@ export default defineAction({
7373

7474
},
7575
async run({ $ }) {
76-
const body: any = {
76+
const body: Record<string, JSONValue> = {
7777
first_name: this.firstName,
7878
last_name: this.lastName,
7979
user_status: this.userStatus,

0 commit comments

Comments
 (0)