arrangekeys
Advanced tools
Comparing version 3.0.0 to 3.0.1-next.1576639251.16de29aac5682c39f71e31fbe4a6026f1ef128e6
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
export default function arrangekeys(subject, keys, sort) { | ||
export default function arrangeKeys(subject, keys, sort) { | ||
// Prepare | ||
@@ -11,0 +11,0 @@ const result = {}; |
@@ -10,3 +10,3 @@ "use strict"; | ||
*/ | ||
function arrangekeys(subject, keys, sort) { | ||
function arrangeKeys(subject, keys, sort) { | ||
// Prepare | ||
@@ -37,2 +37,2 @@ const result = {}; | ||
} | ||
exports.default = arrangekeys; | ||
exports.default = arrangeKeys; |
# History | ||
## v3.0.1 2019 December 18 | ||
- Fixed `README.md` example (regression since v3.0.0) | ||
## v3.0.0 2019 December 18 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"title": "Arrange Keys", | ||
"name": "arrangekeys", | ||
"version": "3.0.0", | ||
"version": "3.0.1-next.1576639251.16de29aac5682c39f71e31fbe4a6026f1ef128e6", | ||
"description": "Returns a copy of a JavaScript object with the keys arranged in a specified order. Useful for formatting JSON files.", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/bevry/arrangekeys", |
@@ -38,8 +38,8 @@ <!-- TITLE/ --> | ||
```javascript | ||
import arrangeKeys from 'arrangekeys' | ||
```javascript | ||
// Arrange the keys of the input so that keys "b" and "c" are first | ||
console.log( | ||
require('arrangekeys')( | ||
arrangeKeys( | ||
{ | ||
@@ -62,3 +62,3 @@ z: 1, | ||
console.log( | ||
require('arrangekeys')( | ||
arrangeKeys( | ||
{ | ||
@@ -82,3 +82,3 @@ z: 1, | ||
console.log( | ||
require('arrangekeys')({ | ||
arrangeKeys({ | ||
z: 1, | ||
@@ -114,3 +114,3 @@ a: 2, | ||
<script type="module"> | ||
import pkg from '//cdn.pika.dev/arrangekeys/^3.0.0' | ||
import pkg from '//cdn.pika.dev/arrangekeys/^3.0.1' | ||
</script> | ||
@@ -123,3 +123,3 @@ ``` | ||
<script type="module"> | ||
import pkg from '//unpkg.com/arrangekeys@^3.0.0' | ||
import pkg from '//unpkg.com/arrangekeys@^3.0.1' | ||
</script> | ||
@@ -132,3 +132,3 @@ ``` | ||
<script type="module"> | ||
import pkg from '//dev.jspm.io/arrangekeys@3.0.0' | ||
import pkg from '//dev.jspm.io/arrangekeys@3.0.1' | ||
</script> | ||
@@ -135,0 +135,0 @@ ``` |
@@ -11,3 +11,3 @@ /** An indexable object */ | ||
*/ | ||
export default function arrangekeys<T extends IndexedObject>( | ||
export default function arrangeKeys<T extends IndexedObject>( | ||
subject: T, | ||
@@ -14,0 +14,0 @@ keys?: string[] | string | false, |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
25303
1