unhead 1.8.17 → 1.8.18
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 +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -653,11 +653,11 @@ function useScript(_input, _options) {
|
|
|
653
653
|
head.hooks.hook("dom:renderTag", resolveInnerHtmlLoad);
|
|
654
654
|
const instance = new Proxy({}, {
|
|
655
655
|
get(_, fn) {
|
|
656
|
-
if (fn === "$script")
|
|
657
|
-
return script;
|
|
658
656
|
const stub = options.stub?.({ script, fn });
|
|
659
657
|
if (stub)
|
|
660
658
|
return stub;
|
|
659
|
+
if (fn === "$script")
|
|
660
|
+
return script;
|
|
661
661
|
return (...args) => {
|
|
662
662
|
const hookCtx2 = { script, fn, args };
|
|
663
663
|
head.hooks.callHook("script:instance-fn", hookCtx2);
|
package/dist/index.mjs
CHANGED
|
@@ -652,11 +652,11 @@ function useScript(_input, _options) {
|
|
|
652
652
|
head.hooks.hook("dom:renderTag", resolveInnerHtmlLoad);
|
|
653
653
|
const instance = new Proxy({}, {
|
|
654
654
|
get(_, fn) {
|
|
655
|
-
if (fn === "$script")
|
|
656
|
-
return script;
|
|
657
655
|
const stub = options.stub?.({ script, fn });
|
|
658
656
|
if (stub)
|
|
659
657
|
return stub;
|
|
658
|
+
if (fn === "$script")
|
|
659
|
+
return script;
|
|
660
660
|
return (...args) => {
|
|
661
661
|
const hookCtx2 = { script, fn, args };
|
|
662
662
|
head.hooks.callHook("script:instance-fn", hookCtx2);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unhead",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.8.
|
|
4
|
+
"version": "1.8.18",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Harlan Wilton",
|
|
7
7
|
"email": "harlan@harlanzw.com",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"hookable": "^5.5.3",
|
|
37
|
-
"@unhead/
|
|
38
|
-
"@unhead/
|
|
39
|
-
"@unhead/shared": "1.8.
|
|
37
|
+
"@unhead/schema": "1.8.18",
|
|
38
|
+
"@unhead/dom": "1.8.18",
|
|
39
|
+
"@unhead/shared": "1.8.18"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "unbuild .",
|