Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

caveman

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

caveman - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

8

caveman.js

@@ -40,3 +40,3 @@ /**

var escapeHTML = function (str) {
return str ? (str + '').replace(/&/g, '&')
return exists(str) ? (str + '').replace(/&/g, '&')
.replace(/</g, '&lt;')

@@ -48,2 +48,6 @@ .replace(/>/g, '&gt;')

var exists = function (obj) {
return typeof obj !== 'undefined' && obj !== null;
};
var shrinkWrapTemplate = function (str) {

@@ -189,3 +193,3 @@ return str.replace(/^\s+/gm, '');

var forceStr = function (str) {
str = (typeof str === 'undefined' || str === null) ? '' : str;
str = exists(str) ? str : '';

@@ -192,0 +196,0 @@ if (options.escapeByDefault && str) {

@@ -7,3 +7,3 @@ {

},
"version": "0.1.5",
"version": "0.1.6",
"main": "caveman.js",

@@ -10,0 +10,0 @@ "scripts": {

@@ -527,3 +527,3 @@ &nbsp;

```html
&lt;script&gt;alert(&quot;HELLO XSS!&quot;);&lt;/script&gt; &amp; &#39;
&lt;script&gt;alert(&quot;HELLO!&quot;);&lt;/script&gt; &amp; &#39;
```

@@ -548,3 +548,3 @@

```html
<script>alert("HELLO XSS!");</script> & '
<script>alert("HELLO!");</script> & '
```

@@ -551,0 +551,0 @@

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc