node-iframe
Advanced tools
Comparing version 1.4.8 to 1.4.9
@@ -67,16 +67,12 @@ "use strict"; | ||
if (src === void 0) { src = ""; } | ||
var hosted = src && src[0] === "/"; | ||
if (hosted) { | ||
if (src && src[0] === "/") { | ||
try { | ||
void (function grabData() { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var pathUrl, res, source; | ||
var res, source; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
pathUrl = "" + url + (hosted ? "" : "/") + src; | ||
return [4, isomorphic_unfetch_1["default"](pathUrl, { | ||
uri: pathUrl, | ||
headers: config_1.headers | ||
})]; | ||
case 0: return [4, isomorphic_unfetch_1["default"](url + "/" + src, { | ||
headers: config_1.headers | ||
})]; | ||
case 1: | ||
@@ -83,0 +79,0 @@ res = _a.sent(); |
{ | ||
"name": "node-iframe", | ||
"version": "1.4.8", | ||
"version": "1.4.9", | ||
"description": "create a iframe on your server to bypass CORS issues. ( reverse engineer security issues )", | ||
@@ -5,0 +5,0 @@ "main": "dist/iframe.js", |
Sorry, the diff of this file is not supported yet
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
40414
622