Comparing version 1.0.1 to 1.0.2
78
bin.js
@@ -34,76 +34,4 @@ #!/usr/bin/env node | ||
// if (!process.argv.slice(2).length) { | ||
// } | ||
// var args = process.argv.slice(3); | ||
// var subcmd = program.args[0]; | ||
// if (!subcmd) { | ||
// // process.stdout.write(program.helpInformation()); | ||
// program.emit('--list'); | ||
// process.exit(); | ||
// } | ||
// if(program.list){ | ||
// codeplate.getRes({ | ||
// list: program.list | ||
// }); | ||
// }else{ | ||
// program.help(); | ||
// } | ||
// if(program.clear){ | ||
// require("./lib/certMgr").clearCerts(function(){ | ||
// console.log( color.green("all certs cleared") ); | ||
// process.exit(0); | ||
// }); | ||
// }else if(program.root){ | ||
// require("./lib/certMgr").generateRootCA(function(){ | ||
// process.exit(0); | ||
// }); | ||
// }else if(program.install){ | ||
// npm.load({ | ||
// "prefix": process.env.NODE_PATH + '/anyproxy/' | ||
// }, function (er) { | ||
// npm.commands.install(program.args || [], function (er, data) { | ||
// if(er)throw er; | ||
// }) | ||
// npm.registry.log.on("log", function (message) { | ||
// }) | ||
// }); | ||
// }else{ | ||
// var proxy = require("./proxy.js"); | ||
// var ruleModule; | ||
// if(program.rule){ | ||
// var ruleFilePath = path.resolve(process.cwd(),program.rule); | ||
// try{ | ||
// if(fs.existsSync(ruleFilePath)){ | ||
// ruleModule = require(ruleFilePath); | ||
// console.log("rule file loaded :" + ruleFilePath); | ||
// }else{ | ||
// console.log(ruleFilePath); | ||
// console.log(color.red("can not find rule file")); | ||
// } | ||
// }catch(e){ | ||
// console.log("failed to load rule file :" + e.toString()); | ||
// } | ||
// } | ||
// var option = { | ||
// type : program.type, | ||
// port : program.port, | ||
// hostname : program.host, | ||
// dbFile : program.file, | ||
// throttle : program.throttle, | ||
// rule : ruleModule, | ||
// disableWebInterface : false, | ||
// interceptHttps : program.intercept | ||
// }; | ||
// var proxyServer = new proxy.proxyServer(option); | ||
// } | ||
if (!process.argv.slice(2).length) { | ||
process.stdout.write(program.helpInformation()); | ||
} |
{ | ||
"name": "codeplate", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "codeplate.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
6196
182