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
1
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.1.1 to 0.2.0

31

index.js

@@ -7,2 +7,3 @@ #!/usr/bin/env node

const os = require('os')
const prompts = require('prompts')

@@ -26,3 +27,5 @@ const PROPOSED_DTS_URL = 'https://raw.githubusercontent.com/microsoft/vscode/master/src/vs/vscode.proposed.d.ts'

console.log(`Downloading vscode.d.ts to ${outPath} from ${url}`)
download(url, outPath)
download(url, outPath).then(() => {
removeNodeModulesTypes()
})
}

@@ -61,1 +64,27 @@

}
function removeNodeModulesTypes() {
if (fs.existsSync('node_modules/vscode/vscode.d.ts')) {
prompts({
type: 'confirm',
name: 'value',
message: 'Remove conflicting vscode typing at node_modules/vscode/vscode.d.ts?'
}).then(res => {
if(res.value) {
fs.unlinkSync('node_modules/vscode/vscode.d.ts')
console.log('Removed node_modules/vscode/vscode.d.ts')
}
})
} else if (fs.existsSync('node_modules/@types/vscode/index.d.ts')) {
prompts({
type: 'confirm',
name: 'value',
message: 'Remove conflicting vscode typing at node_modules/@types/vscode/index.d.ts?'
}).then(res => {
if(res.value) {
fs.unlinkSync('node_modules/@types/vscode/index.d.ts')
console.log('Removed node_modules/@types/vscode/index.d.ts')
}
})
}
}

5

package.json
{
"name": "vscode-dts",
"version": "0.1.1",
"version": "0.2.0",
"description": "CLI utility for downloading vscode.d.ts and vscode.proposed.d.ts",

@@ -12,3 +12,6 @@ "bin": "index.js",

"@types/node": "^12.0.2"
},
"dependencies": {
"prompts": "^2.1.0"
}
}

Sorry, the diff of this file is not supported yet

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