create-prisma-php-app 1.22.0 → 1.22.500
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.
- package/dist/bootstrap.php +186 -153
- package/dist/index.js +1166 -1
- package/dist/settings/bs-config.cjs +1 -0
- package/dist/settings/start-dev.js +3 -3
- package/dist/src/Lib/Headers/Boom.php +39 -0
- package/dist/src/app/layout.php +1 -1
- package/dist/tailwind.config.js +3 -6
- package/dist/tsconfig.json +9 -9
- package/package.json +1 -1
|
@@ -148,10 +148,10 @@ async function startDev() {
|
|
|
148
148
|
console.error(`Failed to start browserSync process: ${err.message}`);
|
|
149
149
|
});
|
|
150
150
|
|
|
151
|
-
// Function to start
|
|
151
|
+
// Function to start npmRunAll process
|
|
152
152
|
function startDevProcess() {
|
|
153
|
-
console.log("Starting
|
|
154
|
-
devProcess = spawn("npm", ["run", "
|
|
153
|
+
console.log("Starting npmRunAll...");
|
|
154
|
+
devProcess = spawn("npm", ["run", "npmRunAll"], { shell: true });
|
|
155
155
|
|
|
156
156
|
devProcess.stdout.on("data", (data) => {
|
|
157
157
|
process.stdout.write(data);
|
|
@@ -72,6 +72,19 @@ class Boom
|
|
|
72
72
|
return new self(401, $message, $details);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
+
/**
|
|
76
|
+
* Factory method for 402 Payment Required.
|
|
77
|
+
*
|
|
78
|
+
* @param string $message Error message.
|
|
79
|
+
* @param array $details Additional error details.
|
|
80
|
+
*
|
|
81
|
+
* @return self
|
|
82
|
+
*/
|
|
83
|
+
public static function paymentRequired(string $message = 'Payment Required', array $details = []): self
|
|
84
|
+
{
|
|
85
|
+
return new self(402, $message, $details);
|
|
86
|
+
}
|
|
87
|
+
|
|
75
88
|
/**
|
|
76
89
|
* Factory method for 403 Forbidden.
|
|
77
90
|
*
|
|
@@ -98,6 +111,32 @@ class Boom
|
|
|
98
111
|
return new self(404, $message, $details);
|
|
99
112
|
}
|
|
100
113
|
|
|
114
|
+
/**
|
|
115
|
+
* Factory method for 405 Method Not Allowed.
|
|
116
|
+
*
|
|
117
|
+
* @param string $message Error message.
|
|
118
|
+
* @param array $details Additional error details.
|
|
119
|
+
*
|
|
120
|
+
* @return self
|
|
121
|
+
*/
|
|
122
|
+
public static function methodNotAllowed(string $message = 'Method Not Allowed', array $details = []): self
|
|
123
|
+
{
|
|
124
|
+
return new self(405, $message, $details);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Factory method for 406 Not Acceptable.
|
|
129
|
+
*
|
|
130
|
+
* @param string $message Error message.
|
|
131
|
+
* @param array $details Additional error details.
|
|
132
|
+
*
|
|
133
|
+
* @return self
|
|
134
|
+
*/
|
|
135
|
+
public static function notAcceptable(string $message = 'Not Acceptable', array $details = []): self
|
|
136
|
+
{
|
|
137
|
+
return new self(406, $message, $details);
|
|
138
|
+
}
|
|
139
|
+
|
|
101
140
|
/**
|
|
102
141
|
* Factory method for 500 Internal Server Error.
|
|
103
142
|
*
|
package/dist/src/app/layout.php
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
7
|
<meta name="pp-description" content="<?= htmlspecialchars($metadata['description']); ?>">
|
|
8
8
|
<title><?= htmlspecialchars($metadata['title']); ?></title>
|
|
9
|
-
<link rel="icon" href="<?= $baseUrl;
|
|
9
|
+
<link rel="icon" href="<?= $baseUrl; ?>/favicon.ico" type="image/x-icon">
|
|
10
10
|
</head>
|
|
11
11
|
|
|
12
12
|
<body>
|
package/dist/tailwind.config.js
CHANGED
package/dist/tsconfig.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
|
12
12
|
|
|
13
13
|
/* Language and Environment */
|
|
14
|
-
"target": "
|
|
14
|
+
"target": "ESNext" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
|
|
15
15
|
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
|
16
16
|
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
|
17
17
|
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
|
26
26
|
|
|
27
27
|
/* Modules */
|
|
28
|
-
"module": "
|
|
28
|
+
"module": "NodeNext" /* Specify what module code is generated. */,
|
|
29
29
|
// "rootDir": "./", /* Specify the root folder within your source files. */
|
|
30
30
|
// "moduleResolution": "node10", /* 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. */
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
|
|
40
40
|
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
|
|
41
41
|
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
|
|
42
|
-
|
|
42
|
+
"resolveJsonModule": true /* Enable importing .json files. */,
|
|
43
43
|
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
|
|
44
44
|
// "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
|
|
45
45
|
|
|
@@ -77,12 +77,12 @@
|
|
|
77
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
|
-
"esModuleInterop": true
|
|
80
|
+
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
|
|
81
81
|
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
|
82
|
-
"forceConsistentCasingInFileNames": true
|
|
82
|
+
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
|
|
83
83
|
|
|
84
84
|
/* Type Checking */
|
|
85
|
-
"strict": true
|
|
85
|
+
"strict": true /* Enable all strict type-checking options. */,
|
|
86
86
|
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
|
|
87
87
|
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
|
|
88
88
|
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
|
|
@@ -104,8 +104,8 @@
|
|
|
104
104
|
|
|
105
105
|
/* Completeness */
|
|
106
106
|
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
|
107
|
-
"skipLibCheck": true
|
|
107
|
+
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
108
108
|
},
|
|
109
|
-
"include": ["src/**/*.ts"],
|
|
110
|
-
"exclude": ["node_modules"]
|
|
109
|
+
"include": ["src/**/*.ts", "settings/**/*.ts"],
|
|
110
|
+
"exclude": ["node_modules", "vendor"]
|
|
111
111
|
}
|