Socket
Socket
Sign inDemoInstall

istanbul-lib-instrument

Package Overview
Dependencies
6
Maintainers
2
Versions
75
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.2 to 1.1.3

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Change Log

<a name="1.1.3"></a>
## [1.1.3](https://github.com/istanbuljs/istanbul-lib-instrument/compare/v1.1.2...v1.1.3) (2016-09-13)
### Performance Improvements
* simplify coverage variable naming https://github.com/istanbuljs/istanbul-lib-instrument/pull/24 ([7252aae](https://github.com/istanbuljs/istanbul-lib-instrument/commit/7252aae))
<a name="1.1.2"></a>

@@ -7,0 +17,0 @@ ## [1.1.2](https://github.com/istanbuljs/istanbul-lib-instrument/compare/v1.1.1...v1.1.2) (2016-09-08)

8

dist/visitor.js

@@ -30,9 +30,5 @@ 'use strict';

function genVar(filename) {
var hash = (0, _crypto.createHash)(SHA),
suffix;
var hash = (0, _crypto.createHash)(SHA);
hash.update(filename);
suffix = hash.digest('base64');
//trim trailing equal signs, turn identifier unsafe chars to safe ones + => _ and / => $
suffix = suffix.replace(new RegExp('=', 'g'), '').replace(new RegExp('\\+', 'g'), '_').replace(new RegExp('/', 'g'), '$');
return '__cov_' + suffix;
return 'cov_' + parseInt(hash.digest('hex').substr(0, 12), 16).toString(36);
}

@@ -39,0 +35,0 @@

{
"name": "istanbul-lib-instrument",
"version": "1.1.2",
"version": "1.1.3",
"description": "Core istanbul API for JS code coverage",

@@ -5,0 +5,0 @@ "author": "Krishnan Anantheswaran <kananthmail-github@yahoo.com>",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc