Comparing version 1.4.4 to 1.4.5
@@ -8,2 +8,8 @@ # Change Log | ||
## [1.4.5] - 2023-04-23 | ||
### Fixed | ||
- Create files from context sets outputfile | ||
## [1.4.4] - 2023-04-23 | ||
@@ -10,0 +16,0 @@ |
@@ -44,3 +44,3 @@ import { SsgFile } from "./util"; | ||
read(fileName: string): void; | ||
readOrNew(fileName: string, outDir: string): SsgFile; | ||
readOrNew(fileName: string, outDir: string): void; | ||
} |
@@ -102,4 +102,5 @@ import { SsgFile } from "./util"; | ||
const encoding = (_a = this._outputFile) === null || _a === void 0 ? void 0 : _a.encoding; | ||
let outFile; | ||
try { | ||
return this.readFile(filePath); | ||
outFile = this.readFile(filePath); | ||
} | ||
@@ -111,6 +112,6 @@ catch (e) { | ||
const fileInfo = new SsgFile(filePath, encoding || "utf-8", "", new Date(), lang); | ||
return HtmlSsgFile.create(fileInfo, ""); | ||
outFile = HtmlSsgFile.create(fileInfo, ""); | ||
} | ||
else { | ||
return new SsgFile(filePath, "utf8", "", new Date(), lang); | ||
outFile = new SsgFile(filePath, "utf8", "", new Date(), lang); | ||
} | ||
@@ -122,2 +123,3 @@ } | ||
} | ||
this.outputFile = outFile; | ||
} | ||
@@ -124,0 +126,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"author": "Jérôme Beau", | ||
"version": "1.4.4", | ||
"version": "1.4.5", | ||
"description": "Static Site Generation TypeScript API", | ||
@@ -8,0 +8,0 @@ "exports": "./dist/src/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
88981
1897