Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ssg-api

Package Overview
Dependencies
Maintainers
0
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssg-api - npm Package Compare versions

Comparing version 1.13.6 to 1.13.7

6

CHANGELOG.md

@@ -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 @@

4

dist/src/step/content/ContentStep.d.ts
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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc