@nekm/svelte-core 1.0.6 → 1.0.7

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/seo.svelte CHANGED
@@ -14,15 +14,16 @@
14
14
  readonly icon: string;
15
15
  readonly canonical?: SeoCanonical;
16
16
  readonly next?: SeoCanonical;
17
+ readonly baseUrl?: string;
17
18
  }
18
19
 
19
- const { appName, description, title, icon, canonical, next }: SeoProps = $props();
20
+ const { appName, description, title, icon, canonical, next, baseUrl }: SeoProps = $props();
20
21
 
21
22
  function createCanonical(canonical?: SeoCanonical, includeBaseUrl = false): string | undefined {
22
23
  let url;
23
24
 
24
25
  if (canonical || includeBaseUrl) {
25
- url = assets;
26
+ url = baseUrl ?? assets;
26
27
  }
27
28
 
28
29
  if (canonical?.path) {
@@ -10,6 +10,7 @@ export interface SeoProps {
10
10
  readonly icon: string;
11
11
  readonly canonical?: SeoCanonical;
12
12
  readonly next?: SeoCanonical;
13
+ readonly baseUrl?: string;
13
14
  }
14
15
  declare const Seo: import("svelte").Component<SeoProps, {}, "">;
15
16
  type Seo = ReturnType<typeof Seo>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nekm/svelte-core",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",