@unhead/addons 1.10.3 → 1.11.0-beta.1

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/index.cjs CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  const shared = require('@unhead/shared');
4
4
 
5
+ const DefaultCriticalTags = {
6
+ htmlAttrs: {
7
+ lang: "en"
8
+ },
9
+ meta: [
10
+ { charset: "utf-8" },
11
+ { name: "viewport", content: "width=device-width, initial-scale=1" }
12
+ ]
13
+ };
14
+
5
15
  // @__NO_SIDE_EFFECTS__
6
16
  function InferSeoMetaPlugin(options = {}) {
7
17
  return shared.defineHeadPlugin({
@@ -67,15 +77,5 @@ function InferSeoMetaPlugin(options = {}) {
67
77
  });
68
78
  }
69
79
 
70
- const DefaultCriticalTags = {
71
- htmlAttrs: {
72
- lang: "en"
73
- },
74
- meta: [
75
- { charset: "utf-8" },
76
- { name: "viewport", content: "width=device-width, initial-scale=1" }
77
- ]
78
- };
79
-
80
80
  exports.DefaultCriticalTags = DefaultCriticalTags;
81
81
  exports.InferSeoMetaPlugin = InferSeoMetaPlugin;
package/dist/index.d.cts CHANGED
@@ -1,5 +1,20 @@
1
1
  import * as _unhead_schema from '@unhead/schema';
2
2
 
3
+ declare const DefaultCriticalTags: {
4
+ htmlAttrs: {
5
+ lang: string;
6
+ };
7
+ meta: ({
8
+ charset: string;
9
+ name?: undefined;
10
+ content?: undefined;
11
+ } | {
12
+ name: string;
13
+ content: string;
14
+ charset?: undefined;
15
+ })[];
16
+ };
17
+
3
18
  interface InferSeoMetaPluginOptions {
4
19
  /**
5
20
  * Transform the og title.
@@ -22,19 +37,4 @@ interface InferSeoMetaPluginOptions {
22
37
  }
23
38
  declare function InferSeoMetaPlugin(options?: InferSeoMetaPluginOptions): _unhead_schema.HeadPluginInput;
24
39
 
25
- declare const DefaultCriticalTags: {
26
- htmlAttrs: {
27
- lang: string;
28
- };
29
- meta: ({
30
- charset: string;
31
- name?: undefined;
32
- content?: undefined;
33
- } | {
34
- name: string;
35
- content: string;
36
- charset?: undefined;
37
- })[];
38
- };
39
-
40
40
  export { DefaultCriticalTags, InferSeoMetaPlugin, type InferSeoMetaPluginOptions };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,20 @@
1
1
  import * as _unhead_schema from '@unhead/schema';
2
2
 
3
+ declare const DefaultCriticalTags: {
4
+ htmlAttrs: {
5
+ lang: string;
6
+ };
7
+ meta: ({
8
+ charset: string;
9
+ name?: undefined;
10
+ content?: undefined;
11
+ } | {
12
+ name: string;
13
+ content: string;
14
+ charset?: undefined;
15
+ })[];
16
+ };
17
+
3
18
  interface InferSeoMetaPluginOptions {
4
19
  /**
5
20
  * Transform the og title.
@@ -22,19 +37,4 @@ interface InferSeoMetaPluginOptions {
22
37
  }
23
38
  declare function InferSeoMetaPlugin(options?: InferSeoMetaPluginOptions): _unhead_schema.HeadPluginInput;
24
39
 
25
- declare const DefaultCriticalTags: {
26
- htmlAttrs: {
27
- lang: string;
28
- };
29
- meta: ({
30
- charset: string;
31
- name?: undefined;
32
- content?: undefined;
33
- } | {
34
- name: string;
35
- content: string;
36
- charset?: undefined;
37
- })[];
38
- };
39
-
40
40
  export { DefaultCriticalTags, InferSeoMetaPlugin, type InferSeoMetaPluginOptions };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,20 @@
1
1
  import * as _unhead_schema from '@unhead/schema';
2
2
 
3
+ declare const DefaultCriticalTags: {
4
+ htmlAttrs: {
5
+ lang: string;
6
+ };
7
+ meta: ({
8
+ charset: string;
9
+ name?: undefined;
10
+ content?: undefined;
11
+ } | {
12
+ name: string;
13
+ content: string;
14
+ charset?: undefined;
15
+ })[];
16
+ };
17
+
3
18
  interface InferSeoMetaPluginOptions {
4
19
  /**
5
20
  * Transform the og title.
@@ -22,19 +37,4 @@ interface InferSeoMetaPluginOptions {
22
37
  }
23
38
  declare function InferSeoMetaPlugin(options?: InferSeoMetaPluginOptions): _unhead_schema.HeadPluginInput;
24
39
 
25
- declare const DefaultCriticalTags: {
26
- htmlAttrs: {
27
- lang: string;
28
- };
29
- meta: ({
30
- charset: string;
31
- name?: undefined;
32
- content?: undefined;
33
- } | {
34
- name: string;
35
- content: string;
36
- charset?: undefined;
37
- })[];
38
- };
39
-
40
40
  export { DefaultCriticalTags, InferSeoMetaPlugin, type InferSeoMetaPluginOptions };
package/dist/index.mjs CHANGED
@@ -1,5 +1,15 @@
1
1
  import { defineHeadPlugin, resolveTitleTemplate } from '@unhead/shared';
2
2
 
3
+ const DefaultCriticalTags = {
4
+ htmlAttrs: {
5
+ lang: "en"
6
+ },
7
+ meta: [
8
+ { charset: "utf-8" },
9
+ { name: "viewport", content: "width=device-width, initial-scale=1" }
10
+ ]
11
+ };
12
+
3
13
  // @__NO_SIDE_EFFECTS__
4
14
  function InferSeoMetaPlugin(options = {}) {
5
15
  return defineHeadPlugin({
@@ -65,14 +75,4 @@ function InferSeoMetaPlugin(options = {}) {
65
75
  });
66
76
  }
67
77
 
68
- const DefaultCriticalTags = {
69
- htmlAttrs: {
70
- lang: "en"
71
- },
72
- meta: [
73
- { charset: "utf-8" },
74
- { name: "viewport", content: "width=device-width, initial-scale=1" }
75
- ]
76
- };
77
-
78
78
  export { DefaultCriticalTags, InferSeoMetaPlugin };
package/dist/vite.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- const UseSeoMetaTransform = require('./shared/addons.bc63e434.cjs');
3
+ const UseSeoMetaTransform = require('./shared/addons.0b3283ae.cjs');
4
4
  require('node:url');
5
+ require('ufo');
5
6
  require('unplugin');
6
7
  require('unplugin-ast');
7
- require('ufo');
8
8
  require('node:vm');
9
9
  require('@unhead/shared');
10
10
  require('magic-string');
package/dist/vite.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import { T as TreeshakeServerComposables, U as UseSeoMetaTransform } from './shared/addons.cfb49c79.mjs';
1
+ import { T as TreeshakeServerComposables, U as UseSeoMetaTransform } from './shared/addons.cd2b345d.mjs';
2
2
  import 'node:url';
3
+ import 'ufo';
3
4
  import 'unplugin';
4
5
  import 'unplugin-ast';
5
- import 'ufo';
6
6
  import 'node:vm';
7
7
  import '@unhead/shared';
8
8
  import 'magic-string';
package/dist/webpack.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- const UseSeoMetaTransform = require('./shared/addons.bc63e434.cjs');
3
+ const UseSeoMetaTransform = require('./shared/addons.0b3283ae.cjs');
4
4
  require('node:url');
5
+ require('ufo');
5
6
  require('unplugin');
6
7
  require('unplugin-ast');
7
- require('ufo');
8
8
  require('node:vm');
9
9
  require('@unhead/shared');
10
10
  require('magic-string');
package/dist/webpack.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import { T as TreeshakeServerComposables, U as UseSeoMetaTransform } from './shared/addons.cfb49c79.mjs';
1
+ import { T as TreeshakeServerComposables, U as UseSeoMetaTransform } from './shared/addons.cd2b345d.mjs';
2
2
  import 'node:url';
3
+ import 'ufo';
3
4
  import 'unplugin';
4
5
  import 'unplugin-ast';
5
- import 'ufo';
6
6
  import 'node:vm';
7
7
  import '@unhead/shared';
8
8
  import 'magic-string';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unhead/addons",
3
3
  "type": "module",
4
- "version": "1.10.3",
4
+ "version": "1.11.0-beta.1",
5
5
  "author": "Harlan Wilton <harlan@harlanzw.com>",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",
@@ -53,10 +53,10 @@
53
53
  "magic-string": "^0.30.11",
54
54
  "mlly": "^1.7.1",
55
55
  "ufo": "^1.5.4",
56
- "unplugin": "^1.12.3",
56
+ "unplugin": "^1.13.1",
57
57
  "unplugin-ast": "^0.10.0",
58
- "@unhead/schema": "1.10.3",
59
- "@unhead/shared": "1.10.3"
58
+ "@unhead/schema": "1.11.0-beta.1",
59
+ "@unhead/shared": "1.11.0-beta.1"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@babel/types": "^7.25.6",
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  const node_url = require('node:url');
4
+ const ufo = require('ufo');
4
5
  const unplugin = require('unplugin');
5
6
  const unpluginAst = require('unplugin-ast');
6
- const ufo = require('ufo');
7
7
  const node_vm = require('node:vm');
8
8
  const shared = require('@unhead/shared');
9
9
  const MagicString = require('magic-string');
@@ -1,7 +1,7 @@
1
1
  import { pathToFileURL } from 'node:url';
2
+ import { parseURL, parseQuery } from 'ufo';
2
3
  import { createUnplugin } from 'unplugin';
3
4
  import { transform } from 'unplugin-ast';
4
- import { parseURL, parseQuery } from 'ufo';
5
5
  import { createContext, runInContext } from 'node:vm';
6
6
  import { resolveMetaKeyType, resolveMetaKeyValue, resolvePackedMetaObjectValue } from '@unhead/shared';
7
7
  import MagicString from 'magic-string';