json-truncate
Advanced tools
Comparing version 2.0.0 to 3.0.0
@@ -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 @@ }) |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
13604
5
0
114