@wordpress/api-fetch
Advanced tools
Comparing version 6.29.0 to 6.30.0
@@ -17,2 +17,3 @@ /** | ||
import mediaUploadMiddleware from './middlewares/media-upload'; | ||
import createThemePreviewMiddleware from './middlewares/theme-preview'; | ||
import { parseResponseAndNormalizeError, parseAndThrowError } from './utils/response'; | ||
@@ -180,3 +181,4 @@ /** | ||
apiFetch.mediaUploadMiddleware = mediaUploadMiddleware; | ||
apiFetch.createThemePreviewMiddleware = createThemePreviewMiddleware; | ||
export default apiFetch; | ||
//# sourceMappingURL=index.js.map |
@@ -19,2 +19,3 @@ export default apiFetch; | ||
export { mediaUploadMiddleware }; | ||
export { createThemePreviewMiddleware }; | ||
} | ||
@@ -39,2 +40,3 @@ /** | ||
import mediaUploadMiddleware from "./middlewares/media-upload"; | ||
import createThemePreviewMiddleware from "./middlewares/theme-preview"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -28,2 +28,4 @@ "use strict"; | ||
var _themePreview = _interopRequireDefault(require("./middlewares/theme-preview")); | ||
var _response = require("./utils/response"); | ||
@@ -199,4 +201,5 @@ | ||
apiFetch.mediaUploadMiddleware = _mediaUpload.default; | ||
apiFetch.createThemePreviewMiddleware = _themePreview.default; | ||
var _default = apiFetch; | ||
exports.default = _default; | ||
//# sourceMappingURL=index.js.map |
@@ -5,2 +5,4 @@ <!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. --> | ||
## 6.30.0 (2023-05-10) | ||
## 6.29.0 (2023-04-26) | ||
@@ -7,0 +9,0 @@ |
{ | ||
"name": "@wordpress/api-fetch", | ||
"version": "6.29.0", | ||
"version": "6.30.0", | ||
"description": "Utility to make WordPress REST API requests.", | ||
@@ -31,4 +31,4 @@ "author": "The WordPress Contributors", | ||
"@babel/runtime": "^7.16.0", | ||
"@wordpress/i18n": "^4.32.0", | ||
"@wordpress/url": "^3.33.0" | ||
"@wordpress/i18n": "^4.33.0", | ||
"@wordpress/url": "^3.34.0" | ||
}, | ||
@@ -38,3 +38,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "6df0c62d43b8901414ccd22ffbe56eaa99d012a6" | ||
"gitHead": "e936127e1e13881f1a940b7bd1593a9e500147f3" | ||
} |
@@ -33,3 +33,3 @@ # API Fetch | ||
apiFetch( { path: addQueryArgs( '/wp/v2/posts', queryParams } ).then( ( posts ) => { | ||
apiFetch( { path: addQueryArgs( '/wp/v2/posts', queryParams ) } ).then( ( posts ) => { | ||
console.log( posts ); | ||
@@ -36,0 +36,0 @@ } ); |
@@ -17,2 +17,3 @@ /** | ||
import mediaUploadMiddleware from './middlewares/media-upload'; | ||
import createThemePreviewMiddleware from './middlewares/theme-preview'; | ||
import { | ||
@@ -197,3 +198,4 @@ parseResponseAndNormalizeError, | ||
apiFetch.mediaUploadMiddleware = mediaUploadMiddleware; | ||
apiFetch.createThemePreviewMiddleware = createThemePreviewMiddleware; | ||
export default apiFetch; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
242786
99
2983
Updated@wordpress/i18n@^4.33.0
Updated@wordpress/url@^3.34.0