Skip to content

Commit

Permalink
chore: pm2.io -> @pm2/io
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed May 17, 2018
1 parent e8cd713 commit ae09896
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('pm2.io').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('pm2.io');
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 @@ -159,7 +159,7 @@
"pm2-runtime": "./bin/pm2-runtime"
},
"dependencies": {
"pm2.io": "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('pm2.io').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('pm2.io');
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('pm2.io');
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('pm2.io');
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('pm2.io');
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('pm2.io').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('pm2.io');
var axm = require('@pm2/io');

axm.init({
http: true
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('pm2.io');
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('pm2.io');
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('pm2.io');
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('pm2.io');
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('pm2.io');
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('pm2.io').init({
require('@pm2/io').init({
http : true
});

Expand Down

0 comments on commit ae09896

Please sign in to comment.