Socket
Socket
Sign inDemoInstall

ssg-api

Package Overview
Dependencies
Maintainers
0
Versions
76
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.5 to 1.13.6

10

CHANGELOG.md

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

2

dist/src/step/content/ContentStep.d.ts

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

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