@magic/types
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "@magic/types", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "typechecking library", | ||
@@ -27,4 +27,4 @@ "author": "Jascha Ehrenreich <jascha@jaeh.at>", | ||
"devDependencies": { | ||
"@magic/test": "0.0.1" | ||
"@magic/test": "0.0.2" | ||
} | ||
} |
@@ -105,5 +105,11 @@ const isArray = e => Array.isArray(e) | ||
const isLengthGreaterOrEqual = (a, b) => | ||
isDefined(b) ? getLength(a) >= getLength(b) : c => isLengthGreaterOrEqual(a, c) | ||
const isLengthSmaller = (a, b) => | ||
isDefined(b) ? getLength(a) < getLength(b) : c => isLengthSmaller(a, c) | ||
const isLengthSmallerOrEqual = (a, b) => | ||
isDefined(b) ? getLength(a) <= getLength(b) : c => isLengthSmallerOrEqual(a, c) | ||
const isError = e => e instanceof Error | ||
@@ -492,2 +498,8 @@ | ||
deep: isDeepEqual, | ||
isLengthGreater, | ||
isLengthGreaterOrEqual, | ||
isLengthSmaller, | ||
isLengthSmallerOrEqual, | ||
isLengthEqual, | ||
} | ||
@@ -502,5 +514,15 @@ | ||
bigger: isLengthGreater, | ||
biggerequal: isLengthGreaterOrEqual, | ||
greater: isLengthGreater, | ||
greaterequal: isLengthGreaterOrEqual, | ||
gte: isLengthGreaterOrEqual, | ||
gteq: isLengthGreaterOrEqual, | ||
lower: isLengthSmaller, | ||
smaller: isLengthSmaller, | ||
lt: isLengthSmaller, | ||
lowerequal: isLengthSmallerOrEqual, | ||
smallerequal: isLengthSmallerOrEqual, | ||
lte: isLengthSmallerOrEqual, | ||
lteq: isLengthSmallerOrEqual, | ||
} | ||
@@ -507,0 +529,0 @@ |
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
49398
411
1