Socket
Socket
Sign inDemoInstall

jsesc

Package Overview
Dependencies
0
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.1.0

9

jsesc.js

@@ -1,2 +0,2 @@

/*! https://mths.be/jsesc v1.0.0 by @mathias */
/*! https://mths.be/jsesc v1.1.0 by @mathias */
;(function(root) {

@@ -93,2 +93,3 @@

'escapeEverything': false,
'escapeEtago': false,
'quotes': 'single',

@@ -247,6 +248,10 @@ 'wrap': false,

}
if (options.escapeEtago) {
// https://mathiasbynens.be/notes/etago
return result.replace(/<\/(script|style)/gi, '<\\/$1');
}
return result;
};
jsesc.version = '1.0.0';
jsesc.version = '1.1.0';

@@ -253,0 +258,0 @@ /*--------------------------------------------------------------------------*/

{
"name": "jsesc",
"version": "1.0.0",
"version": "1.1.0",
"description": "A JavaScript library for escaping JavaScript strings while generating the shortest possible valid output.",

@@ -5,0 +5,0 @@ "homepage": "https://mths.be/jsesc",

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc