@contrail/util 2.2.0-alpha.6ba8ba9 → 2.2.0-alpha.72fba22

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.
@@ -35,7 +35,9 @@ function exceedsResponseBudget(value, options = {}) {
35
35
  if (value.length === 0) {
36
36
  return false;
37
37
  }
38
- let totalBytes = 2 + (value.length - 1);
38
+ const bracketBytes = '[]'.length;
39
+ const separatorBytes = value.length - 1;
40
+ let totalBytes = bracketBytes + separatorBytes;
39
41
  for (const element of value) {
40
42
  if (totalBytes > budgetBytes) {
41
43
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/util",
3
- "version": "2.2.0-alpha.6ba8ba9",
3
+ "version": "2.2.0-alpha.72fba22",
4
4
  "description": "General JavaScript utilities",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",