istanbul-lib-instrument
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -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) |
@@ -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>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39970
769