gg-tools-kit 1.0.0 → 1.0.2

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.
@@ -1,8 +1,9 @@
1
1
  import Init from "./containers/InitContainers";
2
2
  import Protections from "./containers/ProtectionsContainer";
3
3
  import Utils from "./containers/UtilsContainer";
4
- export default class GGToolsKit {
4
+ declare class GGToolsKit {
5
5
  static Init: typeof Init;
6
6
  static Protections: typeof Protections;
7
7
  static Utils: typeof Utils;
8
8
  }
9
+ export = GGToolsKit;
@@ -2,7 +2,6 @@
2
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
5
  const InitContainers_1 = __importDefault(require("./containers/InitContainers"));
7
6
  const ProtectionsContainer_1 = __importDefault(require("./containers/ProtectionsContainer"));
8
7
  const UtilsContainer_1 = __importDefault(require("./containers/UtilsContainer"));
@@ -14,4 +13,4 @@ GGToolsKit.Init = InitContainers_1.default;
14
13
  GGToolsKit.Protections = ProtectionsContainer_1.default;
15
14
  // Utils Container
16
15
  GGToolsKit.Utils = UtilsContainer_1.default;
17
- exports.default = GGToolsKit;
16
+ module.exports = GGToolsKit;
@@ -71,7 +71,7 @@ app.get("/", (req, res) => {
71
71
  app.listen(3000, () => console.log("Server running on port 3000"));
72
72
  `;
73
73
  const content = language === "typescript" ? tsContent : jsContent;
74
- fs_1.default.writeFileSync(path_1.default.join(projectPath, "src", `index.${fileExtension}`), content);
74
+ fs_1.default.writeFileSync(path_1.default.join(projectPath, "src", `server.${fileExtension}`), content);
75
75
  }
76
76
  // Install essential packages
77
77
  static installPackages(TypeScript = false, projectPath = process.cwd()) {
@@ -159,9 +159,9 @@ app.listen(3000, () => console.log("Server running on port 3000"));
159
159
  // Add TypeScript scripts
160
160
  packageJson.scripts = {
161
161
  ...packageJson.scripts,
162
- dev: "ts-node-dev --respawn --transpile-only src/index.ts",
162
+ dev: "ts-node-dev --respawn --transpile-only src/server.ts",
163
163
  build: "tsc",
164
- start: "node dist/index.js",
164
+ start: "node dist/server.js",
165
165
  };
166
166
  }
167
167
  else {
@@ -170,8 +170,8 @@ app.listen(3000, () => console.log("Server running on port 3000"));
170
170
  // Add JavaScript scripts
171
171
  packageJson.scripts = {
172
172
  ...packageJson.scripts,
173
- dev: "node src/index.js",
174
- start: "node src/index.js",
173
+ dev: "node src/server.js",
174
+ start: "node src/server.js",
175
175
  };
176
176
  }
177
177
  fs_1.default.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gg-tools-kit",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "A Node.js toolkit for utilities and protections",
5
5
  "main": "dist/GGToolsKit.js",
6
6
  "types": "dist/GGToolsKit.d.ts",
@@ -13,14 +13,15 @@
13
13
  "author": "MohenedGG",
14
14
  "license": "ISC",
15
15
  "type": "commonjs",
16
- "files": ["dist"],
16
+ "files": [
17
+ "dist"
18
+ ],
17
19
  "dependencies": {
18
20
  "compression": "^1.7.4",
19
21
  "cookie-parser": "^1.4.7",
20
22
  "cors": "^2.8.5",
21
23
  "dotenv": "^17.2.3",
22
24
  "express": "^5.2.1",
23
- "express-compression": "^1.0.2",
24
25
  "get-video-duration": "^5.0.0",
25
26
  "helmet": "^8.1.0",
26
27
  "hpp": "^0.2.3",