unhead 1.1.31 → 1.1.33
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 +4 -5
package/dist/index.cjs
CHANGED
|
@@ -285,7 +285,7 @@ function processTemplateParams(s, p) {
|
|
|
285
285
|
tokens.forEach((token) => {
|
|
286
286
|
const re = sub(token.slice(1));
|
|
287
287
|
if (typeof re === "string") {
|
|
288
|
-
s = s.replace(new RegExp(`\\${token}(\\W|$)`, "g"), `${re}$
|
|
288
|
+
s = s.replace(new RegExp(`\\${token}(\\W|$)`, "g"), (_, args) => `${re}${args}`).trim();
|
|
289
289
|
}
|
|
290
290
|
});
|
|
291
291
|
const sep = p.separator;
|
package/dist/index.mjs
CHANGED
|
@@ -283,7 +283,7 @@ function processTemplateParams(s, p) {
|
|
|
283
283
|
tokens.forEach((token) => {
|
|
284
284
|
const re = sub(token.slice(1));
|
|
285
285
|
if (typeof re === "string") {
|
|
286
|
-
s = s.replace(new RegExp(`\\${token}(\\W|$)`, "g"), `${re}$
|
|
286
|
+
s = s.replace(new RegExp(`\\${token}(\\W|$)`, "g"), (_, args) => `${re}${args}`).trim();
|
|
287
287
|
}
|
|
288
288
|
});
|
|
289
289
|
const sep = p.separator;
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unhead",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.1.
|
|
5
|
-
"packageManager": "pnpm@8.6.7",
|
|
4
|
+
"version": "1.1.33",
|
|
6
5
|
"author": "Harlan Wilton <harlan@harlanzw.com>",
|
|
7
6
|
"license": "MIT",
|
|
8
7
|
"funding": "https://github.com/sponsors/harlan-zw",
|
|
@@ -31,9 +30,9 @@
|
|
|
31
30
|
],
|
|
32
31
|
"dependencies": {
|
|
33
32
|
"hookable": "^5.5.3",
|
|
34
|
-
"@unhead/dom": "1.1.
|
|
35
|
-
"@unhead/schema": "1.1.
|
|
36
|
-
"@unhead/shared": "1.1.
|
|
33
|
+
"@unhead/dom": "1.1.33",
|
|
34
|
+
"@unhead/schema": "1.1.33",
|
|
35
|
+
"@unhead/shared": "1.1.33"
|
|
37
36
|
},
|
|
38
37
|
"devDependencies": {
|
|
39
38
|
"packrup": "^0.1.0"
|