@unhead/addons 1.0.7 → 1.0.9

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
@@ -9,4 +9,4 @@ npm install @unhead/addons
9
9
 
10
10
  ## Documentation
11
11
 
12
- See the [unhead](https://unhead.harlanzw.com/) for more details.
12
+ See the [Unhead](https://unhead.harlanzw.com/) for more details.
@@ -31,7 +31,7 @@ const TreeshakeServerComposables = unplugin.createUnplugin((userConfig = {}) =>
31
31
  return false;
32
32
  },
33
33
  async transform(code, id) {
34
- if (!code.includes("useServerHead") && !code.includes("useSeoMeta"))
34
+ if (!code.includes("useServerHead") && !code.includes("useSeoMeta") && !code.includes("useSchemaOrg"))
35
35
  return null;
36
36
  let transformed;
37
37
  try {
@@ -40,7 +40,8 @@ const TreeshakeServerComposables = unplugin.createUnplugin((userConfig = {}) =>
40
40
  transformer: [
41
41
  RemoveFunctions([
42
42
  "useServerHead",
43
- "useSeoMeta"
43
+ "useSeoMeta",
44
+ "useSchemaOrg"
44
45
  ])
45
46
  ]
46
47
  });
@@ -29,7 +29,7 @@ const TreeshakeServerComposables = createUnplugin((userConfig = {}) => {
29
29
  return false;
30
30
  },
31
31
  async transform(code, id) {
32
- if (!code.includes("useServerHead") && !code.includes("useSeoMeta"))
32
+ if (!code.includes("useServerHead") && !code.includes("useSeoMeta") && !code.includes("useSchemaOrg"))
33
33
  return null;
34
34
  let transformed;
35
35
  try {
@@ -38,7 +38,8 @@ const TreeshakeServerComposables = createUnplugin((userConfig = {}) => {
38
38
  transformer: [
39
39
  RemoveFunctions([
40
40
  "useServerHead",
41
- "useSeoMeta"
41
+ "useSeoMeta",
42
+ "useSchemaOrg"
42
43
  ])
43
44
  ]
44
45
  });
package/dist/vite.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const TreeshakeServerComposables = require('./shared/addons.24a86171.cjs');
3
+ const TreeshakeServerComposables = require('./shared/addons.b02ddeeb.cjs');
4
4
  require('unplugin');
5
5
  require('@rollup/pluginutils');
6
6
  require('unplugin-ast');
package/dist/vite.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { T as TreeshakeServerComposables } from './shared/addons.2b909dbf.mjs';
1
+ import { T as TreeshakeServerComposables } from './shared/addons.d2b16a33.mjs';
2
2
  import 'unplugin';
3
3
  import '@rollup/pluginutils';
4
4
  import 'unplugin-ast';
package/dist/webpack.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const TreeshakeServerComposables = require('./shared/addons.24a86171.cjs');
3
+ const TreeshakeServerComposables = require('./shared/addons.b02ddeeb.cjs');
4
4
  require('unplugin');
5
5
  require('@rollup/pluginutils');
6
6
  require('unplugin-ast');
package/dist/webpack.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { T as TreeshakeServerComposables } from './shared/addons.2b909dbf.mjs';
1
+ import { T as TreeshakeServerComposables } from './shared/addons.d2b16a33.mjs';
2
2
  import 'unplugin';
3
3
  import '@rollup/pluginutils';
4
4
  import 'unplugin-ast';
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@unhead/addons",
3
3
  "type": "module",
4
- "version": "1.0.7",
5
- "packageManager": "pnpm@7.18.0",
4
+ "version": "1.0.9",
5
+ "packageManager": "pnpm@7.18.1",
6
6
  "author": "Harlan Wilton <harlan@harlanzw.com>",
7
7
  "license": "MIT",
8
8
  "funding": "https://github.com/sponsors/harlan-zw",
@@ -53,8 +53,8 @@
53
53
  "@rollup/pluginutils": "^5.0.2",
54
54
  "unplugin": "^1.0.0",
55
55
  "unplugin-ast": "^0.5.8",
56
- "@unhead/schema": "1.0.7",
57
- "unhead": "1.0.7"
56
+ "@unhead/schema": "1.0.9",
57
+ "unhead": "1.0.9"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@babel/types": "^7.20.5",