Skip to content

Commit f8e1b71

Browse files
committed
Attempt to fix develop build errors (1)
1 parent 3e1e2ad commit f8e1b71

File tree

10 files changed

+28
-28
lines changed

10 files changed

+28
-28
lines changed

build/admin-settings.asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-data', 'wp-escape-html', 'wp-i18n', 'wp-url'), 'version' => '2241911e2fdfed629bf6');
1+
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-data', 'wp-escape-html', 'wp-i18n', 'wp-url'), 'version' => 'f28647bb0d44468aed15');

build/admin-settings.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-url'), 'version' => '906cdd883ee1b440b483');
1+
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-url'), 'version' => '899399b4820f408e62c8');

build/content-helper/dashboard-page.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '880b3ef462175993e9b1');
1+
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '40a4e499f064f014fb36');

build/content-helper/dashboard-widget.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-primitives', 'wp-url', 'wp-wordcount'), 'version' => 'bcb179064954c51cbe4a');
1+
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-primitives', 'wp-url', 'wp-wordcount'), 'version' => '8c8db64fb2565346a8ca');

build/content-helper/editor-sidebar.js

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/content-helper/common/providers/base-provider.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,17 +138,17 @@ export abstract class BaseProvider {
138138
*
139139
* @since 3.15.0
140140
*
141-
* @param {APIFetchOptions<true>} options The options to pass to apiFetch.
142-
* @param {string?} id The (optional) ID of the request.
141+
* @param {APIFetchOptions} options The options to pass to apiFetch.
142+
* @param {string?} id The (optional) ID of the request.
143143
*
144144
* @return {Promise<ContentHelperAPIResponse<any>>} The fetched data.
145145
*/
146-
protected async fetch<T>( options: APIFetchOptions<true>, id?: string ): Promise<T> {
146+
protected async fetch<T>( options: APIFetchOptions, id?: string ): Promise<T> {
147147
const { abortController, abortId } = this.getOrCreateController( id );
148148
options.signal = abortController.signal;
149149

150150
try {
151-
const response = await apiFetch<ContentHelperAPIResponse<T>, true>( options );
151+
const response = await apiFetch<ContentHelperAPIResponse<T>>( { ...options, parse: true } );
152152

153153
// Validate API side errors.
154154
if ( response.error ) {

src/content-helper/common/providers/base-wordpress-provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export abstract class BaseWordPressProvider extends BaseProvider {
151151

152152
try {
153153
// Fetch the raw Response object.
154-
const response = await apiFetch( options as APIFetchOptions<false> ) as Response;
154+
const response = await apiFetch( { ...options, parse: false } ) as Response;
155155

156156
// Access headers from the response.
157157
const totalItemsHeader = response.headers.get( 'X-WP-Total' );

0 commit comments

Comments
 (0)