vite-plugin-php 1.0.71 → 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.
- package/README.md +118 -31
- package/dist/index.cjs +575 -399
- package/dist/index.d.cts +24 -4
- package/dist/index.d.mts +24 -4
- package/dist/index.d.ts +24 -4
- package/dist/index.mjs +563 -390
- package/dist/router.php +38 -32
- package/package.json +5 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,15 +1,35 @@
|
|
|
1
1
|
import { Plugin } from 'vite';
|
|
2
2
|
|
|
3
|
+
declare const EPHPError: {
|
|
4
|
+
readonly ERROR: 1;
|
|
5
|
+
readonly WARNING: 2;
|
|
6
|
+
readonly PARSE: 4;
|
|
7
|
+
readonly NOTICE: 8;
|
|
8
|
+
readonly CORE_ERROR: 16;
|
|
9
|
+
readonly CORE_WARNING: 32;
|
|
10
|
+
readonly COMPILE_ERROR: 64;
|
|
11
|
+
readonly COMPILE_WARNING: 128;
|
|
12
|
+
readonly USER_ERROR: 256;
|
|
13
|
+
readonly USER_WARNING: 512;
|
|
14
|
+
readonly USER_NOTICE: 1024;
|
|
15
|
+
readonly STRICT: 2048;
|
|
16
|
+
readonly RECOVERABLE_ERROR: 4096;
|
|
17
|
+
readonly DEPRECATED: 8192;
|
|
18
|
+
readonly USER_DEPRECATED: 16384;
|
|
19
|
+
readonly ALL: 32767;
|
|
20
|
+
};
|
|
21
|
+
type EPHPError = (typeof EPHPError)[keyof typeof EPHPError];
|
|
22
|
+
|
|
3
23
|
type UsePHPConfig = {
|
|
4
24
|
binary?: string;
|
|
5
25
|
entry?: string | string[];
|
|
6
26
|
rewriteUrl?: (requestUrl: URL) => URL | undefined;
|
|
7
27
|
tempDir?: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
28
|
+
dev?: {
|
|
29
|
+
errorLevels?: number;
|
|
30
|
+
cleanup?: boolean;
|
|
11
31
|
};
|
|
12
32
|
};
|
|
13
33
|
declare function usePHP(cfg?: UsePHPConfig): Plugin[];
|
|
14
34
|
|
|
15
|
-
export { usePHP as default };
|
|
35
|
+
export { EPHPError, type UsePHPConfig, usePHP as default };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,15 +1,35 @@
|
|
|
1
1
|
import { Plugin } from 'vite';
|
|
2
2
|
|
|
3
|
+
declare const EPHPError: {
|
|
4
|
+
readonly ERROR: 1;
|
|
5
|
+
readonly WARNING: 2;
|
|
6
|
+
readonly PARSE: 4;
|
|
7
|
+
readonly NOTICE: 8;
|
|
8
|
+
readonly CORE_ERROR: 16;
|
|
9
|
+
readonly CORE_WARNING: 32;
|
|
10
|
+
readonly COMPILE_ERROR: 64;
|
|
11
|
+
readonly COMPILE_WARNING: 128;
|
|
12
|
+
readonly USER_ERROR: 256;
|
|
13
|
+
readonly USER_WARNING: 512;
|
|
14
|
+
readonly USER_NOTICE: 1024;
|
|
15
|
+
readonly STRICT: 2048;
|
|
16
|
+
readonly RECOVERABLE_ERROR: 4096;
|
|
17
|
+
readonly DEPRECATED: 8192;
|
|
18
|
+
readonly USER_DEPRECATED: 16384;
|
|
19
|
+
readonly ALL: 32767;
|
|
20
|
+
};
|
|
21
|
+
type EPHPError = (typeof EPHPError)[keyof typeof EPHPError];
|
|
22
|
+
|
|
3
23
|
type UsePHPConfig = {
|
|
4
24
|
binary?: string;
|
|
5
25
|
entry?: string | string[];
|
|
6
26
|
rewriteUrl?: (requestUrl: URL) => URL | undefined;
|
|
7
27
|
tempDir?: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
28
|
+
dev?: {
|
|
29
|
+
errorLevels?: number;
|
|
30
|
+
cleanup?: boolean;
|
|
11
31
|
};
|
|
12
32
|
};
|
|
13
33
|
declare function usePHP(cfg?: UsePHPConfig): Plugin[];
|
|
14
34
|
|
|
15
|
-
export { usePHP as default };
|
|
35
|
+
export { EPHPError, type UsePHPConfig, usePHP as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,35 @@
|
|
|
1
1
|
import { Plugin } from 'vite';
|
|
2
2
|
|
|
3
|
+
declare const EPHPError: {
|
|
4
|
+
readonly ERROR: 1;
|
|
5
|
+
readonly WARNING: 2;
|
|
6
|
+
readonly PARSE: 4;
|
|
7
|
+
readonly NOTICE: 8;
|
|
8
|
+
readonly CORE_ERROR: 16;
|
|
9
|
+
readonly CORE_WARNING: 32;
|
|
10
|
+
readonly COMPILE_ERROR: 64;
|
|
11
|
+
readonly COMPILE_WARNING: 128;
|
|
12
|
+
readonly USER_ERROR: 256;
|
|
13
|
+
readonly USER_WARNING: 512;
|
|
14
|
+
readonly USER_NOTICE: 1024;
|
|
15
|
+
readonly STRICT: 2048;
|
|
16
|
+
readonly RECOVERABLE_ERROR: 4096;
|
|
17
|
+
readonly DEPRECATED: 8192;
|
|
18
|
+
readonly USER_DEPRECATED: 16384;
|
|
19
|
+
readonly ALL: 32767;
|
|
20
|
+
};
|
|
21
|
+
type EPHPError = (typeof EPHPError)[keyof typeof EPHPError];
|
|
22
|
+
|
|
3
23
|
type UsePHPConfig = {
|
|
4
24
|
binary?: string;
|
|
5
25
|
entry?: string | string[];
|
|
6
26
|
rewriteUrl?: (requestUrl: URL) => URL | undefined;
|
|
7
27
|
tempDir?: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
28
|
+
dev?: {
|
|
29
|
+
errorLevels?: number;
|
|
30
|
+
cleanup?: boolean;
|
|
11
31
|
};
|
|
12
32
|
};
|
|
13
33
|
declare function usePHP(cfg?: UsePHPConfig): Plugin[];
|
|
14
34
|
|
|
15
|
-
export { usePHP as default };
|
|
35
|
+
export { EPHPError, type UsePHPConfig, usePHP as default };
|