Socket
Socket
Sign inDemoInstall

@microsoft/vscode-azext-azureappservice

Package Overview
Dependencies
128
Maintainers
11
Versions
66
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.4.0-agent.3 to 3.0.0

3

out/src/createAppService/SiteNameStep.d.ts

@@ -7,5 +7,4 @@ import { AzureNameStep, IAzureAgentInput, ParameterAgentMetadata } from '@microsoft/vscode-azext-utils';

export declare class SiteNameStep extends AzureNameStep<SiteNameStepWizardContext> {
private _skipValidation;
private _inputBoxOptionsAgentMetadata;
constructor(skipValidation?: boolean, inputBoxOptionsAgentMetadata?: ParameterAgentMetadata);
constructor(inputBoxOptionsAgentMetadata?: ParameterAgentMetadata);
prompt(context: SiteNameStepWizardContext): Promise<void>;

@@ -12,0 +11,0 @@ getRelatedName(context: IAppServiceWizardContext, name: string): Promise<string | undefined>;

@@ -31,5 +31,4 @@ "use strict";

class SiteNameStep extends vscode_azext_utils_1.AzureNameStep {
constructor(skipValidation, inputBoxOptionsAgentMetadata) {
constructor(inputBoxOptionsAgentMetadata) {
super();
this._skipValidation = skipValidation !== null && skipValidation !== void 0 ? skipValidation : false;
this._inputBoxOptionsAgentMetadata = inputBoxOptionsAgentMetadata;

@@ -73,3 +72,2 @@ }

agentMetadata: (_c = this._inputBoxOptionsAgentMetadata) !== null && _c !== void 0 ? _c : {
parameterName: "siteName",
parameterDisplayTitle: "Site Name",

@@ -79,6 +77,2 @@ parameterDisplayDescription: "The name of the app service site.",

};
if (this._skipValidation) {
options.validateInput = undefined;
options.asyncValidationTask = undefined;
}
context.newSiteName = (yield context.ui.showInputBox(options)).trim();

@@ -85,0 +79,0 @@ context.valuesToMask.push(context.newSiteName);

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

const pathFileMap = new Map([
[path.basename(context.workspaceFolder.uri.fsPath), 'app.jar']
[path.basename(context.fsPath), 'app.jar']
]);

@@ -70,5 +70,3 @@ executeSteps.push(new DeployZipPushExecuteStep_1.DeployZipPushExecuteStep(pathFileMap));

executeSteps.push(new PostDeployTaskExecuteStep_1.PostDeployTaskExecuteStep(config));
if (context.syncTriggersPostDeploy) {
executeSteps.push(new PostDeploySyncTriggersExecuteStep_1.PostDeploySyncTriggersExecuteStep());
}
executeSteps.push(new PostDeploySyncTriggersExecuteStep_1.PostDeploySyncTriggersExecuteStep());
return executeSteps;

@@ -75,0 +73,0 @@ });

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

return __awaiter(this, void 0, void 0, function* () {
context.telemetry.properties.sourceHash = yield vscode_azext_utils_1.randomUtils.getPseudononymousStringHash(context.workspaceFolder.uri.fsPath);
context.telemetry.properties.sourceHash = yield vscode_azext_utils_1.randomUtils.getPseudononymousStringHash(context.fsPath);
context.telemetry.properties.destHash = yield vscode_azext_utils_1.randomUtils.getPseudononymousStringHash(context.site.fullName);

@@ -61,0 +61,0 @@ context.telemetry.properties.scmType = String(config.scmType);

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

return __awaiter(this, void 0, void 0, function* () {
yield (0, localGitDeploy_1.localGitDeploy)(context.site, { fsPath: context.workspaceFolder.uri.fsPath }, context);
yield (0, localGitDeploy_1.localGitDeploy)(context.site, { fsPath: context.fsPath }, context);
});

@@ -25,0 +25,0 @@ }

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

return yield (0, runWithZipStream_1.runWithZipStream)(context, {
fsPath: context.workspaceFolder.uri.fsPath,
fsPath: context.fsPath,
site: context.site,

@@ -34,0 +34,0 @@ pathFileMap: this.pathFileMap,

@@ -25,7 +25,7 @@ "use strict";

return __awaiter(this, void 0, void 0, function* () {
if ((0, pathUtils_1.getFileExtension)(context.workspaceFolder.uri.fsPath) !== 'war') {
if ((0, pathUtils_1.getFileExtension)(context.fsPath) !== 'war') {
throw new Error(vscode_1.l10n.t('Path specified is not a war file'));
}
const kuduClient = yield context.site.createClient(context);
yield kuduClient.warPushDeploy(context, () => fs.createReadStream(context.workspaceFolder.uri.fsPath), {
yield kuduClient.warPushDeploy(context, () => fs.createReadStream(context.fsPath), {
isAsync: true,

@@ -32,0 +32,0 @@ author: constants_1.publisherName,

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

return __awaiter(this, void 0, void 0, function* () {
const fsPath = context.workspaceFolder.uri.fsPath;
const fsPath = context.fsPath;
if (!(yield vscode_azext_utils_1.AzExtFsExtra.pathExists(fsPath))) {

@@ -30,0 +30,0 @@ throw new Error(vscode_1.l10n.t('Failed to deploy path that does not exist: {0}', fsPath));

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

return yield (0, runWithZipStream_1.runWithZipStream)(context, {
fsPath: context.workspaceFolder.uri.fsPath,
fsPath: context.fsPath,
site: context.site,

@@ -36,0 +36,0 @@ pathFileMap: this.pathFileMap,

@@ -6,3 +6,3 @@ import { AzureWizardExecuteStep } from "@microsoft/vscode-azext-utils";

execute(context: InnerDeployContext): Promise<void>;
shouldExecute(_context: InnerDeployContext): boolean;
shouldExecute(context: InnerDeployContext): boolean;
}

@@ -33,4 +33,5 @@ "use strict";

}
shouldExecute(_context) {
return true;
shouldExecute(context) {
// this gets set in `waitForDeploymentToComplete` for consumption plans or storage account deployments
return !!context.syncTriggersPostDeploy;
}

@@ -37,0 +38,0 @@ }

{
"name": "@microsoft/vscode-azext-azureappservice",
"author": "Microsoft Corporation",
"version": "2.4.0-agent.3",
"version": "3.0.0",
"description": "Common tools for developing Azure App Service extensions for VS Code",

@@ -43,5 +43,5 @@ "tags": [

"@azure/storage-blob": "^12.3.0",
"@microsoft/vscode-azext-azureutils": "2.1.0-agent.4",
"@microsoft/vscode-azext-azureutils": "^3.0.0",
"@microsoft/vscode-azext-github": "^1.0.0",
"@microsoft/vscode-azext-utils": "2.2.0-agent.7",
"@microsoft/vscode-azext-utils": "^2.2.0",
"dayjs": "^1.11.2",

@@ -48,0 +48,0 @@ "fs-extra": "^10.0.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc