font-finder
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -0,1 +1,8 @@ | ||
## [1.0.3](https://github.com/princjef/font-finder/compare/v1.0.2...v1.0.3) (2018-08-11) | ||
### Bug Fixes | ||
* **parse:** throw specific errors for missing required font tables ([bd54682](https://github.com/princjef/font-finder/commit/bd54682)) | ||
## [1.0.2](https://github.com/princjef/font-finder/compare/v1.0.1...v1.0.2) (2018-07-31) | ||
@@ -2,0 +9,0 @@ |
@@ -77,2 +77,10 @@ "use strict"; | ||
} | ||
// If any of the necessary font tables are missing, | ||
// throw | ||
if (!tableData.name) { | ||
throw new Error(`missing required OpenType table 'name' in font file: ${filePath}`); | ||
} | ||
if (!tableData.os2) { | ||
throw new Error(`missing required OpenType table 'OS/2' in font file: ${filePath}`); | ||
} | ||
// Parse and return the tables we need | ||
@@ -79,0 +87,0 @@ return { |
{ | ||
"name": "font-finder", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Quickly find system font names and metadata without native dependencies", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/princjef/font-finder#readme", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
121284
32
2456