From 9101b2c87d333ff642213525e0a7a172dbeaa4f8 Mon Sep 17 00:00:00 2001 From: prashis Date: Fri, 28 Jun 2024 23:12:01 +0530 Subject: [PATCH] refactor: use named import for `@jsse/pbfont` Signed-off-by: prashis --- src/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.js b/src/utils.js index 578a857..550a0da 100644 --- a/src/utils.js +++ b/src/utils.js @@ -4,7 +4,7 @@ import path from 'path'; import fsPromises from 'fs/promises'; import fs, { existsSync } from 'node:fs'; import clone from 'clone'; -import * as glyphCompose from '@jsse/pbfont'; +import { combine } from '@jsse/pbfont'; /** * Restrict user input to an allowed set of options. @@ -213,7 +213,7 @@ export const getFontsPbf = async ( ); } - const combined = glyphCompose.combine(await Promise.all(queue), names); + const combined = combine(await Promise.all(queue), names); return Buffer.from(combined.buffer, 0, combined.buffer.length); };