@magic/types
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "@magic/types", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "typechecking library", | ||
@@ -15,3 +15,3 @@ "author": "Jascha Ehrenreich <jascha@jaeh.at>", | ||
"dev": "magic dev", | ||
"test": "t --exclude docs docsrc config.js", | ||
"test": "t --exclude docs example config.js", | ||
"format": "f -w --exclude docs", | ||
@@ -33,8 +33,8 @@ "format:check": "f --exclude docs", | ||
"devDependencies": { | ||
"@magic-modules/gitbadges": "github:magic-modules/gitbadges", | ||
"@magic-modules/git-badges": "github:magic-modules/git-badges", | ||
"@magic-modules/pre": "github:magic-modules/pre", | ||
"@magic-themes/docs": "github:magic-themes/docs", | ||
"@magic/core": "github:magic/core", | ||
"@magic/test": "0.0.10" | ||
"@magic/test": "0.0.12" | ||
} | ||
} |
@@ -10,3 +10,17 @@ # @magic/types | ||
[![Greenkeeper badge][greenkeeper-image]][greenkeeper-url] | ||
[![Known Vulnerabilities][snyk-image]][snyk-url] | ||
[npm-image]: https://img.shields.io/npm/v/@magic/types.svg | ||
[npm-url]: https://www.npmjs.com/package/@magic/types | ||
[travis-image]: https://api.travis-ci.org/magic/types.svg?branch=master | ||
[travis-url]: https://travis-ci.org/magic/types | ||
[appveyor-image]: https://img.shields.io/appveyor/ci/magic/types/master.svg | ||
[appveyor-url]: https://ci.appveyor.com/project/magic/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://badges.greenkeeper.io/magic/types.svg | ||
[snyk-image]: https://snyk.io/test/github/magic/types/badge.svg | ||
[snyk-url]: https://snyk.io/test/github/magic/types | ||
##### install | ||
@@ -149,11 +163,6 @@ ```javascript | ||
[npm-image]: https://img.shields.io/npm/v/@magic/types.svg | ||
[npm-url]: https://www.npmjs.com/package/@magic/types | ||
[travis-image]: https://travis-ci.com/magic/types.svg?branch=master | ||
[travis-url]: https://travis-ci.org/magic/types | ||
[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 | ||
#### Changelog | ||
##### 0.0.5 | ||
added Map, WeakMap, Set and WeakSet |
@@ -289,2 +289,7 @@ const isArray = e => Array.isArray(e) | ||
const isMap = a => a instanceof Map | ||
const isSet = a => a instanceof Set | ||
const isWeakMap = a => a instanceof WeakMap | ||
const isWeakSet = a => a instanceof WeakSet | ||
const is = { | ||
@@ -508,2 +513,14 @@ count: getLength, | ||
isLengthEqual, | ||
isMap, | ||
map: isMap, | ||
isSet, | ||
set: isSet, | ||
isWeakMap, | ||
weakMap: isWeakMap, | ||
isWeakSet, | ||
weakSet: isWeakSet, | ||
} | ||
@@ -510,0 +527,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
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
50557
427
167