@feathersjs/hooks
Advanced tools
Comparing version 0.7.5 to 0.7.6
@@ -6,4 +6,4 @@ # Change Log | ||
## [0.7.5](https://github.com/feathersjs/hooks/compare/v0.7.4...v0.7.5) (2022-06-04) | ||
## [0.7.6](https://github.com/feathersjs/hooks/compare/v0.7.5...v0.7.6) (2022-12-08) | ||
**Note:** Version bump only for package @feathersjs/hooks |
import { compose } from './compose.js'; | ||
export const runHook = (hook, context, type) => { | ||
const typeBefore = context.type; | ||
if (type) | ||
@@ -8,3 +9,3 @@ context.type = type; | ||
if (type) | ||
context.type = null; | ||
context.type = typeBefore; | ||
if (res && res !== context) { | ||
@@ -11,0 +12,0 @@ Object.assign(context, res); |
@@ -6,3 +6,3 @@ { | ||
"name": "@feathersjs/hooks", | ||
"version": "0.7.5", | ||
"version": "0.7.6", | ||
"description": "Async middleware for JavaScript and TypeScript", | ||
@@ -44,3 +44,3 @@ "homepage": "https://feathersjs.com", | ||
}, | ||
"gitHead": "b27f38b8a6d9677706bfd276e6118204b54652a7" | ||
"gitHead": "2490de640a198759526293268a2c2f4ce81714d2" | ||
} |
@@ -6,2 +6,3 @@ "use strict"; | ||
const runHook = (hook, context, type) => { | ||
const typeBefore = context.type; | ||
if (type) | ||
@@ -12,3 +13,3 @@ context.type = type; | ||
if (type) | ||
context.type = null; | ||
context.type = typeBefore; | ||
if (res && res !== context) { | ||
@@ -15,0 +16,0 @@ Object.assign(context, res); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41649
1044