Skip to content

Commit

Permalink
chore: upgrade all modules + keymetrics-agent -> pm2/agent + increase…
Browse files Browse the repository at this point in the history
… version enabling v8-compile-cache
  • Loading branch information
Unitech committed May 17, 2018
1 parent 294038d commit 53ca18c
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion bin/pm2
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

var semver = require('semver');

if (semver.satisfies(process.versions.node, '>= 5.7.0'))
if (semver.satisfies(process.versions.node, '>= 6.0.0'))
require('v8-compile-cache');

process.env.PM2_USAGE = 'CLI';
Expand Down
2 changes: 1 addition & 1 deletion lib/API.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const fclone = require('fclone');
var conf = require('../constants.js');
var Client = require('./Client');
var Common = require('./Common');
var KMDaemon = require('keymetrics-agent/src/InteractorClient');
var KMDaemon = require('@pm2/agent/src/InteractorClient');
var Config = require('./tools/Config');
var Modularizer = require('./API/Modules/Modularizer.js');
var path_structure = require('../paths.js');
Expand Down
2 changes: 1 addition & 1 deletion lib/API/Configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var chalk = require('chalk');
var async = require('async');
var Configuration = require('../Configuration.js');
//@todo double check that imported methods works
var InteractorDaemonizer = require('keymetrics-agent/src/InteractorClient');
var InteractorDaemonizer = require('@pm2/agent/src/InteractorClient');

module.exports = function(CLI) {

Expand Down
2 changes: 1 addition & 1 deletion lib/API/Interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var chalk = require('chalk');
var async = require('async');
var path = require('path');
var fs = require('fs');
var KMDaemon = require('keymetrics-agent/src/InteractorClient');
var KMDaemon = require('@pm2/agent/src/InteractorClient');
var pkg = require('../../package.json')

module.exports = function(CLI) {
Expand Down
2 changes: 1 addition & 1 deletion lib/API/Keymetrics/cli-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var chalk = require('chalk');
var async = require('async');
var path = require('path');
var fs = require('fs');
var KMDaemon = require('keymetrics-agent/src/InteractorClient');
var KMDaemon = require('@pm2/agent/src/InteractorClient');
var KM = require('./kmapi.js');
var Table = require('cli-table-redemption');
var open = require('../../tools/open.js');
Expand Down
2 changes: 1 addition & 1 deletion lib/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

var debug = require('debug')('pm2:client');
var Common = require('./Common.js');
var KMDaemon = require('keymetrics-agent/src/InteractorClient');
var KMDaemon = require('@pm2/agent/src/InteractorClient');
var rpc = require('pm2-axon-rpc');
var async = require('async');
var axon = require('pm2-axon');
Expand Down
2 changes: 1 addition & 1 deletion lib/Common.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var isBinary = require('./tools/isbinaryfile.js');
var cst = require('../constants.js');
var extItps = require('./API/interpreter.json');
var Config = require('./tools/Config');
var KMDaemon = require('keymetrics-agent/src/InteractorClient');
var KMDaemon = require('@pm2/agent/src/InteractorClient');

var Common = module.exports;

Expand Down
2 changes: 1 addition & 1 deletion lib/Satan.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ Satan.launchDaemon = function launchDaemon(cb) {
debug('Launching daemon');

var SatanJS = p.resolve(p.dirname(module.filename), 'Satan.js');
var InteractorDaemonizer = require('keymetrics-agent/src/InteractorClient');
var InteractorDaemonizer = require('@pm2/agent/src/InteractorClient');

var node_args = [];

Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,20 +159,20 @@
},
"dependencies": {
"@pm2/io": "latest",
"async": "^2.5",
"@pm2/agent": "^0.4.0",
"async": "^2.6",
"blessed": "^0.1.81",
"chalk": "^2.3.1",
"chokidar": "^2.0.2",
"chalk": "^2.4.1",
"chokidar": "^2.0.3",
"cli-table-redemption": "^1.0.0",
"commander": "2.14.1",
"commander": "2.15.1",
"cron": "^1.3",
"debug": "^3.0",
"debug": "^3.1",
"eventemitter2": "5.0.1",
"fclone": "1.0.11",
"fs-extra": "^5.0.0",
"keymetrics-agent": "^0.4.0",
"mkdirp": "0.5.1",
"moment": "^2.19",
"moment": "^2.22",
"needle": "^2.2.0",
"nssocket": "0.6.0",
"pidusage": "^2.0.6",
Expand All @@ -181,12 +181,12 @@
"pm2-deploy": "^0.3.9",
"pm2-multimeter": "^0.1.2",
"promptly": "2.2.0",
"semver": "^5.3",
"shelljs": "0.8.1",
"semver": "^5.5",
"shelljs": "~0.8.2",
"source-map-support": "^0.5",
"sprintf-js": "1.1.1",
"v8-compile-cache": "^1.1.0",
"vizion": "0.2.0",
"v8-compile-cache": "^2.0.0",
"vizion": "~0.2.0",
"yamljs": "^0.3.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/modules/module.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ $pm2 unset pm2-probe

$pm2 set 'pm2-probe:config1xxx' true

$pm2 install pm2-probe
$pm2 install pm2-probe@latest
spec "Should install a module"
should 'should app be online' 'online' 1

$pm2 install pm2-probe
$pm2 install pm2-probe@latest
spec "Should update a module"
should 'should app be online' 'online' 1

Expand Down

0 comments on commit 53ca18c

Please sign in to comment.