Socket
Socket
Sign inDemoInstall

node-iframe

Package Overview
Dependencies
26
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.4 to 1.4.5

3

dist/config/config.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc