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

typical

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typical - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

test-v10.js

5

index.js

@@ -187,3 +187,3 @@ /**

/**
* Returns true if the input is an iterable (`Map`, `Set`, `Array` etc.).
* Returns true if the input is an iterable (`Map`, `Set`, `Array`, Generator etc.).
* @param {*} - the input to test

@@ -197,4 +197,5 @@ * @returns {boolean}

} else {
return typeof input[Symbol.iterator] === 'function'
return typeof input[Symbol.iterator] === 'function' ||
typeof input[Symbol.asyncIterator] === 'function'
}
}

6

package.json
{
"name": "typical",
"author": "Lloyd Brookes <75pound@gmail.com>",
"version": "3.0.0",
"version": "3.0.1",
"description": "Robust Javascript type-checking",

@@ -38,6 +38,6 @@ "repository": "https://github.com/75lb/typical",

"devDependencies": {
"coveralls": "^3.0.2",
"coveralls": "^3.0.3",
"jsdoc-to-markdown": "^4.0.1",
"test-runner": "^0.5.0"
"test-runner": "^0.5.1"
}
}

@@ -206,2 +206,2 @@ [![view on npm](http://img.shields.io/npm/v/typical.svg)](https://www.npmjs.org/package/typical)

&copy; 2014-18 Lloyd Brookes \<75pound@gmail.com\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).
&copy; 2014-19 Lloyd Brookes \<75pound@gmail.com\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).

@@ -145,2 +145,3 @@ const TestRunner = require('test-runner')

a.strictEqual(t.isIterable({ then: function () {} }), false)
a.strictEqual(t.isIterable((function * () {})()), true)
})

@@ -147,0 +148,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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