Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

json-shaper

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-shaper - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

5

dist/index.js

@@ -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

2

package.json
{
"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>",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc