document-write-html
Advanced tools
Comparing version 0.1.2 to 1.1.3
@@ -62,2 +62,5 @@ //var log = require('./logger.js'); | ||
var resourceUrlHandler = function (url) { | ||
if (!url || typeof url !== 'string'){ | ||
return; | ||
} | ||
if (REG_EXP_ABS_URL.test(url) !== true) { | ||
@@ -112,2 +115,5 @@ url = urlLib.resolve(base, url); | ||
function replaceHandler(url, entry) { | ||
if (!url || typeof url !== 'string'){ | ||
return; | ||
} | ||
var newUrl = resourceUrlHandler(url); | ||
@@ -178,2 +184,5 @@ if (url !== newUrl) { | ||
function replaceHandler(url) { | ||
if (!url || typeof url !== 'string'){ | ||
return; | ||
} | ||
var newUrl = resourceUrlHandler(url); | ||
@@ -180,0 +189,0 @@ if (url !== newUrl) { |
{ | ||
"name": "document-write-html", | ||
"version": "0.1.2", | ||
"version": "1.1.3", | ||
"description": "Convert a index.html page into document.writes. Why? Because most ad delivery systems do this - so nice to emulate *bad behaviour* for testing.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
19855
337
0