Socket
Socket
Sign inDemoInstall

@microsoft/vscode-azext-azureappservice

Package Overview
Dependencies
Maintainers
12
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/vscode-azext-azureappservice - npm Package Compare versions

Comparing version 2.2.4 to 2.2.5

2

out/src/siteFiles.d.ts

@@ -16,3 +16,3 @@ import { IActionContext } from '@microsoft/vscode-azext-utils';

*/
export declare function createSiteFilesUrl(site: ParsedSite, path: string): string;
export declare function createSiteFilesUrl(site: ParsedSite, path: string, href?: string): string;
export declare function getFile(context: IActionContext, site: ParsedSite, url: string): Promise<ISiteFile>;

@@ -19,0 +19,0 @@ export declare function listFiles(context: IActionContext, site: ParsedSite, url: string): Promise<ISiteFileMetadata[]>;

@@ -24,10 +24,9 @@ "use strict";

*/
function createSiteFilesUrl(site, path) {
if (site.isFunctionApp) {
if (site.isLinux) {
path = path.replace(/^\/home\//, '');
}
function createSiteFilesUrl(site, path, href) {
// For Linux consumption function apps, the href doesn't work. So we build the url manually
if (site.isFunctionApp && site.isLinux) {
path = path.replace(/^\/home\//, '');
return `${site.id}/hostruntime/admin/vfs/home/${path}/?api-version=2022-03-01`;
}
return `${site.kuduUrl}/api/vfs/${path}`;
return href !== null && href !== void 0 ? href : `${site.kuduUrl}/api/vfs/${path}`;
}

@@ -34,0 +33,0 @@ exports.createSiteFilesUrl = createSiteFilesUrl;

@@ -50,3 +50,3 @@ "use strict";

return files.map(file => {
const url = this.site.isFunctionApp ? (0, siteFiles_1.createSiteFilesUrl)(this.site, file.path) : file.href;
const url = (0, siteFiles_1.createSiteFilesUrl)(this.site, file.path, file.href);
return file.mime === 'inode/directory' ? new FolderTreeItem(this, {

@@ -53,0 +53,0 @@ site: this.site,

{
"name": "@microsoft/vscode-azext-azureappservice",
"author": "Microsoft Corporation",
"version": "2.2.4",
"version": "2.2.5",
"description": "Common tools for developing Azure App Service extensions for VS Code",

@@ -6,0 +6,0 @@ "tags": [

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