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

@nzdjb/static-site-generator

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nzdjb/static-site-generator - npm Package Compare versions

Comparing version 0.4.2 to 0.5.0

dist/src/config.d.ts

7

CHANGELOG.md
# Changelog
## [0.5.0](https://github.com/nzdjb/static-site-generator/compare/v0.4.2...v0.5.0) (2023-04-30)
### Features
* Support single config file. ([4d4c1a9](https://github.com/nzdjb/static-site-generator/commit/4d4c1a9928d1e2ff4df34b5a3517047dc2a29f00))
## [0.4.2](https://github.com/nzdjb/static-site-generator/compare/v0.4.1...v0.4.2) (2023-04-18)

@@ -4,0 +11,0 @@

4

dist/src/article.js

@@ -10,3 +10,3 @@ "use strict";

const sanitizerSettings = {
allowedTags: sanitize_html_1.default.defaults.allowedTags.concat(['img']),
allowedTags: sanitize_html_1.default.defaults.allowedTags.concat(['img', 'h1']),
disallowedTagsMode: 'escape',

@@ -28,2 +28,2 @@ };

exports.Article = Article;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJ0aWNsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hcnRpY2xlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLG1DQUFnQztBQUNoQyxrRUFBeUM7QUFFekMsTUFBTSxpQkFBaUIsR0FBMEI7SUFDL0MsV0FBVyxFQUFFLHVCQUFZLENBQUMsUUFBUSxDQUFDLFdBQVcsQ0FBQyxNQUFNLENBQUMsQ0FBQyxLQUFLLENBQUMsQ0FBQztJQUM5RCxrQkFBa0IsRUFBRSxRQUFRO0NBQzdCLENBQUM7QUFlRixNQUFhLE9BQU87SUFPbEIsWUFBWSxLQUFvQjs7UUFDOUIsSUFBSSxDQUFDLEtBQ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J0aWNsZUNvbmZpZykge1xuICAgIHRoaXMudGl0bGUgPSBpbnB1dC50aXRsZTtcbiAgICB0aGlzLmF1dGhvciA9IGlucHV0LmF1dGhvcjtcbiAgICB0aGlzLmRhdGUgPSBpbnB1dC5kYXRlLnRvSVNPU3RyaW5nKCkuc3BsaXQoJ1QnKVswXTtcbiAgICB0aGlzLmNvbnRlbnQgPSBzYW5pdGl6ZUhUTUwobWFya2VkLnBhcnNlKGlucHV0LmNvbnRlbnQpLCBzYW5pdGl6ZXJTZXR0aW5ncyk7XG4gICAgdGhpcy5wdWJsaXNoZWQgPSBpbnB1dC5wdWJsaXNoZWQgPz8gdHJ1ZTtcbiAgfVxuXG4gIGNvbXBhcmVEYXRlKG90aGVyOiBBcnRpY2xlKTogbnVtYmVyIHtcbiAgICByZXR1cm4gdGhpcy5kYXRlID09PSBvdGhlci5kYXRlID8gMCA6IHRoaXMuZGF0ZSA+IG90aGVyLmRhdGUgPyAxIDogLTE7XG4gIH1cbn1cbiJdfQ==
#!/usr/bin/env node
import { Article } from './article';
export declare function getArticles(articlesDir: string): Article[];
import { type Article } from './article';
export declare function renderIndex(template: string, articles: Article[]): string;
//# sourceMappingURL=index.d.ts.map
#!/usr/bin/env node
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -31,14 +8,7 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

Object.defineProperty(exports, "__esModule", { value: true });
exports.renderIndex = exports.getArticles = void 0;
const article_1 = require("./article");
exports.renderIndex = void 0;
const handlebars_1 = __importDefault(require("handlebars"));
const fs_1 = require("fs");
const toml_1 = __importDefault(require("@iarna/toml"));
const path = __importStar(require("path"));
const ts_command_line_args_1 = require("ts-command-line-args");
function getArticles(articlesDir) {
const config = (0, fs_1.readdirSync)(articlesDir).map(file => path.join(articlesDir, file)).map(file => (0, fs_1.readFileSync)(file).toString()).join('\n');
return toml_1.default.parse(config).articles.map(article => new article_1.Article(article));
}
exports.getArticles = getArticles;
const config_1 = require("./config");
function renderIndex(template, articles) {

@@ -53,3 +23,3 @@ articles = articles.filter((a) => a.published);

const args = (0, ts_command_line_args_1.parse)({
articlesDir: { type: String, optional: true, description: 'Path to directory containing articles. Default: articles' },
config: { type: String, optional: true, description: 'Path to config file or directory of config files. Default: articles' },
indexTemplate: { type: String, optional: true, description: 'Path to index template file. Default: templates/index.hb.html' },

@@ -61,5 +31,5 @@ outFile: { type: String, optional: true, description: 'Path to file to write output. Default: STDOUT' },

});
const articles = getArticles((_a = args.articlesDir) !== null && _a !== void 0 ? _a : 'articles');
const config = new config_1.Config((_a = args.config) !== null && _a !== void 0 ? _a : 'articles');
const template = (0, fs_1.readFileSync)((_b = args.indexTemplate) !== null && _b !== void 0 ? _b : 'templates/index.hb.html').toString();
const index = renderIndex(template, articles);
const index = renderIndex(template, config.articles);
if (args.outFile !== undefined) {

@@ -72,2 +42,2 @@ (0, fs_1.writeFileSync)(args.outFile, index);

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5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yZ3MuY29uZmlnID8/ICdhcnRpY2xlcycpO1xuICBjb25zdCB0ZW1wbGF0ZSA9IHJlYWRGaWxlU3luYyhhcmdzLmluZGV4VGVtcGxhdGUgPz8gJ3RlbXBsYXRlcy9pbmRleC5oYi5odG1sJykudG9TdHJpbmcoKTtcbiAgY29uc3QgaW5kZXggPSByZW5kZXJJbmRleCh0ZW1wbGF0ZSwgY29uZmlnLmFydGljbGVzKTtcbiAgaWYgKGFyZ3Mub3V0RmlsZSAhPT0gdW5kZWZpbmVkKSB7XG4gICAgd3JpdGVGaWxlU3luYyhhcmdzLm91dEZpbGUsIGluZGV4KTtcbiAgfSBlbHNlIHtcbiAgICBjb25zb2xlLmxvZyhpbmRleCk7XG4gIH1cbn1cbiJdfQ==
{
"name": "@nzdjb/static-site-generator",
"version": "0.4.2",
"version": "0.5.0",
"description": "Static site generator.",

@@ -15,2 +15,3 @@ "main": "dist/src/index.js",

"devDependencies": {
"@types/glob": "^8.1.0",
"@types/jest": "^29.2.4",

@@ -30,2 +31,3 @@ "@types/marked": "^4.0.8",

"eslint-plugin-promise": "^6.0.0",
"glob": "^10.2.2",
"jest": "^29.3.1",

@@ -32,0 +34,0 @@ "prettier": "^2.8.7",

Sorry, the diff of this file is not supported yet

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