sort-keys-recursive
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -5,2 +5,9 @@ # Changelog | ||
### 2.1.2 (2021-10-12) | ||
### Bug Fixes | ||
* linter ([5c8a75f](https://github.com/kikobeats/sort-keys-recursive/commit/5c8a75ff5f7c5aa7cb39c9f092129ff5ee44997e)) | ||
### [2.1.1](https://github.com/kikobeats/sort-keys-recursive/compare/v2.1.0...v2.1.1) (2021-01-01) | ||
@@ -7,0 +14,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/Kikobeats/sort-keys-recursive", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"main": "./index.js", | ||
@@ -49,9 +49,9 @@ "author": { | ||
"conventional-github-releaser": "latest", | ||
"coveralls": "latest", | ||
"finepack": "latest", | ||
"git-authors-cli": "latest", | ||
"husky": "latest", | ||
"lint-staged": "latest", | ||
"npm-check-updates": "latest", | ||
"nyc": "latest", | ||
"prettier-standard": "latest", | ||
"simple-git-hooks": "latest", | ||
"standard": "latest", | ||
@@ -65,2 +65,3 @@ "standard-markdown": "latest", | ||
"files": [ | ||
"index.d.ts", | ||
"index.js" | ||
@@ -72,3 +73,3 @@ ], | ||
"lint": "standard-markdown && standard", | ||
"postrelease": "npm run release:tags && npm run release:github && ci-publish", | ||
"postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)", | ||
"prerelease": "npm run update:check && npm run contributors", | ||
@@ -79,3 +80,3 @@ "pretest": "npm run lint", | ||
"release:tags": "git push --follow-tags origin HEAD:master", | ||
"test": "nyc ava --verbose", | ||
"test": "nyc ava", | ||
"update": "ncu -u", | ||
@@ -99,4 +100,14 @@ "update:check": "ncu -- --error-level 2" | ||
"finepack" | ||
], | ||
"*.js,!*.min.js,": [ | ||
"prettier-standard" | ||
], | ||
"*.md": [ | ||
"standard-markdown" | ||
] | ||
}, | ||
"simple-git-hooks": { | ||
"commit-msg": "npx commitlint --edit", | ||
"pre-commit": "npx lint-staged" | ||
} | ||
} |
# sort-keys-recursive | ||
![Last version](https://img.shields.io/github/tag/Kikobeats/sort-keys-recursive.svg?style=flat-square) | ||
[![Build Status](https://img.shields.io/travis/Kikobeats/sort-keys-recursive/master.svg?style=flat-square)](https://travis-ci.org/Kikobeats/sort-keys-recursive) | ||
[![Coverage Status](https://img.shields.io/coveralls/Kikobeats/sort-keys-recursive.svg?style=flat-square)](https://coveralls.io/github/Kikobeats/sort-keys-recursive) | ||
[![Dependency status](https://img.shields.io/david/Kikobeats/sort-keys-recursive.svg?style=flat-square)](https://david-dm.org/Kikobeats/sort-keys-recursive) | ||
[![Dev Dependencies Status](https://img.shields.io/david/dev/Kikobeats/sort-keys-recursive.svg?style=flat-square)](https://david-dm.org/Kikobeats/sort-keys-recursive#info=devDependencies) | ||
[![NPM Status](https://img.shields.io/npm/dm/str-match.svg?style=flat-square)](https://www.npmjs.org/package/str-match) | ||
[![Donate](https://img.shields.io/badge/donate-paypal-blue.svg?style=flat-square)](https://paypal.me/Kikobeats) | ||
@@ -127,11 +123,11 @@ > Sort the keys of an object recursively. | ||
```js | ||
var reverseAlphabeticalSort = function (a, b) { | ||
const reverseAlphabeticalSort = function (a, b) { | ||
return a < b | ||
} | ||
var options = { | ||
const options = { | ||
compareFunction: reverseAlphabeticalSort | ||
} | ||
var object = { | ||
const object = { | ||
a: { | ||
@@ -146,3 +142,3 @@ a: 0, | ||
var output = sort(object, options) | ||
const output = sort(object, options) | ||
@@ -149,0 +145,0 @@ console.log(output) |
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
13830
6
52
159