New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

blog-engine-sac

Package Overview
Dependencies
Maintainers
1
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blog-engine-sac - npm Package Compare versions

Comparing version 7.11.0 to 7.12.0

6

changelog.md
# changelog
## 7.12.0
* Receive webmention
* add commentsEnabled option to force comments on non-indexed pages
## 7.11.0

@@ -4,0 +10,0 @@

2

html/listOfPosts.js

@@ -24,3 +24,3 @@ export { htmlListFromPosts };

${post.author}
<time datetime=${post.creationDate.toJSON()}>${niceDateString(post.creationDate, lang)}</time>
<time datetime="${post.creationDate.toJSON()}">${niceDateString(post.creationDate, lang)}</time>
</p>

@@ -27,0 +27,0 @@ </a>`;

@@ -32,3 +32,3 @@ export {createPostHtml};

} else {
lastEdit = `<p class="meta">${translate(lang, `Last edit`)} <time datetime=${options.modifiedDate.toJSON()}>${niceDateString(options.modifiedDate, lang)}</time></p>`;
lastEdit = `<p class="meta">${translate(lang, `Last edit`)} <time datetime="${options.modifiedDate.toJSON()}">${niceDateString(options.modifiedDate, lang)}</time></p>`;
}

@@ -92,3 +92,3 @@

${author}
<time datetime=${options.creationDate.toJSON()}>${niceDateString(options.creationDate, lang)}</time>
<time datetime="${options.creationDate.toJSON()}">${niceDateString(options.creationDate, lang)}</time>
</p>${lastEdit}

@@ -126,4 +126,4 @@ </div>

const createCommentSection = (options) => {
const {commentSectionBaseUrl, base, commentsDisabled, commentsRulesUrl, indexed} = options;
if (!commentSectionBaseUrl || commentsDisabled || !indexed) {
const {commentSectionBaseUrl, base, commentsDisabled, commentsEnabled, commentsRulesUrl, indexed} = options;
if (!commentSectionBaseUrl || !commentsEnabled && (commentsDisabled || !indexed)) {
return Promise.resolve(``);

@@ -130,0 +130,0 @@ }

{
"name": "blog-engine-sac",
"version": "7.11.0",
"version": "7.13.0",
"description": "static site generator, that uses markdown files as input and outputs web pages",

@@ -5,0 +5,0 @@ "license": "CC0-1.0",

@@ -27,2 +27,3 @@ # [Blog-engine-sac](https://gitlab.com/GrosSacASac/blog-engine-z)

- Comment system
- Partial Webmention support
- Web hosting and domain setup, costs included

@@ -29,0 +30,0 @@ - Help to set up and/or help to migrate from other CMS

@@ -359,7 +359,10 @@ /* stats.birthtime, can be later than modified date

body: JSON.stringify({
targets: indexedPosts.filter(({commentsDisabled}) => {
return !commentsDisabled;
targets: posts.filter((post) => {
return !post.commentsDisabled && (post.indexed || post.commentsEnabled);
}).map((post) => {
// same as in post html .js
return postStartName(post);
return {
slug: postStartName(post),
url: `${commonOptions.url}${urls.posts}${postStartName(post)}${commonOptions.extensionLinks}`,
};
}),

@@ -373,3 +376,3 @@ password:commonOptions.commentsPassword,

}).then(response => {
if(!response.ok) {
if (!response.ok) {
throw response.statusText;

@@ -376,0 +379,0 @@ }

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