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.2.0 to 0.2.1

2

lib/escape.js
/* jshint quotmark:false*/
module.exports = function escape(str) {
return str.toString()
return str && str.toString()
.replace(/\\n|\n/g, '\\n')

@@ -5,0 +5,0 @@ .replace(/\\'|'/g, "\\'")

@@ -23,4 +23,6 @@ var escape = require('./escape.js');

}
// __MANGLE__ hack ;P
output.push(escape(str).replace(/__MANGLE__/mig, '\'+\''));
if (str){
// __MANGLE__ hack ;P
output.push(escape(str).replace(/__MANGLE__/mig, '\'+\''));
}
if (wrapInTag){

@@ -30,3 +32,2 @@ output.push('</'+wrapInTag+'>');

output.push('\');');
return output.join('');

@@ -33,0 +34,0 @@ }

{
"name": "document-write-html",
"version": "0.2.0",
"version": "0.2.1",
"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