Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined is not a function #2

Open
anvaka opened this issue Nov 28, 2015 · 2 comments
Open

Undefined is not a function #2

anvaka opened this issue Nov 28, 2015 · 2 comments

Comments

@anvaka
Copy link

anvaka commented Nov 28, 2015

Hello!

Thank you for building semver-set! We are using it with https://github.com/anvaka/npmrank to compute npm statistics.

It works really well, except in cases when one argument is *. For example, this will crash with undefined is not a function:

var intersect = require('semver-set').intersect;
console.log(intersect('*', '<0.15.0'));

Cheers,
Andrei

PS:

> npm version
{ npmrank: '1.0.0',
  npm: '3.3.6',
  ares: '1.10.1-DEV',
  http_parser: '2.5.0',
  icu: '56.1',
  modules: '47',
  node: '5.0.0',
  openssl: '1.0.2d',
  uv: '1.7.5',
  v8: '4.6.85.28',
  zlib: '1.2.8' }
@voxpelli
Copy link

At least after applying #4 I don't experience this issue anymore. Can you test and confirm @anvaka?

@jdalton
Copy link

jdalton commented Aug 17, 2016

Yap, #4 closes this and #3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants