@colyseus/schema 1.0.32 → 1.0.35

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/README.md CHANGED
@@ -7,10 +7,6 @@
7
7
  An incremental binary state serializer with delta encoding for games.<br>
8
8
  Although it was born to be used on <a href="https://github.com/colyseus/colyseus">Colyseus</a>, this library can be used as standalone.
9
9
  </p>
10
-
11
- <a href="https://travis-ci.org/colyseus/schema">
12
- <img src="https://img.shields.io/travis/colyseus/schema.svg?style=for-the-badge" alt="Build status" />
13
- </a>
14
10
  </div>
15
11
 
16
12
  ## Defining Schema
@@ -712,7 +712,7 @@ var ArraySchema = /** @class */ (function () {
712
712
  * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
713
713
  */
714
714
  ArraySchema.prototype.reduce = function (callbackfn, initialValue) {
715
- return Array.from(this.$items.values()).reduce(callbackfn, initialValue);
715
+ return Array.prototype.reduce.apply(Array.from(this.$items.values()), arguments);
716
716
  };
717
717
  /**
718
718
  * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
@@ -720,7 +720,7 @@ var ArraySchema = /** @class */ (function () {
720
720
  * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
721
721
  */
722
722
  ArraySchema.prototype.reduceRight = function (callbackfn, initialValue) {
723
- return Array.from(this.$items.values()).reduceRight(callbackfn, initialValue);
723
+ return Array.prototype.reduceRight.apply(Array.from(this.$items.values()), arguments);
724
724
  };
725
725
  /**
726
726
  * Returns the value of the first element in the array where predicate is true, and undefined