Comparing version 0.1.7 to 0.2.0
@@ -66,3 +66,3 @@ #!/usr/bin/env node | ||
.action(function() { | ||
list_verions(); | ||
list_versions(); | ||
}); | ||
@@ -73,3 +73,4 @@ | ||
.description("Install deno <version>") | ||
.action(function(version) { | ||
.option("-r, --registry <source>", "source registry") | ||
.action(function(version, cmd) { | ||
I("check whether the current version is installed"); | ||
@@ -86,5 +87,5 @@ if (fs.existsSync(path.join(DVM_PATH, version))) { | ||
I("deno v%s is not installed", version); | ||
I("try to download...", version); | ||
I("try to download version:%s, registry:%s", version, cmd.registry); | ||
download(version) | ||
download(version, cmd.registry) | ||
.then(filePath => extractDownload(filePath, path.join(DVM_PATH, version))) | ||
@@ -115,3 +116,3 @@ .then(() => { | ||
const current = current_verion(); | ||
const current = current_version(); | ||
@@ -155,4 +156,4 @@ if (current === "") { | ||
function list_verions() { | ||
const current = current_verion(); | ||
function list_versions() { | ||
const current = current_version(); | ||
fs.readdirSync(DVM_PATH).forEach(function(denos) { | ||
@@ -165,3 +166,3 @@ if (denos[0] !== ".") { | ||
function current_verion() { | ||
function current_version() { | ||
let version = ""; | ||
@@ -246,3 +247,3 @@ | ||
*/ | ||
function get_download_url(version, registry = "denocn") { | ||
function get_download_url(version, registry = "deno") { | ||
I("using mirror %s", registry); | ||
@@ -249,0 +250,0 @@ const url_prefix = registries[registry].registry; |
{ | ||
"name": "dvm", | ||
"version": "0.1.7", | ||
"version": "0.2.0", | ||
"keywords": [ | ||
@@ -19,3 +19,9 @@ "deno", | ||
"scripts": { | ||
"lint": "eslint ." | ||
"clean": "rimraf -rf dist/*", | ||
"lint": "eslint .", | ||
"fix": "eslint --fix .", | ||
"test": "jest", | ||
"coverage": "jest --coverage", | ||
"codecov": "jest --coverage && codecov", | ||
"preinstall": "node scripts/preinstall.js" | ||
}, | ||
@@ -38,3 +44,3 @@ "engines": { | ||
"compressing": "^1.3.1", | ||
"debug": "^3.1.0", | ||
"debug": "^4.1.0", | ||
"ini": "^1.3.5", | ||
@@ -46,8 +52,11 @@ "is-admin": "^2.1.1", | ||
"request-progress": "^3.0.0", | ||
"string-similarity": "^1.2.1" | ||
"string-similarity": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"babel-jest": "^23.4.2", | ||
"codecov": "^3.1.0", | ||
"eslint": "^5.5.0", | ||
"eslint-config-prettier": "^3.0.1", | ||
"eslint-plugin-prettier": "^2.6.2", | ||
"eslint-plugin-prettier": "^3.0.0", | ||
"jest": "^23.5.0", | ||
"prettier": "^1.14.2", | ||
@@ -54,0 +63,0 @@ "rimraf": "^2.6.2" |
@@ -16,3 +16,3 @@ Deno Version Manager | ||
- [ ] `dvm ls-remote` | ||
- [ ] `dvm install x.x.x -r denocn` | ||
- [x] `dvm install x.x.x -r denocn` | ||
@@ -19,0 +19,0 @@ Installation |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
231243
18
377
8
1
+ Addeddebug@4.4.0(transitive)
+ Addedstring-similarity@3.0.0(transitive)
- Removeddebug@3.2.7(transitive)
- Removedlodash.every@4.6.0(transitive)
- Removedlodash.flattendeep@4.4.0(transitive)
- Removedlodash.foreach@4.5.0(transitive)
- Removedlodash.map@4.6.0(transitive)
- Removedlodash.maxby@4.6.0(transitive)
- Removedstring-similarity@1.2.2(transitive)
Updateddebug@^4.1.0
Updatedstring-similarity@^3.0.0