Socket
Socket
Sign inDemoInstall

snyk-gradle-plugin

Package Overview
Dependencies
Maintainers
1
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snyk-gradle-plugin - npm Package Compare versions

Comparing version 3.23.2 to 3.24.0

dist/search.d.ts

3

dist/index.d.ts

@@ -6,2 +6,3 @@ import { DepGraph } from '@snyk/dep-graph';

import type { CoordinateMap, PomCoords, Sha1Map, SnykHttpClient } from './types';
export declare function debugLog(s: string): void;
export interface GradleInspectOptions {

@@ -38,3 +39,2 @@ 'configuration-matching'?: string;

declare function getVersionBuildInfo(gradleVersionOutput: string): VersionBuildInfo | undefined;
export declare function getMavenPackageInfo(sha1: string, depCoords: Partial<PomCoords>, snykHttpClient: SnykHttpClient): Promise<string>;
declare function splitCoordinate(coordinate: string): Partial<PomCoords>;

@@ -52,4 +52,3 @@ export declare function processProjectsInExtractedJSON(root: string, extractedJSON: JsonDepsScriptResult, coordinateMap?: CoordinateMap): Promise<JsonDepsScriptResult>;

splitCoordinate: typeof splitCoordinate;
getMavenPackageInfo: typeof getMavenPackageInfo;
};
export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.exportsForTests = exports.formatArgWithWhiteSpace = exports.processProjectsInExtractedJSON = exports.getMavenPackageInfo = exports.inspect = void 0;
exports.exportsForTests = exports.formatArgWithWhiteSpace = exports.processProjectsInExtractedJSON = exports.inspect = exports.debugLog = void 0;
const os = require("os");

@@ -10,9 +10,10 @@ const fs = require("fs");

const pMap = require("p-map");
const errors_1 = require("./errors");
const chalk = require("chalk");
const debugModule = require("debug");
const cli_interface_1 = require("@snyk/cli-interface");
const javaCallGraphBuilder = require("@snyk/java-call-graph-builder");
const errors_1 = require("./errors");
const gradle_attributes_pretty_1 = require("./gradle-attributes-pretty");
const debugModule = require("debug");
const graph_1 = require("./graph");
const search_1 = require("./search");
// To enable debugging output, use `snyk -d`

@@ -31,2 +32,3 @@ let logger = null;

}
exports.debugLog = debugLog;
const isWin = /^win/.test(os.platform());

@@ -294,16 +296,2 @@ const quot = isWin ? '"' : "'";

}
async function getMavenPackageInfo(sha1, depCoords, snykHttpClient) {
const { res, body } = await snykHttpClient({
method: 'get',
path: `/maven/coordinates/sha1/${sha1}`,
qs: depCoords,
});
if ((res === null || res === void 0 ? void 0 : res.statusCode) >= 400 || !body || !body.ok || body.code >= 400) {
debugLog(body.message ||
`Failed to resolve ${JSON.stringify(depCoords)} using sha1 '${sha1}.`);
}
const { groupId = depCoords.groupId || 'unknown', artifactId = depCoords.artifactId || 'unknown', version = depCoords.version || 'unknown', } = body.coordinate || {};
return `${groupId}:${artifactId}@${version}`;
}
exports.getMavenPackageInfo = getMavenPackageInfo;
function splitCoordinate(coordinate) {

@@ -338,3 +326,3 @@ const coordTest = /^[\w.-]+:[\w.-]+@[\w.-]+$/.test(coordinate);

try {
const coordinate = await getMavenPackageInfo(hash, depCoord, snykHttpClient);
const coordinate = await (0, search_1.getMavenPackageInfo)(hash, depCoord, snykHttpClient);
coordinateMap[originalCoordinate] = coordinate;

@@ -553,4 +541,3 @@ }

splitCoordinate,
getMavenPackageInfo,
};
//# sourceMappingURL=index.js.map

@@ -29,1 +29,19 @@ /// <reference types="node" />

}
interface PackageResource {
id: string;
type: 'package';
}
declare type GetPackageResponseData = Array<PackageResource>;
interface GetPackageLinks {
self?: string | {
href: string;
meta?: {
[key: string]: any;
};
};
}
export interface GetPackageData {
data: GetPackageResponseData;
links: GetPackageLinks;
}
export {};

@@ -54,2 +54,3 @@ {

"p-map": "^4.0.0",
"packageurl-js": "^1.0.0",
"tmp": "0.2.1",

@@ -61,3 +62,3 @@ "tslib": "^2.0.0"

},
"version": "3.23.2"
"version": "3.24.0"
}

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