@socketsecurity/cli-with-sentry 1.1.143 → 1.1.144
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/CHANGELOG.md +5 -0
- package/dist/cli.js +6 -21
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +3 -3
- package/dist/constants.js.map +1 -1
- package/dist/manifest-scripts/maven-extension/coana-maven-extension.jar +0 -0
- package/dist/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/types/commands/scan/cmd-scan-create.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-reach.d.mts.map +1 -1
- package/dist/types/commands/scan/reachability-flags.d.mts.map +1 -1
- package/dist/types/utils/ecosystem.d.mts +7 -0
- package/dist/types/utils/ecosystem.d.mts.map +1 -1
- package/dist/utils.js +23 -1
- package/dist/utils.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cmd-scan-create.d.mts","sourceRoot":"","sources":["../../../../src/commands/scan/cmd-scan-create.mts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cmd-scan-create.d.mts","sourceRoot":"","sources":["../../../../src/commands/scan/cmd-scan-create.mts"],"names":[],"mappings":"AAwCA,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,uCAAuC,CAAA;AAE9C,eAAO,MAAM,QAAQ,WAAW,CAAA;AAmHhC,eAAO,MAAM,aAAa;;;;CAIzB,CAAA;AAED,iBAAe,GAAG,CAChB,IAAI,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,EAClC,UAAU,EAAE,UAAU,EACtB,EAAE,UAAU,EAAE,EAAE,iBAAiB,GAChC,OAAO,CAAC,IAAI,CAAC,CAuef"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cmd-scan-reach.d.mts","sourceRoot":"","sources":["../../../../src/commands/scan/cmd-scan-reach.mts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cmd-scan-reach.d.mts","sourceRoot":"","sources":["../../../../src/commands/scan/cmd-scan-reach.mts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,uCAAuC,CAAA;AAE9C,eAAO,MAAM,QAAQ,UAAU,CAAA;AA6B/B,eAAO,MAAM,YAAY;;;;CAIxB,CAAA;AAED,iBAAe,GAAG,CAChB,IAAI,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,EAClC,UAAU,EAAE,UAAU,EACtB,EAAE,UAAU,EAAE,EAAE,iBAAiB,GAChC,OAAO,CAAC,IAAI,CAAC,CAgOf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reachability-flags.d.mts","sourceRoot":"","sources":["../../../../src/commands/scan/reachability-flags.mts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reachability-flags.d.mts","sourceRoot":"","sources":["../../../../src/commands/scan/reachability-flags.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAEhD,eAAO,MAAM,iBAAiB,EAAE,SAuH/B,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,SAO9B,CAAA"}
|
|
@@ -16,8 +16,15 @@ type ExtraInAllEcosystems = Exclude<AllEcosystemsUnion, PURL_Type>;
|
|
|
16
16
|
export type _Check_ALL_ECOSYSTEMS_has_all_purl_types = ExpectNever<MissingInAllEcosystems>;
|
|
17
17
|
export type _Check_ALL_ECOSYSTEMS_has_no_extras = ExpectNever<ExtraInAllEcosystems>;
|
|
18
18
|
export declare const ALL_SUPPORTED_ECOSYSTEMS: Set<string>;
|
|
19
|
+
// Purl types accepted by Coana's reachability `--purl-types` gate
|
|
20
|
+
// (@coana-tech/cli `getAdvisoryEcosystemFromPurlType`), narrower than
|
|
21
|
+
// ALL_ECOSYSTEMS. Values outside this set are rejected by the engine at scan
|
|
22
|
+
// time, so we validate up front. Keep in sync when bumping @coana-tech/cli.
|
|
23
|
+
export declare const REACHABILITY_SUPPORTED_ECOSYSTEMS: readonly ["cargo", "composer", "gem", "golang", "maven", "npm", "nuget", "pypi"];
|
|
19
24
|
export declare function getEcosystemChoicesForMeow(): string[];
|
|
25
|
+
export declare function getReachabilityEcosystemChoices(): string[];
|
|
20
26
|
export declare function isValidEcosystem(value: string): value is PURL_Type;
|
|
21
27
|
export declare function parseEcosystems(value: string | string[] | undefined): PURL_Type[];
|
|
28
|
+
export declare function parseReachEcosystems(raw: readonly string[]): PURL_Type[];
|
|
22
29
|
export {};
|
|
23
30
|
//# sourceMappingURL=ecosystem.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecosystem.d.mts","sourceRoot":"","sources":["../../../src/utils/ecosystem.mts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ecosystem.d.mts","sourceRoot":"","sources":["../../../src/utils/ecosystem.mts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAE/D,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,iBAAiB,CAAC,CAAA;AAEhE,KAAK,WAAW,CAAC,CAAC,SAAS,KAAK,IAAI,CAAC,CAAA;AAErC,gEAAgE;AAChE,6DAA6D;AAC7D,sEAAsE;AACtE,KAAK,sBAAsB,GAAG,OAAO,CAAC,eAAe,EAAE,SAAS,CAAC,CAAA;AAEjE,0DAA0D;AAC1D,0CAA0C;AAC1C,MAAM,MAAM,oCAAoC,GAC9C,WAAW,CAAC,sBAAsB,CAAC,CAAA;AAErC,eAAO,MAAM,cAAc,mTAiCc,CAAA;AAEzC,KAAK,kBAAkB,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAA;AACzD,KAAK,sBAAsB,GAAG,OAAO,CAAC,SAAS,EAAE,kBAAkB,CAAC,CAAA;AACpE,KAAK,oBAAoB,GAAG,OAAO,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAA;AAElE,MAAM,MAAM,wCAAwC,GAClD,WAAW,CAAC,sBAAsB,CAAC,CAAA;AACrC,MAAM,MAAM,mCAAmC,GAC7C,WAAW,CAAC,oBAAoB,CAAC,CAAA;AAEnC,eAAO,MAAM,wBAAwB,aAAkC,CAAA;AAEvE,kEAAkE;AAClE,sEAAsE;AACtE,6EAA6E;AAC7E,4EAA4E;AAC5E,eAAO,MAAM,iCAAiC,kFASL,CAAA;AAEzC,wBAAgB,0BAA0B,IAAI,MAAM,EAAE,CAErD;AAED,wBAAgB,+BAA+B,IAAI,MAAM,EAAE,CAE1D;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAElE;AAED,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,GACnC,SAAS,EAAE,CAUb;AAED,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,EAAE,CAYxE"}
|
package/dist/utils.js
CHANGED
|
@@ -6434,9 +6434,29 @@ function isPnpmLockfileScanCommand(command) {
|
|
|
6434
6434
|
|
|
6435
6435
|
const ALL_ECOSYSTEMS = ['alpm', 'apk', 'bitbucket', 'cargo', 'chrome', 'cocoapods', 'composer', 'conan', 'conda', 'cran', 'deb', 'docker', 'gem', 'generic', 'github', 'golang', 'hackage', 'hex', 'huggingface', 'maven', 'mlflow', constants.NPM, 'nuget', 'oci', 'pub', 'pypi', 'qpkg', 'rpm', 'swift', 'swid', 'unknown', 'vscode'];
|
|
6436
6436
|
new Set(ALL_ECOSYSTEMS);
|
|
6437
|
+
|
|
6438
|
+
// Purl types accepted by Coana's reachability `--purl-types` gate
|
|
6439
|
+
// (@coana-tech/cli `getAdvisoryEcosystemFromPurlType`), narrower than
|
|
6440
|
+
// ALL_ECOSYSTEMS. Values outside this set are rejected by the engine at scan
|
|
6441
|
+
// time, so we validate up front. Keep in sync when bumping @coana-tech/cli.
|
|
6442
|
+
const REACHABILITY_SUPPORTED_ECOSYSTEMS = ['cargo', 'composer', 'gem', 'golang', 'maven', constants.NPM, 'nuget', 'pypi'];
|
|
6437
6443
|
function getEcosystemChoicesForMeow() {
|
|
6438
6444
|
return [...ALL_ECOSYSTEMS];
|
|
6439
6445
|
}
|
|
6446
|
+
function getReachabilityEcosystemChoices() {
|
|
6447
|
+
return [...REACHABILITY_SUPPORTED_ECOSYSTEMS];
|
|
6448
|
+
}
|
|
6449
|
+
function parseReachEcosystems(raw) {
|
|
6450
|
+
const choices = getReachabilityEcosystemChoices();
|
|
6451
|
+
const result = [];
|
|
6452
|
+
for (const ecosystem of raw) {
|
|
6453
|
+
if (!choices.includes(ecosystem)) {
|
|
6454
|
+
throw new InputError(`Invalid ecosystem: "${ecosystem}". Valid values are: ${arrays.joinAnd(choices)}`);
|
|
6455
|
+
}
|
|
6456
|
+
result.push(ecosystem);
|
|
6457
|
+
}
|
|
6458
|
+
return result;
|
|
6459
|
+
}
|
|
6440
6460
|
|
|
6441
6461
|
/**
|
|
6442
6462
|
* Package manager identifiers accepted by Coana's --package-managers filter.
|
|
@@ -8374,6 +8394,7 @@ exports.getOrgSlugs = getOrgSlugs;
|
|
|
8374
8394
|
exports.getOutputKind = getOutputKind;
|
|
8375
8395
|
exports.getPackageFilesForScan = getPackageFilesForScan;
|
|
8376
8396
|
exports.getPublicApiToken = getPublicApiToken;
|
|
8397
|
+
exports.getReachabilityEcosystemChoices = getReachabilityEcosystemChoices;
|
|
8377
8398
|
exports.getRepoInfo = getRepoInfo;
|
|
8378
8399
|
exports.getRepoName = getRepoName;
|
|
8379
8400
|
exports.getRepoOwner = getRepoOwner;
|
|
@@ -8420,6 +8441,7 @@ exports.meowOrExit = meowOrExit;
|
|
|
8420
8441
|
exports.meowWithSubcommands = meowWithSubcommands;
|
|
8421
8442
|
exports.msAtHome = msAtHome;
|
|
8422
8443
|
exports.parsePnpmLockfile = parsePnpmLockfile;
|
|
8444
|
+
exports.parseReachEcosystems = parseReachEcosystems;
|
|
8423
8445
|
exports.queryApiSafeJson = queryApiSafeJson;
|
|
8424
8446
|
exports.queryApiSafeText = queryApiSafeText;
|
|
8425
8447
|
exports.readOrDefaultSocketJson = readOrDefaultSocketJson;
|
|
@@ -8454,5 +8476,5 @@ exports.updateConfigValue = updateConfigValue;
|
|
|
8454
8476
|
exports.walkNestedMap = walkNestedMap;
|
|
8455
8477
|
exports.webLink = webLink;
|
|
8456
8478
|
exports.writeSocketJson = writeSocketJson;
|
|
8457
|
-
//# debugId=
|
|
8479
|
+
//# debugId=bf048db6-ceb2-4c98-8a9a-6ee5233d9cc5
|
|
8458
8480
|
//# sourceMappingURL=utils.js.map
|