@wp-playground/blueprints 3.1.34 → 3.1.35
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 +4 -1
- package/index.cjs.map +1 -1
- package/index.js +88 -81
- package/index.js.map +1 -1
- package/package.json +11 -11
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cloneStreamMonitorProgress as Yr, cloneResponseMonitorProgress as Gr, ProgressTracker as Jr } from "@php-wasm/progress";
|
|
2
|
-
import { randomFilename as or, phpVars as yr, joinPaths as ie, phpVar as
|
|
2
|
+
import { randomFilename as or, phpVars as yr, joinPaths as ie, phpVar as ce, dirname as hr, Semaphore as Ar, normalizePath as Xr, basename as Or } from "@php-wasm/util";
|
|
3
3
|
import { writeFiles as gr, LatestSupportedPHPVersion as Kr, AllPHPVersions as et } from "@php-wasm/universal";
|
|
4
4
|
import { resolveCommitHash as rt, listGitFiles as tt, listDescendantFiles as st, sparseCheckout as it, createDotGitDirectory as ot, GitAuthenticationError as Tr, OverlayFilesystem as at, InMemoryFilesystem as nt, FetchFilesystem as pt, ZipFilesystem as lt, ChrootFilesystem as ft } from "@wp-playground/storage";
|
|
5
5
|
import { fetchWithCorsProxy as ut } from "@php-wasm/web-service-worker";
|
|
@@ -1074,8 +1074,8 @@ const Cr = async (r, { options: t }) => {
|
|
|
1074
1074
|
const n = await r.documentRoot;
|
|
1075
1075
|
await r.run({
|
|
1076
1076
|
code: `<?php
|
|
1077
|
-
include ${
|
|
1078
|
-
$site_options = ${
|
|
1077
|
+
include ${ce(n)} . '/wp-load.php';
|
|
1078
|
+
$site_options = ${ce(t)};
|
|
1079
1079
|
foreach($site_options as $name => $value) {
|
|
1080
1080
|
update_option($name, $value);
|
|
1081
1081
|
}
|
|
@@ -1086,10 +1086,10 @@ const Cr = async (r, { options: t }) => {
|
|
|
1086
1086
|
const l = await r.documentRoot;
|
|
1087
1087
|
await r.run({
|
|
1088
1088
|
code: `<?php
|
|
1089
|
-
include ${
|
|
1090
|
-
$meta = ${
|
|
1089
|
+
include ${ce(l)} . '/wp-load.php';
|
|
1090
|
+
$meta = ${ce(t)};
|
|
1091
1091
|
foreach($meta as $name => $value) {
|
|
1092
|
-
update_user_meta(${
|
|
1092
|
+
update_user_meta(${ce(n)}, $name, $value);
|
|
1093
1093
|
}
|
|
1094
1094
|
`
|
|
1095
1095
|
});
|
|
@@ -1166,7 +1166,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
1166
1166
|
$GLOBALS['argv'] = array_merge([
|
|
1167
1167
|
"/tmp/wp-cli.phar",
|
|
1168
1168
|
"--path=${p}"
|
|
1169
|
-
], ${
|
|
1169
|
+
], ${ce(e)});
|
|
1170
1170
|
|
|
1171
1171
|
// Provide stdin, stdout, stderr streams outside of
|
|
1172
1172
|
// the CLI SAPI.
|
|
@@ -1174,7 +1174,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
1174
1174
|
define('STDOUT', fopen('php://stdout', 'wb'));
|
|
1175
1175
|
define('STDERR', fopen('php://stderr', 'wb'));
|
|
1176
1176
|
|
|
1177
|
-
require( ${
|
|
1177
|
+
require( ${ce(n)} );
|
|
1178
1178
|
`
|
|
1179
1179
|
);
|
|
1180
1180
|
const d = await r.run({
|
|
@@ -1219,7 +1219,7 @@ const Yt = async (r, { wpCliPath: t }) => {
|
|
|
1219
1219
|
p.includes("$_SERVER['HTTP_HOST']") || (d = p.replace(
|
|
1220
1220
|
/^<\?php\s*/i,
|
|
1221
1221
|
`<?php
|
|
1222
|
-
$_SERVER['HTTP_HOST'] = ${
|
|
1222
|
+
$_SERVER['HTTP_HOST'] = ${ce(n.hostname)};
|
|
1223
1223
|
`
|
|
1224
1224
|
)), await r.writeFile(e, d);
|
|
1225
1225
|
}, Gt = async (r, { fromPath: t, toPath: n }) => {
|
|
@@ -1442,7 +1442,7 @@ const Wr = async (r, { themeSlug: t = "" }, n) => {
|
|
|
1442
1442
|
* See _wp_customize_include()
|
|
1443
1443
|
*/
|
|
1444
1444
|
$_REQUEST['wp_customize'] = 'on';
|
|
1445
|
-
$_REQUEST['customize_theme'] = ${
|
|
1445
|
+
$_REQUEST['customize_theme'] = ${ce(t)} ?: get_stylesheet();
|
|
1446
1446
|
|
|
1447
1447
|
/*
|
|
1448
1448
|
* Claim this is a ajax request saving settings, to avoid the preview filters being applied.
|
|
@@ -1454,7 +1454,7 @@ const Wr = async (r, { themeSlug: t = "" }, n) => {
|
|
|
1454
1454
|
}
|
|
1455
1455
|
playground_add_filter( 'plugins_loaded', 'importThemeStarterContent_plugins_loaded', 0 );
|
|
1456
1456
|
|
|
1457
|
-
require ${
|
|
1457
|
+
require ${ce(l)} . '/wp-load.php';
|
|
1458
1458
|
|
|
1459
1459
|
// Return early if there's no starter content.
|
|
1460
1460
|
if ( ! get_theme_starter_content() ) {
|
|
@@ -1542,7 +1542,7 @@ const Wr = async (r, { themeSlug: t = "" }, n) => {
|
|
|
1542
1542
|
e || (e = await os(r, l)), await Ir(r, {
|
|
1543
1543
|
siteUrl: y
|
|
1544
1544
|
});
|
|
1545
|
-
const O =
|
|
1545
|
+
const O = ce(
|
|
1546
1546
|
ie(l, "wp-admin", "upgrade.php")
|
|
1547
1547
|
);
|
|
1548
1548
|
await r.run({
|
|
@@ -1947,8 +1947,15 @@ const ys = async (r, t) => {
|
|
|
1947
1947
|
);
|
|
1948
1948
|
return u.package;
|
|
1949
1949
|
}, hs = async (r, { language: t }, n) => {
|
|
1950
|
-
n == null || n.tracker.setCaption((n == null ? void 0 : n.initialCaption) || "Translating")
|
|
1951
|
-
const l = await r.documentRoot
|
|
1950
|
+
n == null || n.tracker.setCaption((n == null ? void 0 : n.initialCaption) || "Translating");
|
|
1951
|
+
const l = await r.documentRoot;
|
|
1952
|
+
await r.defineConstant("WPLANG", t), await r.run({
|
|
1953
|
+
code: `<?php
|
|
1954
|
+
require_once ${ce(l)} . '/wp-load.php';
|
|
1955
|
+
update_option('WPLANG', ${ce(t)});
|
|
1956
|
+
`
|
|
1957
|
+
});
|
|
1958
|
+
const u = (await r.run({
|
|
1952
1959
|
code: `<?php
|
|
1953
1960
|
require '${l}/wp-includes/version.php';
|
|
1954
1961
|
echo $wp_version;
|
|
@@ -2688,7 +2695,7 @@ function $e(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
2688
2695
|
], !1;
|
|
2689
2696
|
return $e.errors = s, e === 0;
|
|
2690
2697
|
}
|
|
2691
|
-
function
|
|
2698
|
+
function me(r, { instancePath: t = "", parentData: n, parentDataProperty: l, rootData: u = r } = {}) {
|
|
2692
2699
|
let s = null, e = 0;
|
|
2693
2700
|
const p = e;
|
|
2694
2701
|
let d = !1;
|
|
@@ -2721,9 +2728,9 @@ function ce(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
2721
2728
|
params: {},
|
|
2722
2729
|
message: "must match a schema in anyOf"
|
|
2723
2730
|
};
|
|
2724
|
-
return s === null ? s = [y] : s.push(y), e++,
|
|
2731
|
+
return s === null ? s = [y] : s.push(y), e++, me.errors = s, !1;
|
|
2725
2732
|
}
|
|
2726
|
-
return
|
|
2733
|
+
return me.errors = s, e === 0;
|
|
2727
2734
|
}
|
|
2728
2735
|
function ve(r, { instancePath: t = "", parentData: n, parentDataProperty: l, rootData: u = r } = {}) {
|
|
2729
2736
|
let s = null, e = 0;
|
|
@@ -2797,12 +2804,12 @@ function ve(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
2797
2804
|
var d = b === e;
|
|
2798
2805
|
if (j = j || d, !j) {
|
|
2799
2806
|
const Q = e;
|
|
2800
|
-
|
|
2807
|
+
me(y, {
|
|
2801
2808
|
instancePath: t + "/inner",
|
|
2802
2809
|
parentData: r,
|
|
2803
2810
|
parentDataProperty: "inner",
|
|
2804
2811
|
rootData: u
|
|
2805
|
-
}) || (s = s === null ?
|
|
2812
|
+
}) || (s = s === null ? me.errors : s.concat(me.errors), e = s.length);
|
|
2806
2813
|
var d = Q === e;
|
|
2807
2814
|
j = j || d;
|
|
2808
2815
|
}
|
|
@@ -4430,13 +4437,13 @@ Only the username field is required for user authentication.`
|
|
|
4430
4437
|
}, zr = {
|
|
4431
4438
|
enum: ["GET", "POST", "HEAD", "OPTIONS", "PATCH", "PUT", "DELETE"]
|
|
4432
4439
|
};
|
|
4433
|
-
function
|
|
4440
|
+
function we(r, { instancePath: t = "", parentData: n, parentDataProperty: l, rootData: u = r } = {}) {
|
|
4434
4441
|
let s = null, e = 0;
|
|
4435
4442
|
if (e === 0)
|
|
4436
4443
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
4437
4444
|
let Q;
|
|
4438
4445
|
if (r.url === void 0 && (Q = "url"))
|
|
4439
|
-
return
|
|
4446
|
+
return we.errors = [
|
|
4440
4447
|
{
|
|
4441
4448
|
instancePath: t,
|
|
4442
4449
|
schemaPath: "#/required",
|
|
@@ -4449,7 +4456,7 @@ function ge(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
4449
4456
|
const J = e;
|
|
4450
4457
|
for (const A in r)
|
|
4451
4458
|
if (!(A === "method" || A === "url" || A === "headers" || A === "body"))
|
|
4452
|
-
return
|
|
4459
|
+
return we.errors = [
|
|
4453
4460
|
{
|
|
4454
4461
|
instancePath: t,
|
|
4455
4462
|
schemaPath: "#/additionalProperties",
|
|
@@ -4463,7 +4470,7 @@ function ge(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
4463
4470
|
let A = r.method;
|
|
4464
4471
|
const re = e;
|
|
4465
4472
|
if (typeof A != "string")
|
|
4466
|
-
return
|
|
4473
|
+
return we.errors = [
|
|
4467
4474
|
{
|
|
4468
4475
|
instancePath: t + "/method",
|
|
4469
4476
|
schemaPath: "#/definitions/HTTPMethod/type",
|
|
@@ -4473,7 +4480,7 @@ function ge(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
4473
4480
|
}
|
|
4474
4481
|
], !1;
|
|
4475
4482
|
if (!(A === "GET" || A === "POST" || A === "HEAD" || A === "OPTIONS" || A === "PATCH" || A === "PUT" || A === "DELETE"))
|
|
4476
|
-
return
|
|
4483
|
+
return we.errors = [
|
|
4477
4484
|
{
|
|
4478
4485
|
instancePath: t + "/method",
|
|
4479
4486
|
schemaPath: "#/definitions/HTTPMethod/enum",
|
|
@@ -4489,7 +4496,7 @@ function ge(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
4489
4496
|
if (r.url !== void 0) {
|
|
4490
4497
|
const A = e;
|
|
4491
4498
|
if (typeof r.url != "string")
|
|
4492
|
-
return
|
|
4499
|
+
return we.errors = [
|
|
4493
4500
|
{
|
|
4494
4501
|
instancePath: t + "/url",
|
|
4495
4502
|
schemaPath: "#/properties/url/type",
|
|
@@ -4510,7 +4517,7 @@ function ge(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
4510
4517
|
for (const H in A) {
|
|
4511
4518
|
const w = e;
|
|
4512
4519
|
if (typeof A[H] != "string")
|
|
4513
|
-
return
|
|
4520
|
+
return we.errors = [
|
|
4514
4521
|
{
|
|
4515
4522
|
instancePath: t + "/headers/" + H.replace(
|
|
4516
4523
|
/~/g,
|
|
@@ -4532,7 +4539,7 @@ function ge(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
4532
4539
|
break;
|
|
4533
4540
|
}
|
|
4534
4541
|
else
|
|
4535
|
-
return
|
|
4542
|
+
return we.errors = [
|
|
4536
4543
|
{
|
|
4537
4544
|
instancePath: t + "/headers",
|
|
4538
4545
|
schemaPath: "#/definitions/PHPRequestHeaders/type",
|
|
@@ -5456,7 +5463,7 @@ function ge(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
5456
5463
|
params: {},
|
|
5457
5464
|
message: "must match a schema in anyOf"
|
|
5458
5465
|
};
|
|
5459
|
-
return s === null ? s = [$] : s.push($), e++,
|
|
5466
|
+
return s === null ? s = [$] : s.push($), e++, we.errors = s, !1;
|
|
5460
5467
|
}
|
|
5461
5468
|
var p = re === e;
|
|
5462
5469
|
} else
|
|
@@ -5466,7 +5473,7 @@ function ge(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
5466
5473
|
}
|
|
5467
5474
|
}
|
|
5468
5475
|
} else
|
|
5469
|
-
return
|
|
5476
|
+
return we.errors = [
|
|
5470
5477
|
{
|
|
5471
5478
|
instancePath: t,
|
|
5472
5479
|
schemaPath: "#/type",
|
|
@@ -5475,7 +5482,7 @@ function ge(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
5475
5482
|
message: "must be object"
|
|
5476
5483
|
}
|
|
5477
5484
|
], !1;
|
|
5478
|
-
return
|
|
5485
|
+
return we.errors = s, e === 0;
|
|
5479
5486
|
}
|
|
5480
5487
|
const Os = {
|
|
5481
5488
|
properties: {
|
|
@@ -7948,7 +7955,7 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
7948
7955
|
var E = S === e;
|
|
7949
7956
|
if (a = a || E, !a) {
|
|
7950
7957
|
const ee = e;
|
|
7951
|
-
|
|
7958
|
+
me(
|
|
7952
7959
|
i,
|
|
7953
7960
|
{
|
|
7954
7961
|
instancePath: t + "/pluginData",
|
|
@@ -7956,8 +7963,8 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
7956
7963
|
parentDataProperty: "pluginData",
|
|
7957
7964
|
rootData: u
|
|
7958
7965
|
}
|
|
7959
|
-
) || (s = s === null ?
|
|
7960
|
-
|
|
7966
|
+
) || (s = s === null ? me.errors : s.concat(
|
|
7967
|
+
me.errors
|
|
7961
7968
|
), e = s.length);
|
|
7962
7969
|
var E = ee === e;
|
|
7963
7970
|
a = a || E;
|
|
@@ -8276,7 +8283,7 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
8276
8283
|
var U = S === e;
|
|
8277
8284
|
if (a = a || U, !a) {
|
|
8278
8285
|
const ee = e;
|
|
8279
|
-
|
|
8286
|
+
me(
|
|
8280
8287
|
i,
|
|
8281
8288
|
{
|
|
8282
8289
|
instancePath: t + "/themeData",
|
|
@@ -8284,8 +8291,8 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
8284
8291
|
parentDataProperty: "themeData",
|
|
8285
8292
|
rootData: u
|
|
8286
8293
|
}
|
|
8287
|
-
) || (s = s === null ?
|
|
8288
|
-
|
|
8294
|
+
) || (s = s === null ? me.errors : s.concat(
|
|
8295
|
+
me.errors
|
|
8289
8296
|
), e = s.length);
|
|
8290
8297
|
var U = ee === e;
|
|
8291
8298
|
a = a || U;
|
|
@@ -9266,7 +9273,7 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
9266
9273
|
if (I)
|
|
9267
9274
|
if (r.request !== void 0) {
|
|
9268
9275
|
const i = e;
|
|
9269
|
-
|
|
9276
|
+
we(
|
|
9270
9277
|
r.request,
|
|
9271
9278
|
{
|
|
9272
9279
|
instancePath: t + "/request",
|
|
@@ -9274,8 +9281,8 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
9274
9281
|
parentDataProperty: "request",
|
|
9275
9282
|
rootData: u
|
|
9276
9283
|
}
|
|
9277
|
-
) || (s = s === null ?
|
|
9278
|
-
|
|
9284
|
+
) || (s = s === null ? we.errors : s.concat(
|
|
9285
|
+
we.errors
|
|
9279
9286
|
), e = s.length);
|
|
9280
9287
|
var I = i === e;
|
|
9281
9288
|
} else
|
|
@@ -10749,10 +10756,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
10749
10756
|
message: "must be object"
|
|
10750
10757
|
}
|
|
10751
10758
|
], !1;
|
|
10752
|
-
var
|
|
10759
|
+
var ye = f === e;
|
|
10753
10760
|
} else
|
|
10754
|
-
var
|
|
10755
|
-
if (
|
|
10761
|
+
var ye = !0;
|
|
10762
|
+
if (ye) {
|
|
10756
10763
|
if (r.step !== void 0) {
|
|
10757
10764
|
let i = r.step;
|
|
10758
10765
|
const f = e;
|
|
@@ -10780,10 +10787,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
10780
10787
|
message: "must be equal to constant"
|
|
10781
10788
|
}
|
|
10782
10789
|
], !1;
|
|
10783
|
-
var
|
|
10790
|
+
var ye = f === e;
|
|
10784
10791
|
} else
|
|
10785
|
-
var
|
|
10786
|
-
if (
|
|
10792
|
+
var ye = !0;
|
|
10793
|
+
if (ye) {
|
|
10787
10794
|
if (r.zipFile !== void 0) {
|
|
10788
10795
|
const i = e;
|
|
10789
10796
|
G(
|
|
@@ -10797,10 +10804,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
10797
10804
|
) || (s = s === null ? G.errors : s.concat(
|
|
10798
10805
|
G.errors
|
|
10799
10806
|
), e = s.length);
|
|
10800
|
-
var
|
|
10807
|
+
var ye = i === e;
|
|
10801
10808
|
} else
|
|
10802
|
-
var
|
|
10803
|
-
if (
|
|
10809
|
+
var ye = !0;
|
|
10810
|
+
if (ye) {
|
|
10804
10811
|
if (r.zipPath !== void 0) {
|
|
10805
10812
|
const i = e;
|
|
10806
10813
|
if (typeof r.zipPath != "string")
|
|
@@ -10815,10 +10822,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
10815
10822
|
message: "must be string"
|
|
10816
10823
|
}
|
|
10817
10824
|
], !1;
|
|
10818
|
-
var
|
|
10825
|
+
var ye = i === e;
|
|
10819
10826
|
} else
|
|
10820
|
-
var
|
|
10821
|
-
if (
|
|
10827
|
+
var ye = !0;
|
|
10828
|
+
if (ye)
|
|
10822
10829
|
if (r.extractToPath !== void 0) {
|
|
10823
10830
|
const i = e;
|
|
10824
10831
|
if (typeof r.extractToPath != "string")
|
|
@@ -10833,9 +10840,9 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
10833
10840
|
message: "must be string"
|
|
10834
10841
|
}
|
|
10835
10842
|
], !1;
|
|
10836
|
-
var
|
|
10843
|
+
var ye = i === e;
|
|
10837
10844
|
} else
|
|
10838
|
-
var
|
|
10845
|
+
var ye = !0;
|
|
10839
10846
|
}
|
|
10840
10847
|
}
|
|
10841
10848
|
}
|
|
@@ -11262,10 +11269,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
11262
11269
|
const Ee = e;
|
|
11263
11270
|
for (const Y in i)
|
|
11264
11271
|
if (!(Y === "BYTES_PER_ELEMENT" || Y === "buffer" || Y === "byteLength" || Y === "byteOffset" || Y === "length")) {
|
|
11265
|
-
let
|
|
11272
|
+
let ge = i[Y];
|
|
11266
11273
|
const rr = e;
|
|
11267
|
-
if (!(typeof
|
|
11268
|
-
|
|
11274
|
+
if (!(typeof ge == "number" && isFinite(
|
|
11275
|
+
ge
|
|
11269
11276
|
))) {
|
|
11270
11277
|
const ue = {
|
|
11271
11278
|
instancePath: t + "/data/" + Y.replace(
|
|
@@ -11295,7 +11302,7 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
11295
11302
|
if (Ee === e) {
|
|
11296
11303
|
if (i.BYTES_PER_ELEMENT !== void 0) {
|
|
11297
11304
|
let Y = i.BYTES_PER_ELEMENT;
|
|
11298
|
-
const
|
|
11305
|
+
const ge = e;
|
|
11299
11306
|
if (!(typeof Y == "number" && isFinite(
|
|
11300
11307
|
Y
|
|
11301
11308
|
))) {
|
|
@@ -11314,14 +11321,14 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
11314
11321
|
rr
|
|
11315
11322
|
), e++;
|
|
11316
11323
|
}
|
|
11317
|
-
var
|
|
11324
|
+
var he = ge === e;
|
|
11318
11325
|
} else
|
|
11319
|
-
var
|
|
11320
|
-
if (
|
|
11326
|
+
var he = !0;
|
|
11327
|
+
if (he) {
|
|
11321
11328
|
if (i.buffer !== void 0) {
|
|
11322
11329
|
let Y = i.buffer;
|
|
11323
|
-
const
|
|
11324
|
-
if (e ===
|
|
11330
|
+
const ge = e;
|
|
11331
|
+
if (e === ge)
|
|
11325
11332
|
if (Y && typeof Y == "object" && !Array.isArray(
|
|
11326
11333
|
Y
|
|
11327
11334
|
)) {
|
|
@@ -11399,13 +11406,13 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
11399
11406
|
ue
|
|
11400
11407
|
), e++;
|
|
11401
11408
|
}
|
|
11402
|
-
var
|
|
11409
|
+
var he = ge === e;
|
|
11403
11410
|
} else
|
|
11404
|
-
var
|
|
11405
|
-
if (
|
|
11411
|
+
var he = !0;
|
|
11412
|
+
if (he) {
|
|
11406
11413
|
if (i.byteLength !== void 0) {
|
|
11407
11414
|
let Y = i.byteLength;
|
|
11408
|
-
const
|
|
11415
|
+
const ge = e;
|
|
11409
11416
|
if (!(typeof Y == "number" && isFinite(
|
|
11410
11417
|
Y
|
|
11411
11418
|
))) {
|
|
@@ -11424,13 +11431,13 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
11424
11431
|
ue
|
|
11425
11432
|
), e++;
|
|
11426
11433
|
}
|
|
11427
|
-
var
|
|
11434
|
+
var he = ge === e;
|
|
11428
11435
|
} else
|
|
11429
|
-
var
|
|
11430
|
-
if (
|
|
11436
|
+
var he = !0;
|
|
11437
|
+
if (he) {
|
|
11431
11438
|
if (i.byteOffset !== void 0) {
|
|
11432
11439
|
let Y = i.byteOffset;
|
|
11433
|
-
const
|
|
11440
|
+
const ge = e;
|
|
11434
11441
|
if (!(typeof Y == "number" && isFinite(
|
|
11435
11442
|
Y
|
|
11436
11443
|
))) {
|
|
@@ -11449,13 +11456,13 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
11449
11456
|
ue
|
|
11450
11457
|
), e++;
|
|
11451
11458
|
}
|
|
11452
|
-
var
|
|
11459
|
+
var he = ge === e;
|
|
11453
11460
|
} else
|
|
11454
|
-
var
|
|
11455
|
-
if (
|
|
11461
|
+
var he = !0;
|
|
11462
|
+
if (he)
|
|
11456
11463
|
if (i.length !== void 0) {
|
|
11457
11464
|
let Y = i.length;
|
|
11458
|
-
const
|
|
11465
|
+
const ge = e;
|
|
11459
11466
|
if (!(typeof Y == "number" && isFinite(
|
|
11460
11467
|
Y
|
|
11461
11468
|
))) {
|
|
@@ -11474,9 +11481,9 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
11474
11481
|
ue
|
|
11475
11482
|
), e++;
|
|
11476
11483
|
}
|
|
11477
|
-
var
|
|
11484
|
+
var he = ge === e;
|
|
11478
11485
|
} else
|
|
11479
|
-
var
|
|
11486
|
+
var he = !0;
|
|
11480
11487
|
}
|
|
11481
11488
|
}
|
|
11482
11489
|
}
|
|
@@ -11693,7 +11700,7 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
11693
11700
|
if (Oe)
|
|
11694
11701
|
if (r.filesTree !== void 0) {
|
|
11695
11702
|
const i = e;
|
|
11696
|
-
|
|
11703
|
+
me(
|
|
11697
11704
|
r.filesTree,
|
|
11698
11705
|
{
|
|
11699
11706
|
instancePath: t + "/filesTree",
|
|
@@ -11701,8 +11708,8 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
11701
11708
|
parentDataProperty: "filesTree",
|
|
11702
11709
|
rootData: u
|
|
11703
11710
|
}
|
|
11704
|
-
) || (s = s === null ?
|
|
11705
|
-
|
|
11711
|
+
) || (s = s === null ? me.errors : s.concat(
|
|
11712
|
+
me.errors
|
|
11706
11713
|
), e = s.length);
|
|
11707
11714
|
var Oe = i === e;
|
|
11708
11715
|
} else
|
|
@@ -13728,7 +13735,7 @@ playground_add_filter('blueprint.target_resolved', 'playground_on_blueprint_targ
|
|
|
13728
13735
|
|
|
13729
13736
|
playground_add_filter('blueprint.resolved', 'playground_on_blueprint_resolved');
|
|
13730
13737
|
function playground_on_blueprint_resolved($blueprint) {
|
|
13731
|
-
$additional_blueprint_steps = json_decode(${
|
|
13738
|
+
$additional_blueprint_steps = json_decode(${ce(
|
|
13732
13739
|
JSON.stringify(((P = r.blueprintOverrides) == null ? void 0 : P.additionalSteps) || [])
|
|
13733
13740
|
)}, true);
|
|
13734
13741
|
if(count($additional_blueprint_steps) > 0) {
|
|
@@ -13738,7 +13745,7 @@ function playground_on_blueprint_resolved($blueprint) {
|
|
|
13738
13745
|
);
|
|
13739
13746
|
}
|
|
13740
13747
|
|
|
13741
|
-
$wp_version_override = json_decode(${
|
|
13748
|
+
$wp_version_override = json_decode(${ce(
|
|
13742
13749
|
JSON.stringify(((y = r.blueprintOverrides) == null ? void 0 : y.wordpressVersion) || null)
|
|
13743
13750
|
)}, true);
|
|
13744
13751
|
if($wp_version_override) {
|