Comparing version 1.13.5 to 1.13.6
@@ -8,8 +8,14 @@ # Change Log | ||
## [1.13.4] - 2024-08-25 | ||
## [1.13.6] - 2024-08-25 | ||
### Changed | ||
- `ContentStep.shouldProcess()` is split between `shouldProcessFile()` and `shouldProcessContent()` to avoid loading file contents when not required | ||
- Fix `shouldProcessFile()` | ||
## [1.13.5] - 2024-08-25 | ||
### Changed | ||
- `ContentStep.shouldProcess()` is split between `shouldProcessFile()` and `shouldProcessContent()` to avoid loading file contents when not required | ||
## [1.13.4] - 2024-08-25 | ||
@@ -16,0 +22,0 @@ |
@@ -50,3 +50,3 @@ import { SsgStep } from "../SsgStep.js"; | ||
protected shouldProcessFile(context: C, contentsConfig: ContentStepConfig): Promise<boolean>; | ||
protected shouldProcessContent(context: C, contentsConfig: ContentStepConfig): Promise<boolean>; | ||
protected shouldProcessContent(_context: C, _contentsConfig: ContentStepConfig): Promise<boolean>; | ||
} |
@@ -63,4 +63,4 @@ import fs from "fs"; | ||
}; | ||
context.file.lastModified = fs.statSync(context.file.name).mtime; | ||
const processFile = await this.shouldProcessFile(context, contentsConfig); | ||
context.file.lastModified = fs.statSync(context.file.name).mtime; | ||
if (processFile) { | ||
@@ -113,5 +113,5 @@ context.file = context.read(filePath); | ||
} | ||
async shouldProcessContent(context, contentsConfig) { | ||
async shouldProcessContent(_context, _contentsConfig) { | ||
return true; | ||
} | ||
} |
@@ -5,3 +5,3 @@ { | ||
"author": "Jérôme Beau <javarome@gmail.com> (https://javarome.com)", | ||
"version": "1.13.5", | ||
"version": "1.13.6", | ||
"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
139282