satori 0.0.20 → 0.0.21

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/dist/index.d.ts CHANGED
@@ -24,7 +24,8 @@ interface SatoriOptions {
24
24
  embedFont?: boolean;
25
25
  debug?: boolean;
26
26
  graphemeImages?: Record<string, string>;
27
- loadAdditionalAsset?: (code: string, segment: string) => Promise<FontOptions | string | undefined>;
27
+ detectLanguage?: (segment: string) => Promise<string> | string;
28
+ loadAdditionalAsset?: (languageCode: string, segment: string) => Promise<FontOptions | string | undefined>;
28
29
  }
29
30
 
30
31
  declare function satori(element: ReactNode, options: SatoriOptions): Promise<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "satori",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "description": "Satori converts HTML JSX to SVG string.",
5
5
  "module": "./dist/esm/index.js",
6
6
  "main": "./dist/esm/index.js",