@turntrout/subfont 1.3.1 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -231,7 +231,7 @@ function findFontFamiliesWithFeatureSettings(
231
231
 
232
232
  if (recorded === true) {
233
233
  result = true;
234
- } else {
234
+ } else if (result !== true) {
235
235
  if (!result) result = new Set();
236
236
  for (const family of recorded) {
237
237
  result.add(family.toLowerCase());
@@ -1214,3 +1214,5 @@ module.exports = collectTextsByPage;
1214
1214
  // Exported for testing only
1215
1215
  module.exports._extractFeatureTagsFromDecl = extractFeatureTagsFromDecl;
1216
1216
  module.exports._resolveFeatureSettings = resolveFeatureSettings;
1217
+ module.exports._findFontFamiliesWithFeatureSettings =
1218
+ findFontFamiliesWithFeatureSettings;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turntrout/subfont",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Automatically subset web fonts to only the characters used on your pages. Fork of Munter/subfont with modern defaults.",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"