Socket
Socket
Sign inDemoInstall

svelte-meta-tags

Package Overview
Dependencies
3
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.6.5 to 2.7.0

dist/index.d.ts

85

package.json
{
"name": "svelte-meta-tags",
"version": "2.6.5",
"version": "2.7.0",
"description": "Svelte Meta Tags is a plugin that makes managing your SEO easier in Svelte projects.",

@@ -20,24 +20,37 @@ "license": "MIT",

},
"scripts": {
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"package": "svelte-kit sync && svelte-package && publint",
"prepare": "husky install",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --plugin-search-dir . --check . --cache && eslint .",
"format": "prettier --plugin-search-dir . --write . --cache",
"test": "playwright test"
},
"dependencies": {
"schema-dts": "^1.1.0"
"schema-dts": "^1.1.2"
},
"devDependencies": {
"@playwright/test": "^1.29.2",
"@sveltejs/adapter-auto": "^1.0.2",
"@sveltejs/kit": "^1.1.4",
"@sveltejs/package": "^1.0.2",
"@typescript-eslint/eslint-plugin": "^5.48.2",
"@typescript-eslint/parser": "^5.48.2",
"eslint": "^8.32.0",
"eslint-config-prettier": "^8.6.0",
"@playwright/test": "^1.31.2",
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/kit": "^1.11.0",
"@sveltejs/package": "^2.0.2",
"@typescript-eslint/eslint-plugin": "^5.54.1",
"@typescript-eslint/parser": "^5.54.1",
"eslint": "^8.35.0",
"eslint-config-prettier": "^8.7.0",
"eslint-plugin-svelte3": "^4.0.0",
"husky": "^8.0.3",
"lint-staged": "^13.1.0",
"prettier": "^2.8.3",
"lint-staged": "^13.1.2",
"prettier": "^2.8.4",
"prettier-plugin-svelte": "^2.9.0",
"svelte": "^3.55.1",
"svelte-check": "^3.0.2",
"tslib": "^2.4.1",
"typescript": "^4.9.4",
"vite": "^4.0.4"
"publint": "^0.1.10",
"svelte": "^3.56.0",
"svelte-check": "^3.1.0",
"tslib": "^2.5.0",
"typescript": "^4.9.5",
"vite": "^4.1.4"
},

@@ -49,7 +62,35 @@ "peerDependencies": {

"./package.json": "./package.json",
"./JsonLd.svelte": "./JsonLd.svelte",
"./MetaTags.svelte": "./MetaTags.svelte",
".": "./index.js"
"./JsonLd.svelte": {
"types": "./dist/JsonLd.svelte.d.ts",
"svelte": "./dist/JsonLd.svelte",
"default": "./dist/JsonLd.svelte"
},
"./MetaTags.svelte": {
"types": "./dist/MetaTags.svelte.d.ts",
"svelte": "./dist/MetaTags.svelte",
"default": "./dist/MetaTags.svelte"
},
".": {
"types": "./dist/index.d.ts",
"svelte": "./dist/index.js",
"default": "./dist/index.js"
}
},
"svelte": "./index.js"
}
"files": [
"dist"
],
"svelte": "./dist/index.js",
"typesVersions": {
">4.0": {
"JsonLd.svelte": [
"./dist/JsonLd.svelte.d.ts"
],
"MetaTags.svelte": [
"./dist/MetaTags.svelte.d.ts"
],
"index": [
"./dist/index.d.ts"
]
}
}
}

@@ -577,3 +577,3 @@ <img src="./.github/logo.svg" alt="svelte-meta-tags" width="512" />

It is also possible to use multiple `<JsonLd />` components in a single page.
Tips: If you want to handle multiple JSON-LDs on one page, pass an array to the `schema`.

@@ -788,2 +788,64 @@ ### Using `schema-dts`

### JSON-LD Multiple Examples
```svelte
<script>
import { JsonLd } from 'svelte-meta-tags';
</script>
<JsonLd
schema={[
{
'@type': 'BreadcrumbList',
itemListElement: [
{
'@type': 'ListItem',
position: 1,
name: 'Books',
item: 'https://example.com/books'
},
{
'@type': 'ListItem',
position: 2,
name: 'Science Fiction',
item: 'https://example.com/books/sciencefiction'
},
{
'@type': 'ListItem',
position: 3,
name: 'Award Winners'
}
]
},
{
'@type': 'NewsArticle',
mainEntityOfPage: {
'@type': 'WebPage',
'@id': 'https://google.com/article'
},
headline: 'Article headline',
image: [
'https://example.com/photos/1x1/photo.jpg',
'https://example.com/photos/4x3/photo.jpg',
'https://example.com/photos/16x9/photo.jpg'
],
datePublished: '2015-02-05T08:00:00+08:00',
dateModified: '2015-02-05T09:20:00+08:00',
author: {
'@type': 'Person',
name: 'John Doe'
},
publisher: {
'@type': 'Organization',
name: 'Google',
logo: {
'@type': 'ImageObject',
url: 'https://google.com/logo.jpg'
}
}
}
]}
/>
```
## Types

@@ -819,3 +881,3 @@

output?: 'head' | 'body';
schema?: Thing | WithContext<Thing>;
schema?: Thing | WithContext<Thing> | Thing[] | WithContext<Thing>[];
}

@@ -822,0 +884,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc