@wordpress/block-serialization-default-parser
Advanced tools
+2
-0
@@ -5,2 +5,4 @@ <!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. --> | ||
| ## 4.19.0 (2022-10-05) | ||
| ## 4.18.0 (2022-09-21) | ||
@@ -7,0 +9,0 @@ |
+2
-2
| { | ||
| "name": "@wordpress/block-serialization-default-parser", | ||
| "version": "4.18.1-next.4d3b314fd5.0", | ||
| "version": "4.19.0", | ||
| "description": "Block serialization specification parser for WordPress posts.", | ||
@@ -36,3 +36,3 @@ "author": "The WordPress Contributors", | ||
| }, | ||
| "gitHead": "25054766423cb49d959eb656c2533530073ff5c2" | ||
| "gitHead": "8d42d2febb7d0ba8372a33e560a62f5a5f6a9112" | ||
| } |
+12
-12
@@ -83,3 +83,3 @@ <?php | ||
| */ | ||
| function __construct( $name, $attrs, $innerBlocks, $innerHTML, $innerContent ) { | ||
| public function __construct( $name, $attrs, $innerBlocks, $innerHTML, $innerContent ) { | ||
| $this->blockName = $name; | ||
@@ -156,3 +156,3 @@ $this->attrs = $attrs; | ||
| */ | ||
| function __construct( $block, $token_start, $token_length, $prev_offset = null, $leading_html_start = null ) { | ||
| public function __construct( $block, $token_start, $token_length, $prev_offset = null, $leading_html_start = null ) { | ||
| $this->block = $block; | ||
@@ -229,3 +229,3 @@ $this->token_start = $token_start; | ||
| */ | ||
| function parse( $document ) { | ||
| public function parse( $document ) { | ||
| $this->document = $document; | ||
@@ -237,5 +237,5 @@ $this->offset = 0; | ||
| do { | ||
| // twiddle our thumbs. | ||
| } while ( $this->proceed() ); | ||
| while ( $this->proceed() ) { | ||
| continue; | ||
| } | ||
@@ -259,3 +259,3 @@ return $this->output; | ||
| */ | ||
| function proceed() { | ||
| public function proceed() { | ||
| $next_token = $this->next_token(); | ||
@@ -406,3 +406,3 @@ list( $token_type, $block_name, $attrs, $start_offset, $token_length ) = $next_token; | ||
| */ | ||
| function next_token() { | ||
| public function next_token() { | ||
| $matches = null; | ||
@@ -482,3 +482,3 @@ | ||
| */ | ||
| function freeform( $innerHTML ) { | ||
| public function freeform( $innerHTML ) { | ||
| return new WP_Block_Parser_Block( null, $this->empty_attrs, array(), $innerHTML, array( $innerHTML ) ); | ||
@@ -495,3 +495,3 @@ } | ||
| */ | ||
| function add_freeform( $length = null ) { | ||
| public function add_freeform( $length = null ) { | ||
| $length = $length ? $length : strlen( $this->document ) - $this->offset; | ||
@@ -517,3 +517,3 @@ | ||
| */ | ||
| function add_inner_block( WP_Block_Parser_Block $block, $token_start, $token_length, $last_offset = null ) { | ||
| public function add_inner_block( WP_Block_Parser_Block $block, $token_start, $token_length, $last_offset = null ) { | ||
| $parent = $this->stack[ count( $this->stack ) - 1 ]; | ||
@@ -539,3 +539,3 @@ $parent->block->innerBlocks[] = (array) $block; | ||
| */ | ||
| function add_block_from_stack( $end_offset = null ) { | ||
| public function add_block_from_stack( $end_offset = null ) { | ||
| $stack_top = array_pop( $this->stack ); | ||
@@ -542,0 +542,0 @@ $prev_offset = $stack_top->prev_offset; |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
157353
0.03%0
-100%