From adcbebc3f6419cd97c5ea99f3c3a6789585bda66 Mon Sep 17 00:00:00 2001 From: Unitech Date: Fri, 11 May 2018 00:50:49 +0200 Subject: [PATCH] chore: pmx -> pm2.io --- lib/API/Serve.js | 2 +- lib/ProcessUtils.js | 2 +- package.json | 2 +- test/fixtures/child_no_http.js | 2 +- test/fixtures/custom_actions/index.js | 2 +- test/fixtures/events/custom_action.js | 2 +- test/fixtures/events/custom_action_with_params.js | 2 +- test/fixtures/events/own_event.js | 2 +- test/fixtures/homogen-json-action/http.js | 2 +- test/fixtures/interface/http_transaction.js | 2 +- test/fixtures/interface/human_event.js | 2 +- test/fixtures/interface/process_exception.js | 2 +- test/fixtures/interface/process_exception_with_logs.js | 2 +- test/fixtures/module-fixture/scoped-action.js | 2 +- test/fixtures/probes.js | 2 +- test/fixtures/start-consistency/child.js | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/lib/API/Serve.js b/lib/API/Serve.js index d4707ade7..7fed27be2 100644 --- a/lib/API/Serve.js +++ b/lib/API/Serve.js @@ -8,7 +8,7 @@ var http = require('http'); var url = require('url'); var path = require('path'); var debug = require('debug')('pm2:serve'); -var probe = require('pmx').probe(); +var probe = require('pm2.io').probe(); /** * list of supported content types. diff --git a/lib/ProcessUtils.js b/lib/ProcessUtils.js index 752188231..72815dbfa 100644 --- a/lib/ProcessUtils.js +++ b/lib/ProcessUtils.js @@ -1,7 +1,7 @@ module.exports = { injectModules: function() { if (process.env.pmx !== 'false') { - const pmx = require('@keymetrics/pmx'); + const pmx = require('pm2.io'); pmx.init({ transactions: (process.env.trace === 'true' || process.env.deep_monitoring === 'true') || false, http: process.env.km_link === 'true' || false, diff --git a/package.json b/package.json index e286793ad..40992a871 100644 --- a/package.json +++ b/package.json @@ -158,7 +158,7 @@ "pm2-runtime": "./bin/pm2-runtime" }, "dependencies": { - "@keymetrics/pmx": "latest", + "pm2.io": "latest", "async": "^2.5", "blessed": "^0.1.81", "chalk": "^2.3.1", diff --git a/test/fixtures/child_no_http.js b/test/fixtures/child_no_http.js index 83ec95179..4e544844c 100644 --- a/test/fixtures/child_no_http.js +++ b/test/fixtures/child_no_http.js @@ -1,4 +1,4 @@ -var pmx = require('pmx').init({ +var pmx = require('pm2.io').init({ http: false }); diff --git a/test/fixtures/custom_actions/index.js b/test/fixtures/custom_actions/index.js index 1efbe2597..c6f593d70 100644 --- a/test/fixtures/custom_actions/index.js +++ b/test/fixtures/custom_actions/index.js @@ -1,5 +1,5 @@ -var pmx = require('pmx'); +var pmx = require('pm2.io'); pmx.action('ping', function(reply) { return reply({ 'pong' : 'hehe' }) diff --git a/test/fixtures/events/custom_action.js b/test/fixtures/events/custom_action.js index 443b26bf2..edbd929bc 100755 --- a/test/fixtures/events/custom_action.js +++ b/test/fixtures/events/custom_action.js @@ -1,5 +1,5 @@ -var axm = require('pmx'); +var axm = require('pm2.io'); axm.action('refresh:db', function(reply) { console.log('Refreshing'); diff --git a/test/fixtures/events/custom_action_with_params.js b/test/fixtures/events/custom_action_with_params.js index 8d0b66302..93784ed3a 100755 --- a/test/fixtures/events/custom_action_with_params.js +++ b/test/fixtures/events/custom_action_with_params.js @@ -1,5 +1,5 @@ -var axm = require('pmx'); +var axm = require('pm2.io'); axm.action('refresh:db', { comment : 'Refresh the database' }, function(reply) { console.log('Refreshing'); diff --git a/test/fixtures/events/own_event.js b/test/fixtures/events/own_event.js index c49597419..b72fdfecc 100644 --- a/test/fixtures/events/own_event.js +++ b/test/fixtures/events/own_event.js @@ -1,5 +1,5 @@ -var axm = require('pmx'); +var axm = require('pm2.io'); setInterval(function() { axm.emit('user:register', { diff --git a/test/fixtures/homogen-json-action/http.js b/test/fixtures/homogen-json-action/http.js index 61d823c78..546a6a2ca 100644 --- a/test/fixtures/homogen-json-action/http.js +++ b/test/fixtures/homogen-json-action/http.js @@ -1,4 +1,4 @@ -var pmx = require('pmx').init({ +var pmx = require('pm2.io').init({ http : true }); diff --git a/test/fixtures/interface/http_transaction.js b/test/fixtures/interface/http_transaction.js index 17a91be50..e72eee6cd 100644 --- a/test/fixtures/interface/http_transaction.js +++ b/test/fixtures/interface/http_transaction.js @@ -1,5 +1,5 @@ -var axm = require('pmx'); +var axm = require('pm2.io'); axm.http(); var http = require('http'); diff --git a/test/fixtures/interface/human_event.js b/test/fixtures/interface/human_event.js index 925a72a38..856b9c005 100644 --- a/test/fixtures/interface/human_event.js +++ b/test/fixtures/interface/human_event.js @@ -1,5 +1,5 @@ -var axm = require('pmx'); +var axm = require('pm2.io'); setInterval(function() { axm.emit('content:page:created', { diff --git a/test/fixtures/interface/process_exception.js b/test/fixtures/interface/process_exception.js index d4b0c9377..f0ff97f01 100644 --- a/test/fixtures/interface/process_exception.js +++ b/test/fixtures/interface/process_exception.js @@ -1,5 +1,5 @@ -var axm = require('pmx'); +var axm = require('pm2.io'); axm.catchAll(); diff --git a/test/fixtures/interface/process_exception_with_logs.js b/test/fixtures/interface/process_exception_with_logs.js index 1200055b0..67c9a6217 100644 --- a/test/fixtures/interface/process_exception_with_logs.js +++ b/test/fixtures/interface/process_exception_with_logs.js @@ -1,5 +1,5 @@ -var pmx = require('pmx'); +var pmx = require('pm2.io'); pmx.action('exception', function(reply) { console.log('Im going to crash'); diff --git a/test/fixtures/module-fixture/scoped-action.js b/test/fixtures/module-fixture/scoped-action.js index 49d844aa5..660101239 100644 --- a/test/fixtures/module-fixture/scoped-action.js +++ b/test/fixtures/module-fixture/scoped-action.js @@ -1,5 +1,5 @@ -var pmx = require('pmx'); +var pmx = require('pm2.io'); var conf = pmx.initModule({ diff --git a/test/fixtures/probes.js b/test/fixtures/probes.js index bf2e07ca2..cc517c65f 100644 --- a/test/fixtures/probes.js +++ b/test/fixtures/probes.js @@ -1,6 +1,6 @@ -var pmx = require('pmx'); +var pmx = require('pm2.io'); var conf = pmx.init(); var http = require('http'); diff --git a/test/fixtures/start-consistency/child.js b/test/fixtures/start-consistency/child.js index b22f8e487..969d49f94 100644 --- a/test/fixtures/start-consistency/child.js +++ b/test/fixtures/start-consistency/child.js @@ -1,5 +1,5 @@ -require('pmx').init({ +require('pm2.io').init({ http : true });