Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wordpress/private-apis

Package Overview
Dependencies
Maintainers
0
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/private-apis - npm Package Compare versions

Comparing version 1.9.0 to 1.10.0

14

build-module/implementation.js

@@ -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 @@ /**

2

CHANGELOG.md

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc