Comparing version 1.13.6 to 1.13.7
@@ -8,2 +8,8 @@ # Change Log | ||
## [1.13.6] - 2024-08-26 | ||
### Changed | ||
- `ContentStep` doesn't require a `SsgContextImpl` implementation anymore, just any `SsgContext` implementation. | ||
## [1.13.6] - 2024-08-25 | ||
@@ -10,0 +16,0 @@ |
import { SsgStep } from "../SsgStep.js"; | ||
import { ContentStepConfig } from "./ContentStepConfig.js"; | ||
import { OutputFunc } from "../../OutputFunc.js"; | ||
import { SsgContextImpl } from "../../SsgContextImpl"; | ||
import { SsgContext } from "../../SsgContext"; | ||
export type ContentStepResult = { | ||
@@ -11,3 +11,3 @@ contentCount: number; | ||
*/ | ||
export declare class ContentStep<C extends SsgContextImpl = SsgContextImpl> implements SsgStep<C, ContentStepResult> { | ||
export declare class ContentStep<C extends SsgContext = SsgContext> implements SsgStep<C, ContentStepResult> { | ||
protected contentsConfigs: ContentStepConfig<C>[]; | ||
@@ -14,0 +14,0 @@ protected write: OutputFunc; |
@@ -60,5 +60,3 @@ import fs from "fs"; | ||
async processFile(context, filePath, contentsConfig) { | ||
context._file = { | ||
name: filePath | ||
}; | ||
Object.assign(context, { _file: { name: filePath } }); | ||
context.file.lastModified = fs.statSync(context.file.name).mtime; | ||
@@ -105,3 +103,3 @@ const processFile = await this.shouldProcessFile(context, contentsConfig); | ||
if (!inputHasChanged) { | ||
console.debug(context.file.name, "is not older that current out file"); | ||
console.debug(context.file.name, "is not more recent than", outputPath); | ||
} | ||
@@ -108,0 +106,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"author": "Jérôme Beau <javarome@gmail.com> (https://javarome.com)", | ||
"version": "1.13.6", | ||
"version": "1.13.7", | ||
"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
139419
2147