create-prisma-php-app 1.22.6 → 1.22.7

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.
@@ -138,8 +138,6 @@ function getFilePrecedence()
138
138
 
139
139
  function uriExtractor(string $scriptUrl): string
140
140
  {
141
- if ($_ENV['APP_ENV'] !== 'development') return "/";
142
-
143
141
  global $_prismaPHPSettings;
144
142
 
145
143
  $projectName = $_prismaPHPSettings['projectName'] ?? '';
@@ -1,48 +1,47 @@
1
1
  import { createProxyMiddleware } from "http-proxy-middleware";
2
- import { readFileSync, writeFileSync } from "fs";
2
+ import { writeFileSync } from "fs";
3
3
  import chokidar from "chokidar";
4
4
  import browserSync from "browser-sync";
5
- // import prismaPhpConfig from "../prisma-php.json" assert { type: "json" };
5
+ import prismaPhpConfig from "../prisma-php.json";
6
6
  import { generateFileListJson } from "./files-list.js";
7
- import { join, dirname } from "path";
8
- import { fileURLToPath } from "url";
9
- const __filename = fileURLToPath(import.meta.url);
10
- const __dirname = dirname(__filename);
7
+ import { join } from "path";
8
+ import { getFileMeta } from "./utils.js";
9
+ const { __dirname } = getFileMeta();
11
10
  const bs = browserSync.create();
12
- const prismaPhpConfig = JSON.parse(readFileSync(join(__dirname, "..", "prisma-php.json")).toString("utf-8"));
13
11
  // Watch for file changes (create, delete, save)
14
12
  const watcher = chokidar.watch("src/app/**/*", {
15
- ignored: /(^|[\/\\])\../, // Ignore dotfiles
16
- persistent: true,
17
- usePolling: true,
18
- interval: 1000,
13
+ ignored: /(^|[\/\\])\../, // Ignore dotfiles
14
+ persistent: true,
15
+ usePolling: true,
16
+ interval: 1000,
19
17
  });
20
18
  // Perform specific actions for file events
21
19
  watcher
22
- .on("add", (path) => {
20
+ .on("add", () => {
23
21
  generateFileListJson();
24
- })
25
- .on("change", (path) => {
22
+ })
23
+ .on("change", () => {
26
24
  generateFileListJson();
27
- })
28
- .on("unlink", (path) => {
25
+ })
26
+ .on("unlink", () => {
29
27
  generateFileListJson();
30
- });
28
+ });
31
29
  // BrowserSync initialization
32
- bs.init({
30
+ bs.init(
31
+ {
33
32
  proxy: "http://localhost:3000",
34
33
  middleware: [
35
- (req, res, next) => {
36
- res.setHeader("Cache-Control", "no-cache, no-store, must-revalidate");
37
- res.setHeader("Pragma", "no-cache");
38
- res.setHeader("Expires", "0");
39
- next();
40
- },
41
- createProxyMiddleware({
42
- target: prismaPhpConfig.bsTarget,
43
- changeOrigin: true,
44
- pathRewrite: {},
45
- }),
34
+ (_, res, next) => {
35
+ res.setHeader("Cache-Control", "no-cache, no-store, must-revalidate");
36
+ res.setHeader("Pragma", "no-cache");
37
+ res.setHeader("Expires", "0");
38
+ next();
39
+ },
40
+ createProxyMiddleware({
41
+ target: prismaPhpConfig.bsTarget,
42
+ changeOrigin: true,
43
+ pathRewrite: {},
44
+ }),
46
45
  ],
47
46
  files: "src/**/*.*",
48
47
  notify: false,
@@ -50,13 +49,14 @@ bs.init({
50
49
  ghostMode: false,
51
50
  codeSync: true, // Disable synchronization of code changes across clients
52
51
  watchOptions: {
53
- usePolling: true,
54
- interval: 1000,
52
+ usePolling: true,
53
+ interval: 1000,
55
54
  },
56
- }, (err, bsInstance) => {
55
+ },
56
+ (err, bsInstance) => {
57
57
  if (err) {
58
- console.error("BrowserSync failed to start:", err);
59
- return;
58
+ console.error("BrowserSync failed to start:", err);
59
+ return;
60
60
  }
61
61
  // Retrieve the active URLs from the BrowserSync instance
62
62
  const options = bsInstance.getOption("urls");
@@ -66,10 +66,14 @@ bs.init({
66
66
  const uiExternalUrl = options.get("ui-external");
67
67
  // Construct the URLs dynamically
68
68
  const urls = {
69
- local: localUrl,
70
- external: externalUrl,
71
- ui: uiUrl,
72
- uiExternal: uiExternalUrl,
69
+ local: localUrl,
70
+ external: externalUrl,
71
+ ui: uiUrl,
72
+ uiExternal: uiExternalUrl,
73
73
  };
74
- writeFileSync(join(__dirname, "bs-config.json"), JSON.stringify(urls, null, 2));
75
- });
74
+ writeFileSync(
75
+ join(__dirname, "bs-config.json"),
76
+ JSON.stringify(urls, null, 2)
77
+ );
78
+ }
79
+ );
@@ -1,43 +1,43 @@
1
- import fs from "fs";
2
- import { join, sep, relative, dirname } from "path";
3
- import { fileURLToPath } from "url";
4
- const __filename = fileURLToPath(import.meta.url);
5
- const __dirname = dirname(__filename);
1
+ import { existsSync, readdirSync, statSync, writeFileSync } from "fs";
2
+ import { join, sep, relative } from "path";
3
+ import { getFileMeta } from "./utils.js";
4
+ const { __dirname } = getFileMeta();
6
5
  // Define the directory and JSON file paths correctly
7
6
  const dirPath = "src/app"; // Directory path
8
7
  const jsonFilePath = "settings/files-list.json"; // Path to the JSON file
9
8
  // Function to get all files in the directory
10
9
  const getAllFiles = (dirPath) => {
11
- const files = [];
12
- // Check if directory exists before reading
13
- if (!fs.existsSync(dirPath)) {
14
- console.error(`Directory not found: ${dirPath}`);
15
- return files; // Return an empty array if the directory doesn't exist
10
+ const files = [];
11
+ // Check if directory exists before reading
12
+ if (!existsSync(dirPath)) {
13
+ console.error(`Directory not found: ${dirPath}`);
14
+ return files; // Return an empty array if the directory doesn't exist
15
+ }
16
+ const items = readdirSync(dirPath);
17
+ items.forEach((item) => {
18
+ const fullPath = join(dirPath, item);
19
+ if (statSync(fullPath).isDirectory()) {
20
+ files.push(...getAllFiles(fullPath)); // Recursive call for subdirectories
21
+ } else {
22
+ // Generate the relative path and ensure it starts with ./src
23
+ const relativePath = `.${sep}${relative(
24
+ join(__dirname, ".."),
25
+ fullPath
26
+ )}`;
27
+ // Replace only the root backslashes with forward slashes and leave inner ones
28
+ files.push(relativePath.replace(/\\/g, "/").replace(/^\.\.\//, ""));
16
29
  }
17
- const items = fs.readdirSync(dirPath);
18
- items.forEach((item) => {
19
- const fullPath = join(dirPath, item);
20
- if (fs.statSync(fullPath).isDirectory()) {
21
- files.push(...getAllFiles(fullPath)); // Recursive call for subdirectories
22
- }
23
- else {
24
- // Generate the relative path and ensure it starts with ./src
25
- const relativePath = `.${sep}${relative(join(__dirname, ".."), fullPath)}`;
26
- // Replace only the root backslashes with forward slashes and leave inner ones
27
- files.push(relativePath.replace(/\\/g, "/").replace(/^\.\.\//, ""));
28
- }
29
- });
30
- return files;
30
+ });
31
+ return files;
31
32
  };
32
33
  // Function to generate the files-list.json
33
- export const generateFileListJson = () => {
34
- const files = getAllFiles(dirPath);
35
- // If files exist, generate JSON file
36
- if (files.length > 0) {
37
- fs.writeFileSync(jsonFilePath, JSON.stringify(files, null, 2));
38
- // console.log(`File list has been saved to: ${jsonFilePath}`);
39
- }
40
- else {
41
- console.error("No files found to save in the JSON file.");
42
- }
34
+ export const generateFileListJson = async () => {
35
+ const files = getAllFiles(dirPath);
36
+ // If files exist, generate JSON file
37
+ if (files.length > 0) {
38
+ writeFileSync(jsonFilePath, JSON.stringify(files, null, 2));
39
+ // console.log(`File list has been saved to: ${jsonFilePath}`);
40
+ } else {
41
+ console.error("No files found to save in the JSON file.");
42
+ }
43
43
  };
@@ -1,58 +1,66 @@
1
- import fs, { readFileSync } from "fs";
1
+ import { writeFile } from "fs";
2
2
  import { join, basename, dirname, normalize, sep } from "path";
3
- import { fileURLToPath } from "url";
4
- // import prismaPhpConfig from "../prisma-php.json" assert { type: "json" };
5
- const __filename = fileURLToPath(import.meta.url);
6
- const __dirname = dirname(__filename);
7
- const prismaPhpConfig = JSON.parse(readFileSync(join(__dirname, "..", "prisma-php.json")).toString("utf-8"));
3
+ import prismaPhpConfig from "../prisma-php.json";
4
+ import { getFileMeta } from "./utils.js";
5
+ const { __dirname } = getFileMeta();
8
6
  const newProjectName = basename(join(__dirname, ".."));
9
7
  // Function to update the project name and paths in the JSON config
10
8
  function updateProjectNameInConfig(filePath, newProjectName) {
11
- const filePathDir = dirname(filePath);
12
- // Update the projectName directly in the imported config
13
- prismaPhpConfig.projectName = newProjectName;
14
- // Update other paths
15
- prismaPhpConfig.projectRootPath = filePathDir;
16
- const targetPath = getTargetPath(filePathDir, prismaPhpConfig.phpEnvironment);
17
- prismaPhpConfig.bsTarget = `http://localhost${targetPath}`;
18
- prismaPhpConfig.bsPathRewrite["^/"] = targetPath;
19
- // Save the updated config back to the JSON file
20
- fs.writeFile(filePath, JSON.stringify(prismaPhpConfig, null, 2), "utf8", (err) => {
21
- if (err) {
22
- console.error("Error writing the updated JSON file:", err);
23
- return;
24
- }
25
- console.log("The project name, PHP path, and other paths have been updated successfully.");
26
- });
9
+ const filePathDir = dirname(filePath);
10
+ // Update the projectName directly in the imported config
11
+ prismaPhpConfig.projectName = newProjectName;
12
+ // Update other paths
13
+ prismaPhpConfig.projectRootPath = filePathDir;
14
+ const targetPath = getTargetPath(filePathDir, prismaPhpConfig.phpEnvironment);
15
+ prismaPhpConfig.bsTarget = `http://localhost${targetPath}`;
16
+ prismaPhpConfig.bsPathRewrite["^/"] = targetPath;
17
+ // Save the updated config back to the JSON file
18
+ writeFile(
19
+ filePath,
20
+ JSON.stringify(prismaPhpConfig, null, 2),
21
+ "utf8",
22
+ (err) => {
23
+ if (err) {
24
+ console.error("Error writing the updated JSON file:", err);
25
+ return;
26
+ }
27
+ console.log(
28
+ "The project name, PHP path, and other paths have been updated successfully."
29
+ );
30
+ }
31
+ );
27
32
  }
28
33
  // Function to determine the target path for browser-sync
29
34
  function getTargetPath(fullPath, environment) {
30
- const normalizedPath = normalize(fullPath);
31
- const webDirectories = {
32
- XAMPP: join("htdocs"),
33
- WAMP: join("www"),
34
- MAMP: join("htdocs"),
35
- LAMP: join("var", "www", "html"),
36
- LEMP: join("usr", "share", "nginx", "html"),
37
- AMPPS: join("www"),
38
- UniformServer: join("www"),
39
- EasyPHP: join("data", "localweb"),
40
- };
41
- const webDir = webDirectories[environment.toUpperCase()];
42
- if (!webDir) {
43
- throw new Error(`Unsupported environment: ${environment}`);
44
- }
45
- const indexOfWebDir = normalizedPath
46
- .toLowerCase()
47
- .indexOf(normalize(webDir).toLowerCase());
48
- if (indexOfWebDir === -1) {
49
- throw new Error(`Web directory not found in path: ${webDir}`);
50
- }
51
- const startIndex = indexOfWebDir + webDir.length;
52
- const subPath = normalizedPath.slice(startIndex);
53
- const safeSeparatorRegex = new RegExp(sep.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"), "g");
54
- const finalPath = subPath.replace(safeSeparatorRegex, "/") + "/";
55
- return finalPath;
35
+ const normalizedPath = normalize(fullPath);
36
+ const webDirectories = {
37
+ XAMPP: join("htdocs"),
38
+ WAMP: join("www"),
39
+ MAMP: join("htdocs"),
40
+ LAMP: join("var", "www", "html"),
41
+ LEMP: join("usr", "share", "nginx", "html"),
42
+ AMPPS: join("www"),
43
+ UniformServer: join("www"),
44
+ EasyPHP: join("data", "localweb"),
45
+ };
46
+ const webDir = webDirectories[environment.toUpperCase()];
47
+ if (!webDir) {
48
+ throw new Error(`Unsupported environment: ${environment}`);
49
+ }
50
+ const indexOfWebDir = normalizedPath
51
+ .toLowerCase()
52
+ .indexOf(normalize(webDir).toLowerCase());
53
+ if (indexOfWebDir === -1) {
54
+ throw new Error(`Web directory not found in path: ${webDir}`);
55
+ }
56
+ const startIndex = indexOfWebDir + webDir.length;
57
+ const subPath = normalizedPath.slice(startIndex);
58
+ const safeSeparatorRegex = new RegExp(
59
+ sep.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"),
60
+ "g"
61
+ );
62
+ const finalPath = subPath.replace(safeSeparatorRegex, "/") + "/";
63
+ return finalPath;
56
64
  }
57
65
  // Path to your JSON configuration file (for saving changes)
58
66
  const configFilePath = join(__dirname, "..", "prisma-php.json");
@@ -90,7 +90,7 @@ $baseUrl = '/src/app';
90
90
  /**
91
91
  * @var string $documentUrl - The document URL of the request.
92
92
  */
93
- $documentUrl = '';
93
+ $documentUrl = $protocol . $domainName . $scriptName;
94
94
  /**
95
95
  * @var string $referer - The referer of the request.
96
96
  */
@@ -1,40 +1,47 @@
1
1
  import { spawn } from "child_process";
2
- import path, { dirname } from "path";
2
+ import { join } from "path";
3
3
  import chokidar from "chokidar";
4
- import { fileURLToPath } from "url";
5
- const __filename = fileURLToPath(import.meta.url);
6
- const __dirname = dirname(__filename);
4
+ import { getFileMeta } from "./utils.js";
5
+ const { __dirname } = getFileMeta();
7
6
  // Define paths
8
7
  const phpPath = "php"; // Adjust if necessary to include the full path to PHP
9
- const serverScriptPath = path.join(__dirname, "..", "src", "Lib", "Websocket", "server.php");
8
+ const serverScriptPath = join(
9
+ __dirname,
10
+ "..",
11
+ "src",
12
+ "Lib",
13
+ "Websocket",
14
+ "server.php"
15
+ );
10
16
  // Hold the server process
11
17
  let serverProcess = null;
12
18
  const restartServer = () => {
13
- // If a server process already exists, kill it
14
- if (serverProcess) {
15
- console.log("Stopping WebSocket server...");
16
- serverProcess.kill("SIGINT"); // Adjust the signal as necessary for your environment
17
- serverProcess = null;
18
- }
19
- // Start a new WebSocket server process
20
- console.log("Starting WebSocket server...");
21
- serverProcess = spawn(phpPath, [serverScriptPath]);
22
- serverProcess.stdout?.on("data", (data) => {
23
- console.log(`WebSocket Server: ${data.toString()}`);
24
- });
25
- serverProcess.stderr?.on("data", (data) => {
26
- console.error(`WebSocket Server Error: ${data.toString()}`);
27
- });
28
- serverProcess.on("close", (code) => {
29
- console.log(`WebSocket server process exited with code ${code}`);
30
- });
19
+ // If a server process already exists, kill it
20
+ if (serverProcess) {
21
+ console.log("Stopping WebSocket server...");
22
+ serverProcess.kill("SIGINT"); // Adjust the signal as necessary for your environment
23
+ serverProcess = null;
24
+ }
25
+ // Start a new WebSocket server process
26
+ console.log("Starting WebSocket server...");
27
+ serverProcess = spawn(phpPath, [serverScriptPath]);
28
+ serverProcess.stdout?.on("data", (data) => {
29
+ console.log(`WebSocket Server: ${data.toString()}`);
30
+ });
31
+ serverProcess.stderr?.on("data", (data) => {
32
+ console.error(`WebSocket Server Error: ${data.toString()}`);
33
+ });
34
+ serverProcess.on("close", (code) => {
35
+ console.log(`WebSocket server process exited with code ${code}`);
36
+ });
31
37
  };
32
38
  // Initial start
33
39
  restartServer();
34
40
  // Watch for changes and restart the server
35
41
  chokidar
36
- .watch(path.join(__dirname, "..", "src", "Lib", "Websocket", "**", "*"))
37
- .on("change", (path) => {
38
- console.log(`File changed: ${path}`);
42
+ .watch(join(__dirname, "..", "src", "Lib", "Websocket", "**", "*"))
43
+ .on("change", (path) => {
44
+ const fileChanged = path.split("\\").pop();
45
+ console.log(`File changed: src/Lib/Websocket/${fileChanged}`);
39
46
  restartServer();
40
- });
47
+ });
@@ -1,75 +1,61 @@
1
1
  import swaggerJsdoc from "swagger-jsdoc";
2
- import { writeFileSync, readFileSync, existsSync } from "fs";
3
- import { fileURLToPath } from "url";
4
- import { join, dirname } from "path";
2
+ import { writeFileSync } from "fs";
3
+ import { join } from "path";
5
4
  import chalk from "chalk";
6
- const __filename = fileURLToPath(import.meta.url);
7
- const __dirname = dirname(__filename);
8
- // Define the output path for the swagger.json file
9
- const outputPath = join(__dirname, "../src/app/swagger-docs/apis/pphp-swagger.json");
10
- const bsConnectionInfo = join(__dirname, "bs-config.json");
11
- // Default connection info
12
- const defaultConnectionInfo = {
13
- local: "http://localhost:3000",
14
- external: "http://192.168.1.5:3000",
15
- ui: "http://localhost:3001",
16
- uiExternal: "http://192.168.1.5:3001",
17
- };
18
- let jsonData = defaultConnectionInfo;
19
- if (existsSync(bsConnectionInfo)) {
20
- try {
21
- const data = readFileSync(bsConnectionInfo, "utf8");
22
- jsonData = JSON.parse(data);
23
- }
24
- catch (error) {
25
- console.error("Error parsing bs-output.json:", error);
26
- }
27
- }
28
- else {
29
- console.warn("bs-output.json not found, using default connection info.");
30
- }
31
- const options = {
5
+ import { getFileMeta } from "./utils.js";
6
+ import bsConnectionInfo from "./bs-config.json";
7
+ const { __dirname } = getFileMeta();
8
+ export async function swaggerConfig() {
9
+ const outputPath = join(
10
+ __dirname,
11
+ "../src/app/swagger-docs/apis/pphp-swagger.json"
12
+ );
13
+ const options = {
32
14
  definition: {
33
- openapi: "3.0.0",
34
- info: {
35
- title: "Prisma PHP API Documentation",
36
- version: "1.0.0",
37
- description: "API documentation for the Prisma PHP project",
15
+ openapi: "3.0.0",
16
+ info: {
17
+ title: "Prisma PHP API Documentation",
18
+ version: "1.0.0",
19
+ description: "API documentation for the Prisma PHP project",
20
+ },
21
+ servers: [
22
+ {
23
+ url: bsConnectionInfo.local, // For Development
24
+ description: "Development Server",
25
+ },
26
+ {
27
+ url: "your-production-domain", // For Production
28
+ description: "Production Server",
38
29
  },
39
- servers: [
40
- {
41
- url: jsonData.local, // For Development
42
- description: "Development Server",
43
- },
44
- {
45
- url: "your-production-domain", // For Production
46
- description: "Production Server",
47
- },
48
- ],
49
- components: {
50
- securitySchemes: {
51
- bearerAuth: {
52
- type: "http",
53
- scheme: "bearer",
54
- bearerFormat: "JWT",
55
- },
56
- },
30
+ ],
31
+ components: {
32
+ securitySchemes: {
33
+ bearerAuth: {
34
+ type: "http",
35
+ scheme: "bearer",
36
+ bearerFormat: "JWT",
37
+ },
57
38
  },
58
- security: [
59
- {
60
- bearerAuth: [],
61
- },
62
- ],
39
+ },
40
+ security: [
41
+ {
42
+ bearerAuth: [],
43
+ },
44
+ ],
63
45
  },
64
- apis: [join(__dirname, "../src/app/swagger-docs/apis/**/*.ts")], // Adjust to match TypeScript file paths
65
- };
66
- // Generate the Swagger specification
67
- const swaggerSpec = JSON.stringify(swaggerJsdoc(options), null, 2);
68
- // Always generate the swagger.json file
69
- try {
46
+ apis: [join(__dirname, "../src/app/swagger-docs/apis/**/*.js")], // Adjust to match JavaScript file paths
47
+ };
48
+ // Generate the Swagger specification
49
+ const swaggerSpec = JSON.stringify(swaggerJsdoc(options), null, 2);
50
+ // Always generate the swagger.json file
51
+ try {
70
52
  writeFileSync(outputPath, swaggerSpec, "utf-8");
71
- console.log(`Swagger JSON has been generated and saved to ${chalk.blue("src/app/swagger-docs/pphp-swagger.json")}`);
72
- }
73
- catch (error) {
53
+ console.log(
54
+ `Swagger JSON has been generated and saved to ${chalk.blue(
55
+ "src/app/swagger-docs/pphp-swagger.json"
56
+ )}`
57
+ );
58
+ } catch (error) {
74
59
  console.error("Error saving Swagger JSON:", error);
60
+ }
75
61
  }
@@ -0,0 +1,13 @@
1
+ import { fileURLToPath } from "url";
2
+ import { dirname } from "path";
3
+ /**
4
+ * Retrieves the file metadata including the filename and directory name.
5
+ *
6
+ * @param importMetaUrl - The URL of the module's import.meta.url.
7
+ * @returns An object containing the filename (`__filename`) and directory name (`__dirname`).
8
+ */
9
+ export function getFileMeta() {
10
+ const __filename = fileURLToPath(import.meta.url);
11
+ const __dirname = dirname(__filename);
12
+ return { __filename, __dirname };
13
+ }
@@ -25,9 +25,9 @@
25
25
  // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
26
26
 
27
27
  /* Modules */
28
- "module": "NodeNext" /* Specify what module code is generated. */,
28
+ "module": "ESNext" /* Specify what module code is generated. */,
29
29
  // "rootDir": "./", /* Specify the root folder within your source files. */
30
- // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
30
+ "moduleResolution": "Node", /* Specify how TypeScript looks up a file from a given module specifier. */
31
31
  // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
32
32
  // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
33
33
  // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
@@ -74,7 +74,7 @@
74
74
  // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
75
75
 
76
76
  /* Interop Constraints */
77
- // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
77
+ "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
78
78
  // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
79
79
  // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
80
80
  "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
@@ -91,8 +91,8 @@
91
91
  // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
92
92
  // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
93
93
  // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
94
- // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
95
- // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
94
+ "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
95
+ "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
96
96
  // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
97
97
  // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
98
98
  // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.22.6",
3
+ "version": "1.22.7",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",