@gabrielrufino/cerebrum 1.5.3 → 2.0.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.
@@ -5,6 +5,9 @@ on:
5
5
  - push
6
6
  - workflow_dispatch
7
7
 
8
+ permissions:
9
+ pull-requests: write
10
+
8
11
  jobs:
9
12
  node-ci:
10
13
  name: Node CI
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Factorial"), exports);
18
+ __exportStar(require("./Fibonacci"), exports);
19
+ __exportStar(require("./LinearRegression"), exports);
20
+ __exportStar(require("./SieveOfErastosthenes"), exports);
21
+ __exportStar(require("./TwoSum"), exports);
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./BinarySearch"), exports);
18
+ __exportStar(require("./LinearSearch"), exports);
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./BubbleSort"), exports);
18
+ __exportStar(require("./MergeSort"), exports);
19
+ __exportStar(require("./QuickSort"), exports);
20
+ __exportStar(require("./SelectionSort"), exports);
package/dist/index.js CHANGED
@@ -15,9 +15,6 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
- };
21
18
  var __importStar = (this && this.__importStar) || (function () {
22
19
  var ownKeys = function(o) {
23
20
  ownKeys = Object.getOwnPropertyNames || function (o) {
@@ -36,14 +33,8 @@ var __importStar = (this && this.__importStar) || (function () {
36
33
  };
37
34
  })();
38
35
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.NLP = void 0;
40
- __exportStar(require("./Math/Factorial"), exports);
41
- __exportStar(require("./Math/Fibonacci"), exports);
42
- __exportStar(require("./Math/LinearRegression"), exports);
43
- __exportStar(require("./Math/SieveOfErastosthenes"), exports);
44
- __exportStar(require("./Math/TwoSum"), exports);
36
+ exports.Sort = exports.Search = exports.NLP = exports.Math = void 0;
37
+ exports.Math = __importStar(require("./Math"));
45
38
  exports.NLP = __importStar(require("./NLP"));
46
- __exportStar(require("./Search/BinarySearch"), exports);
47
- __exportStar(require("./Search/LinearSearch"), exports);
48
- __exportStar(require("./Sort/BubbleSort"), exports);
49
- __exportStar(require("./Sort/SelectionSort"), exports);
39
+ exports.Search = __importStar(require("./Search"));
40
+ exports.Sort = __importStar(require("./Sort"));
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@gabrielrufino/cerebrum",
3
- "version": "1.5.3",
3
+ "version": "2.0.0",
4
4
  "description": "Algorithms made in TypeScript",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
7
7
  "scripts": {
8
8
  "build": "tsc",
9
+ "build:watch": "npm run build -- --watch",
9
10
  "lint": "eslint ./src/**.ts",
10
11
  "lint:fix": "npm run lint -- --fix",
11
12
  "test": "vitest run",
@@ -22,7 +23,7 @@
22
23
  "@vitest/coverage-v8": "^2.1.8",
23
24
  "eslint": "^8.57.1",
24
25
  "husky": "^9.1.7",
25
- "typescript": "^5.7.2",
26
+ "typescript": "^5.7.3",
26
27
  "vitest": "^2.1.0"
27
28
  },
28
29
  "funding": [
@@ -0,0 +1,5 @@
1
+ export * from './Factorial';
2
+ export * from './Fibonacci';
3
+ export * from './LinearRegression';
4
+ export * from './SieveOfErastosthenes';
5
+ export * from './TwoSum';
@@ -0,0 +1,2 @@
1
+ export * from './BinarySearch';
2
+ export * from './LinearSearch';
@@ -0,0 +1,4 @@
1
+ export * from './BubbleSort';
2
+ export * from './MergeSort';
3
+ export * from './QuickSort';
4
+ export * from './SelectionSort';
package/src/index.ts CHANGED
@@ -1,13 +1,4 @@
1
- export * from './Math/Factorial';
2
- export * from './Math/Fibonacci';
3
- export * from './Math/LinearRegression';
4
- export * from './Math/SieveOfErastosthenes';
5
- export * from './Math/TwoSum';
6
-
1
+ export * as Math from './Math';
7
2
  export * as NLP from './NLP';
8
-
9
- export * from './Search/BinarySearch';
10
- export * from './Search/LinearSearch';
11
-
12
- export * from './Sort/BubbleSort';
13
- export * from './Sort/SelectionSort';
3
+ export * as Search from './Search';
4
+ export * as Sort from './Sort';