Build/Test Tools: Test building WordPress to run from src first.

Because of the scripts that run when `build:dev` is run, it’s more common for this Grunt task to change version-controlled files than when building WordPress to run from `build`.

This moves the `build:dev` tests before the `build` ones in order to detect changes earlier in the workflow.

See #55652.
Built from https://develop.svn.wordpress.org/trunk@54297


git-svn-id: http://core.svn.wordpress.org/trunk@53856 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
desrosj 2022-09-23 20:04:13 +00:00
parent e4a97cc8e9
commit 5023368035
11 changed files with 126 additions and 134 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -823,22 +823,18 @@ function __experimentalGetAnnotations(state) {
return Object.values(state).flat(); return Object.values(state).flat();
} }
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/native.js ;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/node_modules/uuid/dist/esm-browser/rng.js
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
/* harmony default export */ var esm_browser_native = ({
randomUUID
});
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js
// Unique ID creation requires a high quality random # generator. In the browser we therefore // Unique ID creation requires a high quality random # generator. In the browser we therefore
// require the crypto API and do not support built-in fallback to lower quality random number // require the crypto API and do not support built-in fallback to lower quality random number
// generators (like Math.random()). // generators (like Math.random()).
let getRandomValues; var getRandomValues;
const rnds8 = new Uint8Array(16); var rnds8 = new Uint8Array(16);
function rng() { function rng() {
// lazy load so that environments that need to polyfill have a chance to do so // lazy load so that environments that need to polyfill have a chance to do so
if (!getRandomValues) { if (!getRandomValues) {
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto); // find the complete implementation of crypto (msCrypto) on IE11.
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
if (!getRandomValues) { if (!getRandomValues) {
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported'); throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
@ -847,52 +843,54 @@ function rng() {
return getRandomValues(rnds8); return getRandomValues(rnds8);
} }
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js ;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/node_modules/uuid/dist/esm-browser/regex.js
/* harmony default export */ var regex = (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i);
;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/node_modules/uuid/dist/esm-browser/validate.js
function validate(uuid) {
return typeof uuid === 'string' && regex.test(uuid);
}
/* harmony default export */ var esm_browser_validate = (validate);
;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/node_modules/uuid/dist/esm-browser/stringify.js
/** /**
* Convert array of 16 byte values to UUID string format of the form: * Convert array of 16 byte values to UUID string format of the form:
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
*/ */
const byteToHex = []; var byteToHex = [];
for (let i = 0; i < 256; ++i) { for (var i = 0; i < 256; ++i) {
byteToHex.push((i + 0x100).toString(16).slice(1)); byteToHex.push((i + 0x100).toString(16).substr(1));
} }
function unsafeStringify(arr, offset = 0) { function stringify(arr) {
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
// Note: Be careful editing this code! It's been tuned for performance // Note: Be careful editing this code! It's been tuned for performance
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
}
function stringify(arr, offset = 0) {
const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
// of the following: // of the following:
// - One or more input array values don't map to a hex octet (leading to // - One or more input array values don't map to a hex octet (leading to
// "undefined" in the uuid) // "undefined" in the uuid)
// - Invalid input values for the RFC `version` or `variant` fields // - Invalid input values for the RFC `version` or `variant` fields
if (!validate(uuid)) { if (!esm_browser_validate(uuid)) {
throw TypeError('Stringified UUID is invalid'); throw TypeError('Stringified UUID is invalid');
} }
return uuid; return uuid;
} }
/* harmony default export */ var esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify))); /* harmony default export */ var esm_browser_stringify = (stringify);
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js ;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/node_modules/uuid/dist/esm-browser/v4.js
function v4(options, buf, offset) { function v4(options, buf, offset) {
if (esm_browser_native.randomUUID && !buf && !options) {
return esm_browser_native.randomUUID();
}
options = options || {}; options = options || {};
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
rnds[6] = rnds[6] & 0x0f | 0x40; rnds[6] = rnds[6] & 0x0f | 0x40;
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
@ -900,14 +898,14 @@ function v4(options, buf, offset) {
if (buf) { if (buf) {
offset = offset || 0; offset = offset || 0;
for (let i = 0; i < 16; ++i) { for (var i = 0; i < 16; ++i) {
buf[offset + i] = rnds[i]; buf[offset + i] = rnds[i];
} }
return buf; return buf;
} }
return unsafeStringify(rnds); return esm_browser_stringify(rnds);
} }
/* harmony default export */ var esm_browser_v4 = (v4); /* harmony default export */ var esm_browser_v4 = (v4);

File diff suppressed because one or more lines are too long

View File

@ -7316,22 +7316,18 @@ const unregisterBlockVariation = (blockName, variationName) => {
(0,external_wp_data_namespaceObject.dispatch)(store).removeBlockVariations(blockName, variationName); (0,external_wp_data_namespaceObject.dispatch)(store).removeBlockVariations(blockName, variationName);
}; };
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/native.js ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/node_modules/uuid/dist/esm-browser/rng.js
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
/* harmony default export */ var esm_browser_native = ({
randomUUID
});
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js
// Unique ID creation requires a high quality random # generator. In the browser we therefore // Unique ID creation requires a high quality random # generator. In the browser we therefore
// require the crypto API and do not support built-in fallback to lower quality random number // require the crypto API and do not support built-in fallback to lower quality random number
// generators (like Math.random()). // generators (like Math.random()).
let getRandomValues; var getRandomValues;
const rnds8 = new Uint8Array(16); var rnds8 = new Uint8Array(16);
function rng() { function rng() {
// lazy load so that environments that need to polyfill have a chance to do so // lazy load so that environments that need to polyfill have a chance to do so
if (!getRandomValues) { if (!getRandomValues) {
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto); // find the complete implementation of crypto (msCrypto) on IE11.
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
if (!getRandomValues) { if (!getRandomValues) {
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported'); throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
@ -7340,52 +7336,54 @@ function rng() {
return getRandomValues(rnds8); return getRandomValues(rnds8);
} }
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/node_modules/uuid/dist/esm-browser/regex.js
/* harmony default export */ var regex = (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i);
;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/node_modules/uuid/dist/esm-browser/validate.js
function validate(uuid) {
return typeof uuid === 'string' && regex.test(uuid);
}
/* harmony default export */ var esm_browser_validate = (validate);
;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/node_modules/uuid/dist/esm-browser/stringify.js
/** /**
* Convert array of 16 byte values to UUID string format of the form: * Convert array of 16 byte values to UUID string format of the form:
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
*/ */
const byteToHex = []; var byteToHex = [];
for (let i = 0; i < 256; ++i) { for (var stringify_i = 0; stringify_i < 256; ++stringify_i) {
byteToHex.push((i + 0x100).toString(16).slice(1)); byteToHex.push((stringify_i + 0x100).toString(16).substr(1));
} }
function unsafeStringify(arr, offset = 0) { function stringify(arr) {
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
// Note: Be careful editing this code! It's been tuned for performance // Note: Be careful editing this code! It's been tuned for performance
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
}
function stringify(arr, offset = 0) {
const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
// of the following: // of the following:
// - One or more input array values don't map to a hex octet (leading to // - One or more input array values don't map to a hex octet (leading to
// "undefined" in the uuid) // "undefined" in the uuid)
// - Invalid input values for the RFC `version` or `variant` fields // - Invalid input values for the RFC `version` or `variant` fields
if (!validate(uuid)) { if (!esm_browser_validate(uuid)) {
throw TypeError('Stringified UUID is invalid'); throw TypeError('Stringified UUID is invalid');
} }
return uuid; return uuid;
} }
/* harmony default export */ var esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify))); /* harmony default export */ var esm_browser_stringify = (stringify);
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js ;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/node_modules/uuid/dist/esm-browser/v4.js
function v4(options, buf, offset) { function v4(options, buf, offset) {
if (esm_browser_native.randomUUID && !buf && !options) {
return esm_browser_native.randomUUID();
}
options = options || {}; options = options || {};
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
rnds[6] = rnds[6] & 0x0f | 0x40; rnds[6] = rnds[6] & 0x0f | 0x40;
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
@ -7393,14 +7391,14 @@ function v4(options, buf, offset) {
if (buf) { if (buf) {
offset = offset || 0; offset = offset || 0;
for (let i = 0; i < 16; ++i) { for (var i = 0; i < 16; ++i) {
buf[offset + i] = rnds[i]; buf[offset + i] = rnds[i];
} }
return buf; return buf;
} }
return unsafeStringify(rnds); return esm_browser_stringify(rnds);
} }
/* harmony default export */ var esm_browser_v4 = (v4); /* harmony default export */ var esm_browser_v4 = (v4);

File diff suppressed because one or more lines are too long

View File

@ -18366,22 +18366,18 @@ const Slot = props => (0,external_wp_element_namespaceObject.createElement)(cont
/* harmony default export */ var slot = (Slot); /* harmony default export */ var slot = (Slot);
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/native.js ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/rng.js
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
/* harmony default export */ var esm_browser_native = ({
randomUUID
});
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js
// Unique ID creation requires a high quality random # generator. In the browser we therefore // Unique ID creation requires a high quality random # generator. In the browser we therefore
// require the crypto API and do not support built-in fallback to lower quality random number // require the crypto API and do not support built-in fallback to lower quality random number
// generators (like Math.random()). // generators (like Math.random()).
let getRandomValues; var getRandomValues;
const rnds8 = new Uint8Array(16); var rnds8 = new Uint8Array(16);
function rng() { function rng() {
// lazy load so that environments that need to polyfill have a chance to do so // lazy load so that environments that need to polyfill have a chance to do so
if (!getRandomValues) { if (!getRandomValues) {
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto); // find the complete implementation of crypto (msCrypto) on IE11.
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
if (!getRandomValues) { if (!getRandomValues) {
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported'); throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
@ -18390,52 +18386,54 @@ function rng() {
return getRandomValues(rnds8); return getRandomValues(rnds8);
} }
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/regex.js
/* harmony default export */ var regex = (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/validate.js
function validate(uuid) {
return typeof uuid === 'string' && regex.test(uuid);
}
/* harmony default export */ var esm_browser_validate = (validate);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/stringify.js
/** /**
* Convert array of 16 byte values to UUID string format of the form: * Convert array of 16 byte values to UUID string format of the form:
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
*/ */
const byteToHex = []; var byteToHex = [];
for (let i = 0; i < 256; ++i) { for (var stringify_i = 0; stringify_i < 256; ++stringify_i) {
byteToHex.push((i + 0x100).toString(16).slice(1)); byteToHex.push((stringify_i + 0x100).toString(16).substr(1));
} }
function unsafeStringify(arr, offset = 0) { function stringify_stringify(arr) {
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
// Note: Be careful editing this code! It's been tuned for performance // Note: Be careful editing this code! It's been tuned for performance
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
}
function stringify_stringify(arr, offset = 0) {
const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
// of the following: // of the following:
// - One or more input array values don't map to a hex octet (leading to // - One or more input array values don't map to a hex octet (leading to
// "undefined" in the uuid) // "undefined" in the uuid)
// - Invalid input values for the RFC `version` or `variant` fields // - Invalid input values for the RFC `version` or `variant` fields
if (!validate(uuid)) { if (!esm_browser_validate(uuid)) {
throw TypeError('Stringified UUID is invalid'); throw TypeError('Stringified UUID is invalid');
} }
return uuid; return uuid;
} }
/* harmony default export */ var esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify_stringify))); /* harmony default export */ var esm_browser_stringify = (stringify_stringify);
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/v4.js
function v4(options, buf, offset) { function v4(options, buf, offset) {
if (esm_browser_native.randomUUID && !buf && !options) {
return esm_browser_native.randomUUID();
}
options = options || {}; options = options || {};
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
rnds[6] = rnds[6] & 0x0f | 0x40; rnds[6] = rnds[6] & 0x0f | 0x40;
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
@ -18443,14 +18441,14 @@ function v4(options, buf, offset) {
if (buf) { if (buf) {
offset = offset || 0; offset = offset || 0;
for (let i = 0; i < 16; ++i) { for (var i = 0; i < 16; ++i) {
buf[offset + i] = rnds[i]; buf[offset + i] = rnds[i];
} }
return buf; return buf;
} }
return unsafeStringify(rnds); return esm_browser_stringify(rnds);
} }
/* harmony default export */ var esm_browser_v4 = (v4); /* harmony default export */ var esm_browser_v4 = (v4);

File diff suppressed because one or more lines are too long

View File

@ -1177,22 +1177,18 @@ var external_wp_apiFetch_namespaceObject = window["wp"]["apiFetch"];
var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject); var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject);
;// CONCATENATED MODULE: external ["wp","i18n"] ;// CONCATENATED MODULE: external ["wp","i18n"]
var external_wp_i18n_namespaceObject = window["wp"]["i18n"]; var external_wp_i18n_namespaceObject = window["wp"]["i18n"];
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/native.js ;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/node_modules/uuid/dist/esm-browser/rng.js
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
/* harmony default export */ var esm_browser_native = ({
randomUUID
});
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js
// Unique ID creation requires a high quality random # generator. In the browser we therefore // Unique ID creation requires a high quality random # generator. In the browser we therefore
// require the crypto API and do not support built-in fallback to lower quality random number // require the crypto API and do not support built-in fallback to lower quality random number
// generators (like Math.random()). // generators (like Math.random()).
let getRandomValues; var getRandomValues;
const rnds8 = new Uint8Array(16); var rnds8 = new Uint8Array(16);
function rng() { function rng() {
// lazy load so that environments that need to polyfill have a chance to do so // lazy load so that environments that need to polyfill have a chance to do so
if (!getRandomValues) { if (!getRandomValues) {
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto); // find the complete implementation of crypto (msCrypto) on IE11.
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
if (!getRandomValues) { if (!getRandomValues) {
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported'); throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
@ -1201,52 +1197,54 @@ function rng() {
return getRandomValues(rnds8); return getRandomValues(rnds8);
} }
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js ;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/node_modules/uuid/dist/esm-browser/regex.js
/* harmony default export */ var regex = (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i);
;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/node_modules/uuid/dist/esm-browser/validate.js
function validate(uuid) {
return typeof uuid === 'string' && regex.test(uuid);
}
/* harmony default export */ var esm_browser_validate = (validate);
;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/node_modules/uuid/dist/esm-browser/stringify.js
/** /**
* Convert array of 16 byte values to UUID string format of the form: * Convert array of 16 byte values to UUID string format of the form:
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
*/ */
const byteToHex = []; var byteToHex = [];
for (let i = 0; i < 256; ++i) { for (var i = 0; i < 256; ++i) {
byteToHex.push((i + 0x100).toString(16).slice(1)); byteToHex.push((i + 0x100).toString(16).substr(1));
} }
function unsafeStringify(arr, offset = 0) { function stringify(arr) {
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
// Note: Be careful editing this code! It's been tuned for performance // Note: Be careful editing this code! It's been tuned for performance
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
}
function stringify(arr, offset = 0) {
const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
// of the following: // of the following:
// - One or more input array values don't map to a hex octet (leading to // - One or more input array values don't map to a hex octet (leading to
// "undefined" in the uuid) // "undefined" in the uuid)
// - Invalid input values for the RFC `version` or `variant` fields // - Invalid input values for the RFC `version` or `variant` fields
if (!validate(uuid)) { if (!esm_browser_validate(uuid)) {
throw TypeError('Stringified UUID is invalid'); throw TypeError('Stringified UUID is invalid');
} }
return uuid; return uuid;
} }
/* harmony default export */ var esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify))); /* harmony default export */ var esm_browser_stringify = (stringify);
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js ;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/node_modules/uuid/dist/esm-browser/v4.js
function v4(options, buf, offset) { function v4(options, buf, offset) {
if (esm_browser_native.randomUUID && !buf && !options) {
return esm_browser_native.randomUUID();
}
options = options || {}; options = options || {};
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
rnds[6] = rnds[6] & 0x0f | 0x40; rnds[6] = rnds[6] & 0x0f | 0x40;
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
@ -1254,14 +1252,14 @@ function v4(options, buf, offset) {
if (buf) { if (buf) {
offset = offset || 0; offset = offset || 0;
for (let i = 0; i < 16; ++i) { for (var i = 0; i < 16; ++i) {
buf[offset + i] = rnds[i]; buf[offset + i] = rnds[i];
} }
return buf; return buf;
} }
return unsafeStringify(rnds); return esm_browser_stringify(rnds);
} }
/* harmony default export */ var esm_browser_v4 = (v4); /* harmony default export */ var esm_browser_v4 = (v4);

File diff suppressed because one or more lines are too long

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.1-beta1-54296'; $wp_version = '6.1-beta1-54297';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.