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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/utils/util.js +31 -31
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gamerpc",
3
- "version": "8.0.3",
3
+ "version": "8.0.5",
4
4
  "author": "bookmansoft <ceo@920.cc>",
5
5
  "contributors": [
6
6
  "bookmansoft <ceo@920.cc>"
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
- if (typeof obj === 'string')
418
- return obj;
416
+ // util.inspectify = function inspectify(obj, color) {
417
+ // if (typeof obj === 'string')
418
+ // return obj;
419
419
 
420
- inspectOptions.colors = color !== false;
420
+ // inspectOptions.colors = color !== false;
421
421
 
422
- return nodeUtil.inspect(obj, inspectOptions);
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
- 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
- };
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).