Socket
Socket
Sign inDemoInstall

natural-orderby

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

natural-orderby - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

3

flow-typed/natural-orderby.js
type $npm$naturalOrderBy$CompareFn = (valueA: mixed, valueB: mixed) => number;
type $npm$naturalOrderBy$CaseSensitive = boolean;
type $npm$naturalOrderBy$OrderEnum = 'asc' | 'desc';

@@ -12,3 +10,2 @@

type $npm$naturalOrderBy$CompareOptions = {|
$npm$naturalOrderBy$CaseSensitive?: $npm$naturalOrderBy$CaseSensitive,
order?: $npm$naturalOrderBy$OrderEnum,

@@ -15,0 +12,0 @@ |};

5

index.d.ts

@@ -5,7 +5,4 @@ export type Identifier<T> = number | string | ((value: T) => unknown);

export interface CompareOptions {
caseSensitive?: boolean,
order?: 'asc' | 'desc'
}
export interface CompareOptions { order?: 'asc' | 'desc' }
export type CompareFn = ((valueA: unknown, valueB: unknown) => number);
export function compare(options?: CompareOptions): CompareFn;
{
"name": "natural-orderby",
"version": "2.0.0",
"version": "2.0.1",
"description": "Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.",

@@ -65,22 +65,21 @@ "main": "cjs/natural-orderby.js",

"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/plugin-proposal-object-rest-spread": "^7.2.0",
"@babel/core": "^7.3.3",
"@babel/plugin-proposal-object-rest-spread": "^7.3.2",
"@babel/plugin-transform-flow-strip-types": "^7.2.3",
"@babel/plugin-transform-runtime": "^7.2.0",
"@babel/preset-env": "^7.2.3",
"@commitlint/cli": "^7.0.0",
"@commitlint/config-conventional": "^7.0.1",
"babel-core": "^7.0.0-bridge.0",
"@babel/preset-env": "^7.3.1",
"@commitlint/cli": "^7.5.2",
"@commitlint/config-conventional": "^7.5.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^23.6.0",
"babel-jest": "^24.0.0",
"cross-env": "^5.2.0",
"docsify-cli": "^4.2.1",
"eslint": "^5.9.0",
"eslint": "^5.14.1",
"eslint-config-airbnb-base": "^13.0.0",
"eslint-config-prettier": "^3.3.0",
"eslint-plugin-flowtype": "^3.2.0",
"eslint-plugin-import": "^2.14.0",
"flow-bin": "^0.91.0",
"eslint-config-prettier": "^4.0.0",
"eslint-plugin-flowtype": "^3.4.2",
"eslint-plugin-import": "^2.16.0",
"flow-bin": "^0.93.0",
"husky": "^1.1.4",
"jest": "^23.0.0",
"jest": "^24.0.0",
"lint-staged": "^8.0.5",

@@ -87,0 +86,0 @@ "prettier": "^1.6.1",

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