@colyseus/loadtest
Advanced tools
Comparing version 0.16.0-preview.3 to 0.16.0-preview.4
@@ -33,8 +33,8 @@ var __create = Object.create; | ||
module.exports = __toCommonJS(src_exports); | ||
var import_fs = __toESM(require("fs")); | ||
var import_path = __toESM(require("path")); | ||
var import_util = __toESM(require("util")); | ||
var import_blessed = __toESM(require("blessed")); | ||
var import_promises = __toESM(require("timers/promises")); | ||
var import_minimist = __toESM(require("minimist")); | ||
var import_fs = __toESM(require("fs"), 1); | ||
var import_path = __toESM(require("path"), 1); | ||
var import_util = __toESM(require("util"), 1); | ||
var import_blessed = __toESM(require("blessed"), 1); | ||
var import_promises = __toESM(require("timers/promises"), 1); | ||
var import_minimist = __toESM(require("minimist"), 1); | ||
var import_colyseus = require("colyseus.js"); | ||
@@ -247,2 +247,3 @@ function cli(main) { | ||
screen.render(); | ||
const debug = console.debug; | ||
const log = console.log; | ||
@@ -252,2 +253,7 @@ const warn = console.warn; | ||
const error = console.error; | ||
console.debug = function(...args) { | ||
logBox.content = `{grey-fg}${args.map((arg) => import_util.default.inspect(arg)).join(" ")}{/grey-fg} | ||
${logBox.content}`; | ||
screen.render(); | ||
}; | ||
console.log = function(...args) { | ||
@@ -415,2 +421,8 @@ logBox.content = args.map((arg) => import_util.default.inspect(arg)).join(" ") + "\n" + logBox.content; | ||
}; | ||
const _originalCreate = import_colyseus.Client.prototype.create; | ||
import_colyseus.Client.prototype.create = async function() { | ||
const room = await _originalCreate.apply(this, arguments); | ||
handleClientJoin(room); | ||
return room; | ||
}; | ||
const _originalJoin = import_colyseus.Client.prototype.join; | ||
@@ -422,2 +434,8 @@ import_colyseus.Client.prototype.join = async function() { | ||
}; | ||
const _originalJoinById = import_colyseus.Client.prototype.joinById; | ||
import_colyseus.Client.prototype.joinById = async function() { | ||
const room = await _originalJoinById.apply(this, arguments); | ||
handleClientJoin(room); | ||
return room; | ||
}; | ||
try { | ||
@@ -424,0 +442,0 @@ (async () => { |
{ | ||
"name": "@colyseus/loadtest", | ||
"version": "0.16.0-preview.3", | ||
"version": "0.16.0-preview.4", | ||
"description": "Utility tool for load testing Colyseus.", | ||
"type": "module", | ||
"input": "./src/index.ts", | ||
@@ -6,0 +7,0 @@ "main": "./build/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
90006
916
Yes