+3
-15
@@ -34,10 +34,4 @@ #!/usr/bin/env node | ||
| if (err.code !== 'ENOENT') throw err; | ||
| return _inquirer2.default.prompt([{ | ||
| name: 'registry', | ||
| type: 'input', | ||
| message: 'TCM default registry', | ||
| default: 'http://localhost:3000/v1' | ||
| }]).then(answers => { | ||
| return _utils.fs.writeFile(confPath, JSON.stringify({ registry: answers.registry }, null, 4)).then(() => answers.registry); | ||
| }); | ||
| let registry = 'http://localhost:3000/v1'; | ||
| return _utils.fs.writeFile(confPath, JSON.stringify({ registry }, null, 4)).then(() => registry); | ||
| }); | ||
@@ -63,8 +57,2 @@ } | ||
| let confPath = _path2.default.join(process.env.HOME || process.env.USERPROFILE, '.tcm.json'); | ||
| let defaultRegistry = null; | ||
| try { | ||
| defaultRegistry = require(confPath).registry; | ||
| } catch (e) { | ||
| defaultRegistry = 'http://localhost:3000/v1'; | ||
| } | ||
| _inquirer2.default.prompt([{ | ||
@@ -74,3 +62,3 @@ name: 'registry', | ||
| message: 'TCM default registry', | ||
| default: defaultRegistry | ||
| default: registry | ||
| }]).then(answers => { | ||
@@ -77,0 +65,0 @@ return _utils.fs.writeFile(confPath, JSON.stringify({ |
+1
-1
| { | ||
| "name": "tcm", | ||
| "version": "1.0.12", | ||
| "version": "1.0.13", | ||
| "description": "Team component manager", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
31
-3.12%221651
-0.19%5528
-0.22%