Skip to content

Commit 69ce0b0

Browse files
authored
Merge pull request #3857 from Parsely/dependabot/npm_and_yarn/wordpress/api-fetch-7.36.0
2 parents f195420 + dd0a080 commit 69ce0b0

File tree

4 files changed

+9
-160
lines changed

4 files changed

+9
-160
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"@types/wordpress__edit-post": "^8.4.2",
5555
"@types/wordpress__wordcount": "^2.4.5",
5656
"@typescript-eslint/eslint-plugin": "^6.21.0",
57-
"@wordpress/api-fetch": "7.29",
57+
"@wordpress/api-fetch": "7.36",
5858
"@wordpress/babel-preset-default": "^7.42.0",
5959
"@wordpress/block-editor": "^15.6.0",
6060
"@wordpress/blocks": "^15.9.0",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export abstract class BaseProvider {
148148
options.signal = abortController.signal;
149149

150150
try {
151-
const response = await apiFetch<ContentHelperAPIResponse<T>>( options );
151+
const response = await apiFetch<ContentHelperAPIResponse<T>>( options as APIFetchOptions<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 Response;
154+
const response = await apiFetch( options as APIFetchOptions<false> ) as Response;
155155

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

0 commit comments

Comments
 (0)