New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@soos-io/api-client

Package Overview
Dependencies
Maintainers
1
Versions
254
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@soos-io/api-client - npm Package Compare versions

Comparing version 0.1.3-pre.10 to 0.1.3-pre.11

1

dist/api/SOOSAnalysisApiClient.d.ts

@@ -33,2 +33,3 @@ import FormData from "form-data";

scanStatusUrl: string;
scanSarifUrl: string;
errors: ICodedMessageModel[] | null;

@@ -35,0 +36,0 @@ }

2

dist/api/SOOSAnalysisApiClient.js

@@ -21,3 +21,3 @@ "use strict";

apiKey: this.apiKey,
apiClientName: "Analysis API Client",
apiClientName: "Analysis API",
});

@@ -24,0 +24,0 @@ }

@@ -23,4 +23,5 @@ "use strict";

client.interceptors.request.use((request) => {
var _a;
if (request.data) {
SOOSLogger_1.soosLogger.verboseDebug(apiClientName, `Request URL: ${request.url}, request method: ${request.method}`);
SOOSLogger_1.soosLogger.verboseDebug(apiClientName, `Request URL: ${(_a = request.method) === null || _a === void 0 ? void 0 : _a.toLocaleUpperCase()} ${request.url}`);
SOOSLogger_1.soosLogger.verboseDebug(apiClientName, `Request Body: ${JSON.stringify(request.data)}`);

@@ -36,3 +37,3 @@ }

}, (rejectedResponse) => {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
if (isAxiosError(rejectedResponse)) {

@@ -50,3 +51,5 @@ const isCodedMessageModel = !(0, utilities_1.isNil)((_b = (_a = rejectedResponse.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.code);

}
throw new Error(`${apiClientName} ${(_l = rejectedResponse.request) === null || _l === void 0 ? void 0 : _l.method} ${(_m = rejectedResponse.config) === null || _m === void 0 ? void 0 : _m.url}: ${(_p = (_o = rejectedResponse.response) === null || _o === void 0 ? void 0 : _o.data) === null || _p === void 0 ? void 0 : _p.message} (${(_r = (_q = rejectedResponse.response) === null || _q === void 0 ? void 0 : _q.data) === null || _r === void 0 ? void 0 : _r.code})`);
throw new Error(`${apiClientName} ${(_m = (_l = rejectedResponse.request) === null || _l === void 0 ? void 0 : _l.method) === null || _m === void 0 ? void 0 : _m.toLocaleUpperCase()} ${(_o = rejectedResponse
.config) === null || _o === void 0 ? void 0 : _o.url}: ${(_q = (_p = rejectedResponse.response) === null || _p === void 0 ? void 0 : _p.data) === null || _q === void 0 ? void 0 : _q.message} (${(_s = (_r = rejectedResponse
.response) === null || _r === void 0 ? void 0 : _r.data) === null || _s === void 0 ? void 0 : _s.code})`);
}

@@ -53,0 +56,0 @@ return Promise.reject(rejectedResponse);

@@ -13,3 +13,3 @@ "use strict";

apiKey: this.apiKey,
apiClientName: "Projects API Client",
apiClientName: "Projects API",
});

@@ -16,0 +16,0 @@ }

{
"name": "@soos-io/api-client",
"version": "0.1.3-pre.10",
"version": "0.1.3-pre.11",
"description": "This is the SOOS API Client for registered clients leveraging the various integrations to the SOOS platform.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc