@colyseus/schema 3.0.4 → 3.0.6
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/build/cjs/index.js +4 -5
- package/build/cjs/index.js.map +1 -1
- package/build/esm/index.mjs +4 -5
- package/build/esm/index.mjs.map +1 -1
- package/build/umd/index.js +4 -5
- package/lib/decoder/Decoder.js +2 -3
- package/lib/decoder/Decoder.js.map +1 -1
- package/lib/types/custom/ArraySchema.d.ts +8 -0
- package/lib/types/custom/ArraySchema.js +2 -2
- package/lib/types/custom/ArraySchema.js.map +1 -1
- package/package.json +1 -1
- package/src/decoder/Decoder.ts +2 -4
- package/src/types/custom/ArraySchema.ts +10 -10
package/build/cjs/index.js
CHANGED
|
@@ -2230,8 +2230,8 @@ class ArraySchema {
|
|
|
2230
2230
|
lastIndexOf(searchElement, fromIndex = this.length - 1) {
|
|
2231
2231
|
return this.items.lastIndexOf(searchElement, fromIndex);
|
|
2232
2232
|
}
|
|
2233
|
-
every(
|
|
2234
|
-
return this.items.every(
|
|
2233
|
+
every(callbackfn, thisArg) {
|
|
2234
|
+
return this.items.every(callbackfn, thisArg);
|
|
2235
2235
|
}
|
|
2236
2236
|
/**
|
|
2237
2237
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
@@ -4205,12 +4205,11 @@ class Decoder {
|
|
|
4205
4205
|
return new type();
|
|
4206
4206
|
}
|
|
4207
4207
|
removeChildRefs(ref, allChanges) {
|
|
4208
|
-
const changeTree = ref[$changes];
|
|
4209
4208
|
const needRemoveRef = typeof (ref[$childType]) !== "string";
|
|
4210
|
-
const refId =
|
|
4209
|
+
const refId = this.root.refIds.get(ref);
|
|
4211
4210
|
ref.forEach((value, key) => {
|
|
4212
4211
|
allChanges.push({
|
|
4213
|
-
ref:
|
|
4212
|
+
ref: ref,
|
|
4214
4213
|
refId,
|
|
4215
4214
|
op: exports.OPERATION.DELETE,
|
|
4216
4215
|
field: key,
|