Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

font-finder

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

font-finder - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

src/extract.ts

7

CHANGELOG.md

@@ -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 {

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc