@kth/cortina-block
Advanced tools
Comparing version 6.1.0 to 6.1.1
@@ -9,2 +9,4 @@ "use strict"; | ||
const formatImgSrc = (htmlString, baseUrl) => { | ||
if (htmlString.includes('<script')) | ||
return htmlString; | ||
const { window } = new jsdom_1.default.JSDOM(htmlString); | ||
@@ -11,0 +13,0 @@ const document = window.document; |
{ | ||
"name": "@kth/cortina-block", | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"description": "Node.js module for fetching Cortina blocks and optionally cache using Redis.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -26,12 +26,10 @@ # @kth/cortina-block | ||
'', | ||
cortinaMiddleware( | ||
{ | ||
blockApiUrl, | ||
siteName, | ||
localeText, | ||
resourceUrl, | ||
blocksConfig, | ||
}, | ||
redisConfig | ||
) | ||
cortinaMiddleware({ | ||
blockApiUrl, | ||
siteName, | ||
localeText, | ||
resourceUrl, | ||
blocksConfig, | ||
redisConfig, | ||
}) | ||
) | ||
@@ -38,0 +36,0 @@ ``` |
18903
324
81