ghtml 3.0.10 → 3.0.12

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/index.js +1 -1
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Replace your template engine with fast JavaScript by leveraging the power of tagged templates.",
4
4
  "author": "Gürgün Dayıoğlu",
5
5
  "license": "MIT",
6
- "version": "3.0.10",
6
+ "version": "3.0.12",
7
7
  "type": "module",
8
8
  "bin": "./bin/src/index.js",
9
9
  "main": "./src/index.js",
@@ -27,7 +27,7 @@
27
27
  "devDependencies": {
28
28
  "@fastify/pre-commit": "^2.1.0",
29
29
  "c8": "^10.1.2",
30
- "grules": "^0.25.5",
30
+ "grules": "^0.25.10",
31
31
  "tinybench": "^2.9.0",
32
32
  "typescript": ">=5.6.2"
33
33
  },
package/src/index.js CHANGED
@@ -58,7 +58,7 @@ export const html = (literals, ...expressions) => {
58
58
  let literal = literals.raw[i];
59
59
  let string = Array.isArray(expressions[i])
60
60
  ? expressions[i].join("")
61
- : String(expressions[i] ?? "");
61
+ : `${expressions[i] ?? ""}`;
62
62
 
63
63
  if (literal && literal.charCodeAt(literal.length - 1) === 33) {
64
64
  literal = literal.slice(0, -1);