# extendify/3.2.1/src/Shared/lib/patterns.js

Extendify, version 3.2.1. 14 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.2.1/code/src/Shared/lib/patterns.js
- Raw: https://pluginprobe.com/plugins/extendify/3.2.1/raw/src/Shared/lib/patterns.js
- Modified: 2026-09-16T19:34:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/extendify/3.2.1/code/src/Shared/lib/patterns.js#L10-L20`.

```javascript
// A dependency that merely wasn't loaded yet clears on a second pass.
export const failedDependencies = (patterns) =>
	patterns
		.filter((p) => p.pluginDependencyFailed)
		.map((p) => p.pluginDependency);

export const processWithSecondPass = async (process, patterns) => {
	const processed = await process(patterns).catch(() => null);
	if (processed && !failedDependencies(processed).length) return processed;

	const retried = await process(patterns).catch(() => null);
	return retried ?? processed ?? patterns;
};

```
