@magic/types
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "@magic/types", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "typechecking library", | ||
@@ -10,5 +10,10 @@ "author": "Jascha Ehrenreich <jascha@jaeh.at>", | ||
"start": "t -p", | ||
"test": "t", | ||
"format": "f -w", | ||
"format:check": "f", | ||
"build": "NODE_ENV=production magic build", | ||
"prod": "NODE_ENV=production magic build serve", | ||
"clean": "magic clean", | ||
"serve": "magic serve", | ||
"dev": "magic dev", | ||
"test": "t --exclude docs docsrc config.js", | ||
"format": "f -w --exclude docs", | ||
"format:check": "f --exclude docs", | ||
"calls": "calls" | ||
@@ -28,4 +33,8 @@ }, | ||
"devDependencies": { | ||
"@magic/test": "0.0.2" | ||
"@magic-modules/gitbadges": "github:magic-modules/gitbadges", | ||
"@magic-modules/pre": "github:magic-modules/pre", | ||
"@magic-themes/docs": "github:magic-themes/docs", | ||
"@magic/core": "github:magic/core", | ||
"@magic/test": "0.0.10" | ||
} | ||
} |
@@ -9,3 +9,3 @@ # @magic/types | ||
[![Coverage Status][coveralls-image]][coveralls-url] | ||
[![Greenkeeper badge](https://badges.greenkeeper.io/magic/types.svg)](https://greenkeeper.io/) | ||
[![Greenkeeper badge][greenkeeper-image]][greenkeeper-url] | ||
@@ -117,3 +117,3 @@ ##### install | ||
isUndefinedOrNull(undefined || null) // true | ||
// alias is.undefinedOrNull | ||
// alias is.undefinedOrNull, is.undefinedOrNil, is.undefOrNull, is.undefOrNil | ||
@@ -150,5 +150,2 @@ isBuffer(new Buffer('test')) // true | ||
TODO: | ||
curry most functions with multiple arguments | ||
[npm-image]: https://img.shields.io/npm/v/@magic/types.svg | ||
@@ -158,5 +155,7 @@ [npm-url]: https://www.npmjs.com/package/@magic/types | ||
[travis-url]: https://travis-ci.org/magic/types | ||
[appveyor-image]: https://ci.appveyor.com/api/projects/status/fjlaoi06hye3p6p3/branch/master | ||
[appveyor-image]: https://img.shields.io/appveyor/ci/jaeh/types.svg | ||
[appveyor-url]: https://ci.appveyor.com/project/jaeh/types/branch/master | ||
[coveralls-image]: https://coveralls.io/repos/github/magic/types/badge.svg | ||
[coveralls-url]: https://coveralls.io/github/magic/types | ||
[greenkeeper-image]: https://badges.greenkeeper.io/magic/types.svg | ||
[greenkeeper-url]: https://greenkeeper.io |
@@ -163,3 +163,3 @@ const isArray = e => Array.isArray(e) | ||
// hex strings end at 'f' | ||
// hex strings end with 'f' | ||
if (Object.values(e).some(s => s > 'f' || s < 0)) { | ||
@@ -249,8 +249,9 @@ return false | ||
// having the same number of owned properties (keys incorporates | ||
// hasOwnProperty) | ||
// having the same number of keys | ||
// Object.keys uses hasOwnProperty internally | ||
if (ka.length !== kb.length) { | ||
return false | ||
} | ||
// the same set of keys (although not necessarily the same order), | ||
// the same set of keys | ||
// although not necessarily the same order | ||
ka.sort() | ||
@@ -317,2 +318,5 @@ kb.sort() | ||
undefinedOrNull: isUndefinedOrNull, | ||
undefinedOrNil: isUndefinedOrNull, | ||
undefOrNull: isUndefinedOrNull, | ||
undefOrNil: isUndefinedOrNull, | ||
@@ -319,0 +323,0 @@ isBuffer, |
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
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
50005
415
0
5
157