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

arrangekeys

Package Overview
Dependencies
Maintainers
2
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arrangekeys - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1-next.1576639251.16de29aac5682c39f71e31fbe4a6026f1ef128e6

2

edition-browsers/index.js

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

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