New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

azd-infra

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azd-infra - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

7

lib/commands/add.js

@@ -22,2 +22,3 @@ import { promises as fs } from 'node:fs';

const templatesToAdd = await resolveDependencies(selected, azdPath);
debug('Resolved core templates with dependencies:', templatesToAdd);
console.info('Resolved core templates with dependencies:');

@@ -34,7 +35,8 @@ const coreTemplateBasePath = path.join(azdPath, AZD_BICEP_PATH);

await copyCoreTemplates(templatesToAdd, azdPath, targetPath);
console.info(`Added ${chalk.cyan(templatesToAdd.length)} core templates to your project.`);
console.info(`Add completed.`);
}
async function resolveDependencies(selected, azdPath) {
const dependencyInfo = await getBicepDependencyInfo(selected, path.join(azdPath, AZD_BICEP_PATH));
return dependencyInfo.all;
const selectedFiles = selected.map((file) => path.join(azdPath, AZD_BICEP_PATH, file));
return [...new Set([...selectedFiles, ...dependencyInfo.all])];
}

@@ -51,2 +53,3 @@ async function copyCoreTemplates(selected, azdPath, targetPath) {

await fs.copyFile(source, destination);
console.info(chalk.cyan(`Added: ${path.join(AZD_INFRA_PATH, coreFile)}`));
}

@@ -53,0 +56,0 @@ catch (error_) {

@@ -42,3 +42,3 @@ import { promises as fs } from 'node:fs';

}
console.info('Clean up completed.');
console.info('Fix completed.');
}

@@ -45,0 +45,0 @@ async function fixMissingModules(targetPath, missingModules) {

@@ -52,3 +52,3 @@ import { promises as fs } from 'node:fs';

await Promise.all(updatePromises);
console.info('Update successful.');
console.info('Update completed.');
}

@@ -55,0 +55,0 @@ async function compareInfraFiles(infraInfo, azdPath) {

{
"name": "azd-infra",
"version": "1.1.4",
"version": "1.1.5",
"description": "Manages your Azure Developer CLI projects' infrastructure",

@@ -5,0 +5,0 @@ "type": "module",

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