@thi.ng/api
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -6,2 +6,13 @@ # Change Log | ||
<a name="2.0.1"></a> | ||
## [2.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@2.0.0...@thi.ng/api@2.0.1) (2018-02-02) | ||
### Bug Fixes | ||
* **api:** update compare() & equiv() ([110a9de](https://github.com/thi-ng/umbrella/commit/110a9de)) | ||
<a name="2.0.0"></a> | ||
@@ -8,0 +19,0 @@ # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@1.5.0...@thi.ng/api@2.0.0) (2018-02-01) |
@@ -16,4 +16,7 @@ "use strict"; | ||
} | ||
if (typeof b.compare === "function") { | ||
return -b.compare(a); | ||
} | ||
return a < b ? -1 : a > b ? 1 : 0; | ||
} | ||
exports.compare = compare; |
@@ -5,3 +5,2 @@ "use strict"; | ||
const is_plain_object_1 = require("@thi.ng/checks/is-plain-object"); | ||
const is_string_1 = require("@thi.ng/checks/is-string"); | ||
function equiv(a, b) { | ||
@@ -27,4 +26,4 @@ if (a === b) { | ||
} | ||
if (is_string_1.isString(a) || is_string_1.isString(b)) { | ||
return a === b; | ||
if (typeof a === "string" || typeof b === "string") { | ||
return false; | ||
} | ||
@@ -31,0 +30,0 @@ if (is_plain_object_1.isPlainObject(a) && is_plain_object_1.isPlainObject(b)) { |
{ | ||
"name": "@thi.ng/api", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Common, generic types & interfaces for thi.ng projects", | ||
@@ -29,3 +29,3 @@ "main": "./index.js", | ||
"dependencies": { | ||
"@thi.ng/checks": "^1.1.5" | ||
"@thi.ng/checks": "^1.1.6" | ||
}, | ||
@@ -32,0 +32,0 @@ "keywords": [ |
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
35514
710
Updated@thi.ng/checks@^1.1.6