mathiasbynens / jsesc

Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.
https://mths.be/jsesc
MIT License
716 stars 53 forks source link

Discrepancy between published version and Github version #35

Closed cerebrl closed 7 years ago

cerebrl commented 7 years ago

Hello Mathias, thanks for this great tool! I did find a discrepancy between what is currently published on NPM and what's on Github. When I install the latest from NPM, which seems to be 2.2.0 (verified on the module's package.json), I get the 2.1.0 version of jsesc.js (it's both missing the change to isScriptContext and also has the version of 2.1.0 as the value for jsesc.version).

Am I missing something, or was there just a mixup? Thanks in advance for any help.

mathiasbynens commented 7 years ago

The isScriptContext change was made after v2.2.0.

I hadn’t published a new version containing this change, though, so I’ve fixed that now: v2.3.0 Thanks for the reminder!