Skip to content

Commit

Permalink
chore: pmx -> pm2.io
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed May 10, 2018
1 parent eeeb298 commit adcbebc
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion lib/API/Serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/ProcessUtils.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/child_no_http.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var pmx = require('pmx').init({
var pmx = require('pm2.io').init({
http: false
});

Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/custom_actions/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

var pmx = require('pmx');
var pmx = require('pm2.io');

pmx.action('ping', function(reply) {
return reply({ 'pong' : 'hehe' })
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/events/custom_action.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

var axm = require('pmx');
var axm = require('pm2.io');

axm.action('refresh:db', function(reply) {
console.log('Refreshing');
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/events/custom_action_with_params.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/events/own_event.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

var axm = require('pmx');
var axm = require('pm2.io');

setInterval(function() {
axm.emit('user:register', {
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/homogen-json-action/http.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var pmx = require('pmx').init({
var pmx = require('pm2.io').init({
http : true
});

Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/interface/http_transaction.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

var axm = require('pmx');
var axm = require('pm2.io');
axm.http();

var http = require('http');
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/interface/human_event.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

var axm = require('pmx');
var axm = require('pm2.io');

setInterval(function() {
axm.emit('content:page:created', {
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/interface/process_exception.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

var axm = require('pmx');
var axm = require('pm2.io');

axm.catchAll();

Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/interface/process_exception_with_logs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

var pmx = require('pmx');
var pmx = require('pm2.io');

pmx.action('exception', function(reply) {
console.log('Im going to crash');
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/module-fixture/scoped-action.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

var pmx = require('pmx');
var pmx = require('pm2.io');


var conf = pmx.initModule({
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/probes.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


var pmx = require('pmx');
var pmx = require('pm2.io');
var conf = pmx.init();

var http = require('http');
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/start-consistency/child.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

require('pmx').init({
require('pm2.io').init({
http : true
});

Expand Down

0 comments on commit adcbebc

Please sign in to comment.