@wp-playground/blueprints 1.0.2 → 1.0.4

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.
@@ -2,6 +2,7 @@ import { SupportedPHPVersion } from '@php-wasm/universal';
2
2
  import { StepDefinition } from './steps';
3
3
  import { FileReference } from './resources';
4
4
  export type ExtraLibrary = 'wp-cli';
5
+ export type PHPConstants = Record<string, string | boolean | number>;
5
6
  export interface Blueprint {
6
7
  /**
7
8
  * The URL to navigate to after the blueprint has been run.
@@ -63,7 +64,7 @@ export interface Blueprint {
63
64
  /**
64
65
  * PHP Constants to define on every request
65
66
  */
66
- constants?: Record<string, string>;
67
+ constants?: PHPConstants;
67
68
  /**
68
69
  * WordPress plugins to install and activate
69
70
  */
package/lib/compile.d.ts CHANGED
@@ -31,7 +31,7 @@ export interface CompileBlueprintOptions {
31
31
  *
32
32
  * For example, if corsProxy is set to "https://cors.wordpress.net/proxy.php",
33
33
  * then the CORS requests to https://github.com/WordPress/gutenberg.git would actually
34
- * be made to https://cors.wordpress.net/proxy.php/https://github.com/WordPress/gutenberg.git.
34
+ * be made to https://cors.wordpress.net/proxy.php?https://github.com/WordPress/gutenberg.git.
35
35
  */
36
36
  corsProxy?: string;
37
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wp-playground/blueprints",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "exports": {
5
5
  ".": {
6
6
  "import": "./index.js",
@@ -21,7 +21,7 @@
21
21
  "access": "public",
22
22
  "directory": "../../../dist/packages/playground/blueprints"
23
23
  },
24
- "gitHead": "dbf1c413c29eeeafe97a286008c146dd5e0c2740",
24
+ "gitHead": "fd76ee2ebbe3d3ff71cf19ab7fe010dca8bcc17b",
25
25
  "engines": {
26
26
  "node": ">=18.18.0",
27
27
  "npm": ">=8.11.0"
@@ -44,14 +44,14 @@
44
44
  "sha.js": "2.4.11",
45
45
  "simple-get": "4.0.1",
46
46
  "wasm-feature-detect": "1.8.0",
47
- "@php-wasm/node-polyfills": "1.0.2",
48
- "@php-wasm/universal": "1.0.2",
49
- "@wp-playground/common": "1.0.2",
50
- "@php-wasm/node": "1.0.2",
51
- "@php-wasm/progress": "1.0.2",
52
- "@php-wasm/util": "1.0.2",
53
- "@php-wasm/logger": "1.0.2",
54
- "@wp-playground/storage": "1.0.2",
55
- "@wp-playground/wordpress": "1.0.2"
47
+ "@php-wasm/node-polyfills": "1.0.4",
48
+ "@php-wasm/universal": "1.0.4",
49
+ "@wp-playground/common": "1.0.4",
50
+ "@php-wasm/node": "1.0.4",
51
+ "@php-wasm/progress": "1.0.4",
52
+ "@php-wasm/util": "1.0.4",
53
+ "@php-wasm/logger": "1.0.4",
54
+ "@wp-playground/storage": "1.0.4",
55
+ "@wp-playground/wordpress": "1.0.4"
56
56
  }
57
57
  }