@socketsecurity/cli-with-sentry 1.1.131 → 1.1.132
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 +7 -0
- package/dist/cli.js +1227 -144
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +4 -4
- package/dist/constants.js.map +1 -1
- package/dist/manifest-scripts/maven-extension/coana-maven-extension.jar +0 -0
- package/dist/manifest-scripts/socket-facts.init.gradle +479 -0
- package/dist/manifest-scripts/socket-facts.plugin.scala +444 -0
- package/dist/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts.map +1 -1
- package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts.map +1 -1
- package/dist/types/commands/manifest/cmd-manifest-maven.d.mts.map +1 -1
- package/dist/types/commands/manifest/convert-gradle-to-facts.d.mts +5 -6
- package/dist/types/commands/manifest/convert-gradle-to-facts.d.mts.map +1 -1
- package/dist/types/commands/manifest/convert-maven-to-facts.d.mts +5 -6
- package/dist/types/commands/manifest/convert-maven-to-facts.d.mts.map +1 -1
- package/dist/types/commands/manifest/convert-sbt-to-facts.d.mts +7 -8
- package/dist/types/commands/manifest/convert-sbt-to-facts.d.mts.map +1 -1
- package/dist/types/commands/manifest/generate_auto_manifest.d.mts +8 -1
- package/dist/types/commands/manifest/generate_auto_manifest.d.mts.map +1 -1
- package/dist/types/commands/manifest/run-manifest-facts.d.mts +20 -0
- package/dist/types/commands/manifest/run-manifest-facts.d.mts.map +1 -0
- package/dist/types/commands/manifest/scripts/assemble.d.mts +16 -0
- package/dist/types/commands/manifest/scripts/assemble.d.mts.map +1 -0
- package/dist/types/commands/manifest/scripts/build-tool.d.mts +3 -0
- package/dist/types/commands/manifest/scripts/build-tool.d.mts.map +1 -0
- package/dist/types/commands/manifest/scripts/facts.d.mts +46 -0
- package/dist/types/commands/manifest/scripts/facts.d.mts.map +1 -0
- package/dist/types/commands/manifest/scripts/records.d.mts +64 -0
- package/dist/types/commands/manifest/scripts/records.d.mts.map +1 -0
- package/dist/types/commands/manifest/scripts/resolution-report-gradle.d.mts +10 -0
- package/dist/types/commands/manifest/scripts/resolution-report-gradle.d.mts.map +1 -0
- package/dist/types/commands/manifest/scripts/resolution-report-ivy.d.mts +7 -0
- package/dist/types/commands/manifest/scripts/resolution-report-ivy.d.mts.map +1 -0
- package/dist/types/commands/manifest/scripts/resolution-report-maven.d.mts +8 -0
- package/dist/types/commands/manifest/scripts/resolution-report-maven.d.mts.map +1 -0
- package/dist/types/commands/manifest/scripts/resolution-report-render.d.mts +41 -0
- package/dist/types/commands/manifest/scripts/resolution-report-render.d.mts.map +1 -0
- package/dist/types/commands/manifest/scripts/resolution-report.d.mts +12 -0
- package/dist/types/commands/manifest/scripts/resolution-report.d.mts.map +1 -0
- package/dist/types/commands/manifest/scripts/run.d.mts +28 -0
- package/dist/types/commands/manifest/scripts/run.d.mts.map +1 -0
- package/dist/types/commands/manifest/scripts/sidecar.d.mts +27 -0
- package/dist/types/commands/manifest/scripts/sidecar.d.mts.map +1 -0
- package/dist/types/commands/scan/cmd-scan-create.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 +4 -2
- package/dist/types/commands/scan/perform-reachability-analysis.d.mts.map +1 -1
- package/dist/utils.js +1 -78
- package/dist/utils.js.map +1 -1
- package/package.json +3 -2
- package/dist/types/commands/manifest/coana-manifest-facts.d.mts +0 -27
- package/dist/types/commands/manifest/coana-manifest-facts.d.mts.map +0 -1
- package/dist/types/utils/auto-manifest-config.d.mts +0 -55
- package/dist/types/utils/auto-manifest-config.d.mts.map +0 -1
package/dist/utils.js
CHANGED
|
@@ -4799,81 +4799,6 @@ function* walkNestedMap(map, keys = []) {
|
|
|
4799
4799
|
}
|
|
4800
4800
|
}
|
|
4801
4801
|
|
|
4802
|
-
// Per-ecosystem build-tool options handed off to the Coana CLI — used both when
|
|
4803
|
-
// generating manifests (`coana manifest <ecosystem>`) and, in socket mode, for
|
|
4804
|
-
// reach-time dependency resolution (`coana run`). This mirrors the Coana-side
|
|
4805
|
-
// `--auto-manifest-config` shape: socket-cli owns mapping `socket.json` onto it,
|
|
4806
|
-
// so Coana stays uncoupled from `socket.json`'s schema. Keeping the
|
|
4807
|
-
// per-ecosystem options namespaced (rather than as flat CLI flags) avoids the
|
|
4808
|
-
// ambiguity of a bare `--bin`/`--include-configs` when a repo has more than one
|
|
4809
|
-
// build tool.
|
|
4810
|
-
|
|
4811
|
-
// The Coana hand-off config. `failOnBuildToolError` is run-wide (top level)
|
|
4812
|
-
// because `--auto-manifest` is a single CLI mode, not a per-package-manager
|
|
4813
|
-
// setting. The per-ecosystem entries are present only for ecosystems configured
|
|
4814
|
-
// (and not disabled) in `socket.json`; absent ecosystems fall to Coana's own
|
|
4815
|
-
// defaults.
|
|
4816
|
-
|
|
4817
|
-
// Splits a `socket.json` opts string (`gradleOpts`/`sbtOpts`) into argv, matching
|
|
4818
|
-
// how the standalone `socket manifest` path splits it. Returns undefined when
|
|
4819
|
-
// there's nothing to pass so the field is omitted from the config.
|
|
4820
|
-
function parseOpts(value) {
|
|
4821
|
-
if (!value) {
|
|
4822
|
-
return undefined;
|
|
4823
|
-
}
|
|
4824
|
-
const parts = value.split(' ').map(s => s.trim()).filter(Boolean);
|
|
4825
|
-
return parts.length ? parts : undefined;
|
|
4826
|
-
}
|
|
4827
|
-
|
|
4828
|
-
// Maps `socket.json`'s `defaults.manifest.<ecosystem>` build-tool options onto
|
|
4829
|
-
// the Coana hand-off config.
|
|
4830
|
-
//
|
|
4831
|
-
// `autoManifest` reflects whether the run is `--auto-manifest` (fail-closed:
|
|
4832
|
-
// `failOnBuildToolError=true`) vs plain `--reach` (permissive:
|
|
4833
|
-
// `failOnBuildToolError` left unset so Coana's default applies). Per-ecosystem
|
|
4834
|
-
// options are forwarded verbatim from `socket.json`; disabled ecosystems are
|
|
4835
|
-
// omitted so they fall back to Coana's defaults.
|
|
4836
|
-
function buildAutoManifestConfig(sockJson, {
|
|
4837
|
-
autoManifest
|
|
4838
|
-
}) {
|
|
4839
|
-
const manifest = sockJson.defaults?.manifest;
|
|
4840
|
-
const config = {};
|
|
4841
|
-
|
|
4842
|
-
// `--auto-manifest` expects every build-tool command to succeed, so a
|
|
4843
|
-
// build-tool step failure should be fatal rather than tolerated.
|
|
4844
|
-
if (autoManifest) {
|
|
4845
|
-
config.failOnBuildToolError = true;
|
|
4846
|
-
}
|
|
4847
|
-
const gradle = manifest?.gradle;
|
|
4848
|
-
if (gradle && !gradle.disabled) {
|
|
4849
|
-
config.gradle = {
|
|
4850
|
-
bin: gradle.bin,
|
|
4851
|
-
excludeConfigs: gradle.excludeConfigs,
|
|
4852
|
-
ignoreUnresolved: gradle.ignoreUnresolved,
|
|
4853
|
-
includeConfigs: gradle.includeConfigs,
|
|
4854
|
-
opts: parseOpts(gradle.gradleOpts)
|
|
4855
|
-
};
|
|
4856
|
-
}
|
|
4857
|
-
const sbt = manifest?.sbt;
|
|
4858
|
-
if (sbt && !sbt.disabled) {
|
|
4859
|
-
config.sbt = {
|
|
4860
|
-
bin: sbt.bin,
|
|
4861
|
-
excludeConfigs: sbt.excludeConfigs,
|
|
4862
|
-
ignoreUnresolved: sbt.ignoreUnresolved,
|
|
4863
|
-
includeConfigs: sbt.includeConfigs,
|
|
4864
|
-
opts: parseOpts(sbt.sbtOpts)
|
|
4865
|
-
};
|
|
4866
|
-
}
|
|
4867
|
-
return config;
|
|
4868
|
-
}
|
|
4869
|
-
|
|
4870
|
-
// True when there's nothing to hand to Coana: no per-ecosystem options and the
|
|
4871
|
-
// run mode is left at Coana's permissive default. When true, the
|
|
4872
|
-
// `--auto-manifest-config` option should be omitted entirely.
|
|
4873
|
-
function isAutoManifestConfigEmpty(config) {
|
|
4874
|
-
return !config.gradle && !config.sbt && config.failOnBuildToolError === undefined;
|
|
4875
|
-
}
|
|
4876
|
-
|
|
4877
4802
|
/**
|
|
4878
4803
|
* Coana integration utilities for Socket CLI.
|
|
4879
4804
|
* Manages reachability analysis via Coana tech CLI.
|
|
@@ -8371,7 +8296,6 @@ exports.IGNORED_DIRS = IGNORED_DIRS;
|
|
|
8371
8296
|
exports.InputError = InputError;
|
|
8372
8297
|
exports.RangeStyles = RangeStyles;
|
|
8373
8298
|
exports.apiFetch = apiFetch;
|
|
8374
|
-
exports.buildAutoManifestConfig = buildAutoManifestConfig;
|
|
8375
8299
|
exports.cacheFetch = cacheFetch;
|
|
8376
8300
|
exports.captureException = captureException;
|
|
8377
8301
|
exports.checkCommandInput = checkCommandInput;
|
|
@@ -8451,7 +8375,6 @@ exports.installNpxLinks = installNpxLinks;
|
|
|
8451
8375
|
exports.installPnpmLinks = installPnpmLinks;
|
|
8452
8376
|
exports.installYarnLinks = installYarnLinks;
|
|
8453
8377
|
exports.isAddCommand = isAddCommand;
|
|
8454
|
-
exports.isAutoManifestConfigEmpty = isAutoManifestConfigEmpty;
|
|
8455
8378
|
exports.isConfigFromFlag = isConfigFromFlag;
|
|
8456
8379
|
exports.isHelpFlag = isHelpFlag;
|
|
8457
8380
|
exports.isPnpmLockfileScanCommand = isPnpmLockfileScanCommand;
|
|
@@ -8504,5 +8427,5 @@ exports.updateConfigValue = updateConfigValue;
|
|
|
8504
8427
|
exports.walkNestedMap = walkNestedMap;
|
|
8505
8428
|
exports.webLink = webLink;
|
|
8506
8429
|
exports.writeSocketJson = writeSocketJson;
|
|
8507
|
-
//# debugId=
|
|
8430
|
+
//# debugId=496940b1-472c-4e66-9767-cae86a303667
|
|
8508
8431
|
//# sourceMappingURL=utils.js.map
|