svelte-meta-tags 2.5.1 → 2.5.4

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/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ~~[2.5.3](https://github.com/oekazuma/svelte-meta-tags/compare/v2.5.2...v2.5.3) (2022-05-06)~~
2
+
3
+ - escaping content in script tags ([25bf038](https://github.com/oekazuma/svelte-meta-tags/commit/25bf038a485697249ecc9633166599b0652f3550))
4
+
5
+ ~~[2.5.2](https://github.com/oekazuma/svelte-meta-tags/compare/v2.5.1...v2.5.2) (2022-05-06)~~
6
+
7
+ - version bump for package
8
+
1
9
  ## [2.5.1](https://github.com/oekazuma/svelte-meta-tags/compare/v2.5.0...v2.5.1) (2022-03-22)
2
10
 
3
11
  ### Bug Fixes
package/JsonLd.svelte CHANGED
@@ -1,18 +1,17 @@
1
1
  <script>
2
2
  export let output = 'head';
3
3
  export let schema = undefined;
4
+
5
+ const jsonSchema = (schema) =>
6
+ JSON.stringify({ '@context': 'https://schema.org', ...schema }, null, 2);
4
7
  </script>
5
8
 
6
9
  <svelte:head>
7
10
  {#if schema && output === 'head'}
8
- {@html `<script type="application/ld+json">${
9
- JSON.stringify({ '@context': 'https://schema.org', ...schema }) + '<'
10
- }/script>`}
11
+ {@html `${'<scri' + 'pt type="application/ld+json">'}${jsonSchema(schema)}${'</scri' + 'pt>'}`}
11
12
  {/if}
12
13
  </svelte:head>
13
14
 
14
15
  {#if schema && output === 'body'}
15
- {@html `<script type="application/ld+json">${
16
- JSON.stringify({ '@context': 'https://schema.org', ...schema }) + '<'
17
- }/script>`}
16
+ {@html `${'<scri' + 'pt type="application/ld+json">'}${jsonSchema(schema)}${'</scri' + 'pt>'}`}
18
17
  {/if}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-meta-tags",
3
- "version": "2.5.1",
3
+ "version": "2.5.4",
4
4
  "description": "Svelte Meta Tags is a plugin that makes managing your SEO easier in Svelte projects.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -21,71 +21,34 @@
21
21
  "schema-dts": "1.1.0"
22
22
  },
23
23
  "devDependencies": {
24
- "@commitlint/cli": "16.2.3",
25
- "@commitlint/config-conventional": "16.2.1",
24
+ "@commitlint/cli": "16.2.4",
25
+ "@commitlint/config-conventional": "16.2.4",
26
26
  "@semantic-release/changelog": "6.0.1",
27
27
  "@semantic-release/git": "10.0.1",
28
- "@sveltejs/adapter-auto": "1.0.0-next.33",
29
- "@sveltejs/kit": "1.0.0-next.301",
30
- "@typescript-eslint/eslint-plugin": "5.16.0",
31
- "@typescript-eslint/parser": "5.16.0",
32
- "cypress": "9.5.2",
33
- "eslint": "8.11.0",
28
+ "@sveltejs/adapter-auto": "1.0.0-next.40",
29
+ "@sveltejs/kit": "1.0.0-next.326",
30
+ "@typescript-eslint/eslint-plugin": "5.22.0",
31
+ "@typescript-eslint/parser": "5.22.0",
32
+ "cypress": "9.6.0",
33
+ "eslint": "8.14.0",
34
34
  "eslint-config-prettier": "8.5.0",
35
35
  "eslint-plugin-cypress": "2.12.1",
36
- "eslint-plugin-svelte3": "3.4.1",
36
+ "eslint-plugin-svelte3": "4.0.0",
37
37
  "husky": "7.0.4",
38
- "lint-staged": "12.3.7",
39
- "prettier": "2.6.0",
40
- "prettier-plugin-svelte": "2.6.0",
38
+ "lint-staged": "12.4.1",
39
+ "prettier": "2.6.2",
40
+ "prettier-plugin-svelte": "2.7.0",
41
41
  "semantic-release": "19.0.2",
42
- "svelte": "3.46.4",
43
- "svelte-check": "2.4.6",
44
- "svelte-preprocess": "4.10.4",
45
- "svelte2tsx": "0.5.6",
46
- "tslib": "2.3.1",
47
- "typescript": "4.6.2"
42
+ "svelte": "3.48.0",
43
+ "svelte-check": "2.7.0",
44
+ "svelte-preprocess": "4.10.6",
45
+ "svelte2tsx": "0.5.9",
46
+ "tslib": "2.4.0",
47
+ "typescript": "4.6.4"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "svelte": "^3.39.0"
51
51
  },
52
- "lint-staged": {
53
- "*.{js,ts,cjs,svelte,md,html,css,json,yml,yaml}": "pnpm format",
54
- "*.{js,ts,svelte}": [
55
- "pnpm lint",
56
- "pnpm check"
57
- ]
58
- },
59
- "commitlint": {
60
- "extends": [
61
- "@commitlint/config-conventional"
62
- ],
63
- "rules": {
64
- "body-max-line-length": [
65
- 2,
66
- "always",
67
- 200
68
- ]
69
- }
70
- },
71
- "release": {
72
- "plugins": [
73
- "@semantic-release/commit-analyzer",
74
- "@semantic-release/release-notes-generator",
75
- "@semantic-release/changelog",
76
- [
77
- "@semantic-release/npm",
78
- {
79
- "pkgRoot": "package"
80
- }
81
- ],
82
- "@semantic-release/github",
83
- "@semantic-release/git"
84
- ],
85
- "branches": [
86
- "main"
87
- ]
88
- },
89
52
  "exports": {
90
53
  "./package.json": "./package.json",
91
54
  "./JsonLd.svelte": "./JsonLd.svelte",
@@ -93,4 +56,4 @@
93
56
  ".": "./index.js"
94
57
  },
95
58
  "svelte": "./index.js"
96
- }
59
+ }