Socket
Socket
Sign inDemoInstall

@wordpress/hooks

Package Overview
Dependencies
Maintainers
8
Versions
162
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 2.0.5 to 2.1.0

3

build-module/createAddHook.js

@@ -0,1 +1,4 @@

/**
* Internal dependencies
*/
import validateNamespace from './validateNamespace.js';

@@ -2,0 +5,0 @@ import validateHookName from './validateHookName.js';

@@ -0,1 +1,4 @@

/**
* Internal dependencies
*/
import validateHookName from './validateHookName.js';

@@ -2,0 +5,0 @@ /**

@@ -0,1 +1,4 @@

/**
* Internal dependencies
*/
import createAddHook from './createAddHook';

@@ -2,0 +5,0 @@ import createRemoveHook from './createRemoveHook';

@@ -0,1 +1,4 @@

/**
* Internal dependencies
*/
import validateNamespace from './validateNamespace.js';

@@ -2,0 +5,0 @@ import validateHookName from './validateHookName.js';

@@ -0,1 +1,4 @@

/**
* Internal dependencies
*/
import createHooks from './createHooks';

@@ -2,0 +5,0 @@

@@ -17,2 +17,6 @@ "use strict";

/**
* Internal dependencies
*/
/**
* Returns a function which, when invoked, will add a hook.

@@ -19,0 +23,0 @@ *

@@ -13,2 +13,6 @@ "use strict";

/**
* Internal dependencies
*/
/**
* Returns a function which, when invoked, will return the number of times a

@@ -15,0 +19,0 @@ * hook has been called.

@@ -25,2 +25,6 @@ "use strict";

/**
* Internal dependencies
*/
/**
* Returns an instance of the hooks object.

@@ -27,0 +31,0 @@ *

@@ -17,2 +17,6 @@ "use strict";

/**
* Internal dependencies
*/
/**
* Returns a function which, when invoked, will remove a specified hook or all

@@ -19,0 +23,0 @@ * hooks by the given name.

@@ -18,2 +18,5 @@ "use strict";

/**
* Internal dependencies
*/
var _createHooks = (0, _createHooks2.default)(),

@@ -20,0 +23,0 @@ addAction = _createHooks.addAction,

2

LICENSE.md
### WordPress - Web publishing software
Copyright 2011-2018 by the contributors
Copyright 2011-2019 by the contributors

@@ -5,0 +5,0 @@ This program is free software; you can redistribute it and/or modify

{
"name": "@wordpress/hooks",
"version": "2.0.5",
"version": "2.1.0",
"description": "WordPress hooks library.",

@@ -14,3 +14,4 @@ "author": "The WordPress Contributors",

"type": "git",
"url": "https://github.com/WordPress/gutenberg.git"
"url": "https://github.com/WordPress/gutenberg.git",
"directory": "packages/hooks"
},

@@ -24,3 +25,3 @@ "bugs": {

"dependencies": {
"@babel/runtime": "^7.0.0"
"@babel/runtime": "^7.3.1"
},

@@ -30,3 +31,3 @@ "publishConfig": {

},
"gitHead": "c59ef56fe16bdcc1fffd70b6e8a2fda4bf9c28fe"
"gitHead": "80d228669adadb8dfcd24b8421517fed3be2d474"
}

@@ -0,1 +1,4 @@

/**
* Internal dependencies
*/
import validateNamespace from './validateNamespace.js';

@@ -2,0 +5,0 @@ import validateHookName from './validateHookName.js';

@@ -0,1 +1,4 @@

/**
* Internal dependencies
*/
import validateHookName from './validateHookName.js';

@@ -2,0 +5,0 @@

@@ -0,1 +1,4 @@

/**
* Internal dependencies
*/
import createAddHook from './createAddHook';

@@ -37,4 +40,4 @@ import createRemoveHook from './createRemoveHook';

didFilter: createDidHook( filters ),
actions: actions,
filters: filters,
actions,
filters,
};

@@ -41,0 +44,0 @@ }

@@ -0,1 +1,4 @@

/**
* Internal dependencies
*/
import validateNamespace from './validateNamespace.js';

@@ -2,0 +5,0 @@ import validateHookName from './validateHookName.js';

@@ -0,1 +1,4 @@

/**
* Internal dependencies
*/
import createHooks from './createHooks';

@@ -2,0 +5,0 @@

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

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