snyk 1.952.0 → 1.953.0

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.
@@ -177689,11 +177689,6 @@ async function printIfEcho(line) {
177689
177689
  debugLog(maybeMatch[1]);
177690
177690
  }
177691
177691
  }
177692
- function getPluginFileName(options) {
177693
- return options.gradleAcceptLegacyConfigRoles
177694
- ? 'init.gradle'
177695
- : 'legacy-init.gradle';
177696
- }
177697
177692
  async function injectedPlugin(scriptName) {
177698
177693
  let initGradleAsset = null;
177699
177694
  if (/index.js$/.test(__filename)) {
@@ -177782,8 +177777,7 @@ async function getGradleVersion(root, command) {
177782
177777
  }
177783
177778
  async function getAllDepsWithPlugin(root, targetFile, options) {
177784
177779
  const command = getCommand(root, targetFile);
177785
- const pluginFileName = getPluginFileName(options);
177786
- const { injectedPluginFilePath, cleanupCallback } = await injectedPlugin(pluginFileName);
177780
+ const { injectedPluginFilePath, cleanupCallback } = await injectedPlugin('init.gradle');
177787
177781
  const args = buildArgs(root, targetFile, injectedPluginFilePath, options);
177788
177782
  const fullCommandText = 'gradle command: ' + command + ' ' + args.join(' ');
177789
177783
  debugLog('Executing ' + fullCommandText);
@@ -178007,7 +178001,6 @@ exports.exportsForTests = {
178007
178001
  getVersionBuildInfo,
178008
178002
  toCamelCase,
178009
178003
  getGradleAttributesPretty: gradle_attributes_pretty_1.getGradleAttributesPretty,
178010
- getPluginFileName,
178011
178004
  };
178012
178005
  //# sourceMappingURL=index.js.map
178013
178006