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

json-truncate

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-truncate - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

.github/workflows/main.yml

2

json-truncate.js

@@ -34,3 +34,3 @@ 'use strict'

const newArr = []
obj.map(value => {
obj.forEach(value => {
if (isFlat(value)) {

@@ -37,0 +37,0 @@ newArr.push(value)

{
"name": "json-truncate",
"version": "2.0.0",
"version": "3.0.0",
"description": "A way to truncate a json object.",
"main": "json-truncate.js",
"scripts": {
"precommit": "npm run lint && npm run coverage",
"commit": "git-cz",
"lint": "standard",
"coverage": "nyc npm t && npm run coverage-report",
"coverage-report": "nyc report --reporter=lcov",
"test": "mocha",
"prebuild": "rimraf dist",
"doc": "jsdoc json-truncate.js -d docs",
"predoc": "rimraf docs",
"travis": "npm run precommit"
"predoc": "rimraf docs"
},

@@ -50,9 +44,6 @@ "engines": {

"chai": "^4.0.2",
"commitizen": "^4.0.0",
"cz-conventional-changelog": "^3.0.0",
"jsdoc": "^3.6.3",
"mocha": "^5.0.0",
"nyc": "^14.1.0",
"mocha": "^8.3.2",
"rimraf": "^3.0.0",
"standard": "^13.0.1"
"standard": "^16.0.3"
},

@@ -59,0 +50,0 @@ "config": {

@@ -8,4 +8,3 @@ # json-truncate

[![npm](https://img.shields.io/npm/v/json-truncate.svg?maxAge=0&style=flat)](https://www.npmjs.com/package/json-truncate)
[![Travis](https://travis-ci.org/mrsteele/json-truncate.svg?branch=master)](https://travis-ci.org/mrsteele/json-truncate)
[![codecov](https://codecov.io/gh/mrsteele/json-truncate/branch/master/graph/badge.svg)](https://codecov.io/gh/mrsteele/json-truncate)
[![Main](https://github.com/mrsteele/json-truncate/actions/workflows/main.yml/badge.svg)](https://github.com/mrsteele/json-truncate/actions/workflows/main.yml)
[![Dependency Status](https://david-dm.org/mrsteele/json-truncate.svg)](#)

@@ -12,0 +11,0 @@ [![devDependency Status](https://david-dm.org/mrsteele/json-truncate/dev-status.svg)](https://david-dm.org/mrsteele/json-truncate#info=devDependencies)

@@ -63,3 +63,3 @@ /* global describe, it */

it('should return flat objects', () => {
;[5, true, false, 'hello'].map(val => {
;[5, true, false, 'hello'].forEach(val => {
src(val, 5).should.equal(val)

@@ -66,0 +66,0 @@ })

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