@gabrielrufino/cube 1.0.39 → 1.0.41
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.
|
@@ -5,7 +5,6 @@ var Algorithms = /** @class */ (function () {
|
|
|
5
5
|
function Algorithms() {
|
|
6
6
|
}
|
|
7
7
|
Algorithms.decimalToBinary = function (n) {
|
|
8
|
-
var _a;
|
|
9
8
|
var stack = new __1.Stack();
|
|
10
9
|
while (n > 0) {
|
|
11
10
|
var rem = Math.floor(n % 2);
|
|
@@ -14,8 +13,7 @@ var Algorithms = /** @class */ (function () {
|
|
|
14
13
|
}
|
|
15
14
|
var binary = '';
|
|
16
15
|
while (!stack.isEmpty) {
|
|
17
|
-
|
|
18
|
-
binary += (_a = stack.pop()) === null || _a === void 0 ? void 0 : _a.toString();
|
|
16
|
+
binary += stack.pop().toString();
|
|
19
17
|
}
|
|
20
18
|
return binary;
|
|
21
19
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gabrielrufino/cube",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.41",
|
|
4
4
|
"description": "Data Structures and Algorithms made in Typescript",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"@stryker-mutator/jest-runner": "^6.2.2",
|
|
35
35
|
"@stryker-mutator/typescript-checker": "^6.2.2",
|
|
36
36
|
"@types/jest": "^28.1.8",
|
|
37
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
38
|
-
"@typescript-eslint/parser": "^5.
|
|
39
|
-
"eslint": "^8.
|
|
37
|
+
"@typescript-eslint/eslint-plugin": "^5.38.0",
|
|
38
|
+
"@typescript-eslint/parser": "^5.38.0",
|
|
39
|
+
"eslint": "^8.24.0",
|
|
40
40
|
"eslint-config-xo": "^0.42.0",
|
|
41
41
|
"jest": "^28.1.3",
|
|
42
42
|
"rimraf": "^3.0.2",
|