@prometheus-ags/entity-graph-core 3.1.0 → 3.2.0
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/CHANGELOG.md +6 -0
- package/dist/devtools.cjs +14 -4
- package/dist/devtools.cjs.map +1 -1
- package/dist/devtools.mjs +14 -4
- package/dist/devtools.mjs.map +1 -1
- package/package.json +1 -1
package/dist/devtools.mjs
CHANGED
|
@@ -1322,12 +1322,22 @@ function createController(store, options) {
|
|
|
1322
1322
|
}
|
|
1323
1323
|
};
|
|
1324
1324
|
if (encodedBytes2(withoutValues) <= eventBytesLimit) return withoutValues;
|
|
1325
|
+
const emptyWithAffectedMetadata = {
|
|
1326
|
+
...withoutValues,
|
|
1327
|
+
payload: {
|
|
1328
|
+
...withoutValues.payload,
|
|
1329
|
+
changes: [],
|
|
1330
|
+
changesOmitted: withoutValues.payload.changes.length
|
|
1331
|
+
}
|
|
1332
|
+
};
|
|
1333
|
+
const { affectedEntities: _affectedEntities, affectedViewIds: _affectedViewIds, ...compactPayload } = withoutValues.payload;
|
|
1334
|
+
const boundedBase = encodedBytes2(emptyWithAffectedMetadata) <= eventBytesLimit ? withoutValues : { ...withoutValues, payload: compactPayload };
|
|
1325
1335
|
let lower = 0;
|
|
1326
1336
|
let upper = withoutValues.payload.changes.length;
|
|
1327
1337
|
let bounded = {
|
|
1328
|
-
...
|
|
1338
|
+
...boundedBase,
|
|
1329
1339
|
payload: {
|
|
1330
|
-
...
|
|
1340
|
+
...boundedBase.payload,
|
|
1331
1341
|
changes: [],
|
|
1332
1342
|
changesOmitted: withoutValues.payload.changes.length
|
|
1333
1343
|
}
|
|
@@ -1335,9 +1345,9 @@ function createController(store, options) {
|
|
|
1335
1345
|
while (lower <= upper) {
|
|
1336
1346
|
const count = Math.floor((lower + upper) / 2);
|
|
1337
1347
|
const candidate = {
|
|
1338
|
-
...
|
|
1348
|
+
...boundedBase,
|
|
1339
1349
|
payload: {
|
|
1340
|
-
...
|
|
1350
|
+
...boundedBase.payload,
|
|
1341
1351
|
changes: withoutValues.payload.changes.slice(0, count),
|
|
1342
1352
|
changesOmitted: withoutValues.payload.changes.length - count
|
|
1343
1353
|
}
|