( targets: Targets, name: string, tags: ReadonlyArray<string> | undefined, argsKey: string )
| 2934 | * hydrated entry, whose read the cache hasn't seen: every tag hits it. |
| 2935 | */ |
| 2936 | const targetsHit = ( |
| 2937 | targets: Targets, |
| 2938 | name: string, |
| 2939 | tags: ReadonlyArray<string> | undefined, |
| 2940 | argsKey: string |
| 2941 | ): boolean => { |
| 2942 | if ( |
| 2943 | targets.queries.has(name) || |
| 2944 | targets.entries.get(name)?.has(argsKey) === true |
| 2945 | ) return true |
| 2946 | if (targets.tags.size === 0) return false |
| 2947 | if (tags === undefined) return true |
| 2948 | return tags.some((tag) => targets.tags.has(tag)) |
| 2949 | } |
| 2950 | |
| 2951 | /** |
| 2952 | * Applies one patch to a value of the entry of `name` at `argsKey`. A patch |
no test coverage detected