@gabrielrufino/cube 1.0.24 → 1.0.25

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.
@@ -86,9 +86,7 @@ var HashTableLinearProbing = /** @class */ (function () {
86
86
  && this._nextPositionOf(i) !== position; i = this._nextPositionOf(i)) {
87
87
  this._data[i] = this._data[this._nextPositionOf(i)];
88
88
  }
89
- if (i !== position) {
90
- Reflect.deleteProperty(this._data, i);
91
- }
89
+ Reflect.deleteProperty(this._data, i);
92
90
  return value;
93
91
  }
94
92
  return null;
@@ -107,13 +105,12 @@ var HashTableLinearProbing = /** @class */ (function () {
107
105
  return (position + this.size - 1) % this._maxSize;
108
106
  };
109
107
  HashTableLinearProbing.prototype[Symbol.toPrimitive] = function (type) {
110
- if (type === 'string') {
111
- return "[ ".concat(Object.values(this.data).join(', '), " ]");
112
- }
113
- if (type === 'number') {
114
- return this.size;
115
- }
116
- return null;
108
+ var primitives = {
109
+ default: true,
110
+ number: this.size,
111
+ string: "[ ".concat(Object.values(this.data).join(', '), " ]"),
112
+ };
113
+ return primitives[type];
117
114
  };
118
115
  return HashTableLinearProbing;
119
116
  }());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gabrielrufino/cube",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "description": "Data Structures and Algorithms made in Typescript",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -28,20 +28,20 @@
28
28
  },
29
29
  "homepage": "https://github.com/gabrielrufino/cube#readme",
30
30
  "devDependencies": {
31
- "@faker-js/faker": "^6.1.2",
31
+ "@faker-js/faker": "^6.3.1",
32
32
  "@stryker-mutator/core": "^6.0.2",
33
33
  "@stryker-mutator/jest-runner": "^6.0.2",
34
34
  "@stryker-mutator/typescript-checker": "^6.0.2",
35
- "@types/jest": "^27.4.1",
36
- "@typescript-eslint/eslint-plugin": "^5.13.0",
37
- "@typescript-eslint/parser": "^5.13.0",
38
- "eslint": "^8.10.0",
35
+ "@types/jest": "^27.5.1",
36
+ "@typescript-eslint/eslint-plugin": "^5.26.0",
37
+ "@typescript-eslint/parser": "^5.26.0",
38
+ "eslint": "^8.16.0",
39
39
  "eslint-config-xo": "^0.39.0",
40
40
  "jest": "^27.5.1",
41
41
  "rimraf": "^3.0.2",
42
42
  "stryker-cli": "^1.0.2",
43
- "ts-jest": "^27.1.3",
44
- "ts-node": "^10.5.0",
45
- "typescript": "^4.6.2"
43
+ "ts-jest": "^27.1.5",
44
+ "ts-node": "^10.8.0",
45
+ "typescript": "^4.6.4"
46
46
  }
47
47
  }