@microsoft/vscode-azext-azureutils
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -119,2 +119,3 @@ "use strict"; | ||
} | ||
pipeline.addPolicy(new AllowInsecureConnectionPolicy()); | ||
return pipeline; | ||
@@ -272,2 +273,16 @@ } | ||
BasicAuthenticationCredentialsPolicy.Name = 'BasicAuthenticationCredentialsPolicy'; | ||
class AllowInsecureConnectionPolicy { | ||
constructor() { | ||
this.name = AllowInsecureConnectionPolicy.Name; | ||
} | ||
sendRequest(request, next) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (request.url.startsWith('http://')) { | ||
request.allowInsecureConnection = true; | ||
} | ||
return yield next(request); | ||
}); | ||
} | ||
} | ||
AllowInsecureConnectionPolicy.Name = 'AllowInsecureConnectionPolicy'; | ||
//# sourceMappingURL=createAzureClient.js.map |
{ | ||
"name": "@microsoft/vscode-azext-azureutils", | ||
"author": "Microsoft Corporation", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Common Azure utils for developing Azure extensions for VS Code", | ||
@@ -6,0 +6,0 @@ "tags": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
129687
2127