Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/gurgunday/ghtml into perf
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Apr 4, 2024
2 parents c9747ac + cab68c5 commit a6774c6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Replace your template engine with fast JavaScript by leveraging the power of tagged templates.",
"author": "Gürgün Dayıoğlu",
"license": "MIT",
"version": "1.0.1",
"version": "1.1.0",
"type": "module",
"main": "./src/index.js",
"exports": {
Expand Down
1 change: 0 additions & 1 deletion src/includeFile.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { readFileSync } from "node:fs";

const readFileSyncOptions = { encoding: "utf8" };

const fileCache = new Map();

/**
Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const conditionFalse = false;
const emptyString = "";

test("renders empty input", () => {
assert.strictEqual(html({ raw: [] }), "");
assert.strictEqual(html({ raw: [""] }), "");
});

test("renders empty input", () => {
Expand Down

0 comments on commit a6774c6

Please # to comment.