Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wordpress/api-fetch

Package Overview
Dependencies
Maintainers
25
Versions
186
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/api-fetch - npm Package Compare versions

Comparing version 6.29.0 to 6.30.0

build-module/middlewares/theme-preview.js

2

build-module/index.js

@@ -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 @@

8

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc