Skip to content

Commit c5b7ccc

Browse files
authored
[FIX] Scheduled Package Validation Report (#19364)
1 parent 6d3cf62 commit c5b7ccc

File tree

8 files changed

+107
-270
lines changed

8 files changed

+107
-270
lines changed

components/bluecart_api/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/bluecart_api",
3-
"version": "0.1.1",
3+
"version": "0.2.0",
44
"description": "Pipedream BlueCart API Components",
55
"main": "bluecart_api.app.mjs",
66
"keywords": [
@@ -11,5 +11,8 @@
1111
"author": "Pipedream <support@pipedream.com> (https://pipedream.com/)",
1212
"publishConfig": {
1313
"access": "public"
14+
},
15+
"dependencies": {
16+
"@pipedream/platform": "^3.1.1"
1417
}
1518
}

components/finnhub/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/finnhub",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"description": "Pipedream Finnhub Components",
55
"main": "finnhub.app.mjs",
66
"keywords": [
@@ -11,5 +11,8 @@
1111
"author": "Pipedream <support@pipedream.com> (https://pipedream.com/)",
1212
"publishConfig": {
1313
"access": "public"
14+
},
15+
"dependencies": {
16+
"@pipedream/platform": "^3.1.1"
1417
}
1518
}

components/verdict_as_a_service/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
import { defineAction } from "@pipedream/types";
2-
import verdict from "../../app/verdict_as_a_service.app";
1+
import verdict from "../../verdict_as_a_service.app.mjs";
32

4-
export default defineAction({
3+
export default {
54
name: "Request Verdict For A File",
65
description: "Scans a file for malware and other threats. [See the docs here](https://github.com/GDATASoftwareAG/vaas/tree/main/typescript#request-a-verdict)",
76
key: "verdict_as_a_service-request-verdict-for-file",
8-
version: "0.0.3",
7+
version: "0.0.4",
98
annotations: {
109
destructiveHint: false,
1110
openWorldHint: true,
@@ -28,4 +27,4 @@ export default defineAction({
2827

2928
return verdict;
3029
},
31-
});
30+
};

components/verdict_as_a_service/package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
{
22
"name": "@pipedream/verdict_as_a_service",
3-
"version": "0.0.4",
3+
"version": "0.1.0",
44
"description": "Pipedream Verdict as a Service Components",
5-
"main": "dist/app/verdict_as_a_service.app.mjs",
5+
"main": "verdict_as_a_service.app.mjs",
66
"keywords": [
77
"pipedream",
88
"verdict_as_a_service"
99
],
10-
"files": [
11-
"dist"
12-
],
1310
"homepage": "https://pipedream.com/apps/verdict_as_a_service",
1411
"author": "Pipedream <support@pipedream.com> (https://pipedream.com/)",
1512
"publishConfig": {

components/verdict_as_a_service/tsconfig.json

Lines changed: 0 additions & 3 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1-
import { PathLike } from "fs";
21
import { open } from "fs/promises";
3-
import { defineApp } from "@pipedream/types";
4-
import {
5-
Vaas,
6-
VAAS_URL,
7-
ClientCredentialsGrantAuthenticator,
8-
} from "gdata-vaas";
2+
import gdataVaas from "gdata-vaas";
93

10-
export default defineApp({
4+
export default {
115
type: "app",
126
app: "verdict_as_a_service",
137
propDefinitions: {
@@ -23,20 +17,20 @@ export default defineApp({
2317
client_id: clientId,
2418
client_secret: secret,
2519
token_url: tokenUrl,
26-
vaas_url: url = VAAS_URL,
20+
vaas_url: url = gdataVaas.VAAS_URL,
2721
} = this.$auth;
28-
const authenticator = new ClientCredentialsGrantAuthenticator(
22+
const authenticator = new gdataVaas.ClientCredentialsGrantAuthenticator(
2923
clientId,
3024
secret,
3125
tokenUrl,
3226
);
3327
const token = await authenticator.getToken();
34-
const vaas = new Vaas();
28+
const vaas = new gdataVaas.Vaas();
3529
await vaas.connect(token, url);
3630
return vaas;
3731
},
38-
async requestVerdictForFile(file: PathLike) {
39-
const client: Vaas = await this.getClient();
32+
async requestVerdictForFile(file) {
33+
const client = await this.getClient();
4034
const fileHandle = await open(file, "r");
4135
const buffer = await fileHandle.readFile();
4236

@@ -48,4 +42,4 @@ export default defineApp({
4842
}
4943
},
5044
},
51-
});
45+
};

0 commit comments

Comments
 (0)