New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

document-write-html

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

document-write-html - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

9

lib/index.js

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

2

package.json
{
"name": "document-write-html",
"version": "0.1.2",
"version": "0.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",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc