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.1 to 1.13.2

11

CHANGELOG.md

@@ -8,5 +8,12 @@ # Change Log

## [1.13.2] - 2024-07-31
### Changed
- `ContentStep.shouldProcess()` is now async.
## [1.13.1] - 2024-07-30
### Changed
- `DomReplaceCommand` is not abstract anymore.

@@ -17,2 +24,3 @@

### Changed
- `FileUtil.copy` now uses `Context` and `CopyStepConfig` parameters.

@@ -22,4 +30,5 @@ - `CopyStepConfig` now relies on `config.getOutputPath(context)` to devise output file path. This leverages `SsgConfig.toOutputPath()` and allows to copy each file to a different target.

### Removed
- `HtmlTagReplaceCommand` as the generic `DomReplaceCommand` with a tag selector is enough.
- `HtmlTagReplaceCommand` as the generic `DomReplaceCommand` with a tag selector is enough.
## [1.12.0] - 2024-07-15

@@ -26,0 +35,0 @@

2

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

@@ -49,3 +49,3 @@ import { SsgStep } from "../SsgStep.js";

*/
protected shouldProcess(context: C, contentsConfig: ContentStepConfig): boolean;
protected shouldProcess(context: C, contentsConfig: ContentStepConfig): Promise<boolean>;
}

@@ -61,3 +61,3 @@ import fs from "fs";

context.file = context.read(filePath);
const processed = this.shouldProcess(context, contentsConfig);
const processed = await this.shouldProcess(context, contentsConfig);
if (processed) {

@@ -87,3 +87,3 @@ context.debug("Processing", filePath);

*/
shouldProcess(context, contentsConfig) {
async shouldProcess(context, contentsConfig) {
let inputHasChanged;

@@ -90,0 +90,0 @@ const outputPath = contentsConfig.getOutputPath(context);

@@ -26,3 +26,3 @@ export class DomReplaceCommand {

}
} while (result != contents);
} while (result !== contents);
context.file.contents = result;

@@ -29,0 +29,0 @@ await this.postExecute(context);

@@ -5,3 +5,3 @@ {

"author": "Jérôme Beau <javarome@gmail.com> (https://javarome.com)",
"version": "1.13.1",
"version": "1.13.2",
"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