@ethercorps/sveltekit-og 3.0.0-next.17 → 3.0.0-next.19

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/README.md CHANGED
@@ -43,7 +43,7 @@ const fontFile = await fetch('https://og-playground.vercel.app/inter-latin-ext-4
43
43
  const fontData: ArrayBuffer = await fontFile.arrayBuffer();
44
44
 
45
45
  export const GET: RequestHandler = async () => {
46
- return await ImageResponse(template, {
46
+ return await new ImageResponse(template, {
47
47
  height: 630,
48
48
  width: 1200,
49
49
  fonts: [
@@ -1,5 +1,5 @@
1
- import type { SvelteComponent } from 'svelte';
1
+ import type { Component } from 'svelte';
2
2
  import type { ImageResponseOptions } from './types.js';
3
3
  export declare class ImageResponse extends Response {
4
- constructor(element: string | SvelteComponent, options?: ImageResponseOptions, props?: Record<string, any>);
4
+ constructor(element: string | Component, options?: ImageResponseOptions, props?: Record<string, any>);
5
5
  }
package/dist/plugin.js ADDED
@@ -0,0 +1,7 @@
1
+ import { rollup } from "unwasm/plugin";
2
+ export function rollupWasm() {
3
+ return rollup({
4
+ esmImport: true,
5
+ lazy: true
6
+ });
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethercorps/sveltekit-og",
3
- "version": "3.0.0-next.17",
3
+ "version": "3.0.0-next.19",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",
@@ -19,7 +19,10 @@
19
19
  "types": "./dist/index.d.ts",
20
20
  "svelte": "./dist/index.js",
21
21
  "import": "./dist/index.js"
22
- }
22
+ },
23
+ "./plugin": {
24
+ "import": "./dist/plugin.js"
25
+ }
23
26
  },
24
27
  "files": [
25
28
  "dist",
@@ -42,7 +45,6 @@
42
45
  "prettier-plugin-svelte": "^3.4.0",
43
46
  "publint": "^0.1.16",
44
47
  "rollup-plugin-visualizer": "^5.14.0",
45
- "satori-html": "0.3.2",
46
48
  "svelte": "^5.33.14",
47
49
  "svelte-check": "^4.2.1",
48
50
  "tslib": "^2.8.1",
@@ -58,7 +60,8 @@
58
60
  "dependencies": {
59
61
  "@resvg/resvg-wasm": "^2.6.2",
60
62
  "satori": "^0.10.14",
61
- "std-env": "^3.9.0"
63
+ "std-env": "^3.9.0",
64
+ "satori-html": "0.3.2"
62
65
  },
63
66
  "peerDependencies": {
64
67
  "unwasm": "^0.3.9",