@wp-playground/wordpress 3.1.1 → 3.1.3
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/index.cjs +480 -349
- package/index.cjs.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +659 -522
- package/index.js.map +1 -1
- package/package.json +9 -7
- package/wp-config.d.ts +24 -0
- package/rewrite-wp-config.d.ts +0 -22
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wp-playground/wordpress",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.3",
|
|
4
4
|
"description": "WordPress-related plumbing for WordPress Playground",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,19 +35,21 @@
|
|
|
35
35
|
"access": "public",
|
|
36
36
|
"directory": "../../../dist/packages/playground/wordpress"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "54bb87ba4c9624ec02f60194a2f1938b3f42477b",
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"express": "4.22.0",
|
|
41
|
+
"fast-xml-parser": "^5.3.4",
|
|
41
42
|
"fs-ext-extra-prebuilt": "2.2.7",
|
|
42
43
|
"ini": "4.1.2",
|
|
44
|
+
"jsonc-parser": "3.3.1",
|
|
43
45
|
"wasm-feature-detect": "1.8.0",
|
|
44
46
|
"ws": "8.18.3",
|
|
45
47
|
"yargs": "17.7.2",
|
|
46
|
-
"@php-wasm/universal": "3.1.
|
|
47
|
-
"@php-wasm/util": "3.1.
|
|
48
|
-
"@php-wasm/logger": "3.1.
|
|
49
|
-
"@wp-playground/common": "3.1.
|
|
50
|
-
"@php-wasm/node": "3.1.
|
|
48
|
+
"@php-wasm/universal": "3.1.3",
|
|
49
|
+
"@php-wasm/util": "3.1.3",
|
|
50
|
+
"@php-wasm/logger": "3.1.3",
|
|
51
|
+
"@wp-playground/common": "3.1.3",
|
|
52
|
+
"@php-wasm/node": "3.1.3"
|
|
51
53
|
},
|
|
52
54
|
"packageManager": "npm@10.9.2",
|
|
53
55
|
"overrides": {
|
package/wp-config.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { UniversalPHP } from '@php-wasm/universal';
|
|
2
|
+
/**
|
|
3
|
+
* Ensures that the "wp-config.php" file exists and required constants are defined.
|
|
4
|
+
*
|
|
5
|
+
* When a required constant is missing, it will be defined with a default value.
|
|
6
|
+
*
|
|
7
|
+
* @param php The PHP instance.
|
|
8
|
+
* @param documentRoot The path to the document root.
|
|
9
|
+
*/
|
|
10
|
+
export declare function ensureWpConfig(php: UniversalPHP, documentRoot: string): Promise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* Defines constants in a WordPress "wp-config.php" file.
|
|
13
|
+
*
|
|
14
|
+
* This function modifies the "wp-config.php" file to define the given constants.
|
|
15
|
+
*
|
|
16
|
+
* 1. When a constant is already defined, the definition will be updated.
|
|
17
|
+
* 2. When a constant is not defined, it will be added in an appropriate
|
|
18
|
+
* location within the file (typically before the "stop editing" line).
|
|
19
|
+
*
|
|
20
|
+
* @param php The PHP instance.
|
|
21
|
+
* @param wpConfigPath The path to the "wp-config.php" file.
|
|
22
|
+
* @param constants The constants to define.
|
|
23
|
+
*/
|
|
24
|
+
export declare function defineWpConfigConstants(php: UniversalPHP, wpConfigPath: string, constants: Record<string, unknown>): Promise<void>;
|
package/rewrite-wp-config.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { UniversalPHP } from '@php-wasm/universal';
|
|
2
|
-
/**
|
|
3
|
-
* Defines constants in a WordPress "wp-config.php" file.
|
|
4
|
-
*
|
|
5
|
-
* @param php The PHP instance.
|
|
6
|
-
* @param wpConfigPath The path to the "wp-config.php" file.
|
|
7
|
-
* @param constants The constants to define.
|
|
8
|
-
* @param whenAlreadyDefined What to do if the constant is already defined.
|
|
9
|
-
* Possible values are:
|
|
10
|
-
* 'rewrite' - Rewrite the constant, using the new value.
|
|
11
|
-
* 'skip' - Skip the definition, keeping the existing value.
|
|
12
|
-
*/
|
|
13
|
-
export declare function defineWpConfigConstants(php: UniversalPHP, wpConfigPath: string, constants: Record<string, unknown>, whenAlreadyDefined?: 'rewrite' | 'skip'): Promise<void>;
|
|
14
|
-
/**
|
|
15
|
-
* Ensures that the "wp-config.php" file exists and required constants are defined.
|
|
16
|
-
*
|
|
17
|
-
* When a required constant is missing, it will be defined with a default value.
|
|
18
|
-
*
|
|
19
|
-
* @param php The PHP instance.
|
|
20
|
-
* @param documentRoot The path to the document root.
|
|
21
|
-
*/
|
|
22
|
-
export declare function ensureWpConfig(php: UniversalPHP, documentRoot: string): Promise<void>;
|