New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fontsub

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fontsub - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

dist/index.js.map

5

dist/index.js

@@ -48,2 +48,4 @@ "use strict";

}
// 兼容 woff2 的解析
yield woff2.init();
const unicodeSet = Object.values(codeMap);

@@ -69,5 +71,2 @@ const sourceBuffer = yield fs.promises.readFile(fontpath);

for (let type of outputTypes) {
if (type === 'woff2') {
yield woff2.init();
}
output[type] = font.write({ type });

@@ -74,0 +73,0 @@ }

2

package.json
{
"name": "fontsub",
"version": "0.0.3",
"version": "0.0.4",
"description": "import font file and export .ttf ",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -53,2 +53,5 @@ import fs = require('fs')

// 兼容 woff2 的解析
await woff2.init()
const unicodeSet = Object.values(codeMap)

@@ -76,5 +79,2 @@ const sourceBuffer = await fs.promises.readFile(fontpath)

for (let type of outputTypes) {
if (type === 'woff2') {
await woff2.init()
}
output[type] = font.write({ type })

@@ -81,0 +81,0 @@ }

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