Socket
Socket
Sign inDemoInstall

@wordpress/hooks

Package Overview
Dependencies
Maintainers
23
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/hooks - npm Package Compare versions

Comparing version 4.3.0 to 4.4.0

4

build-types/createAddHook.d.ts

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

*/
export type AddHook = (hookName: string, namespace: string, callback: import('.').Callback, priority?: number | undefined) => any;
export type AddHook = (hookName: string, namespace: string, callback: import(".").Callback, priority?: number | undefined) => any;
/**

@@ -25,3 +25,3 @@ * @callback AddHook

*/
declare function createAddHook(hooks: import('.').Hooks, storeKey: import('.').StoreKey): AddHook;
declare function createAddHook(hooks: import(".").Hooks, storeKey: import(".").StoreKey): AddHook;
//# sourceMappingURL=createAddHook.d.ts.map

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

*/
declare function createCurrentHook(hooks: import('.').Hooks, storeKey: import('.').StoreKey): () => string | null;
declare function createCurrentHook(hooks: import(".").Hooks, storeKey: import(".").StoreKey): () => string | null;
//# sourceMappingURL=createCurrentHook.d.ts.map

@@ -24,3 +24,3 @@ export default createDidHook;

*/
declare function createDidHook(hooks: import('.').Hooks, storeKey: import('.').StoreKey): DidHook;
declare function createDidHook(hooks: import(".").Hooks, storeKey: import(".").StoreKey): DidHook;
//# sourceMappingURL=createDidHook.d.ts.map

@@ -25,3 +25,3 @@ export default createDoingHook;

*/
declare function createDoingHook(hooks: import('.').Hooks, storeKey: import('.').StoreKey): DoingHook;
declare function createDoingHook(hooks: import(".").Hooks, storeKey: import(".").StoreKey): DoingHook;
//# sourceMappingURL=createDoingHook.d.ts.map

@@ -27,3 +27,3 @@ export default createHasHook;

*/
declare function createHasHook(hooks: import('.').Hooks, storeKey: import('.').StoreKey): HasHook;
declare function createHasHook(hooks: import(".").Hooks, storeKey: import(".").StoreKey): HasHook;
//# sourceMappingURL=createHasHook.d.ts.map

@@ -10,5 +10,5 @@ /**

/** @type {import('.').Store} actions */
actions: import('.').Store;
actions: import(".").Store;
/** @type {import('.').Store} filters */
filters: import('.').Store;
filters: import(".").Store;
addAction: import("./createAddHook").AddHook;

@@ -22,4 +22,4 @@ addFilter: import("./createAddHook").AddHook;

removeAllFilters: import("./createRemoveHook").RemoveHook;
doAction: (hookName: string, ...args: unknown[]) => unknown;
applyFilters: (hookName: string, ...args: unknown[]) => unknown;
doAction: (hookName: string, ...args: unknown[]) => undefined | unknown;
applyFilters: (hookName: string, ...args: unknown[]) => undefined | unknown;
currentAction: () => string | null;

@@ -26,0 +26,0 @@ currentFilter: () => string | null;

@@ -30,3 +30,3 @@ export default createRemoveHook;

*/
declare function createRemoveHook(hooks: import('.').Hooks, storeKey: import('.').StoreKey, removeAll?: boolean | undefined): RemoveHook;
declare function createRemoveHook(hooks: import(".").Hooks, storeKey: import(".").StoreKey, removeAll?: boolean | undefined): RemoveHook;
//# sourceMappingURL=createRemoveHook.d.ts.map

@@ -14,3 +14,3 @@ export default createRunHook;

*/
declare function createRunHook(hooks: import('.').Hooks, storeKey: import('.').StoreKey, returnFirstArg?: boolean | undefined): (hookName: string, ...args: unknown[]) => undefined | unknown;
declare function createRunHook(hooks: import(".").Hooks, storeKey: import(".").StoreKey, returnFirstArg?: boolean | undefined): (hookName: string, ...args: unknown[]) => undefined | unknown;
//# sourceMappingURL=createRunHook.d.ts.map

@@ -66,4 +66,4 @@ /** @typedef {(...args: any[])=>any} Callback */

};
export type StoreKey = 'actions' | 'filters';
export type Hooks = import('./createHooks').Hooks;
export type StoreKey = "actions" | "filters";
export type Hooks = import("./createHooks").Hooks;
import createHooks from './createHooks';

@@ -78,4 +78,4 @@ export const addAction: import("./createAddHook").AddHook;

export const removeAllFilters: import("./createRemoveHook").RemoveHook;
export const doAction: (hookName: string, ...args: unknown[]) => unknown;
export const applyFilters: (hookName: string, ...args: unknown[]) => unknown;
export const doAction: (hookName: string, ...args: unknown[]) => undefined | unknown;
export const applyFilters: (hookName: string, ...args: unknown[]) => undefined | unknown;
export const currentAction: () => string | null;

@@ -82,0 +82,0 @@ export const currentFilter: () => string | null;

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

## 4.4.0 (2024-07-24)
## 4.3.0 (2024-07-10)

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

{
"name": "@wordpress/hooks",
"version": "4.3.0",
"version": "4.4.0",
"description": "WordPress hooks library.",

@@ -35,3 +35,3 @@ "author": "The WordPress Contributors",

},
"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

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