Skip to content

Commit 5936087

Browse files
authored
Merge pull request #3733 from Parsely/revert-3728-dependabot/npm_and_yarn/wordpress/api-fetch-7.32.0
2 parents 6bf161f + 9ba3e13 commit 5936087

File tree

3 files changed

+178
-18
lines changed

3 files changed

+178
-18
lines changed

package-lock.json

Lines changed: 176 additions & 16 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.32",
57+
"@wordpress/api-fetch": "7.29",
5858
"@wordpress/babel-preset-default": "^7.42.0",
5959
"@wordpress/block-editor": "^15.5.0",
6060
"@wordpress/blocks": "^15.5.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 as APIFetchOptions<true> );
151+
const response = await apiFetch<ContentHelperAPIResponse<T>>( options );
152152

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

0 commit comments

Comments
 (0)