@gabrielrufino/cube 2.0.16 → 2.0.18

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.
@@ -68,13 +68,17 @@ var HashTable = /** @class */ (function () {
68
68
  return code % this.maxSize;
69
69
  };
70
70
  HashTable.prototype[Symbol.toPrimitive] = function (type) {
71
+ var pairs = Object
72
+ .entries(this.data)
73
+ .map(function (_a) {
74
+ var key = _a[0], value = _a[1];
75
+ return "".concat(key, " => ").concat(value);
76
+ })
77
+ .join(', ');
71
78
  var primitives = {
72
79
  default: true,
73
80
  number: this.size,
74
- string: "[ ".concat(Object.entries(this.data).map(function (_a) {
75
- var key = _a[0], value = _a[1];
76
- return "".concat(key, " => ").concat(value);
77
- }).join(', '), " ]"),
81
+ string: "[ ".concat(pairs, " ]"),
78
82
  };
79
83
  return primitives[type];
80
84
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gabrielrufino/cube",
3
- "version": "2.0.16",
3
+ "version": "2.0.18",
4
4
  "description": "Data structures made in Typescript",
5
5
  "author": "Gabriel Rufino <contato@gabrielrufino.com>",
6
6
  "license": "UNLICENSED",
@@ -35,9 +35,9 @@
35
35
  "@faker-js/faker": "^9.9.0",
36
36
  "@stryker-mutator/vitest-runner": "^8.7.1",
37
37
  "@vitest/coverage-v8": "^3.2.4",
38
- "eslint": "^9.35.0",
38
+ "eslint": "^9.38.0",
39
39
  "husky": "^9.1.7",
40
- "typescript": "^5.9.2",
40
+ "typescript": "^5.9.3",
41
41
  "vitest": "^3.0.4"
42
42
  }
43
43
  }