New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vscode-dts

Package Overview
Dependencies
Maintainers
6
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vscode-dts - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

24

index.js

@@ -41,10 +41,20 @@ #!/usr/bin/env node

function getEnabledApiProposals() {
try {
var packageJsonPath = path_1["default"].resolve(process.cwd(), './package.json');
var packageJson = JSON.parse(fs_1["default"].readFileSync(packageJsonPath, 'utf-8'));
return Array.isArray(packageJson.enabledApiProposals) ? packageJson.enabledApiProposals : [];
var dir = process.cwd();
while (true) {
var packageJsonPath = path_1["default"].resolve(dir, './package.json');
try {
var packageJson = JSON.parse(fs_1["default"].readFileSync(packageJsonPath, 'utf-8'));
return Array.isArray(packageJson.enabledApiProposals) ? packageJson.enabledApiProposals : [];
}
catch (_a) {
// continue
}
var next = path_1["default"].dirname(dir);
if (next === dir) {
return [];
}
else {
dir = next;
}
}
catch (_a) {
return [];
}
}

@@ -51,0 +61,0 @@ function handleDefaultDownload(gitTagOrBranch, force) {

{
"name": "vscode-dts",
"version": "0.3.2",
"version": "0.3.3",
"description": "CLI utility for downloading vscode.d.ts and vscode.proposed.d.ts",

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

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