@capsizecss/unpack
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -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" | ||
} | ||
} |
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
10773
276
+ Added@swc/helpers@0.5.15(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfontkit@2.0.4(transitive)
+ Addedrestructure@3.0.2(transitive)
- Removed@swc/helpers@0.3.17(transitive)
- Removedarray-buffer-byte-length@1.0.1(transitive)
- Removedavailable-typed-arrays@1.0.7(transitive)
- Removedcall-bind@1.0.7(transitive)
- Removeddeep-equal@2.2.3(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removeddefine-properties@1.2.1(transitive)
- Removedes-define-property@1.0.0(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedes-get-iterator@1.1.3(transitive)
- Removedfontkit@1.9.0(transitive)
- Removedfor-each@0.3.3(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedfunctions-have-names@1.2.3(transitive)
- Removedget-intrinsic@1.2.4(transitive)
- Removedgopd@1.0.1(transitive)
- Removedhas-bigints@1.0.2(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-proto@1.0.3(transitive)
- Removedhas-symbols@1.0.3(transitive)
- Removedhas-tostringtag@1.0.2(transitive)
- Removedhasown@2.0.2(transitive)
- Removedinternal-slot@1.0.7(transitive)
- Removedis-arguments@1.1.1(transitive)
- Removedis-array-buffer@3.0.4(transitive)
- Removedis-bigint@1.0.4(transitive)
- Removedis-boolean-object@1.1.2(transitive)
- Removedis-callable@1.2.7(transitive)
- Removedis-date-object@1.0.5(transitive)
- Removedis-map@2.0.3(transitive)
- Removedis-number-object@1.0.7(transitive)
- Removedis-regex@1.1.4(transitive)
- Removedis-set@2.0.3(transitive)
- Removedis-shared-array-buffer@1.0.3(transitive)
- Removedis-string@1.0.7(transitive)
- Removedis-symbol@1.0.4(transitive)
- Removedis-weakmap@2.0.2(transitive)
- Removedis-weakset@2.0.3(transitive)
- Removedisarray@2.0.5(transitive)
- Removedobject-inspect@1.13.3(transitive)
- Removedobject-is@1.1.6(transitive)
- Removedobject-keys@1.1.1(transitive)
- Removedobject.assign@4.1.5(transitive)
- Removedpossible-typed-array-names@1.0.0(transitive)
- Removedregexp.prototype.flags@1.5.3(transitive)
- Removedrestructure@2.0.1(transitive)
- Removedset-function-length@1.2.2(transitive)
- Removedset-function-name@2.0.2(transitive)
- Removedside-channel@1.0.6(transitive)
- Removedstop-iteration-iterator@1.0.0(transitive)
- Removedwhich-boxed-primitive@1.0.2(transitive)
- Removedwhich-collection@1.0.2(transitive)
- Removedwhich-typed-array@1.1.15(transitive)
Updatedfontkit@^2.0.2