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

@vscode/vscode-perf

Package Overview
Dependencies
Maintainers
7
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vscode/vscode-perf - npm Package Compare versions

Comparing version 0.0.14 to 0.0.15

35

out/builds.js

@@ -6,25 +6,2 @@ "use strict";

*--------------------------------------------------------------------------------------------*/
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -41,3 +18,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

const child_process_1 = require("child_process");
const node_fetch_1 = __importStar(require("node-fetch"));
const node_fetch_1 = __importDefault(require("node-fetch"));
async function installBuild(runtime, quality, commit, unreleased) {

@@ -214,6 +191,4 @@ const buildMetadata = await fetchBuildMetadata(runtime, quality, commit, unreleased);

let url;
let headers = undefined;
if (commit === 'latest') {
url = `https://update.code.visualstudio.com/api/update/${buildApiName}/${quality}/latest`;
headers = unreleased ? new node_fetch_1.Headers({ 'x-vscode-released': 'false' }) : undefined;
url = `https://update.code.visualstudio.com/api/update/${buildApiName}/${quality}/latest${unreleased ? '?released=false' : ''}`;
}

@@ -223,8 +198,8 @@ else {

}
const result = await jsonGet(url, headers);
const result = await jsonGet(url);
result.url = path_1.posix.join(path_1.posix.dirname(result.url), getBuildArchiveName(runtime, result));
return result;
}
async function jsonGet(url, headers) {
const authResponse = await (0, node_fetch_1.default)(url, { method: 'GET', headers });
async function jsonGet(url) {
const authResponse = await (0, node_fetch_1.default)(url, { method: 'GET' });
if (!authResponse.ok) {

@@ -231,0 +206,0 @@ throw new Error(`Failed to get response from update server: ${authResponse.status} ${authResponse.statusText}`);

2

package.json
{
"name": "@vscode/vscode-perf",
"version": "0.0.14",
"version": "0.0.15",
"description": "Tooling for evaluating performance of VS Code",

@@ -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