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

@wordpress/api-fetch

Package Overview
Dependencies
Maintainers
23
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 7.3.0 to 7.4.0

10

build-types/index.d.ts
export default apiFetch;
export type APIFetchMiddleware = import('./types').APIFetchMiddleware;
export type APIFetchOptions = import('./types').APIFetchOptions;
export type FetchHandler = (options: import('./types').APIFetchOptions) => Promise<any>;
export type APIFetchMiddleware = import("./types").APIFetchMiddleware;
export type APIFetchOptions = import("./types").APIFetchOptions;
export type FetchHandler = (options: import("./types").APIFetchOptions) => Promise<any>;
/**

@@ -10,3 +10,3 @@ * @template T

*/
declare function apiFetch<T>(options: import('./types').APIFetchOptions): Promise<T>;
declare function apiFetch<T>(options: import("./types").APIFetchOptions): Promise<T>;
declare namespace apiFetch {

@@ -27,3 +27,3 @@ export { registerMiddleware as use };

*/
declare function registerMiddleware(middleware: import('./types').APIFetchMiddleware): void;
declare function registerMiddleware(middleware: import("./types").APIFetchMiddleware): void;
/**

@@ -30,0 +30,0 @@ * Defines a custom fetch handler for making the requests that will override

@@ -9,3 +9,3 @@ export default fetchAllMiddleware;

*/
declare const fetchAllMiddleware: import('../types').APIFetchMiddleware;
declare const fetchAllMiddleware: import("../types").APIFetchMiddleware;
//# sourceMappingURL=fetch-all-middleware.d.ts.map

@@ -8,3 +8,3 @@ export default httpV1Middleware;

*/
declare const httpV1Middleware: import('../types').APIFetchMiddleware;
declare const httpV1Middleware: import("../types").APIFetchMiddleware;
//# sourceMappingURL=http-v1.d.ts.map

@@ -7,3 +7,3 @@ export default mediaUploadMiddleware;

*/
declare const mediaUploadMiddleware: import('../types').APIFetchMiddleware;
declare const mediaUploadMiddleware: import("../types").APIFetchMiddleware;
//# sourceMappingURL=media-upload.d.ts.map

@@ -5,3 +5,3 @@ export default namespaceAndEndpointMiddleware;

*/
declare const namespaceAndEndpointMiddleware: import('../types').APIFetchMiddleware;
declare const namespaceAndEndpointMiddleware: import("../types").APIFetchMiddleware;
//# sourceMappingURL=namespace-endpoint.d.ts.map

@@ -6,5 +6,5 @@ export default createNonceMiddleware;

*/
declare function createNonceMiddleware(nonce: string): import('../types').APIFetchMiddleware & {
declare function createNonceMiddleware(nonce: string): import("../types").APIFetchMiddleware & {
nonce: string;
};
//# sourceMappingURL=nonce.d.ts.map

@@ -6,3 +6,3 @@ export default createPreloadingMiddleware;

*/
declare function createPreloadingMiddleware(preloadedData: Record<string, any>): import('../types').APIFetchMiddleware;
declare function createPreloadingMiddleware(preloadedData: Record<string, any>): import("../types").APIFetchMiddleware;
//# sourceMappingURL=preloading.d.ts.map

@@ -6,3 +6,3 @@ export default createRootURLMiddleware;

*/
declare function createRootURLMiddleware(rootURL: string): import('../types').APIFetchMiddleware;
declare function createRootURLMiddleware(rootURL: string): import("../types").APIFetchMiddleware;
//# sourceMappingURL=root-url.d.ts.map

@@ -12,3 +12,3 @@ export default createThemePreviewMiddleware;

*/
declare function createThemePreviewMiddleware(themePath: Record<string, any>): import('../types').APIFetchMiddleware;
declare function createThemePreviewMiddleware(themePath: Record<string, any>): import("../types").APIFetchMiddleware;
//# sourceMappingURL=theme-preview.d.ts.map

@@ -5,3 +5,3 @@ export default userLocaleMiddleware;

*/
declare const userLocaleMiddleware: import('../types').APIFetchMiddleware;
declare const userLocaleMiddleware: import("../types").APIFetchMiddleware;
//# sourceMappingURL=user-locale.d.ts.map

@@ -5,2 +5,4 @@ <!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. -->

## 7.4.0 (2024-07-24)
## 7.3.0 (2024-07-10)

@@ -7,0 +9,0 @@

{
"name": "@wordpress/api-fetch",
"version": "7.3.0",
"version": "7.4.0",
"description": "Utility to make WordPress REST API requests.",

@@ -32,4 +32,4 @@ "author": "The WordPress Contributors",

"@babel/runtime": "^7.16.0",
"@wordpress/i18n": "^5.3.0",
"@wordpress/url": "^4.3.0"
"@wordpress/i18n": "^5.4.0",
"@wordpress/url": "^4.4.0"
},

@@ -39,3 +39,3 @@ "publishConfig": {

},
"gitHead": "122867d355ca4edc63d3a3bbd9411d3a2e1458df"
"gitHead": "363edb39b8dda8727f652e42cbb8497732693ed2"
}

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

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