diff --git a/src/stega/filterDefault.ts b/src/stega/filterDefault.ts index 5f85e8331..88f987bc4 100644 --- a/src/stega/filterDefault.ts +++ b/src/stega/filterDefault.ts @@ -41,10 +41,14 @@ export const filterDefault: FilterDefault = ({sourcePath, resultPath, value}) => } const denylist = new Set([ + 'aspect_ratio', + 'aspectRatio', + 'blurHash', 'color', 'colour', 'currency', 'email', + 'encoding_tier', 'format', 'gid', 'hex', @@ -61,9 +65,14 @@ const denylist = new Set([ 'linkAction', 'locale', 'lqip', + 'master_access', + 'max_resolution_tier', + 'max_stored_resolution', + 'mp4_support', 'page', 'path', 'ref', + 'resolution_tier', 'rgb', 'rgba', 'route', @@ -72,13 +81,17 @@ const denylist = new Set([ 'status', 'tag', 'template', + 'textTheme', 'theme', + 'thumbHash', 'type', - 'textTheme', 'unit', + 'upload_id', 'url', 'username', 'variant', + 'video_quality', + 'video_resolution', 'website', ]) diff --git a/test/stega/filterDefault.test.ts b/test/stega/filterDefault.test.ts index d9bab83ec..2f7f0ee2c 100644 --- a/test/stega/filterDefault.test.ts +++ b/test/stega/filterDefault.test.ts @@ -275,10 +275,14 @@ describe('filterDefault', () => { describe('Denylist handling', () => { test.each([ + ['aspect_ratio'], + ['aspectRatio'], + ['blurHash'], ['color'], ['colour'], ['currency'], ['email'], + ['encoding_tier'], ['format'], ['gid'], ['hex'], @@ -295,9 +299,14 @@ describe('filterDefault', () => { ['linkAction'], ['locale'], ['lqip'], + ['master_access'], + ['max_resolution_tier'], + ['max_stored_resolution'], + ['mp4_support'], ['page'], ['path'], ['ref'], + ['resolution_tier'], ['rgb'], ['rgba'], ['route'], @@ -306,13 +315,17 @@ describe('filterDefault', () => { ['status'], ['tag'], ['template'], + ['textTheme'], ['theme'], + ['thumbHash'], ['type'], - ['textTheme'], ['unit'], + ['upload_id'], ['url'], ['username'], ['variant'], + ['video_quality'], + ['video_resolution'], ['website'], ])('should skip encoding denylisted key "%s"', (key) => { const result = filterDefault({