contentful-hugo
Advanced tools
Comparing version 1.9.4 to 1.9.5
@@ -135,3 +135,3 @@ "use strict"; | ||
setTimeout(function () { | ||
resolve(); | ||
resolve(null); | ||
}, waitTime); | ||
@@ -138,0 +138,0 @@ })]; |
@@ -93,3 +93,7 @@ "use strict"; | ||
var _a = mapAsset(node.data.target), title = _a.title, description = _a.description, url = _a.url, fileName = _a.fileName, assetType = _a.assetType, size = _a.size, width = _a.width, height = _a.height; | ||
return "{{< contentful-hugo/embedded-asset title=\"" + title + "\" description=\"" + (description || | ||
var handleQuotes = function (string) { | ||
var regex = new RegExp(/"/, 'g'); | ||
return string.replace(regex, '\\"'); | ||
}; | ||
return "{{< contentful-hugo/embedded-asset title=\"" + handleQuotes(title) + "\" description=\"" + (handleQuotes(description || '') || | ||
'') + "\" url=\"" + (url || '') + "\" filename=\"" + (fileName || | ||
@@ -96,0 +100,0 @@ '') + "\" assetType=\"" + (assetType || '') + "\" size=\"" + (size || |
{ | ||
"name": "contentful-hugo", | ||
"version": "1.9.4", | ||
"version": "1.9.5", | ||
"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.", | ||
@@ -42,5 +42,5 @@ "main": "./dist/main/index.js", | ||
"@contentful/rich-text-plain-text-renderer": "^13.4.0", | ||
"@contentful/rich-text-types": "^14.1.0", | ||
"@contentful/rich-text-types": "^14.1.2", | ||
"@types/mkdirp": "^1.0.1", | ||
"contentful": "^7.14.7", | ||
"contentful": "^7.14.14", | ||
"dotenv": "^7.0.0", | ||
@@ -60,10 +60,10 @@ "js-yaml": "^3.14.0", | ||
"devDependencies": { | ||
"@babel/cli": "^7.11.6", | ||
"@types/jest": "^26.0.14", | ||
"@babel/cli": "^7.12.7", | ||
"@types/jest": "^26.0.15", | ||
"@types/js-yaml": "^3.12.5", | ||
"@typescript-eslint/eslint-plugin": "^4.4.0", | ||
"@typescript-eslint/parser": "^4.4.0", | ||
"@typescript-eslint/eslint-plugin": "^4.8.1", | ||
"@typescript-eslint/parser": "^4.8.1", | ||
"babel-plugin-module-resolver": "^4.0.0", | ||
"eslint": "^6.8.0", | ||
"eslint-config-prettier": "^6.12.0", | ||
"eslint-config-prettier": "^6.15.0", | ||
"eslint-config-standard": "^14.1.1", | ||
@@ -73,11 +73,11 @@ "eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-promise": "^4.2.1", | ||
"eslint-plugin-standard": "^4.0.1", | ||
"jest": "^26.5.3", | ||
"eslint-plugin-standard": "^4.1.0", | ||
"jest": "^26.6.3", | ||
"ncp": "^2.0.0", | ||
"prettier": "^1.19.1", | ||
"ts-jest": "^26.4.1", | ||
"ts-loader": "^8.0.4", | ||
"ts-jest": "^26.4.4", | ||
"ts-loader": "^8.0.11", | ||
"tscpaths": "0.0.9", | ||
"typescript": "^4.0.3" | ||
"typescript": "^4.1.2" | ||
} | ||
} |
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
107467
1719
Updatedcontentful@^7.14.14