Skip to content

Commit

Permalink
add update hook and update hooks-api dependency version (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
faroceann authored and shawnmclean committed Sep 20, 2019
1 parent 0facbc2 commit 39d51d9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"homepage": "https://github.com/auth0/node-auth0",
"dependencies": {
"@auth0/hooks-api-core": "^1.0.7",
"@auth0/hooks-api-core": "^1.1.0",
"bluebird": "^3.5.5",
"inversify": "^5.0.1",
"inversify-binding-decorators": "^4.0.0",
Expand Down
22 changes: 22 additions & 0 deletions src/management/HooksManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,26 @@ utils.wrapPropertyMethod(HooksManager, 'get', 'resource.getHookById');
*/
utils.wrapPropertyMethod(HooksManager, 'delete', 'resource.deleteHookById');

/**
* Update an existing hook.
*
* @method update
* @memberOf module:management.HooksManager.prototype
*
* @example
* management.hooks.update(data, function (err) {
* if (err) {
* // Handle error.
* }
*
* // Hook updated.
* });
*
* @param {Object} data Hook data object.
* @param {Function} [cb] Callback function.
*
* @return {Promise|undefined}
*/
utils.wrapPropertyMethod(HooksManager, 'update', 'resource.updateHook');

module.exports = HooksManager;

0 comments on commit 39d51d9

Please sign in to comment.