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

@capsizecss/unpack

Package Overview
Dependencies
Maintainers
2
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@capsizecss/unpack - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

9

dist/capsizecss-unpack.browser.cjs.js

@@ -34,8 +34,5 @@ 'use strict';

};
const fromFile = path => new Promise((resolve, reject) => fontkit__default["default"].open(path, '', (err, font) => {
if (err) {
return reject(err);
}
resolve(unpackMetricsFromFont(font));
}));
const fromFile = path =>
// @ts-expect-error Can remove when PR to update types is merged: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/63204
fontkit__default["default"].open(path).then(unpackMetricsFromFont);
const fromBlob = async blob => new Promise((resolve, reject) => {

@@ -42,0 +39,0 @@ blobToBuffer__default["default"](blob, (err, buffer) => {

@@ -25,8 +25,5 @@ import 'cross-fetch/polyfill';

};
const fromFile = path => new Promise((resolve, reject) => fontkit.open(path, '', (err, font) => {
if (err) {
return reject(err);
}
resolve(unpackMetricsFromFont(font));
}));
const fromFile = path =>
// @ts-expect-error Can remove when PR to update types is merged: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/63204
fontkit.open(path).then(unpackMetricsFromFont);
const fromBlob = async blob => new Promise((resolve, reject) => {

@@ -33,0 +30,0 @@ blobToBuffer(blob, (err, buffer) => {

@@ -34,8 +34,5 @@ 'use strict';

};
const fromFile = path => new Promise((resolve, reject) => fontkit__default["default"].open(path, '', (err, font) => {
if (err) {
return reject(err);
}
resolve(unpackMetricsFromFont(font));
}));
const fromFile = path =>
// @ts-expect-error Can remove when PR to update types is merged: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/63204
fontkit__default["default"].open(path).then(unpackMetricsFromFont);
const fromBlob = async blob => new Promise((resolve, reject) => {

@@ -42,0 +39,0 @@ blobToBuffer__default["default"](blob, (err, buffer) => {

@@ -34,8 +34,5 @@ 'use strict';

};
const fromFile = path => new Promise((resolve, reject) => fontkit__default["default"].open(path, '', (err, font) => {
if (err) {
return reject(err);
}
resolve(unpackMetricsFromFont(font));
}));
const fromFile = path =>
// @ts-expect-error Can remove when PR to update types is merged: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/63204
fontkit__default["default"].open(path).then(unpackMetricsFromFont);
const fromBlob = async blob => new Promise((resolve, reject) => {

@@ -42,0 +39,0 @@ blobToBuffer__default["default"](blob, (err, buffer) => {

@@ -25,8 +25,5 @@ import 'cross-fetch/polyfill';

};
const fromFile = path => new Promise((resolve, reject) => fontkit.open(path, '', (err, font) => {
if (err) {
return reject(err);
}
resolve(unpackMetricsFromFont(font));
}));
const fromFile = path =>
// @ts-expect-error Can remove when PR to update types is merged: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/63204
fontkit.open(path).then(unpackMetricsFromFont);
const fromBlob = async blob => new Promise((resolve, reject) => {

@@ -33,0 +30,0 @@ blobToBuffer(blob, (err, buffer) => {

{
"name": "@capsizecss/unpack",
"version": "0.2.0",
"version": "0.2.1",
"description": "Unpack capsize font metrics from fonts",

@@ -44,8 +44,8 @@ "main": "dist/capsizecss-unpack.cjs.js",

"cross-fetch": "^3.0.4",
"fontkit": "^1.8.1"
"fontkit": "^2.0.2"
},
"devDependencies": {
"@types/blob-to-buffer": "^1.2.0",
"@types/fontkit": "^1.8.0"
"@types/fontkit": "^2.0.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