@wordpress/private-apis
Advanced tools
Comparing version
@@ -38,14 +38,4 @@ /** | ||
/** @type {boolean} */ | ||
let allowReRegistration; | ||
// The safety measure is meant for WordPress core where IS_WORDPRESS_CORE | ||
// is set to true. | ||
// For the general use-case, the re-registration should be allowed by default | ||
// Let's default to true, then. Try/catch will fall back to "true" even if the | ||
// environment variable is not explicitly defined. | ||
try { | ||
allowReRegistration = globalThis.IS_WORDPRESS_CORE ? false : true; | ||
} catch (error) { | ||
allowReRegistration = true; | ||
} | ||
// The safety measure is meant for WordPress core where IS_WORDPRESS_CORE is set to true. | ||
const allowReRegistration = globalThis.IS_WORDPRESS_CORE ? false : true; | ||
@@ -52,0 +42,0 @@ /** |
@@ -47,14 +47,4 @@ "use strict"; | ||
/** @type {boolean} */ | ||
let allowReRegistration; | ||
// The safety measure is meant for WordPress core where IS_WORDPRESS_CORE | ||
// is set to true. | ||
// For the general use-case, the re-registration should be allowed by default | ||
// Let's default to true, then. Try/catch will fall back to "true" even if the | ||
// environment variable is not explicitly defined. | ||
try { | ||
allowReRegistration = globalThis.IS_WORDPRESS_CORE ? false : true; | ||
} catch (error) { | ||
allowReRegistration = true; | ||
} | ||
// The safety measure is meant for WordPress core where IS_WORDPRESS_CORE is set to true. | ||
const allowReRegistration = globalThis.IS_WORDPRESS_CORE ? false : true; | ||
@@ -61,0 +51,0 @@ /** |
@@ -5,2 +5,4 @@ <!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. --> | ||
## 1.10.0 (2024-10-16) | ||
## 1.9.0 (2024-10-03) | ||
@@ -7,0 +9,0 @@ |
{ | ||
"name": "@wordpress/private-apis", | ||
"version": "1.9.0", | ||
"version": "1.10.0", | ||
"description": "Internal experimental APIs for WordPress core.", | ||
@@ -32,3 +32,3 @@ "author": "The WordPress Contributors", | ||
"dependencies": { | ||
"@babel/runtime": "^7.16.0" | ||
"@babel/runtime": "7.25.7" | ||
}, | ||
@@ -38,3 +38,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "2e5495c635910cb34bfaca3c6258d2e989f66214" | ||
"gitHead": "ab34a7ac935fd1478eac63b596242d83270897ee" | ||
} |
@@ -62,14 +62,4 @@ /** | ||
/** @type {boolean} */ | ||
let allowReRegistration; | ||
// The safety measure is meant for WordPress core where IS_WORDPRESS_CORE | ||
// is set to true. | ||
// For the general use-case, the re-registration should be allowed by default | ||
// Let's default to true, then. Try/catch will fall back to "true" even if the | ||
// environment variable is not explicitly defined. | ||
try { | ||
allowReRegistration = globalThis.IS_WORDPRESS_CORE ? false : true; | ||
} catch ( error ) { | ||
allowReRegistration = true; | ||
} | ||
// The safety measure is meant for WordPress core where IS_WORDPRESS_CORE is set to true. | ||
const allowReRegistration = globalThis.IS_WORDPRESS_CORE ? false : true; | ||
@@ -76,0 +66,0 @@ /** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
111747
-1.58%937
-3.1%+ Added
+ Added
- Removed
Updated