json-shaper
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -41,3 +41,6 @@ 'use strict'; | ||
if (isFunction(current)) { | ||
functionCode += '"' + propertyName + '": ' + current + '(data), '; | ||
// remove istanbul coverage code | ||
var cleanFunctionCode = current.toString().replace(/cov_\w+\.\w.*?[,;]/g, ' '); | ||
functionCode += '"' + propertyName + '": ' + cleanFunctionCode + '(data), '; | ||
} | ||
@@ -44,0 +47,0 @@ // if it's an object |
@@ -41,3 +41,6 @@ | ||
if (isFunction(current)) { | ||
functionCode += '"' + propertyName + '": ' + current + '(data), ' | ||
// remove istanbul coverage code | ||
const cleanFunctionCode = current.toString().replace(/cov_\w+\.\w.*?[,;]/g, ' ') | ||
functionCode += '"' + propertyName + '": ' + cleanFunctionCode + '(data), ' | ||
} | ||
@@ -44,0 +47,0 @@ // if it's an object |
{ | ||
"name": "json-shaper", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Shape a flat array into a molded json shape with deep nesting", | ||
@@ -5,0 +5,0 @@ "author": "Chris Kalmar <christian.kalmar@gmail.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
128779
418