pouchdb-collate
Advanced tools
Comparing version 6.1.0 to 6.1.1
@@ -38,5 +38,2 @@ 'use strict'; | ||
} | ||
if (a === null) { | ||
return 0; | ||
} | ||
switch (typeof a) { | ||
@@ -46,3 +43,3 @@ case 'number': | ||
case 'boolean': | ||
return a === b ? 0 : (a < b ? -1 : 1); | ||
return a < b ? -1 : 1; | ||
case 'string': | ||
@@ -386,2 +383,2 @@ return stringCollate(a, b); | ||
exports.toIndexableString = toIndexableString; | ||
exports.parseIndexableString = parseIndexableString; | ||
exports.parseIndexableString = parseIndexableString; |
{ | ||
"name": "pouchdb-collate", | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"description": "Collation functions for PouchDB map/reduce", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -23,5 +23,2 @@ 'use strict'; | ||
} | ||
if (a === null) { | ||
return 0; | ||
} | ||
switch (typeof a) { | ||
@@ -31,3 +28,3 @@ case 'number': | ||
case 'boolean': | ||
return a === b ? 0 : (a < b ? -1 : 1); | ||
return a < b ? -1 : 1; | ||
case 'string': | ||
@@ -34,0 +31,0 @@ return stringCollate(a, b); |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
36766
751
1