@nzdjb/static-site-generator
Advanced tools
Comparing version 0.5.0 to 0.5.1
# Changelog | ||
## [0.5.1](https://github.com/nzdjb/static-site-generator/compare/v0.5.0...v0.5.1) (2023-06-10) | ||
### Bug Fixes | ||
* Disable deprecated marked features. ([0b7e707](https://github.com/nzdjb/static-site-generator/commit/0b7e707cf8868f196fc2345c28939ada2ae27df8)) | ||
* Move glob to dependencies. ([cdd51d1](https://github.com/nzdjb/static-site-generator/commit/cdd51d11d069a7c5f609f10d5fddd003badd3cb0)) | ||
## [0.5.0](https://github.com/nzdjb/static-site-generator/compare/v0.4.2...v0.5.0) (2023-04-30) | ||
@@ -4,0 +12,0 @@ |
@@ -19,3 +19,6 @@ "use strict"; | ||
this.date = input.date.toISOString().split('T')[0]; | ||
this.content = (0, sanitize_html_1.default)(marked_1.marked.parse(input.content), sanitizerSettings); | ||
this.content = (0, sanitize_html_1.default)(marked_1.marked.parse(input.content, { | ||
mangle: false, | ||
headerIds: false, | ||
}), sanitizerSettings); | ||
this.published = (_a = input.published) !== null && _a !== void 0 ? _a : true; | ||
@@ -28,2 +31,2 @@ } | ||
exports.Article = Article; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJ0aWNsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hcnRpY2xlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLG1DQUFnQztBQUNoQyxrRUFBeUM7QUFFekMsTUFBTSxpQkFBaUIsR0FBMEI7SUFDL0MsV0FBVyxFQUFFLHVCQUFZLENBQUMsUUFBUSxDQUFDLFdBQVcsQ0FBQyxNQUFNLENBQUMsQ0FBQyxLQUFLLEVBQUUsSUFBSSxDQUFDLENBQUM7SUFDcEUsa0JBQWtCLEVBQUUsUUFBUTtDQUM3QixDQUFDO0FBZUYsTUFBYSxPQUFPO0lBT2xCLFlBQVksS0FBb0I7O1FBQ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ZG9ubHkgZGF0ZTogc3RyaW5nO1xuICByZWFkb25seSBwdWJsaXNoZWQ6IGJvb2xlYW47XG5cbiAgY29uc3RydWN0b3IoaW5wdXQ6IEFydGljbGVDb25maWcpIHtcbiAgICB0aGlzLnRpdGxlID0gaW5wdXQudGl0bGU7XG4gICAgdGhpcy5hdXRob3IgPSBpbnB1dC5hdXRob3I7XG4gICAgdGhpcy5kYXRlID0gaW5wdXQuZGF0ZS50b0lTT1N0cmluZygpLnNwbGl0KCdUJylbMF07XG4gICAgdGhpcy5jb250ZW50ID0gc2FuaXRpemVIVE1MKFxuICAgICAgbWFya2VkLnBhcnNlKFxuICAgICAgICBpbnB1dC5jb250ZW50LFxuICAgICAgICB7XG4gICAgICAgICAgbWFuZ2xlOiBmYWxzZSxcbiAgICAgICAgICBoZWFkZXJJZHM6IGZhbHNlLFxuICAgICAgICB9XG4gICAgICApLFxuICAgICAgc2FuaXRpemVyU2V0dGluZ3NcbiAgICApO1xuICAgIHRoaXMucHVibGlzaGVkID0gaW5wdXQucHVibGlzaGVkID8/IHRydWU7XG4gIH1cblxuICBjb21wYXJlRGF0ZShvdGhlcjogQXJ0aWNsZSk6IG51bWJlciB7XG4gICAgcmV0dXJuIHRoaXMuZGF0ZSA9PT0gb3RoZXIuZGF0ZSA/IDAgOiB0aGlzLmRhdGUgPiBvdGhlci5kYXRlID8gMSA6IC0xO1xuICB9XG59XG4iXX0= |
{ | ||
"name": "@nzdjb/static-site-generator", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Static site generator.", | ||
@@ -17,4 +17,4 @@ "main": "dist/src/index.js", | ||
"@types/jest": "^29.2.4", | ||
"@types/marked": "^4.0.8", | ||
"@types/node": "^18.11.10", | ||
"@types/marked": "^5.0.0", | ||
"@types/node": "^20.1.0", | ||
"@types/sanitize-html": "^2.9.0", | ||
@@ -26,3 +26,3 @@ "@typescript-eslint/eslint-plugin": "^5.43.0", | ||
"eslint-config-prettier": "^8.8.0", | ||
"eslint-config-standard-with-typescript": "^34.0.1", | ||
"eslint-config-standard-with-typescript": "^35.0.0", | ||
"eslint-plugin-import": "^2.25.2", | ||
@@ -32,3 +32,2 @@ "eslint-plugin-n": "^15.0.0", | ||
"eslint-plugin-promise": "^6.0.0", | ||
"glob": "^10.2.2", | ||
"jest": "^29.3.1", | ||
@@ -43,4 +42,5 @@ "prettier": "^2.8.7", | ||
"@iarna/toml": "^2.2.5", | ||
"glob": "^10.2.7", | ||
"handlebars": "^4.7.7", | ||
"marked": "^4.3.0", | ||
"marked": "^5.0.0", | ||
"sanitize-html": "^2.10.0", | ||
@@ -47,0 +47,0 @@ "ts-command-line-args": "^2.4.2" |
@@ -9,3 +9,3 @@ # static-website-generator | ||
* The articles directory should contain toml files similar to the following: | ||
* The config directory should contain toml files similar to the following: | ||
```toml | ||
@@ -26,5 +26,5 @@ [[articles]] | ||
```bash | ||
static-site-generator --articlesDir <path-to-articles> --indexTemplate <path-to-template-file> --outFile <path-to-output-file> | ||
static-site-generator --config <path-to-config> --indexTemplate <path-to-template-file> --outFile <path-to-output-file> | ||
``` | ||
This command is highly subject to change! |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21883
18
142
6
+ Addedglob@^10.2.7
+ Added@isaacs/cliui@8.0.2(transitive)
+ Added@pkgjs/parseargs@0.11.0(transitive)
+ Addedansi-regex@5.0.16.1.0(transitive)
+ Addedansi-styles@6.2.1(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedcross-spawn@7.0.6(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addedemoji-regex@8.0.09.2.2(transitive)
+ Addedforeground-child@3.3.0(transitive)
+ Addedglob@10.4.5(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjackspeak@3.4.3(transitive)
+ Addedlru-cache@10.4.3(transitive)
+ Addedmarked@5.1.2(transitive)
+ Addedminimatch@9.0.5(transitive)
+ Addedminipass@7.1.2(transitive)
+ Addedpackage-json-from-dist@1.0.1(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedpath-scurry@1.11.1(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedsignal-exit@4.1.0(transitive)
+ Addedstring-width@4.2.35.1.2(transitive)
+ Addedstrip-ansi@6.0.17.1.0(transitive)
+ Addedwhich@2.0.2(transitive)
+ Addedwrap-ansi@7.0.08.1.0(transitive)
- Removedmarked@4.3.0(transitive)
Updatedmarked@^5.0.0