Socket
Socket
Sign inDemoInstall

@snyk/java-call-graph-builder

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snyk/java-call-graph-builder - npm Package Compare versions

Comparing version 1.21.0 to 1.22.0

4

dist/gradle-wrapper.d.ts
import 'source-map-support/register';
export declare function getGradleCommandArgs(targetPath: string, initScript?: string): string[];
export declare function getClassPathFromGradle(targetPath: string, gradlePath: string, initScript?: string): Promise<string>;
export declare function getGradleCommandArgs(targetPath: string, initScript?: string, confAttrs?: string): string[];
export declare function getClassPathFromGradle(targetPath: string, gradlePath: string, initScript?: string, confAttrs?: string): Promise<string>;

@@ -8,5 +8,5 @@ "use strict";

const path = require("path");
const os_1 = require("os");
const errors_1 = require("./errors");
const os_1 = require("os");
function getGradleCommandArgs(targetPath, initScript) {
function getGradleCommandArgs(targetPath, initScript, confAttrs) {
const gradleArgs = [

@@ -24,8 +24,13 @@ 'printClasspath',

}
if (confAttrs) {
const isWin = /^win/.test(os_1.platform());
const quot = isWin ? '"' : "'";
gradleArgs.push(`-PconfAttrs=${quot}${confAttrs}${quot}`);
}
return gradleArgs;
}
exports.getGradleCommandArgs = getGradleCommandArgs;
function getClassPathFromGradle(targetPath, gradlePath, initScript) {
function getClassPathFromGradle(targetPath, gradlePath, initScript, confAttrs) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
const args = getGradleCommandArgs(targetPath, initScript);
const args = getGradleCommandArgs(targetPath, initScript, confAttrs);
try {

@@ -32,0 +37,0 @@ const output = yield sub_process_1.execute(gradlePath, args, { cwd: targetPath });

@@ -6,4 +6,4 @@ import 'source-map-support/register';

export declare function getCallGraphMvn(targetPath: string, timeout?: number, customMavenArgs?: string[]): Promise<Graph>;
export declare function getCallGraphGradle(targetPath: string, gradlePath?: string, initScript?: string, timeout?: number): Promise<Graph>;
export declare function getCallGraphGradle(targetPath: string, gradlePath?: string, initScript?: string, confAttrs?: string, timeout?: number): Promise<Graph>;
export declare function runtimeMetrics(): Metrics;
export declare function findBuildDirs(targetPath: string, packageManager: 'mvn' | 'gradle'): Promise<string[]>;

@@ -49,6 +49,6 @@ "use strict";

exports.getCallGraphMvn = getCallGraphMvn;
function getCallGraphGradle(targetPath, gradlePath = 'gradle', initScript, timeout) {
function getCallGraphGradle(targetPath, gradlePath = 'gradle', initScript, confAttrs, timeout) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
const [classPath, targets] = yield Promise.all([
metrics_1.timeIt('getGradleClassPath', () => gradle_wrapper_1.getClassPathFromGradle(targetPath, gradlePath, initScript)),
metrics_1.timeIt('getGradleClassPath', () => gradle_wrapper_1.getClassPathFromGradle(targetPath, gradlePath, initScript, confAttrs)),
metrics_1.timeIt('getEntrypoints', () => findBuildDirs(targetPath, 'gradle')),

@@ -55,0 +55,0 @@ ]);

@@ -72,3 +72,3 @@ {

},
"version": "1.21.0"
"version": "1.22.0"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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