Socket
Socket
Sign inDemoInstall

zeanium-node

Package Overview
Dependencies
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zeanium-node - npm Package Compare versions

Comparing version 0.6.43 to 0.6.44

2

package.json
{
"name": "zeanium-node",
"version": "0.6.43",
"version": "0.6.44",
"description": "Zeanium for Node.js, simple http server and custome your business.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -180,5 +180,6 @@ # zeanium-node

npm install zeanium-node -g
git clone https://github.com/yangyxu/zeanium-node-demo.git
cd zeanium-node-demo
zn run config:zn.workspace.config.js
git clone https://github.com/yangyxu/zn-app-demo.git
cd zn-app-demo
npm install
zn run
```

@@ -185,0 +186,0 @@ The terminal will show the message for http server.

zn.define(function () {
var process = require('child_process');
return zn.Controller('$', {

@@ -8,2 +10,39 @@ methods: {

},
pull: {
method: 'GET',
value: function (request, response, chain){
process.exec('git pull', function (error, stdout, stderr) {
if (error !== null) {
response.error(error);
}else {
response.success(stdout);
}
});
}
},
commit: {
method: 'GET',
value: function (request, response, chain){
var _commit = request.getValue('commit') || 'commit';
process.exec('git add *', function (error, stdout, stderr) {
if (error !== null) {
response.error(error);
}else {
process.exec('git commit -m "' + _commit + '"', function (error, stdout, stderr){
if (error !== null) {
response.error(error);
}else {
process.exec('git push', function (error, stdout, stderr){
if (error !== null) {
response.error(error);
}else {
response.success(stdout);
}
});
}
});
}
});
}
},
redeploy: {

@@ -10,0 +49,0 @@ method: 'GET/POST',

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