@unhead/addons 1.2.2 → 1.3.0-beta.0

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.
@@ -3,7 +3,7 @@ import { createUnplugin } from 'unplugin';
3
3
  import { transform } from 'unplugin-ast';
4
4
  import { parseURL, parseQuery } from 'ufo';
5
5
  import { createContext, runInContext } from 'node:vm';
6
- import { resolveMetaKeyType, resolveMetaKeyValue, resolvePackedMetaObjectValue } from 'unhead';
6
+ import { resolveMetaKeyType, resolveMetaKeyValue, resolvePackedMetaObjectValue } from '@unhead/shared';
7
7
  import MagicString from 'magic-string';
8
8
  import { findStaticImports, parseStaticImport } from 'mlly';
9
9
 
@@ -5,7 +5,7 @@ const unplugin = require('unplugin');
5
5
  const unpluginAst = require('unplugin-ast');
6
6
  const ufo = require('ufo');
7
7
  const node_vm = require('node:vm');
8
- const unhead = require('unhead');
8
+ const shared = require('@unhead/shared');
9
9
  const MagicString = require('magic-string');
10
10
  const mlly = require('mlly');
11
11
 
@@ -403,8 +403,8 @@ const UseSeoMetaTransform = unplugin.createUnplugin((options = {}) => {
403
403
  if (output === false)
404
404
  return;
405
405
  const propertyKey = property.key;
406
- const key = unhead.resolveMetaKeyType(propertyKey.name);
407
- const keyValue = unhead.resolveMetaKeyValue(propertyKey.name);
406
+ const key = shared.resolveMetaKeyType(propertyKey.name);
407
+ const keyValue = shared.resolveMetaKeyValue(propertyKey.name);
408
408
  const valueKey = key === "charset" ? "charset" : "content";
409
409
  let value = code.substring(property.value.start, property.value.end);
410
410
  if (property.value.type === "ArrayExpression") {
@@ -417,7 +417,7 @@ const UseSeoMetaTransform = unplugin.createUnplugin((options = {}) => {
417
417
  return;
418
418
  }
419
419
  const context = node_vm.createContext({
420
- resolvePackedMetaObjectValue: unhead.resolvePackedMetaObjectValue
420
+ resolvePackedMetaObjectValue: shared.resolvePackedMetaObjectValue
421
421
  });
422
422
  const start = property.value.start;
423
423
  const end = property.value.end;
package/dist/vite.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- const UseSeoMetaTransform = require('./shared/addons.c51a1c8e.cjs');
3
+ const UseSeoMetaTransform = require('./shared/addons.d1bf12c1.cjs');
4
4
  require('node:url');
5
5
  require('unplugin');
6
6
  require('unplugin-ast');
7
7
  require('ufo');
8
8
  require('node:vm');
9
- require('unhead');
9
+ require('@unhead/shared');
10
10
  require('magic-string');
11
11
  require('mlly');
12
12
 
package/dist/vite.mjs CHANGED
@@ -1,10 +1,10 @@
1
- import { T as TreeshakeServerComposables, U as UseSeoMetaTransform } from './shared/addons.cebbe2f5.mjs';
1
+ import { T as TreeshakeServerComposables, U as UseSeoMetaTransform } from './shared/addons.0f9d90dc.mjs';
2
2
  import 'node:url';
3
3
  import 'unplugin';
4
4
  import 'unplugin-ast';
5
5
  import 'ufo';
6
6
  import 'node:vm';
7
- import 'unhead';
7
+ import '@unhead/shared';
8
8
  import 'magic-string';
9
9
  import 'mlly';
10
10
 
package/dist/webpack.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- const UseSeoMetaTransform = require('./shared/addons.c51a1c8e.cjs');
3
+ const UseSeoMetaTransform = require('./shared/addons.d1bf12c1.cjs');
4
4
  require('node:url');
5
5
  require('unplugin');
6
6
  require('unplugin-ast');
7
7
  require('ufo');
8
8
  require('node:vm');
9
- require('unhead');
9
+ require('@unhead/shared');
10
10
  require('magic-string');
11
11
  require('mlly');
12
12
 
package/dist/webpack.mjs CHANGED
@@ -1,10 +1,10 @@
1
- import { T as TreeshakeServerComposables, U as UseSeoMetaTransform } from './shared/addons.cebbe2f5.mjs';
1
+ import { T as TreeshakeServerComposables, U as UseSeoMetaTransform } from './shared/addons.0f9d90dc.mjs';
2
2
  import 'node:url';
3
3
  import 'unplugin';
4
4
  import 'unplugin-ast';
5
5
  import 'ufo';
6
6
  import 'node:vm';
7
- import 'unhead';
7
+ import '@unhead/shared';
8
8
  import 'magic-string';
9
9
  import 'mlly';
10
10
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unhead/addons",
3
3
  "type": "module",
4
- "version": "1.2.2",
4
+ "version": "1.3.0-beta.0",
5
5
  "author": "Harlan Wilton <harlan@harlanzw.com>",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",
@@ -49,18 +49,17 @@
49
49
  "dist"
50
50
  ],
51
51
  "dependencies": {
52
- "@rollup/pluginutils": "^5.0.2",
52
+ "@rollup/pluginutils": "^5.0.3",
53
53
  "magic-string": "^0.30.2",
54
54
  "mlly": "^1.4.0",
55
55
  "ufo": "^1.2.0",
56
56
  "unplugin": "^1.4.0",
57
57
  "unplugin-ast": "^0.8.2",
58
- "@unhead/schema": "1.2.2",
59
- "@unhead/shared": "1.2.2",
60
- "unhead": "1.2.2"
58
+ "@unhead/schema": "1.3.0-beta.0",
59
+ "@unhead/shared": "1.3.0-beta.0"
61
60
  },
62
61
  "devDependencies": {
63
- "@babel/types": "^7.22.5",
62
+ "@babel/types": "^7.22.10",
64
63
  "estree-walker": "^3.0.3"
65
64
  },
66
65
  "scripts": {