tileserver-gl 4.11.1 → 4.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/utils.js CHANGED
@@ -4,7 +4,7 @@ import path from 'path';
4
4
  import fsPromises from 'fs/promises';
5
5
  import fs, { existsSync } from 'node:fs';
6
6
  import clone from 'clone';
7
- import glyphCompose from '@mapbox/glyph-pbf-composite';
7
+ import { combine } from '@jsse/pbfont';
8
8
 
9
9
  /**
10
10
  * Restrict user input to an allowed set of options.
@@ -213,8 +213,8 @@ export const getFontsPbf = async (
213
213
  );
214
214
  }
215
215
 
216
- const values = await Promise.all(queue);
217
- return glyphCompose.combine(values);
216
+ const combined = combine(await Promise.all(queue), names);
217
+ return Buffer.from(combined.buffer, 0, combined.buffer.length);
218
218
  };
219
219
 
220
220
  export const listFonts = async (fontPath) => {