protobufjs 6.10.0-beta.2 → 6.10.2

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/dist/protobuf.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * protobuf.js v6.9.0 (c) 2016, daniel wirtz
3
- * compiled mon, 13 jul 2020 22:57:44 utc
2
+ * protobuf.js v6.10.0 (c) 2016, daniel wirtz
3
+ * compiled wed, 15 jul 2020 23:34:13 utc
4
4
  * licensed under the bsd-3-clause license
5
5
  * see: https://github.com/dcodeio/protobuf.js for details
6
6
  */
@@ -7682,8 +7682,23 @@ util.pool = require(9);
7682
7682
  // utility to work with the low and high bits of a 64 bit value
7683
7683
  util.LongBits = require(38);
7684
7684
 
7685
- // global object reference
7686
- util.global = typeof global !== "undefined" && Object.prototype.toString.call(global) === "[object global]" && global
7685
+ /**
7686
+ * Whether running within node or not.
7687
+ * @memberof util
7688
+ * @type {boolean}
7689
+ */
7690
+ util.isNode = Boolean(typeof global !== "undefined"
7691
+ && global
7692
+ && global.process
7693
+ && global.process.versions
7694
+ && global.process.versions.node);
7695
+
7696
+ /**
7697
+ * Global object reference.
7698
+ * @memberof util
7699
+ * @type {Object}
7700
+ */
7701
+ util.global = util.isNode && global
7687
7702
  || typeof window !== "undefined" && window
7688
7703
  || typeof self !== "undefined" && self
7689
7704
  || this; // eslint-disable-line no-invalid-this
@@ -7703,14 +7718,6 @@ util.emptyArray = Object.freeze ? Object.freeze([]) : /* istanbul ignore next */
7703
7718
  */
7704
7719
  util.emptyObject = Object.freeze ? Object.freeze({}) : /* istanbul ignore next */ {}; // used on prototypes
7705
7720
 
7706
- /**
7707
- * Whether running within node or not.
7708
- * @memberof util
7709
- * @type {boolean}
7710
- * @const
7711
- */
7712
- util.isNode = Boolean(util.global.process && util.global.process.versions && util.global.process.versions.node);
7713
-
7714
7721
  /**
7715
7722
  * Tests if the specified value is an integer.
7716
7723
  * @function