Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

shipit-cli

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shipit-cli - npm Package Compare versions

Comparing version 4.2.0 to 5.0.0

4

lib/cli.js

@@ -70,5 +70,5 @@ "use strict";

try {
/* eslint-disable global-require, import/no-dynamic-import, import/no-dynamic-require */
/* eslint-disable global-require, import/no-dynamic-require */
const module = require(env.configPath);
/* eslint-enable global-require, import/no-dynamic-import, import/no-dynamic-require */
/* eslint-enable global-require, import/no-dynamic-require */

@@ -75,0 +75,0 @@

@@ -85,3 +85,3 @@ "use strict";

this.globalConfig = {};
this.options = _extends({}, defaultOptions, options);
this.options = _extends({}, defaultOptions, {}, options);
this.environment = options.environment;

@@ -168,3 +168,3 @@ this.initializeEvents();

this.globalConfig = config;
this.config = _extends({}, config.default, config[this.environment]);
this.config = _extends({}, config.default, {}, config[this.environment]);
return this;

@@ -232,3 +232,3 @@ }

const copyOptions = _extends({}, defaultOptions, options);
const copyOptions = _extends({}, defaultOptions, {}, options);

@@ -263,3 +263,3 @@ return _this2.pool.copy(src, dest, copyOptions);

const copyOptions = _extends({}, defaultOptions, options);
const copyOptions = _extends({}, defaultOptions, {}, options);

@@ -293,3 +293,3 @@ return _this3.pool.copyToRemote(src, dest, copyOptions);

const copyOptions = _extends({}, defaultOptions, options);
const copyOptions = _extends({}, defaultOptions, {}, options);

@@ -296,0 +296,0 @@ return _this4.pool.copyFromRemote(src, dest, copyOptions);

{
"name": "shipit-cli",
"version": "4.2.0",
"version": "5.0.0",
"description": "Universal automation and deployment tool written in JavaScript.",

@@ -31,10 +31,10 @@ "engines": {

"interpret": "^1.1.0",
"liftoff": "^2.5.0",
"liftoff": "^3.1.0",
"orchestrator": "^0.3.7",
"pretty-hrtime": "^1.0.0",
"ssh-pool": "^4.1.2",
"ssh-pool": "^5.0.0",
"stream-line-wrapper": "^0.1.1",
"v8flags": "^3.1.0"
},
"gitHead": "7a5b1aae7ffedf94c709028a2a8031dcc3bcb8ad"
"gitHead": "0516ca80aedc23fb5f7995f2560be5b0380c2e9a"
}

@@ -133,20 +133,24 @@ # shipit-cli

When the system initializes it automatically emits events:
* Emit event "init"
* Emit event "init:after_ssh_pool"
When the system initializes it automatically emits events:
- Emit event "init"
- Emit event "init:after_ssh_pool"
Each shipit task also generates events:
* Emit event "task_start"
* Emit event "task_stop"
* Emit event "task_err"
* Emit event "task_not_found"
- Emit event "task_start"
- Emit event "task_stop"
- Emit event "task_err"
- Emit event "task_not_found"
Inside the task events, you can test for the task name.
```js
shipit.on("task_start", (event) => {
if (event.task == "first_task"){
shipit.log("I'm the first task");
}
});
shipit.on('task_start', event => {
if (event.task == 'first_task') {
shipit.log("I'm the first task")
}
})
```
## License

@@ -153,0 +157,0 @@

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