unhead 1.1.26 → 1.1.27
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -277,7 +277,7 @@ function processTemplateParams(s, config) {
|
|
|
277
277
|
tokens.forEach((token) => {
|
|
278
278
|
const re = sub(token.slice(1));
|
|
279
279
|
if (typeof re === "string") {
|
|
280
|
-
s = s.
|
|
280
|
+
s = s.replace(new RegExp(`\\${token}(\\W|$)`, "g"), `${re}$1`).trim();
|
|
281
281
|
}
|
|
282
282
|
});
|
|
283
283
|
if (config.separator) {
|
package/dist/index.mjs
CHANGED
|
@@ -275,7 +275,7 @@ function processTemplateParams(s, config) {
|
|
|
275
275
|
tokens.forEach((token) => {
|
|
276
276
|
const re = sub(token.slice(1));
|
|
277
277
|
if (typeof re === "string") {
|
|
278
|
-
s = s.
|
|
278
|
+
s = s.replace(new RegExp(`\\${token}(\\W|$)`, "g"), `${re}$1`).trim();
|
|
279
279
|
}
|
|
280
280
|
});
|
|
281
281
|
if (config.separator) {
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unhead",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.1.
|
|
5
|
-
"packageManager": "pnpm@
|
|
4
|
+
"version": "1.1.27",
|
|
5
|
+
"packageManager": "pnpm@8.5.0",
|
|
6
6
|
"author": "Harlan Wilton <harlan@harlanzw.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"funding": "https://github.com/sponsors/harlan-zw",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"hookable": "^5.5.3",
|
|
34
|
-
"@unhead/dom": "1.1.
|
|
35
|
-
"@unhead/schema": "1.1.
|
|
36
|
-
"@unhead/shared": "1.1.
|
|
34
|
+
"@unhead/dom": "1.1.27",
|
|
35
|
+
"@unhead/schema": "1.1.27",
|
|
36
|
+
"@unhead/shared": "1.1.27"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"packrup": "^0.1.0"
|