Skip to content

Commit

Permalink
fix: @pm2/io => @arcblock/pm2.io
Browse files Browse the repository at this point in the history
  • Loading branch information
skypesky committed Jun 17, 2024
1 parent 6e86451 commit a57d461
Show file tree
Hide file tree
Showing 31 changed files with 87 additions and 84 deletions.
2 changes: 1 addition & 1 deletion examples/test-all-keymetrics-features/actions-fibonacci.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function fib(n) {
}


var axm = require('@pm2/io');
var axm = require('@arcblock/pm2.io');

axm.action('load:start', function(reply) {
fib(50000);
Expand Down
2 changes: 1 addition & 1 deletion examples/test-all-keymetrics-features/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('@arcblock/pm2.io');

axm.action('getEnv', function(reply) {
reply(process.env);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

var axm = require('@pm2/io');
var axm = require('@arcblock/pm2.io');

axm.action('refresh:db', { comment : 'Refresh the database' }, function(reply) {
console.log('Refreshing');
Expand Down
2 changes: 1 addition & 1 deletion examples/test-all-keymetrics-features/event.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

var axm = require('@pm2/io');
var axm = require('@arcblock/pm2.io');

setInterval(function() {

Expand Down
2 changes: 1 addition & 1 deletion examples/test-all-keymetrics-features/http_app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


var io = require('@pm2/io').init({ http : true });
var io = require('@arcblock/pm2.io').init({ http : true });
var probe = io.probe();

var http = require('http');
Expand Down
2 changes: 1 addition & 1 deletion examples/test-all-keymetrics-features/http_transaction.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


var axm = require('@pm2/io');
var axm = require('@arcblock/pm2.io');

var probe = axm.probe();

Expand Down
2 changes: 1 addition & 1 deletion examples/test-all-keymetrics-features/pm2_probe.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var io = require('@pm2/io');
var io = require('@arcblock/pm2.io');
var pm2 = require('../..');
var fs = require('fs');
var path = require('path');
Expand Down
2 changes: 1 addition & 1 deletion examples/test-all-keymetrics-features/probes.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


var io = require('@pm2/io');
var io = require('@arcblock/pm2.io');

var users = {
'alex' : 'ok',
Expand Down
2 changes: 1 addition & 1 deletion examples/test-all-keymetrics-features/process-transpose.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

var Probe = require('@pm2/io').probe();
var Probe = require('@arcblock/pm2.io').probe();

var counter = 0;

Expand Down
2 changes: 1 addition & 1 deletion examples/test-all-keymetrics-features/scoped-actions.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

var io = require('@pm2/io');
var io = require('@arcblock/pm2.io');

io.scopedAction('simple test', function(data, emitter) {
var i = setInterval(function() {
Expand Down
2 changes: 1 addition & 1 deletion examples/test-all-keymetrics-features/test-threshold.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

var axm = require('@pm2/io');
var axm = require('@arcblock/pm2.io');


var users = 55
Expand Down
2 changes: 1 addition & 1 deletion examples/test-all-keymetrics-features/throw.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

var axm = require('@pm2/io');
var axm = require('@arcblock/pm2.io');

setTimeout(function() {
console.log('log message from echo auto kill');
Expand Down
2 changes: 1 addition & 1 deletion lib/API/Serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var url = require('url');
var path = require('path');
var debug = require('debug')('pm2:serve');

var probe = require('@pm2/io');
var probe = require('@arcblock/pm2.io');
var errorMeter = probe.meter({
name : '404/sec',
samples : 1,
Expand Down
2 changes: 1 addition & 1 deletion lib/ProcessUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module.exports = {
injectModules: function() {
if (process.env.pmx !== 'false') {
const pmx = require('@pm2/io')
const pmx = require('@arcblock/pm2.io')

let conf = {}
const hasSpecificConfig = typeof process.env.io === 'string' || process.env.trace === 'true'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Or on the PM2+ Web interface
## Example

```javascript
const io = require('@pm2/io')
const io = require('@arcblock/pm2.io')

const currentReq = io.counter({
name: 'CM: Current Processing',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

const io = require('@pm2/io')
const io = require('@arcblock/pm2.io')

// Straight Metric
var user_count = 10
Expand Down
111 changes: 57 additions & 54 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
},
"dependencies": {
"@pm2/agent": "~2.0.0",
"@pm2/io": "npm:@arcblock/pm2.io@6.0.1",
"@arcblock/pm2.io": "~6.0.1",
"@pm2/js-api": "~0.8.0",
"@pm2/pm2-version-check": "latest",
"async": "~3.2.0",
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('@arcblock/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('@arcblock/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('@arcblock/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('@arcblock/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('@arcblock/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('@arcblock/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('@arcblock/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('@arcblock/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('@arcblock/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('@arcblock/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('@arcblock/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('@arcblock/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('@arcblock/pm2.io').init({
http : true
});

Expand Down

0 comments on commit a57d461

Please sign in to comment.