@socketsecurity/cli-with-sentry 1.0.94 → 1.0.96
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/README.md +2 -1
- package/dist/cli.js +133 -102
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +7 -3
- package/dist/constants.js.map +1 -1
- package/dist/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/types/commands/analytics/fetch-org-analytics.d.mts +1 -1
- package/dist/types/commands/analytics/fetch-org-analytics.d.mts.map +1 -1
- package/dist/types/commands/analytics/fetch-repo-analytics.d.mts +1 -1
- package/dist/types/commands/analytics/fetch-repo-analytics.d.mts.map +1 -1
- package/dist/types/commands/audit-log/fetch-audit-log.d.mts +1 -1
- package/dist/types/commands/audit-log/fetch-audit-log.d.mts.map +1 -1
- package/dist/types/commands/config/discover-config-value.d.mts.map +1 -1
- package/dist/types/commands/fix/cmd-fix.d.mts.map +1 -1
- package/dist/types/commands/login/attempt-login.d.mts.map +1 -1
- package/dist/types/commands/organization/fetch-dependencies.d.mts +1 -1
- package/dist/types/commands/organization/fetch-dependencies.d.mts.map +1 -1
- package/dist/types/commands/organization/fetch-license-policy.d.mts +1 -1
- package/dist/types/commands/organization/fetch-license-policy.d.mts.map +1 -1
- package/dist/types/commands/organization/fetch-organization-list.d.mts +15 -3
- package/dist/types/commands/organization/fetch-organization-list.d.mts.map +1 -1
- package/dist/types/commands/organization/fetch-quota.d.mts +1 -1
- package/dist/types/commands/organization/fetch-quota.d.mts.map +1 -1
- package/dist/types/commands/organization/fetch-security-policy.d.mts +1 -1
- package/dist/types/commands/organization/fetch-security-policy.d.mts.map +1 -1
- package/dist/types/commands/organization/output-organization-list.d.mts +3 -3
- package/dist/types/commands/organization/output-organization-list.d.mts.map +1 -1
- package/dist/types/commands/package/fetch-purls-shallow-score.d.mts +1 -1
- package/dist/types/commands/package/fetch-purls-shallow-score.d.mts.map +1 -1
- package/dist/types/commands/repository/fetch-create-repo.d.mts +1 -1
- package/dist/types/commands/repository/fetch-create-repo.d.mts.map +1 -1
- package/dist/types/commands/repository/fetch-delete-repo.d.mts +1 -1
- package/dist/types/commands/repository/fetch-delete-repo.d.mts.map +1 -1
- package/dist/types/commands/repository/fetch-list-all-repos.d.mts +1 -1
- package/dist/types/commands/repository/fetch-list-all-repos.d.mts.map +1 -1
- package/dist/types/commands/repository/fetch-list-repos.d.mts +1 -1
- package/dist/types/commands/repository/fetch-list-repos.d.mts.map +1 -1
- package/dist/types/commands/repository/fetch-update-repo.d.mts +1 -1
- package/dist/types/commands/repository/fetch-update-repo.d.mts.map +1 -1
- package/dist/types/commands/repository/fetch-view-repo.d.mts +1 -1
- package/dist/types/commands/repository/fetch-view-repo.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-reach.d.mts.map +1 -1
- package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts +1 -1
- package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/fetch-delete-org-full-scan.d.mts +1 -1
- package/dist/types/commands/scan/fetch-delete-org-full-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/fetch-list-scans.d.mts +1 -1
- package/dist/types/commands/scan/fetch-list-scans.d.mts.map +1 -1
- package/dist/types/commands/scan/fetch-report-data.d.mts +1 -1
- package/dist/types/commands/scan/fetch-report-data.d.mts.map +1 -1
- package/dist/types/commands/scan/fetch-scan-metadata.d.mts +1 -1
- package/dist/types/commands/scan/fetch-scan-metadata.d.mts.map +1 -1
- package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts +1 -1
- package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts.map +1 -1
- package/dist/types/commands/scan/handle-create-new-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/perform-reachability-analysis.d.mts.map +1 -1
- package/dist/types/commands/scan/stream-scan.d.mts +1 -1
- package/dist/types/commands/scan/stream-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/suggest-repo-slug.d.mts +1 -1
- package/dist/types/commands/scan/suggest-repo-slug.d.mts.map +1 -1
- package/dist/types/constants.d.mts +1 -0
- package/dist/types/constants.d.mts.map +1 -1
- package/dist/types/utils/meow-with-subcommands.d.mts.map +1 -1
- package/dist/types/utils/organization.d.mts +5 -0
- package/dist/types/utils/organization.d.mts.map +1 -0
- package/dist/types/utils/sdk.d.mts.map +1 -1
- package/dist/types/utils/serialize-result-json.d.mts.map +1 -1
- package/dist/utils.js +55 -29
- package/dist/utils.js.map +1 -1
- package/dist/vendor.js +12 -4
- package/external/@coana-tech/cli/README.md +5 -0
- package/external/@coana-tech/cli/cli.mjs +2 -2
- package/external/@coana-tech/cli/repos/coana-tech/alucard/alucard.jar +0 -0
- package/external/@coana-tech/cli/repos/coana-tech/goana/bin/goana-darwin-amd64.gz +0 -0
- package/external/@coana-tech/cli/repos/coana-tech/goana/bin/goana-darwin-arm64.gz +0 -0
- package/external/@coana-tech/cli/repos/coana-tech/goana/bin/goana-linux-amd64.gz +0 -0
- package/external/@coana-tech/cli/repos/coana-tech/goana/bin/goana-linux-arm64.gz +0 -0
- package/external/@socketsecurity/registry/README.md +9 -0
- package/external/@socketsecurity/registry/lib/env.js +11 -0
- package/external/blessed/README.md +2421 -0
- package/package.json +7 -7
package/dist/vendor.js
CHANGED
|
@@ -27442,7 +27442,7 @@ var isInteractiveExports = /*@__PURE__*/ requireIsInteractive();
|
|
|
27442
27442
|
var dist$e = {};
|
|
27443
27443
|
|
|
27444
27444
|
var name$2 = "@socketsecurity/sdk";
|
|
27445
|
-
var version$5 = "1.4.
|
|
27445
|
+
var version$5 = "1.4.77";
|
|
27446
27446
|
var license = "MIT";
|
|
27447
27447
|
var description = "SDK for the Socket API client";
|
|
27448
27448
|
var author = {
|
|
@@ -27834,6 +27834,7 @@ function requireDist$e () {
|
|
|
27834
27834
|
const cleanup = () => {
|
|
27835
27835
|
req.off('response', onResponse);
|
|
27836
27836
|
req.off('error', onError);
|
|
27837
|
+
req.off('timeout', onTimeout);
|
|
27837
27838
|
abort_signal_1.default?.removeEventListener('abort', onAbort);
|
|
27838
27839
|
};
|
|
27839
27840
|
const onAbort = () => {
|
|
@@ -27849,8 +27850,14 @@ function requireDist$e () {
|
|
|
27849
27850
|
cleanup();
|
|
27850
27851
|
resolve(res);
|
|
27851
27852
|
};
|
|
27853
|
+
const onTimeout = () => {
|
|
27854
|
+
cleanup();
|
|
27855
|
+
req.destroy();
|
|
27856
|
+
reject(new Error('Request timeout'));
|
|
27857
|
+
};
|
|
27852
27858
|
req.on('response', onResponse);
|
|
27853
27859
|
req.on('error', onError);
|
|
27860
|
+
req.on('timeout', onTimeout);
|
|
27854
27861
|
abort_signal_1.default?.addEventListener('abort', onAbort);
|
|
27855
27862
|
});
|
|
27856
27863
|
if (!isResponseOk(res)) {
|
|
@@ -27941,7 +27948,7 @@ function requireDist$e () {
|
|
|
27941
27948
|
#baseUrl;
|
|
27942
27949
|
#reqOptions;
|
|
27943
27950
|
constructor(apiToken, options) {
|
|
27944
|
-
const { agent: agentOrObj, baseUrl = 'https://api.socket.dev/v0/', userAgent } = { __proto__: null, ...options };
|
|
27951
|
+
const { agent: agentOrObj, baseUrl = 'https://api.socket.dev/v0/', timeout, userAgent } = { __proto__: null, ...options };
|
|
27945
27952
|
const agentKeys = agentOrObj ? Object.keys(agentOrObj) : [];
|
|
27946
27953
|
const agentAsGotOptions = agentOrObj;
|
|
27947
27954
|
const agent = (agentKeys.length && agentKeys.every(k => agentNames.has(k))
|
|
@@ -27956,7 +27963,8 @@ function requireDist$e () {
|
|
|
27956
27963
|
Authorization: `Basic ${btoa(`${apiToken}:`)}`,
|
|
27957
27964
|
'User-Agent': userAgent ?? DEFAULT_USER_AGENT
|
|
27958
27965
|
},
|
|
27959
|
-
signal: abort_signal_1.default
|
|
27966
|
+
signal: abort_signal_1.default,
|
|
27967
|
+
...(timeout ? { timeout } : {})
|
|
27960
27968
|
};
|
|
27961
27969
|
}
|
|
27962
27970
|
async #createBatchPurlRequest(componentsObj, queryParams) {
|
|
@@ -175269,5 +175277,5 @@ exports.terminalLinkExports = terminalLinkExports;
|
|
|
175269
175277
|
exports.updater = updater$1;
|
|
175270
175278
|
exports.yargsParser = yargsParser;
|
|
175271
175279
|
exports.yoctocolorsCjsExports = yoctocolorsCjsExports;
|
|
175272
|
-
//# debugId=
|
|
175280
|
+
//# debugId=afcfa85b-76f5-4a2c-b808-42d133fab1b9
|
|
175273
175281
|
//# sourceMappingURL=vendor.js.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
### Coana CLI
|
|
2
|
+
Coana is an open source vulnerability scanner that uses reachability analysis to identify the most critical vulnerabilities in open source packages.
|
|
3
|
+
This is the [Coana](https://coana.tech) CLI. You can find instructions at the Coana [docs](https://docs.coana.tech).
|
|
4
|
+
|
|
5
|
+
This Software is licensed only for use by customers who have purchased a valid subscription or license from Coana. Access and use of the Software are limited to paying customers.
|
|
@@ -210274,7 +210274,7 @@ async function fetchArtifactsFromSocket(rootWorkingDirectory, manifestsTarHash)
|
|
|
210274
210274
|
const base = basename7(file);
|
|
210275
210275
|
const workspaceDir = dirname8(file) || ".";
|
|
210276
210276
|
if (base === "pyproject.toml" || base === "setup.py" && await isSetupPySetuptools(file)) {
|
|
210277
|
-
const normalizedDir = workspaceDir === "." ? "." : workspaceDir
|
|
210277
|
+
const normalizedDir = workspaceDir === "." ? "." : workspaceDir;
|
|
210278
210278
|
if (!properPythonProjects.includes(normalizedDir)) {
|
|
210279
210279
|
properPythonProjects.push(normalizedDir);
|
|
210280
210280
|
}
|
|
@@ -225499,7 +225499,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
|
|
|
225499
225499
|
}
|
|
225500
225500
|
|
|
225501
225501
|
// dist/version.js
|
|
225502
|
-
var version2 = "14.11.
|
|
225502
|
+
var version2 = "14.11.18";
|
|
225503
225503
|
|
|
225504
225504
|
// dist/cli-core.js
|
|
225505
225505
|
var { mapValues, omit, partition, pick } = import_lodash15.default;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# @socketsecurity/registry
|
|
2
|
+
|
|
3
|
+
[](https://socket.dev/npm/package/@socketsecurity/registry)
|
|
4
|
+
[](https://github.com/SocketDev/socket-registry/actions/workflows/test.yml)
|
|
5
|
+
[](https://twitter.com/SocketSecurity)
|
|
6
|
+
|
|
7
|
+
> A support package for
|
|
8
|
+
> [`@socketregistry`](https://github.com/SocketDev/socket-registry) providing
|
|
9
|
+
> helper methods and metadata.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
+
const { isFinite: NumberIsFinite, parseInt: NumberParseInt } = Number
|
|
4
|
+
|
|
3
5
|
/*@__NO_SIDE_EFFECTS__*/
|
|
4
6
|
function envAsBoolean(value) {
|
|
5
7
|
return typeof value === 'string'
|
|
@@ -7,6 +9,14 @@ function envAsBoolean(value) {
|
|
|
7
9
|
: !!value
|
|
8
10
|
}
|
|
9
11
|
|
|
12
|
+
/*@__NO_SIDE_EFFECTS__*/
|
|
13
|
+
function envAsNumber(value) {
|
|
14
|
+
const numOrNaN = NumberParseInt(value, 10)
|
|
15
|
+
const numMayBeNegZero = NumberIsFinite(numOrNaN) ? numOrNaN : 0
|
|
16
|
+
// Ensure -0 is treated as 0.
|
|
17
|
+
return numMayBeNegZero || 0
|
|
18
|
+
}
|
|
19
|
+
|
|
10
20
|
/*@__NO_SIDE_EFFECTS__*/
|
|
11
21
|
function envAsString(value) {
|
|
12
22
|
if (typeof value === 'string') {
|
|
@@ -20,5 +30,6 @@ function envAsString(value) {
|
|
|
20
30
|
|
|
21
31
|
module.exports = {
|
|
22
32
|
envAsBoolean,
|
|
33
|
+
envAsNumber,
|
|
23
34
|
envAsString
|
|
24
35
|
}
|