Skip to content

Commit

Permalink
chore(release): publish v0.7.6
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl committed Dec 8, 2022
1 parent 1d934ae commit 2490de6
Show file tree
Hide file tree
Showing 7 changed files with 142 additions and 17 deletions.
9 changes: 0 additions & 9 deletions .vscode/settings.json

This file was deleted.

11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.7.6](https://github.com/feathersjs/hooks/compare/v0.7.5...v0.7.6) (2022-12-08)


### Bug Fixes

* restore `context.type` ([#104](https://github.com/feathersjs/hooks/issues/104)) ([1d934ae](https://github.com/feathersjs/hooks/commit/1d934aee85276b4585268dcaf4e6360d7b1137dc))





## [0.7.5](https://github.com/feathersjs/hooks/compare/v0.7.4...v0.7.5) (2022-06-04)


Expand Down
114 changes: 114 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"packages": [
"packages/*"
],
"version": "0.7.5",
"version": "0.7.6",
"granularPathspec": false,
"forcePublish": true,
"command": {
Expand Down
2 changes: 1 addition & 1 deletion main/hooks/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export type HookContextData = { [key: string]: any };
*/
export class BaseHookContext<C = any> {
self?: C;
[key: string]: any
[key: string]: any;

constructor(data: HookContextData = {}) {
Object.assign(this, data);
Expand Down
11 changes: 5 additions & 6 deletions main/hooks/src/regular.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ export const runHook = (hook: RegularMiddleware, context: any, type?: string) =>
});
};

export const runHooks = (hooks: RegularMiddleware[]) =>
(context: any) =>
hooks.reduce(
(promise, hook) => promise.then(() => runHook(hook, context)),
Promise.resolve(context),
);
export const runHooks = (hooks: RegularMiddleware[]) => (context: any) =>
hooks.reduce(
(promise, hook) => promise.then(() => runHook(hook, context)),
Promise.resolve(context),
);

export function fromBeforeHook(hook: RegularMiddleware) {
return (context: any, next: any) => {
Expand Down
10 changes: 10 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2490de6

Please sign in to comment.