Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vscode/vsce

Package Overview
Dependencies
Maintainers
7
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vscode/vsce - npm Package Compare versions

Comparing version 2.29.0 to 2.29.1-0

out/auth.js

3

out/publish.js

@@ -43,2 +43,3 @@ "use strict";

const cockatiel_1 = require("cockatiel");
const auth_1 = require("./auth");
const tmpName = (0, util_1.promisify)(tmp.tmpName);

@@ -255,3 +256,3 @@ async function publish(options = {}) {

if (options.azureCredential) {
return await (0, util_2.getAzureCredentialAccessToken)();
return await (0, auth_1.getAzureCredentialAccessToken)();
}

@@ -258,0 +259,0 @@ return (await (0, store_1.getPublisher)(publisher)).pat;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.patchOptionsWithManifest = exports.log = exports.sequence = exports.CancellationToken = exports.isCancelledError = exports.nonnull = exports.flatten = exports.chain = exports.normalize = exports.getAzureCredentialAccessToken = exports.getPublicGalleryAPI = exports.getSecurityRolesAPI = exports.getGalleryAPI = exports.getHubUrl = exports.getMarketplaceUrl = exports.getPublishedUrl = exports.read = void 0;
exports.patchOptionsWithManifest = exports.log = exports.sequence = exports.CancellationToken = exports.isCancelledError = exports.nonnull = exports.flatten = exports.chain = exports.normalize = exports.getPublicGalleryAPI = exports.getSecurityRolesAPI = exports.getGalleryAPI = exports.getHubUrl = exports.getMarketplaceUrl = exports.getPublishedUrl = exports.read = void 0;
const util_1 = require("util");

@@ -15,3 +15,2 @@ const read_1 = __importDefault(require("read"));

const os_1 = require("os");
const identity_1 = require("@azure/identity");
const __read = (0, util_1.promisify)(read_1.default);

@@ -56,13 +55,2 @@ function read(prompt, options = {}) {

exports.getPublicGalleryAPI = getPublicGalleryAPI;
async function getAzureCredentialAccessToken() {
try {
const credential = new identity_1.DefaultAzureCredential();
const token = await credential.getToken('499b84ac-1321-427f-aa17-267ca6975798/.default');
return token.token;
}
catch (error) {
throw new Error('Can not acquire a Microsoft Entra ID access token. Additional information:\n\n' + error);
}
}
exports.getAzureCredentialAccessToken = getAzureCredentialAccessToken;
function normalize(path) {

@@ -69,0 +57,0 @@ return path.replace(/\\/g, '/');

{
"name": "@vscode/vsce",
"version": "2.29.0",
"version": "2.29.1-0",
"description": "VS Code Extensions Manager",

@@ -5,0 +5,0 @@ "repository": {

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