Comparing version 1.0.2 to 2.0.0
14
index.js
@@ -1,2 +0,2 @@ | ||
var type = require('@jkroso/type') | ||
import type from '@jkroso/type' | ||
@@ -7,4 +7,4 @@ // (any, any, [array]) -> boolean | ||
if (a === b) return true | ||
var fnA = types[type(a)] | ||
var fnB = types[type(b)] | ||
const fnA = types[type(a)] | ||
const fnB = types[type(b)] | ||
return fnA && fnA === fnB | ||
@@ -15,3 +15,3 @@ ? fnA(a, b, memos) | ||
var types = {} | ||
const types = {} | ||
@@ -115,4 +115,4 @@ // (Number) -> boolean | ||
// (object) -> array | ||
function getEnumerableProperties (object) { | ||
var result = [] | ||
const getEnumerableProperties = (object) => { | ||
const result = [] | ||
for (var k in object) if (k !== 'constructor') { | ||
@@ -124,2 +124,2 @@ result.push(k) | ||
module.exports = equal | ||
export default equal |
{ | ||
"name": "equals", | ||
"version": "1.0.2", | ||
"version": "2.0.0", | ||
"description": "Check if two values are deeply equivalent", | ||
"dependencies": { | ||
"@jkroso/type": "1" | ||
"@jkroso/type": "2" | ||
}, | ||
"devDependencies": { | ||
"serve": "jkroso/serve", | ||
"future-node": "*", | ||
"hydro-html": "*", | ||
@@ -17,2 +18,3 @@ "hydro-chai": "*", | ||
}, | ||
"transpile": [["{index,test/*}.js", "!sourcegraph/babel->js", {"stage": 2}]], | ||
"repository": "git://github.com/jkroso/equals.git", | ||
@@ -19,0 +21,0 @@ "keywords": ["equality", "equal", "equivalent", "equivalence", "="], |
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
5814
8
+ Added@jkroso/type@2.0.0(transitive)
- Removed@jkroso/type@1.1.1(transitive)
Updated@jkroso/type@2