@wordpress/create-block 4.28.0 → 4.28.1-next.f8d8eceb.0

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.
@@ -30,6 +30,10 @@
30
30
  * @package {{namespace}}
31
31
  */
32
32
 
33
+ if ( ! defined( 'ABSPATH' ) ) {
34
+ exit; // Exit if accessed directly.
35
+ }
36
+
33
37
  /**
34
38
  * Registers all block assets so that they can be enqueued through the block editor
35
39
  * in the corresponding context.
@@ -30,6 +30,10 @@
30
30
  * @package {{namespace}}
31
31
  */
32
32
 
33
+ if ( ! defined( 'ABSPATH' ) ) {
34
+ exit; // Exit if accessed directly.
35
+ }
36
+
33
37
  /**
34
38
  * Registers the block using the metadata loaded from the `block.json` file.
35
39
  * Behind the scenes, it registers also all assets so they can be enqueued
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/create-block",
3
- "version": "4.28.0",
3
+ "version": "4.28.1-next.f8d8eceb.0",
4
4
  "description": "Generates PHP, JS and CSS code for registering a block for a WordPress plugin.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -31,7 +31,7 @@
31
31
  "wp-create-block": "./index.js"
32
32
  },
33
33
  "dependencies": {
34
- "@wordpress/lazy-import": "^1.31.0",
34
+ "@wordpress/lazy-import": "^1.31.1-next.f8d8eceb.0",
35
35
  "chalk": "^4.0.0",
36
36
  "change-case": "^4.1.2",
37
37
  "check-node-version": "^4.1.0",
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "f83bb1a71e8fa416131b81a9f282a72a1dc6c694"
51
+ "gitHead": "8d8fd197e202b8104ffb1cb83048efd0a6c3faf4"
52
52
  }