Socket
Socket
Sign inDemoInstall

@thi.ng/api

Package Overview
Dependencies
Maintainers
1
Versions
186
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/api - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

11

CHANGELOG.md

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

3

compare.js

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

equiv.js

@@ -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": [

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