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 2.0.0 to 2.1.0

10

jsesc.js

@@ -78,4 +78,4 @@ 'use strict';

oldIndent = indent;
++options.__indentLevel__;
indent = options.indent.repeat(options.__indentLevel__)
++options.indentLevel;
indent = options.indent.repeat(options.indentLevel)
};

@@ -94,3 +94,3 @@ // Handle options

'indent': '\t',
'__indentLevel__': 0,
'indentLevel': 0,
'__inline1__': false,

@@ -111,3 +111,3 @@ '__inline2__': false

const lowercaseHex = options.lowercaseHex;
let indent = options.indent.repeat(options.__indentLevel__);
let indent = options.indent.repeat(options.indentLevel);
let oldIndent = '';

@@ -300,4 +300,4 @@ const inline1 = options.__inline1__;

jsesc.version = '2.0.0';
jsesc.version = '2.1.0';
module.exports = jsesc;
{
"name": "jsesc",
"version": "2.0.0",
"version": "2.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",

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