jsesc
Advanced tools
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", |
16833