Updated the project.

This commit is contained in:
Batuhan Berk Başoğlu 2024-06-03 15:44:25 -04:00
parent 5dfe9f128d
commit 7919556077
1550 changed files with 17063 additions and 40183 deletions

View file

@ -42,7 +42,10 @@ function applyContentTemplate(options) {
};
}
catch (e) {
if (e.code === 'ERR_ENCODING_INVALID_ENCODED_DATA') {
// The second part should not be needed. But Jest does not support instanceof correctly.
// See: https://github.com/jestjs/jest/issues/2549
if (e instanceof TypeError ||
e.code === 'ERR_ENCODING_INVALID_ENCODED_DATA') {
return entry;
}
throw e;