Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@magic/types

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@magic/types - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

19

package.json
{
"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,

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