Skip to content

Commit d931987

Browse files
authored
Merge pull request #298 from NodeSecure/update-httpie
refactor: use @openally/httpie instead of @myunisoft/httpie
1 parent b72e77c commit d931987

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@
5757
"typescript": "^5.4.2"
5858
},
5959
"dependencies": {
60-
"@myunisoft/httpie": "^5.0.0",
6160
"@nodesecure/npm-registry-sdk": "^3.0.0",
6261
"@npmcli/arborist": "^9.0.0",
62+
"@openally/httpie": "^1.0.0",
6363
"@pnpm/audit": "1001.0.2",
6464
"@pnpm/lockfile-file": "^9.1.1"
6565
}

src/database/nvd.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Import Third-party Dependencies
2-
import * as httpie from "@myunisoft/httpie";
2+
import * as httpie from "@openally/httpie";
33

44
// Import Internal Dependencies
55
import * as utils from "../utils.js";
@@ -57,7 +57,7 @@ export async function findOne(
5757

5858
return data.vulnerabilities || [];
5959
}
60-
catch (error) {
60+
catch (error: any) {
6161
console.error("NVD API Error:", error.message || error);
6262

6363
return [];

src/database/osv.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Import Third-party Dependencies
2-
import * as httpie from "@myunisoft/httpie";
2+
import * as httpie from "@openally/httpie";
33

44
// Import Internal Dependencies
55
import type { OSV } from "../formats/osv/index.js";

src/database/snyk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Import Third-party Dependencies
2-
import * as httpie from "@myunisoft/httpie";
2+
import * as httpie from "@openally/httpie";
33

44
// Import Internal Dependencies
55
import { SNYK_ORG, SNYK_TOKEN } from "../constants.js";

src/database/sonatype.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Import Third-party Dependencies
2-
import * as httpie from "@myunisoft/httpie";
2+
import * as httpie from "@openally/httpie";
33

44
// Import Internal Dependencies
55
import type { SonatypeResponse } from "../formats/sonatype/index.js";

test/strategies/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import assert from "node:assert";
33

44
// Import Third-party Dependencies
5-
import * as httpie from "@myunisoft/httpie";
5+
import * as httpie from "@openally/httpie";
66

77
// CONSTANTS
88
export const HTTP_CLIENT_HEADERS = {

0 commit comments

Comments
 (0)