🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@wordpress/private-apis

Package Overview
Dependencies
Maintainers
25
Versions
91
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

to
0.10.0

13

build-module/implementation.js

@@ -39,11 +39,12 @@ /**

let allowReRegistration; // Use try/catch to force "false" if the environment variable is not explicitly
// set to true (e.g. when building WordPress core).
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 {
var _process$env$ALLOW_EX;
allowReRegistration = (_process$env$ALLOW_EX = process.env.ALLOW_EXPERIMENT_REREGISTRATION) !== null && _process$env$ALLOW_EX !== void 0 ? _process$env$ALLOW_EX : false;
allowReRegistration = process.env.IS_WORDPRESS_CORE ? false : true;
} catch (error) {
allowReRegistration = false;
allowReRegistration = true;
}

@@ -50,0 +51,0 @@ /**

@@ -49,11 +49,12 @@ "use strict";

let allowReRegistration; // Use try/catch to force "false" if the environment variable is not explicitly
// set to true (e.g. when building WordPress core).
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 {
var _process$env$ALLOW_EX;
allowReRegistration = (_process$env$ALLOW_EX = process.env.ALLOW_EXPERIMENT_REREGISTRATION) !== null && _process$env$ALLOW_EX !== void 0 ? _process$env$ALLOW_EX : false;
allowReRegistration = process.env.IS_WORDPRESS_CORE ? false : true;
} catch (error) {
allowReRegistration = false;
allowReRegistration = true;
}

@@ -60,0 +61,0 @@ /**

@@ -5,2 +5,4 @@ <!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. -->

## 0.10.0 (2023-03-01)
## 0.9.0 (2023-02-15)

@@ -7,0 +9,0 @@

{
"name": "@wordpress/private-apis",
"version": "0.9.0",
"version": "0.10.0",
"description": "Internal experimental APIs for WordPress core.",

@@ -36,3 +36,3 @@ "author": "The WordPress Contributors",

},
"gitHead": "c25ff895413bad4354c55c0c2d732552618b0d56"
"gitHead": "d5e03a74b79e3ca84afda24375474a103a063ee4"
}

@@ -52,8 +52,11 @@ /**

let allowReRegistration;
// Use try/catch to force "false" if the environment variable is not explicitly
// set to true (e.g. when building WordPress core).
// 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 = process.env.ALLOW_EXPERIMENT_REREGISTRATION ?? false;
allowReRegistration = process.env.IS_WORDPRESS_CORE ? false : true;
} catch ( error ) {
allowReRegistration = false;
allowReRegistration = true;
}

@@ -60,0 +63,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