gamerpc 8.0.3 → 8.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/utils/util.js +31 -31
package/package.json
CHANGED
package/src/utils/util.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
8
|
//const assert = require('assert');
|
|
9
|
-
const nodeUtil = require('util');
|
|
9
|
+
//const nodeUtil = require('util');
|
|
10
10
|
// const aes = require('./aes');
|
|
11
11
|
// const createHmac = require('create-hmac/browser');
|
|
12
12
|
const io = require('socket.io-client');
|
|
@@ -413,39 +413,39 @@ util.isSafeAddition = function isSafeAddition(a, b) {
|
|
|
413
413
|
* @return {String}
|
|
414
414
|
*/
|
|
415
415
|
|
|
416
|
-
util.inspectify = function inspectify(obj, color) {
|
|
417
|
-
|
|
418
|
-
|
|
416
|
+
// util.inspectify = function inspectify(obj, color) {
|
|
417
|
+
// if (typeof obj === 'string')
|
|
418
|
+
// return obj;
|
|
419
419
|
|
|
420
|
-
|
|
420
|
+
// inspectOptions.colors = color !== false;
|
|
421
421
|
|
|
422
|
-
|
|
423
|
-
};
|
|
424
|
-
|
|
425
|
-
/**
|
|
426
|
-
* Format a string.
|
|
427
|
-
* @function
|
|
428
|
-
* @param {...String} args
|
|
429
|
-
* @returns {String}
|
|
430
|
-
*/
|
|
431
|
-
|
|
432
|
-
util.fmt = nodeUtil.format;
|
|
433
|
-
|
|
434
|
-
/**
|
|
435
|
-
* Format a string.
|
|
436
|
-
* @param {Array} args
|
|
437
|
-
* @param {Boolean?} color
|
|
438
|
-
* @return {String}
|
|
439
|
-
*/
|
|
422
|
+
// return nodeUtil.inspect(obj, inspectOptions);
|
|
423
|
+
// };
|
|
440
424
|
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
425
|
+
// /**
|
|
426
|
+
// * Format a string.
|
|
427
|
+
// * @function
|
|
428
|
+
// * @param {...String} args
|
|
429
|
+
// * @returns {String}
|
|
430
|
+
// */
|
|
431
|
+
|
|
432
|
+
// util.fmt = nodeUtil.format;
|
|
433
|
+
|
|
434
|
+
// /**
|
|
435
|
+
// * Format a string.
|
|
436
|
+
// * @param {Array} args
|
|
437
|
+
// * @param {Boolean?} color
|
|
438
|
+
// * @return {String}
|
|
439
|
+
// */
|
|
440
|
+
|
|
441
|
+
// util.format = function format(args, color) {
|
|
442
|
+
// if (args.length > 0 && args[0] && typeof args[0] === 'object') {
|
|
443
|
+
// if (color == null)
|
|
444
|
+
// color = Boolean(process.stdout && process.stdout.isTTY);
|
|
445
|
+
// return util.inspectify(args[0], color);
|
|
446
|
+
// }
|
|
447
|
+
// return util.fmt(...args);
|
|
448
|
+
// };
|
|
449
449
|
|
|
450
450
|
/**
|
|
451
451
|
* Write a message to stdout (console in browser).
|