@socketsecurity/cli-with-sentry 0.15.61 → 0.15.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +167 -89
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +8 -7
- package/dist/constants.js.map +1 -1
- package/dist/shadow-npm-inject.js +2 -2
- package/dist/shadow-npm-inject.js.map +1 -1
- package/dist/types/commands/fix/fix-branch-helpers.d.mts.map +1 -1
- package/dist/types/commands/fix/fix-env-helpers.d.mts +4 -4
- package/dist/types/commands/fix/fix-env-helpers.d.mts.map +1 -1
- package/dist/types/commands/fix/git.d.mts +19 -14
- package/dist/types/commands/fix/git.d.mts.map +1 -1
- package/dist/types/commands/fix/npm-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/open-pr.d.mts +0 -5
- package/dist/types/commands/fix/open-pr.d.mts.map +1 -1
- package/dist/types/commands/fix/pnpm-fix.d.mts.map +1 -1
- package/dist/types/constants.d.mts +1 -1
- package/dist/types/constants.d.mts.map +1 -1
- package/dist/utils.js +6 -6
- package/dist/utils.js.map +1 -1
- package/dist/vendor.js +23 -15
- package/external/@socketsecurity/registry/external/browserslist.js +242 -237
- package/external/@socketsecurity/registry/lib/promises.js +17 -2
- package/package.json +10 -10
package/dist/vendor.js
CHANGED
|
@@ -32895,7 +32895,7 @@ var isInteractiveExports = /*@__PURE__*/ requireIsInteractive();
|
|
|
32895
32895
|
var dist$e = {};
|
|
32896
32896
|
|
|
32897
32897
|
var name$2 = "@socketsecurity/sdk";
|
|
32898
|
-
var version$5 = "1.4.
|
|
32898
|
+
var version$5 = "1.4.45";
|
|
32899
32899
|
var license = "MIT";
|
|
32900
32900
|
var description = "SDK for the Socket API client";
|
|
32901
32901
|
var author = {
|
|
@@ -32978,32 +32978,32 @@ var scripts = {
|
|
|
32978
32978
|
"update:deps": "npx --yes npm-check-updates"
|
|
32979
32979
|
};
|
|
32980
32980
|
var dependencies = {
|
|
32981
|
-
"@socketsecurity/registry": "1.0.
|
|
32981
|
+
"@socketsecurity/registry": "1.0.208"
|
|
32982
32982
|
};
|
|
32983
32983
|
var devDependencies = {
|
|
32984
32984
|
"@biomejs/biome": "1.9.4",
|
|
32985
32985
|
"@dotenvx/dotenvx": "1.44.2",
|
|
32986
|
-
"@eslint/compat": "1.
|
|
32986
|
+
"@eslint/compat": "1.3.0",
|
|
32987
32987
|
"@eslint/js": "9.28.0",
|
|
32988
|
-
"@types/node": "24.0.
|
|
32988
|
+
"@types/node": "24.0.1",
|
|
32989
32989
|
"@typescript-eslint/parser": "8.34.0",
|
|
32990
32990
|
"@vitest/coverage-v8": "3.2.3",
|
|
32991
32991
|
"del-cli": "6.0.0",
|
|
32992
32992
|
eslint: "9.28.0",
|
|
32993
32993
|
"eslint-import-resolver-typescript": "4.4.3",
|
|
32994
|
-
"eslint-plugin-import-x": "4.15.
|
|
32994
|
+
"eslint-plugin-import-x": "4.15.2",
|
|
32995
32995
|
"eslint-plugin-jsdoc": "50.8.0",
|
|
32996
32996
|
"eslint-plugin-n": "17.19.0",
|
|
32997
32997
|
"eslint-plugin-sort-destructure-keys": "2.0.0",
|
|
32998
32998
|
"eslint-plugin-unicorn": "56.0.1",
|
|
32999
32999
|
globals: "16.2.0",
|
|
33000
33000
|
husky: "9.1.7",
|
|
33001
|
-
knip: "5.
|
|
33001
|
+
knip: "5.61.0",
|
|
33002
33002
|
"lint-staged": "16.1.0",
|
|
33003
33003
|
nock: "14.0.5",
|
|
33004
33004
|
"npm-run-all2": "8.0.4",
|
|
33005
33005
|
"openapi-typescript": "6.7.6",
|
|
33006
|
-
oxlint: "1.
|
|
33006
|
+
oxlint: "1.1.0",
|
|
33007
33007
|
"type-coverage": "2.29.7",
|
|
33008
33008
|
typescript: "~5.8.3",
|
|
33009
33009
|
"typescript-eslint": "8.34.0",
|
|
@@ -33338,9 +33338,6 @@ function requireDist$e () {
|
|
|
33338
33338
|
class SocketSdk {
|
|
33339
33339
|
#baseUrl;
|
|
33340
33340
|
#reqOptions;
|
|
33341
|
-
/**
|
|
33342
|
-
* @throws {SocketSdkAuthError}
|
|
33343
|
-
*/
|
|
33344
33341
|
constructor(apiToken, options) {
|
|
33345
33342
|
const { agent: agentOrObj, baseUrl = 'https://api.socket.dev/v0/', userAgent } = { __proto__: null, ...options };
|
|
33346
33343
|
const agentKeys = agentOrObj ? Object.keys(agentOrObj) : [];
|
|
@@ -33371,7 +33368,17 @@ function requireDist$e () {
|
|
|
33371
33368
|
let res;
|
|
33372
33369
|
try {
|
|
33373
33370
|
res = await (0, promises_1.pRetry)(() => this.#createBatchPurlRequest(queryParams, componentsObj), {
|
|
33374
|
-
retries: 4
|
|
33371
|
+
retries: 4,
|
|
33372
|
+
onRetryRethrow: true,
|
|
33373
|
+
onRetry(_attempt, error) {
|
|
33374
|
+
if (!(error instanceof ResponseError)) {
|
|
33375
|
+
return;
|
|
33376
|
+
}
|
|
33377
|
+
const { statusCode } = error.response;
|
|
33378
|
+
if (statusCode === 401 || statusCode === 403) {
|
|
33379
|
+
throw error;
|
|
33380
|
+
}
|
|
33381
|
+
}
|
|
33375
33382
|
});
|
|
33376
33383
|
}
|
|
33377
33384
|
catch (e) {
|
|
@@ -33392,7 +33399,7 @@ function requireDist$e () {
|
|
|
33392
33399
|
cause: error
|
|
33393
33400
|
});
|
|
33394
33401
|
}
|
|
33395
|
-
const statusCode = error.response
|
|
33402
|
+
const { statusCode } = error.response;
|
|
33396
33403
|
if (statusCode >= 500) {
|
|
33397
33404
|
throw new Error(`Socket API server error (${statusCode})`, {
|
|
33398
33405
|
cause: error
|
|
@@ -33449,7 +33456,7 @@ function requireDist$e () {
|
|
|
33449
33456
|
return this.#handleApiSuccess(results);
|
|
33450
33457
|
}
|
|
33451
33458
|
async *batchPackageStream(queryParams, componentsObj, options) {
|
|
33452
|
-
const { chunkSize =
|
|
33459
|
+
const { chunkSize = 500, concurrencyLimit = 10 } = {
|
|
33453
33460
|
__proto__: null,
|
|
33454
33461
|
...options
|
|
33455
33462
|
};
|
|
@@ -148126,6 +148133,7 @@ function requireReify() {
|
|
|
148126
148133
|
time
|
|
148127
148134
|
} = requireLib$B();
|
|
148128
148135
|
const rpj = requireLib$x();
|
|
148136
|
+
const hgi = requireLib$D();
|
|
148129
148137
|
const {
|
|
148130
148138
|
dirname,
|
|
148131
148139
|
resolve,
|
|
@@ -148980,7 +148988,7 @@ function requireReify() {
|
|
|
148980
148988
|
// Shrinkwrap and Node classes carefully, so for now, just treat
|
|
148981
148989
|
// the default reg as the magical animal that it has been.
|
|
148982
148990
|
try {
|
|
148983
|
-
const resolvedURL =
|
|
148991
|
+
const resolvedURL = hgi.parseUrl(resolved);
|
|
148984
148992
|
if (this.options.replaceRegistryHost === resolvedURL.hostname || this.options.replaceRegistryHost === 'always') {
|
|
148985
148993
|
const registryURL = new URL(this.registry);
|
|
148986
148994
|
|
|
@@ -164990,5 +164998,5 @@ exports.terminalLinkExports = terminalLinkExports;
|
|
|
164990
164998
|
exports.updater = updater$1;
|
|
164991
164999
|
exports.yargsParser = yargsParser;
|
|
164992
165000
|
exports.yoctocolorsCjsExports = yoctocolorsCjsExports;
|
|
164993
|
-
//# debugId=
|
|
165001
|
+
//# debugId=2e114319-515b-421c-9aa6-21e4aadf9b6a
|
|
164994
165002
|
//# sourceMappingURL=vendor.js.map
|