@wp-playground/client 0.9.37 → 0.9.39
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 +9 -9
- package/index.d.ts +8 -8
- package/index.js +213 -179
- package/package.json +8 -8
package/index.js
CHANGED
|
@@ -1964,7 +1964,7 @@ function cs(r) {
|
|
|
1964
1964
|
if (t in ir)
|
|
1965
1965
|
return ir[t];
|
|
1966
1966
|
}
|
|
1967
|
-
function
|
|
1967
|
+
function ge(r = "") {
|
|
1968
1968
|
return function(o, p, l) {
|
|
1969
1969
|
const i = l.value;
|
|
1970
1970
|
l.value = function(...e) {
|
|
@@ -1983,14 +1983,14 @@ function _e(r = "") {
|
|
|
1983
1983
|
};
|
|
1984
1984
|
};
|
|
1985
1985
|
}
|
|
1986
|
-
var ms = Object.defineProperty, ys = Object.getOwnPropertyDescriptor,
|
|
1986
|
+
var ms = Object.defineProperty, ys = Object.getOwnPropertyDescriptor, be = (r, t, o, p) => {
|
|
1987
1987
|
for (var l = p > 1 ? void 0 : p ? ys(t, o) : t, i = r.length - 1, e; i >= 0; i--)
|
|
1988
1988
|
(e = r[i]) && (l = (p ? e(t, o, l) : e(l)) || l);
|
|
1989
1989
|
return p && l && ms(t, o, l), l;
|
|
1990
1990
|
};
|
|
1991
|
-
const
|
|
1991
|
+
const we = class pe {
|
|
1992
1992
|
static readFileAsText(t, o) {
|
|
1993
|
-
return new TextDecoder().decode(
|
|
1993
|
+
return new TextDecoder().decode(pe.readFileAsBuffer(t, o));
|
|
1994
1994
|
}
|
|
1995
1995
|
static readFileAsBuffer(t, o) {
|
|
1996
1996
|
return t.readFile(o);
|
|
@@ -2005,13 +2005,14 @@ const Oe = class me {
|
|
|
2005
2005
|
* Moves a file or directory in the PHP filesystem to a
|
|
2006
2006
|
* new location.
|
|
2007
2007
|
*
|
|
2008
|
-
* @param
|
|
2009
|
-
* @param
|
|
2008
|
+
* @param FS
|
|
2009
|
+
* @param fromPath The path to rename.
|
|
2010
|
+
* @param toPath The new path.
|
|
2010
2011
|
*/
|
|
2011
2012
|
static mv(t, o, p) {
|
|
2012
2013
|
try {
|
|
2013
|
-
const l = t.lookupPath(o).node.mount, i =
|
|
2014
|
-
l.mountpoint !== i.mountpoint ? (
|
|
2014
|
+
const l = t.lookupPath(o).node.mount, i = pe.fileExists(t, p) ? t.lookupPath(p).node.mount : t.lookupPath(Yr(p)).node.mount;
|
|
2015
|
+
l.mountpoint !== i.mountpoint ? (pe.copyRecursive(t, o, p), pe.rmdir(t, o, { recursive: !0 })) : t.rename(o, p);
|
|
2015
2016
|
} catch (l) {
|
|
2016
2017
|
const i = cs(l);
|
|
2017
2018
|
throw i ? new Error(
|
|
@@ -2023,13 +2024,13 @@ const Oe = class me {
|
|
|
2023
2024
|
}
|
|
2024
2025
|
}
|
|
2025
2026
|
static rmdir(t, o, p = { recursive: !0 }) {
|
|
2026
|
-
p != null && p.recursive &&
|
|
2027
|
+
p != null && p.recursive && pe.listFiles(t, o).forEach((l) => {
|
|
2027
2028
|
const i = `${o}/${l}`;
|
|
2028
|
-
|
|
2029
|
+
pe.isDir(t, i) ? pe.rmdir(t, i, p) : pe.unlink(t, i);
|
|
2029
2030
|
}), t.rmdir(o);
|
|
2030
2031
|
}
|
|
2031
2032
|
static listFiles(t, o, p = { prependPath: !1 }) {
|
|
2032
|
-
if (!
|
|
2033
|
+
if (!pe.fileExists(t, o))
|
|
2033
2034
|
return [];
|
|
2034
2035
|
try {
|
|
2035
2036
|
const l = t.readdir(o).filter(
|
|
@@ -2045,16 +2046,43 @@ const Oe = class me {
|
|
|
2045
2046
|
}
|
|
2046
2047
|
}
|
|
2047
2048
|
static isDir(t, o) {
|
|
2048
|
-
return
|
|
2049
|
+
return pe.fileExists(t, o) ? t.isDir(t.lookupPath(o, { follow: !0 }).node.mode) : !1;
|
|
2050
|
+
}
|
|
2051
|
+
static isFile(t, o) {
|
|
2052
|
+
return pe.fileExists(t, o) ? t.isFile(t.lookupPath(o, { follow: !0 }).node.mode) : !1;
|
|
2049
2053
|
}
|
|
2050
2054
|
/**
|
|
2051
|
-
*
|
|
2055
|
+
* Creates a symlink in the PHP filesystem.
|
|
2052
2056
|
*
|
|
2053
|
-
* @param
|
|
2054
|
-
* @
|
|
2057
|
+
* @param FS
|
|
2058
|
+
* @param target
|
|
2059
|
+
* @param link
|
|
2055
2060
|
*/
|
|
2056
|
-
static
|
|
2057
|
-
return
|
|
2061
|
+
static symlink(t, o, p) {
|
|
2062
|
+
return t.symlink(o, p);
|
|
2063
|
+
}
|
|
2064
|
+
/**
|
|
2065
|
+
* Checks if a path is a symlink in the PHP filesystem.
|
|
2066
|
+
*
|
|
2067
|
+
* @param FS
|
|
2068
|
+
* @param path
|
|
2069
|
+
* @returns True if the path is a symlink, false otherwise.
|
|
2070
|
+
*/
|
|
2071
|
+
static isSymlink(t, o) {
|
|
2072
|
+
return pe.fileExists(t, o) ? t.isLink(t.lookupPath(o).node.mode) : !1;
|
|
2073
|
+
}
|
|
2074
|
+
/**
|
|
2075
|
+
* Reads the target of a symlink in the PHP filesystem.
|
|
2076
|
+
* @param FS
|
|
2077
|
+
* @param path
|
|
2078
|
+
* @returns The target of the symlink.
|
|
2079
|
+
* @throws {@link @php-wasm/universal:ErrnoError} – If the path is not a symlink.
|
|
2080
|
+
*/
|
|
2081
|
+
static readlink(t, o) {
|
|
2082
|
+
return t.readlink(o);
|
|
2083
|
+
}
|
|
2084
|
+
static realpath(t, o) {
|
|
2085
|
+
return t.lookupPath(o, { follow: !0 }).path;
|
|
2058
2086
|
}
|
|
2059
2087
|
static fileExists(t, o) {
|
|
2060
2088
|
try {
|
|
@@ -2074,7 +2102,7 @@ const Oe = class me {
|
|
|
2074
2102
|
(e) => e !== "." && e !== ".."
|
|
2075
2103
|
);
|
|
2076
2104
|
for (const e of i)
|
|
2077
|
-
|
|
2105
|
+
pe.copyRecursive(
|
|
2078
2106
|
t,
|
|
2079
2107
|
se(o, e),
|
|
2080
2108
|
se(p, e)
|
|
@@ -2083,36 +2111,42 @@ const Oe = class me {
|
|
|
2083
2111
|
t.writeFile(p, t.readFile(o));
|
|
2084
2112
|
}
|
|
2085
2113
|
};
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
],
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
],
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
],
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
],
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
],
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
],
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
],
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
],
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
],
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
],
|
|
2114
|
+
be([
|
|
2115
|
+
ge('Could not read "{path}"')
|
|
2116
|
+
], we, "readFileAsText", 1);
|
|
2117
|
+
be([
|
|
2118
|
+
ge('Could not read "{path}"')
|
|
2119
|
+
], we, "readFileAsBuffer", 1);
|
|
2120
|
+
be([
|
|
2121
|
+
ge('Could not write to "{path}"')
|
|
2122
|
+
], we, "writeFile", 1);
|
|
2123
|
+
be([
|
|
2124
|
+
ge('Could not unlink "{path}"')
|
|
2125
|
+
], we, "unlink", 1);
|
|
2126
|
+
be([
|
|
2127
|
+
ge('Could not remove directory "{path}"')
|
|
2128
|
+
], we, "rmdir", 1);
|
|
2129
|
+
be([
|
|
2130
|
+
ge('Could not list files in "{path}"')
|
|
2131
|
+
], we, "listFiles", 1);
|
|
2132
|
+
be([
|
|
2133
|
+
ge('Could not stat "{path}"')
|
|
2134
|
+
], we, "isDir", 1);
|
|
2135
|
+
be([
|
|
2136
|
+
ge('Could not stat "{path}"')
|
|
2137
|
+
], we, "isFile", 1);
|
|
2138
|
+
be([
|
|
2139
|
+
ge('Could not stat "{path}"')
|
|
2140
|
+
], we, "realpath", 1);
|
|
2141
|
+
be([
|
|
2142
|
+
ge('Could not stat "{path}"')
|
|
2143
|
+
], we, "fileExists", 1);
|
|
2144
|
+
be([
|
|
2145
|
+
ge('Could not create directory "{path}"')
|
|
2146
|
+
], we, "mkdir", 1);
|
|
2147
|
+
be([
|
|
2148
|
+
ge('Could not copy files from "{path}"')
|
|
2149
|
+
], we, "copyRecursive", 1);
|
|
2116
2150
|
const hs = {
|
|
2117
2151
|
500: "Internal Server Error",
|
|
2118
2152
|
502: "Bad Gateway",
|
|
@@ -4690,9 +4724,9 @@ function ye(r, { instancePath: t = "", parentData: o, parentDataProperty: p, roo
|
|
|
4690
4724
|
), e++;
|
|
4691
4725
|
} else {
|
|
4692
4726
|
const K = e;
|
|
4693
|
-
for (const
|
|
4694
|
-
if (
|
|
4695
|
-
const
|
|
4727
|
+
for (const le in C)
|
|
4728
|
+
if (le !== "byteLength") {
|
|
4729
|
+
const fe = {
|
|
4696
4730
|
instancePath: t + "/body/" + g.replace(
|
|
4697
4731
|
/~/g,
|
|
4698
4732
|
"~0"
|
|
@@ -4703,23 +4737,23 @@ function ye(r, { instancePath: t = "", parentData: o, parentDataProperty: p, roo
|
|
|
4703
4737
|
schemaPath: "#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/additionalProperties",
|
|
4704
4738
|
keyword: "additionalProperties",
|
|
4705
4739
|
params: {
|
|
4706
|
-
additionalProperty:
|
|
4740
|
+
additionalProperty: le
|
|
4707
4741
|
},
|
|
4708
4742
|
message: "must NOT have additional properties"
|
|
4709
4743
|
};
|
|
4710
4744
|
i === null ? i = [
|
|
4711
|
-
|
|
4745
|
+
fe
|
|
4712
4746
|
] : i.push(
|
|
4713
|
-
|
|
4747
|
+
fe
|
|
4714
4748
|
), e++;
|
|
4715
4749
|
break;
|
|
4716
4750
|
}
|
|
4717
4751
|
if (K === e && C.byteLength !== void 0) {
|
|
4718
|
-
let
|
|
4719
|
-
if (!(typeof
|
|
4720
|
-
|
|
4752
|
+
let le = C.byteLength;
|
|
4753
|
+
if (!(typeof le == "number" && isFinite(
|
|
4754
|
+
le
|
|
4721
4755
|
))) {
|
|
4722
|
-
const
|
|
4756
|
+
const fe = {
|
|
4723
4757
|
instancePath: t + "/body/" + g.replace(
|
|
4724
4758
|
/~/g,
|
|
4725
4759
|
"~0"
|
|
@@ -4735,9 +4769,9 @@ function ye(r, { instancePath: t = "", parentData: o, parentDataProperty: p, roo
|
|
|
4735
4769
|
message: "must be number"
|
|
4736
4770
|
};
|
|
4737
4771
|
i === null ? i = [
|
|
4738
|
-
|
|
4772
|
+
fe
|
|
4739
4773
|
] : i.push(
|
|
4740
|
-
|
|
4774
|
+
fe
|
|
4741
4775
|
), e++;
|
|
4742
4776
|
}
|
|
4743
4777
|
}
|
|
@@ -5008,7 +5042,7 @@ function ye(r, { instancePath: t = "", parentData: o, parentDataProperty: p, roo
|
|
|
5008
5042
|
if (!(typeof M == "number" && isFinite(
|
|
5009
5043
|
M
|
|
5010
5044
|
))) {
|
|
5011
|
-
const
|
|
5045
|
+
const le = {
|
|
5012
5046
|
instancePath: t + "/body/" + g.replace(
|
|
5013
5047
|
/~/g,
|
|
5014
5048
|
"~0"
|
|
@@ -5024,9 +5058,9 @@ function ye(r, { instancePath: t = "", parentData: o, parentDataProperty: p, roo
|
|
|
5024
5058
|
message: "must be number"
|
|
5025
5059
|
};
|
|
5026
5060
|
i === null ? i = [
|
|
5027
|
-
|
|
5061
|
+
le
|
|
5028
5062
|
] : i.push(
|
|
5029
|
-
|
|
5063
|
+
le
|
|
5030
5064
|
), e++;
|
|
5031
5065
|
}
|
|
5032
5066
|
var P = Y === e;
|
|
@@ -7620,15 +7654,15 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
7620
7654
|
s
|
|
7621
7655
|
)) {
|
|
7622
7656
|
const j = e;
|
|
7623
|
-
for (const
|
|
7624
|
-
if (
|
|
7657
|
+
for (const ke in s)
|
|
7658
|
+
if (ke !== "activate")
|
|
7625
7659
|
return n.errors = [
|
|
7626
7660
|
{
|
|
7627
7661
|
instancePath: t + "/options",
|
|
7628
7662
|
schemaPath: "#/definitions/InstallPluginOptions/additionalProperties",
|
|
7629
7663
|
keyword: "additionalProperties",
|
|
7630
7664
|
params: {
|
|
7631
|
-
additionalProperty:
|
|
7665
|
+
additionalProperty: ke
|
|
7632
7666
|
},
|
|
7633
7667
|
message: "must NOT have additional properties"
|
|
7634
7668
|
}
|
|
@@ -9212,10 +9246,10 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
9212
9246
|
message: "must be number"
|
|
9213
9247
|
}
|
|
9214
9248
|
], !1;
|
|
9215
|
-
var
|
|
9249
|
+
var le = j === e;
|
|
9216
9250
|
} else
|
|
9217
|
-
var
|
|
9218
|
-
if (
|
|
9251
|
+
var le = !0;
|
|
9252
|
+
if (le)
|
|
9219
9253
|
if (s.caption !== void 0) {
|
|
9220
9254
|
const a = e;
|
|
9221
9255
|
if (typeof s.caption != "string")
|
|
@@ -9230,9 +9264,9 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
9230
9264
|
message: "must be string"
|
|
9231
9265
|
}
|
|
9232
9266
|
], !1;
|
|
9233
|
-
var
|
|
9267
|
+
var le = a === e;
|
|
9234
9268
|
} else
|
|
9235
|
-
var
|
|
9269
|
+
var le = !0;
|
|
9236
9270
|
}
|
|
9237
9271
|
} else
|
|
9238
9272
|
return n.errors = [
|
|
@@ -9246,10 +9280,10 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
9246
9280
|
message: "must be object"
|
|
9247
9281
|
}
|
|
9248
9282
|
], !1;
|
|
9249
|
-
var
|
|
9283
|
+
var fe = u === e;
|
|
9250
9284
|
} else
|
|
9251
|
-
var
|
|
9252
|
-
if (
|
|
9285
|
+
var fe = !0;
|
|
9286
|
+
if (fe) {
|
|
9253
9287
|
if (r.step !== void 0) {
|
|
9254
9288
|
let s = r.step;
|
|
9255
9289
|
const u = e;
|
|
@@ -9277,10 +9311,10 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
9277
9311
|
message: "must be equal to constant"
|
|
9278
9312
|
}
|
|
9279
9313
|
], !1;
|
|
9280
|
-
var
|
|
9314
|
+
var fe = u === e;
|
|
9281
9315
|
} else
|
|
9282
|
-
var
|
|
9283
|
-
if (
|
|
9316
|
+
var fe = !0;
|
|
9317
|
+
if (fe)
|
|
9284
9318
|
if (r.code !== void 0) {
|
|
9285
9319
|
const s = e;
|
|
9286
9320
|
if (typeof r.code != "string")
|
|
@@ -9295,9 +9329,9 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
9295
9329
|
message: "must be string"
|
|
9296
9330
|
}
|
|
9297
9331
|
], !1;
|
|
9298
|
-
var
|
|
9332
|
+
var fe = s === e;
|
|
9299
9333
|
} else
|
|
9300
|
-
var
|
|
9334
|
+
var fe = !0;
|
|
9301
9335
|
}
|
|
9302
9336
|
}
|
|
9303
9337
|
}
|
|
@@ -9624,22 +9658,22 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
9624
9658
|
s
|
|
9625
9659
|
)) {
|
|
9626
9660
|
const j = e;
|
|
9627
|
-
for (const
|
|
9628
|
-
if (!(
|
|
9661
|
+
for (const ke in s)
|
|
9662
|
+
if (!(ke === "adminUsername" || ke === "adminPassword"))
|
|
9629
9663
|
return n.errors = [
|
|
9630
9664
|
{
|
|
9631
9665
|
instancePath: t + "/options",
|
|
9632
9666
|
schemaPath: "#/definitions/WordPressInstallationOptions/additionalProperties",
|
|
9633
9667
|
keyword: "additionalProperties",
|
|
9634
9668
|
params: {
|
|
9635
|
-
additionalProperty:
|
|
9669
|
+
additionalProperty: ke
|
|
9636
9670
|
},
|
|
9637
9671
|
message: "must NOT have additional properties"
|
|
9638
9672
|
}
|
|
9639
9673
|
], !1;
|
|
9640
9674
|
if (j === e) {
|
|
9641
9675
|
if (s.adminUsername !== void 0) {
|
|
9642
|
-
const
|
|
9676
|
+
const ke = e;
|
|
9643
9677
|
if (typeof s.adminUsername != "string")
|
|
9644
9678
|
return n.errors = [
|
|
9645
9679
|
{
|
|
@@ -9652,12 +9686,12 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
9652
9686
|
message: "must be string"
|
|
9653
9687
|
}
|
|
9654
9688
|
], !1;
|
|
9655
|
-
var We =
|
|
9689
|
+
var We = ke === e;
|
|
9656
9690
|
} else
|
|
9657
9691
|
var We = !0;
|
|
9658
9692
|
if (We)
|
|
9659
9693
|
if (s.adminPassword !== void 0) {
|
|
9660
|
-
const
|
|
9694
|
+
const ke = e;
|
|
9661
9695
|
if (typeof s.adminPassword != "string")
|
|
9662
9696
|
return n.errors = [
|
|
9663
9697
|
{
|
|
@@ -9670,7 +9704,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
9670
9704
|
message: "must be string"
|
|
9671
9705
|
}
|
|
9672
9706
|
], !1;
|
|
9673
|
-
var We =
|
|
9707
|
+
var We = ke === e;
|
|
9674
9708
|
} else
|
|
9675
9709
|
var We = !0;
|
|
9676
9710
|
}
|
|
@@ -10140,10 +10174,10 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10140
10174
|
message: "must be object"
|
|
10141
10175
|
}
|
|
10142
10176
|
], !1;
|
|
10143
|
-
var
|
|
10177
|
+
var ue = u === e;
|
|
10144
10178
|
} else
|
|
10145
|
-
var
|
|
10146
|
-
if (
|
|
10179
|
+
var ue = !0;
|
|
10180
|
+
if (ue) {
|
|
10147
10181
|
if (r.step !== void 0) {
|
|
10148
10182
|
let s = r.step;
|
|
10149
10183
|
const u = e;
|
|
@@ -10171,10 +10205,10 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10171
10205
|
message: "must be equal to constant"
|
|
10172
10206
|
}
|
|
10173
10207
|
], !1;
|
|
10174
|
-
var
|
|
10208
|
+
var ue = u === e;
|
|
10175
10209
|
} else
|
|
10176
|
-
var
|
|
10177
|
-
if (
|
|
10210
|
+
var ue = !0;
|
|
10211
|
+
if (ue) {
|
|
10178
10212
|
if (r.zipFile !== void 0) {
|
|
10179
10213
|
const s = e;
|
|
10180
10214
|
re(
|
|
@@ -10188,10 +10222,10 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10188
10222
|
) || (i = i === null ? re.errors : i.concat(
|
|
10189
10223
|
re.errors
|
|
10190
10224
|
), e = i.length);
|
|
10191
|
-
var
|
|
10225
|
+
var ue = s === e;
|
|
10192
10226
|
} else
|
|
10193
|
-
var
|
|
10194
|
-
if (
|
|
10227
|
+
var ue = !0;
|
|
10228
|
+
if (ue) {
|
|
10195
10229
|
if (r.zipPath !== void 0) {
|
|
10196
10230
|
const s = e;
|
|
10197
10231
|
if (typeof r.zipPath != "string")
|
|
@@ -10206,10 +10240,10 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10206
10240
|
message: "must be string"
|
|
10207
10241
|
}
|
|
10208
10242
|
], !1;
|
|
10209
|
-
var
|
|
10243
|
+
var ue = s === e;
|
|
10210
10244
|
} else
|
|
10211
|
-
var
|
|
10212
|
-
if (
|
|
10245
|
+
var ue = !0;
|
|
10246
|
+
if (ue)
|
|
10213
10247
|
if (r.extractToPath !== void 0) {
|
|
10214
10248
|
const s = e;
|
|
10215
10249
|
if (typeof r.extractToPath != "string")
|
|
@@ -10224,9 +10258,9 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10224
10258
|
message: "must be string"
|
|
10225
10259
|
}
|
|
10226
10260
|
], !1;
|
|
10227
|
-
var
|
|
10261
|
+
var ue = s === e;
|
|
10228
10262
|
} else
|
|
10229
|
-
var
|
|
10263
|
+
var ue = !0;
|
|
10230
10264
|
}
|
|
10231
10265
|
}
|
|
10232
10266
|
}
|
|
@@ -10345,10 +10379,10 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10345
10379
|
message: "must be object"
|
|
10346
10380
|
}
|
|
10347
10381
|
], !1;
|
|
10348
|
-
var
|
|
10382
|
+
var ve = u === e;
|
|
10349
10383
|
} else
|
|
10350
|
-
var
|
|
10351
|
-
if (
|
|
10384
|
+
var ve = !0;
|
|
10385
|
+
if (ve) {
|
|
10352
10386
|
if (r.step !== void 0) {
|
|
10353
10387
|
let s = r.step;
|
|
10354
10388
|
const u = e;
|
|
@@ -10376,10 +10410,10 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10376
10410
|
message: "must be equal to constant"
|
|
10377
10411
|
}
|
|
10378
10412
|
], !1;
|
|
10379
|
-
var
|
|
10413
|
+
var ve = u === e;
|
|
10380
10414
|
} else
|
|
10381
|
-
var
|
|
10382
|
-
if (
|
|
10415
|
+
var ve = !0;
|
|
10416
|
+
if (ve) {
|
|
10383
10417
|
if (r.meta !== void 0) {
|
|
10384
10418
|
let s = r.meta;
|
|
10385
10419
|
const u = e;
|
|
@@ -10397,10 +10431,10 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10397
10431
|
message: "must be object"
|
|
10398
10432
|
}
|
|
10399
10433
|
], !1;
|
|
10400
|
-
var
|
|
10434
|
+
var ve = u === e;
|
|
10401
10435
|
} else
|
|
10402
|
-
var
|
|
10403
|
-
if (
|
|
10436
|
+
var ve = !0;
|
|
10437
|
+
if (ve)
|
|
10404
10438
|
if (r.userId !== void 0) {
|
|
10405
10439
|
let s = r.userId;
|
|
10406
10440
|
const u = e;
|
|
@@ -10418,9 +10452,9 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10418
10452
|
message: "must be number"
|
|
10419
10453
|
}
|
|
10420
10454
|
], !1;
|
|
10421
|
-
var
|
|
10455
|
+
var ve = u === e;
|
|
10422
10456
|
} else
|
|
10423
|
-
var
|
|
10457
|
+
var ve = !0;
|
|
10424
10458
|
}
|
|
10425
10459
|
}
|
|
10426
10460
|
}
|
|
@@ -10538,10 +10572,10 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10538
10572
|
message: "must be object"
|
|
10539
10573
|
}
|
|
10540
10574
|
], !1;
|
|
10541
|
-
var
|
|
10575
|
+
var Pe = u === e;
|
|
10542
10576
|
} else
|
|
10543
|
-
var
|
|
10544
|
-
if (
|
|
10577
|
+
var Pe = !0;
|
|
10578
|
+
if (Pe) {
|
|
10545
10579
|
if (r.step !== void 0) {
|
|
10546
10580
|
let s = r.step;
|
|
10547
10581
|
const u = e;
|
|
@@ -10569,10 +10603,10 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10569
10603
|
message: "must be equal to constant"
|
|
10570
10604
|
}
|
|
10571
10605
|
], !1;
|
|
10572
|
-
var
|
|
10606
|
+
var Pe = u === e;
|
|
10573
10607
|
} else
|
|
10574
|
-
var
|
|
10575
|
-
if (
|
|
10608
|
+
var Pe = !0;
|
|
10609
|
+
if (Pe) {
|
|
10576
10610
|
if (r.path !== void 0) {
|
|
10577
10611
|
const s = e;
|
|
10578
10612
|
if (typeof r.path != "string")
|
|
@@ -10587,10 +10621,10 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10587
10621
|
message: "must be string"
|
|
10588
10622
|
}
|
|
10589
10623
|
], !1;
|
|
10590
|
-
var
|
|
10624
|
+
var Pe = s === e;
|
|
10591
10625
|
} else
|
|
10592
|
-
var
|
|
10593
|
-
if (
|
|
10626
|
+
var Pe = !0;
|
|
10627
|
+
if (Pe)
|
|
10594
10628
|
if (r.data !== void 0) {
|
|
10595
10629
|
let s = r.data;
|
|
10596
10630
|
const u = e, L = e;
|
|
@@ -10609,9 +10643,9 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10609
10643
|
), e = i.length);
|
|
10610
10644
|
var Ne = j === e;
|
|
10611
10645
|
if (a = a || Ne, !a) {
|
|
10612
|
-
const
|
|
10646
|
+
const ce = e;
|
|
10613
10647
|
if (typeof s != "string") {
|
|
10614
|
-
const
|
|
10648
|
+
const Oe = {
|
|
10615
10649
|
instancePath: t + "/data",
|
|
10616
10650
|
schemaPath: "#/oneOf/25/properties/data/anyOf/1/type",
|
|
10617
10651
|
keyword: "type",
|
|
@@ -10621,15 +10655,15 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10621
10655
|
message: "must be string"
|
|
10622
10656
|
};
|
|
10623
10657
|
i === null ? i = [
|
|
10624
|
-
|
|
10658
|
+
Oe
|
|
10625
10659
|
] : i.push(
|
|
10626
|
-
|
|
10660
|
+
Oe
|
|
10627
10661
|
), e++;
|
|
10628
10662
|
}
|
|
10629
|
-
var Ne =
|
|
10663
|
+
var Ne = ce === e;
|
|
10630
10664
|
if (a = a || Ne, !a) {
|
|
10631
|
-
const
|
|
10632
|
-
if (e ===
|
|
10665
|
+
const Oe = e;
|
|
10666
|
+
if (e === Oe)
|
|
10633
10667
|
if (s && typeof s == "object" && !Array.isArray(
|
|
10634
10668
|
s
|
|
10635
10669
|
)) {
|
|
@@ -10653,10 +10687,10 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10653
10687
|
const Ze = e;
|
|
10654
10688
|
for (const Z in s)
|
|
10655
10689
|
if (!(Z === "BYTES_PER_ELEMENT" || Z === "buffer" || Z === "byteLength" || Z === "byteOffset" || Z === "length")) {
|
|
10656
|
-
let
|
|
10690
|
+
let me = s[Z];
|
|
10657
10691
|
const Qe = e;
|
|
10658
|
-
if (!(typeof
|
|
10659
|
-
|
|
10692
|
+
if (!(typeof me == "number" && isFinite(
|
|
10693
|
+
me
|
|
10660
10694
|
))) {
|
|
10661
10695
|
const ne = {
|
|
10662
10696
|
instancePath: t + "/data/" + Z.replace(
|
|
@@ -10686,7 +10720,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10686
10720
|
if (Ze === e) {
|
|
10687
10721
|
if (s.BYTES_PER_ELEMENT !== void 0) {
|
|
10688
10722
|
let Z = s.BYTES_PER_ELEMENT;
|
|
10689
|
-
const
|
|
10723
|
+
const me = e;
|
|
10690
10724
|
if (!(typeof Z == "number" && isFinite(
|
|
10691
10725
|
Z
|
|
10692
10726
|
))) {
|
|
@@ -10705,14 +10739,14 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10705
10739
|
Qe
|
|
10706
10740
|
), e++;
|
|
10707
10741
|
}
|
|
10708
|
-
var
|
|
10742
|
+
var de = me === e;
|
|
10709
10743
|
} else
|
|
10710
|
-
var
|
|
10711
|
-
if (
|
|
10744
|
+
var de = !0;
|
|
10745
|
+
if (de) {
|
|
10712
10746
|
if (s.buffer !== void 0) {
|
|
10713
10747
|
let Z = s.buffer;
|
|
10714
|
-
const
|
|
10715
|
-
if (e ===
|
|
10748
|
+
const me = e;
|
|
10749
|
+
if (e === me)
|
|
10716
10750
|
if (Z && typeof Z == "object" && !Array.isArray(
|
|
10717
10751
|
Z
|
|
10718
10752
|
)) {
|
|
@@ -10790,13 +10824,13 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10790
10824
|
ne
|
|
10791
10825
|
), e++;
|
|
10792
10826
|
}
|
|
10793
|
-
var
|
|
10827
|
+
var de = me === e;
|
|
10794
10828
|
} else
|
|
10795
|
-
var
|
|
10796
|
-
if (
|
|
10829
|
+
var de = !0;
|
|
10830
|
+
if (de) {
|
|
10797
10831
|
if (s.byteLength !== void 0) {
|
|
10798
10832
|
let Z = s.byteLength;
|
|
10799
|
-
const
|
|
10833
|
+
const me = e;
|
|
10800
10834
|
if (!(typeof Z == "number" && isFinite(
|
|
10801
10835
|
Z
|
|
10802
10836
|
))) {
|
|
@@ -10815,13 +10849,13 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10815
10849
|
ne
|
|
10816
10850
|
), e++;
|
|
10817
10851
|
}
|
|
10818
|
-
var
|
|
10852
|
+
var de = me === e;
|
|
10819
10853
|
} else
|
|
10820
|
-
var
|
|
10821
|
-
if (
|
|
10854
|
+
var de = !0;
|
|
10855
|
+
if (de) {
|
|
10822
10856
|
if (s.byteOffset !== void 0) {
|
|
10823
10857
|
let Z = s.byteOffset;
|
|
10824
|
-
const
|
|
10858
|
+
const me = e;
|
|
10825
10859
|
if (!(typeof Z == "number" && isFinite(
|
|
10826
10860
|
Z
|
|
10827
10861
|
))) {
|
|
@@ -10840,13 +10874,13 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10840
10874
|
ne
|
|
10841
10875
|
), e++;
|
|
10842
10876
|
}
|
|
10843
|
-
var
|
|
10877
|
+
var de = me === e;
|
|
10844
10878
|
} else
|
|
10845
|
-
var
|
|
10846
|
-
if (
|
|
10879
|
+
var de = !0;
|
|
10880
|
+
if (de)
|
|
10847
10881
|
if (s.length !== void 0) {
|
|
10848
10882
|
let Z = s.length;
|
|
10849
|
-
const
|
|
10883
|
+
const me = e;
|
|
10850
10884
|
if (!(typeof Z == "number" && isFinite(
|
|
10851
10885
|
Z
|
|
10852
10886
|
))) {
|
|
@@ -10865,9 +10899,9 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10865
10899
|
ne
|
|
10866
10900
|
), e++;
|
|
10867
10901
|
}
|
|
10868
|
-
var
|
|
10902
|
+
var de = me === e;
|
|
10869
10903
|
} else
|
|
10870
|
-
var
|
|
10904
|
+
var de = !0;
|
|
10871
10905
|
}
|
|
10872
10906
|
}
|
|
10873
10907
|
}
|
|
@@ -10889,14 +10923,14 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10889
10923
|
he
|
|
10890
10924
|
), e++;
|
|
10891
10925
|
}
|
|
10892
|
-
var Ne =
|
|
10926
|
+
var Ne = Oe === e;
|
|
10893
10927
|
a = a || Ne;
|
|
10894
10928
|
}
|
|
10895
10929
|
}
|
|
10896
10930
|
if (a)
|
|
10897
10931
|
e = L, i !== null && (L ? i.length = L : i = null);
|
|
10898
10932
|
else {
|
|
10899
|
-
const
|
|
10933
|
+
const ce = {
|
|
10900
10934
|
instancePath: t + "/data",
|
|
10901
10935
|
schemaPath: "#/oneOf/25/properties/data/anyOf",
|
|
10902
10936
|
keyword: "anyOf",
|
|
@@ -10904,14 +10938,14 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10904
10938
|
message: "must match a schema in anyOf"
|
|
10905
10939
|
};
|
|
10906
10940
|
return i === null ? i = [
|
|
10907
|
-
|
|
10941
|
+
ce
|
|
10908
10942
|
] : i.push(
|
|
10909
|
-
|
|
10943
|
+
ce
|
|
10910
10944
|
), e++, n.errors = i, !1;
|
|
10911
10945
|
}
|
|
10912
|
-
var
|
|
10946
|
+
var Pe = u === e;
|
|
10913
10947
|
} else
|
|
10914
|
-
var
|
|
10948
|
+
var Pe = !0;
|
|
10915
10949
|
}
|
|
10916
10950
|
}
|
|
10917
10951
|
}
|
|
@@ -11029,10 +11063,10 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
11029
11063
|
message: "must be object"
|
|
11030
11064
|
}
|
|
11031
11065
|
], !1;
|
|
11032
|
-
var
|
|
11066
|
+
var _e = u === e;
|
|
11033
11067
|
} else
|
|
11034
|
-
var
|
|
11035
|
-
if (
|
|
11068
|
+
var _e = !0;
|
|
11069
|
+
if (_e) {
|
|
11036
11070
|
if (r.step !== void 0) {
|
|
11037
11071
|
let s = r.step;
|
|
11038
11072
|
const u = e;
|
|
@@ -11060,17 +11094,17 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
11060
11094
|
message: "must be equal to constant"
|
|
11061
11095
|
}
|
|
11062
11096
|
], !1;
|
|
11063
|
-
var
|
|
11097
|
+
var _e = u === e;
|
|
11064
11098
|
} else
|
|
11065
|
-
var
|
|
11066
|
-
if (
|
|
11099
|
+
var _e = !0;
|
|
11100
|
+
if (_e) {
|
|
11067
11101
|
if (r.command !== void 0) {
|
|
11068
11102
|
let s = r.command;
|
|
11069
11103
|
const u = e, L = e;
|
|
11070
11104
|
let a = !1;
|
|
11071
11105
|
const j = e;
|
|
11072
11106
|
if (typeof s != "string") {
|
|
11073
|
-
const
|
|
11107
|
+
const ce = {
|
|
11074
11108
|
instancePath: t + "/command",
|
|
11075
11109
|
schemaPath: "#/oneOf/26/properties/command/anyOf/0/type",
|
|
11076
11110
|
keyword: "type",
|
|
@@ -11079,18 +11113,18 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
11079
11113
|
},
|
|
11080
11114
|
message: "must be string"
|
|
11081
11115
|
};
|
|
11082
|
-
i === null ? i = [
|
|
11116
|
+
i === null ? i = [ce] : i.push(ce), e++;
|
|
11083
11117
|
}
|
|
11084
11118
|
var dr = j === e;
|
|
11085
11119
|
if (a = a || dr, !a) {
|
|
11086
|
-
const
|
|
11087
|
-
if (e ===
|
|
11120
|
+
const ce = e;
|
|
11121
|
+
if (e === ce)
|
|
11088
11122
|
if (Array.isArray(
|
|
11089
11123
|
s
|
|
11090
11124
|
)) {
|
|
11091
11125
|
var Lr = !0;
|
|
11092
|
-
const
|
|
11093
|
-
for (let Ye = 0; Ye <
|
|
11126
|
+
const Oe = s.length;
|
|
11127
|
+
for (let Ye = 0; Ye < Oe; Ye++) {
|
|
11094
11128
|
const he = e;
|
|
11095
11129
|
if (typeof s[Ye] != "string") {
|
|
11096
11130
|
const Z = {
|
|
@@ -11113,7 +11147,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
11113
11147
|
break;
|
|
11114
11148
|
}
|
|
11115
11149
|
} else {
|
|
11116
|
-
const
|
|
11150
|
+
const Oe = {
|
|
11117
11151
|
instancePath: t + "/command",
|
|
11118
11152
|
schemaPath: "#/oneOf/26/properties/command/anyOf/1/type",
|
|
11119
11153
|
keyword: "type",
|
|
@@ -11123,30 +11157,30 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
11123
11157
|
message: "must be array"
|
|
11124
11158
|
};
|
|
11125
11159
|
i === null ? i = [
|
|
11126
|
-
|
|
11160
|
+
Oe
|
|
11127
11161
|
] : i.push(
|
|
11128
|
-
|
|
11162
|
+
Oe
|
|
11129
11163
|
), e++;
|
|
11130
11164
|
}
|
|
11131
|
-
var dr =
|
|
11165
|
+
var dr = ce === e;
|
|
11132
11166
|
a = a || dr;
|
|
11133
11167
|
}
|
|
11134
11168
|
if (a)
|
|
11135
11169
|
e = L, i !== null && (L ? i.length = L : i = null);
|
|
11136
11170
|
else {
|
|
11137
|
-
const
|
|
11171
|
+
const ce = {
|
|
11138
11172
|
instancePath: t + "/command",
|
|
11139
11173
|
schemaPath: "#/oneOf/26/properties/command/anyOf",
|
|
11140
11174
|
keyword: "anyOf",
|
|
11141
11175
|
params: {},
|
|
11142
11176
|
message: "must match a schema in anyOf"
|
|
11143
11177
|
};
|
|
11144
|
-
return i === null ? i = [
|
|
11178
|
+
return i === null ? i = [ce] : i.push(ce), e++, n.errors = i, !1;
|
|
11145
11179
|
}
|
|
11146
|
-
var
|
|
11180
|
+
var _e = u === e;
|
|
11147
11181
|
} else
|
|
11148
|
-
var
|
|
11149
|
-
if (
|
|
11182
|
+
var _e = !0;
|
|
11183
|
+
if (_e)
|
|
11150
11184
|
if (r.wpCliPath !== void 0) {
|
|
11151
11185
|
const s = e;
|
|
11152
11186
|
if (typeof r.wpCliPath != "string")
|
|
@@ -11161,9 +11195,9 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
11161
11195
|
message: "must be string"
|
|
11162
11196
|
}
|
|
11163
11197
|
], !1;
|
|
11164
|
-
var
|
|
11198
|
+
var _e = s === e;
|
|
11165
11199
|
} else
|
|
11166
|
-
var
|
|
11200
|
+
var _e = !0;
|
|
11167
11201
|
}
|
|
11168
11202
|
}
|
|
11169
11203
|
}
|