Skip to content

Commit

Permalink
fix(watch): check child message data to be an object (#224)
Browse files Browse the repository at this point in the history
Co-authored-by: Hiroki Osame <hiroki.osame@gmail.com>
  • Loading branch information
pedablio and privatenumber committed Apr 30, 2023
1 parent 1f9c56f commit 64ece39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/watch/utils.ts
Expand Up @@ -35,7 +35,7 @@ export function isDependencyPath(
): data is { type: 'dependency'; path: string } {
return (
data
&& 'type' in data
&& typeof data === 'object'
&& data.type === 'dependency'
);
}

0 comments on commit 64ece39

Please sign in to comment.