contentful-hugo
Advanced tools
Comparing version 1.17.1 to 1.17.2
@@ -84,10 +84,9 @@ "use strict"; | ||
var loadYamlConfigFile = function (filePath) { return __awaiter(void 0, void 0, void 0, function () { | ||
var configObject, _a, _b; | ||
return __generator(this, function (_c) { | ||
switch (_c.label) { | ||
case 0: | ||
_b = (_a = js_yaml_1.default).load; | ||
return [4 /*yield*/, fs_extra_1.readFile(filePath).toString()]; | ||
var file, configObject; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, fs_extra_1.readFile(filePath)]; | ||
case 1: | ||
configObject = _b.apply(_a, [_c.sent()]); | ||
file = _a.sent(); | ||
configObject = js_yaml_1.default.load(file.toString()); | ||
if (configObject && typeof configObject === 'object') { | ||
@@ -94,0 +93,0 @@ configObject = checkContentfulSettings(configObject); |
{ | ||
"name": "contentful-hugo", | ||
"version": "1.17.1", | ||
"version": "1.17.2", | ||
"description": "Node module that pulls data from Contentful and turns it into markdown files for Hugo. Can be used with other Static Site Generators, but has some Hugo specific features.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/main/index.js", |
# Contentful Hugo | ||
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/281eacf31e864217953437f66b7e3a72)](https://www.codacy.com/app/joshmossas/contentful-hugo?utm_source=github.com&utm_medium=referral&utm_content=ModiiMedia/contentful-hugo&utm_campaign=Badge_Grade) | ||
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/c24aacec450c44c1a81ac78d234838b0)](https://www.codacy.com/gh/ModiiMedia/contentful-hugo/dashboard?utm_source=github.com&utm_medium=referral&utm_content=ModiiMedia/contentful-hugo&utm_campaign=Badge_Grade) | ||
@@ -5,0 +5,0 @@ This is a simple Node.js CLI tool that pulls data from Contentful CMS and turns it into Markdown or YAML files for use with a static site generator. It can be used with any static site generator that uses Markdown with YAML frontmatter, but it has some features that are specific to [Hugo](https://gohugo.io). It also includes a simple Express server that can can recieve webhooks from Contentful to retrigger get and delete commands (useful when running a preview environment). |
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
213747
3472