node-iframe
Advanced tools
Comparing version 1.4.4 to 1.4.5
@@ -8,4 +8,3 @@ "use strict"; | ||
var defaultInlineConfig = { | ||
script: false, | ||
link: false | ||
script: false | ||
}; | ||
@@ -12,0 +11,0 @@ exports.defaultInlineConfig = defaultInlineConfig; |
@@ -107,14 +107,2 @@ "use strict"; | ||
} | ||
var getInlineAttribute = function (key) { | ||
var attribute; | ||
switch (key) { | ||
case "link": | ||
attribute = "href"; | ||
break; | ||
default: | ||
attribute = "src"; | ||
break; | ||
} | ||
return attribute; | ||
}; | ||
function renderHtml(_a, server) { | ||
@@ -169,3 +157,3 @@ var url = _a.url, baseHref = _a.baseHref, config = _a.config; | ||
if (inline[key]) { | ||
var attribute_1 = getInlineAttribute(key); | ||
var attribute_1 = "src"; | ||
$html_1(key).attr(attribute_1, function (_, src) { | ||
@@ -172,0 +160,0 @@ return manipulateSource({ key: key, attribute: attribute_1 }, src, url, $html_1); |
{ | ||
"name": "node-iframe", | ||
"version": "1.4.4", | ||
"version": "1.4.5", | ||
"description": "create a iframe on your server to bypass CORS issues. ( reverse engineer security issues )", | ||
@@ -5,0 +5,0 @@ "main": "dist/iframe.js", |
declare const url: string; | ||
declare const defaultInlineConfig: { | ||
script: boolean; | ||
link: boolean; | ||
}; | ||
@@ -16,3 +15,2 @@ declare const defaultCorsConfig: { | ||
script: boolean; | ||
link: boolean; | ||
}; | ||
@@ -19,0 +17,0 @@ cors: { |
@@ -6,3 +6,2 @@ import { configureTemplates } from "@app/templates"; | ||
script?: boolean; | ||
link?: boolean; | ||
} | ||
@@ -23,3 +22,2 @@ interface CorsElementsConfig { | ||
script: boolean; | ||
link: boolean; | ||
}; | ||
@@ -26,0 +24,0 @@ cors: { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
41190
620