New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

svelte-meta

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-meta - npm Package Compare versions

Comparing version

to
1.0.2

14

index.d.ts
/// <reference types="svelte" />
import { SvelteComponentTyped } from 'svelte';
import {
ImageProps,
TwitterCardProps,
OpenGraphProps
} from './@types/interfaces';
import { ImageProps, OpenGraphProps } from './@types/interfaces';

@@ -15,6 +11,6 @@ export interface MetaProps {

url?: string;
logoUrl?: string;
searchUrl?: string;
sitemapUrl?: string;
twitter?: TwitterCardProps;
siteUrl?: string;
logo?: string;
search?: string;
sitemap?: string;
openGraph?: OpenGraphProps;

@@ -21,0 +17,0 @@ robots?: string;

{
"name": "svelte-meta",
"description": "Easily generate SEO metadata for Svelte",
"version": "1.0.1",
"version": "1.0.2",
"license": "MIT",

@@ -6,0 +6,0 @@ "main": "./dist/index.js",

@@ -29,3 +29,2 @@ # Svelte Meta

image="/cover.png"
siteUrl="https://website.com"
url="https://website.com/page

@@ -37,13 +36,13 @@ />

| Property | Type | Description | Metadata Set |
| ------------- | ------------------------------------------------------------------------ | --------------------------------------- | -------------------------------- |
| `title` | `string` | Title of your project | `<title>`, `title`, `og:title` |
| `description` | `string` | Descriptoin of your project | `description`, `og:description` |
| `image` | `string` or `{ url: string; width: number; height: number; alt: string}` | Image for social networks | `og:image` |
| `url` | `string` | URL of the current page | `canonical`, `JSON-LD`, `og:url` |
| `siteUrl` | `string` | Root URL of your website | `canonical`, `JSON-LD`, `og:url` |
| `logo` | `string` | Logo image for your brand | `JSON-LD` |
| `search` | `string` | Search page base URL | `JSON-LD` |
| `sitemap` | `string` | URL of your sitemap | `sitemap` |
| `openGraph` | Inherits other properties, plus custom `og:` properties, eg: `video` | [OpenGraph properties](https://ogp.me/) | `og:` |
| Property | Type | Description | Metadata Set |
| ------------- | ------------------------------------------------------------------------ | --------------------------------------- | ------------------------------- |
| `title` | `string` | Title of your project | `<title>`, `title`, `og:title` |
| `description` | `string` | Descriptoin of your project | `description`, `og:description` |
| `image` | `string` or `{ url: string; width: number; height: number; alt: string}` | Image for social networks | `og:image` |
| `url` | `string` | URL of the current page | `canonical` `og:url` |
| `siteUrl` | `string` | Root URL of your website | `JSON-LD` |
| `logo` | `string` | Logo image for your brand | `JSON-LD` |
| `search` | `string` | Search page base URL | `JSON-LD` |
| `sitemap` | `string` | URL of your sitemap | `sitemap` |
| `openGraph` | Inherits other properties, plus custom `og:` properties, eg: `video` | [OpenGraph properties](https://ogp.me/) | `og:` |

@@ -50,0 +49,0 @@ ### Notes