Skip to content

require('j2c') vs require('j2c')() #35

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

Closed
barryels opened this issue Apr 13, 2017 · 3 comments
Closed

require('j2c') vs require('j2c')() #35

barryels opened this issue Apr 13, 2017 · 3 comments

Comments

@barryels
Copy link
Contributor

Perhaps I'm missing something, but the docs seem to be incorrect in stating how to 'require' this lib, i.e.

'use strict';

var j2c_test1 = require('j2c');
console.log(j2c_test1.sheet); // undefined

var j2c_test2 = require('j2c')();
console.log(j2c_test2.sheet); // [function body]

Note the function call for j2c_test2
I'm using Browserify with Babelify, if that makes any difference :)

@pygy
Copy link
Member

pygy commented Apr 13, 2017

What version are you using?

Oooh... It looks like I published v1.0.0-4 on the main release channel on NPM, which is an error. The API has changed a bit, and I haven't updated the docs yet (this is a pre-release version)... Appologies for the confusion, it's time for a v0.11.3 to fix the mess...

@pygy
Copy link
Member

pygy commented Apr 13, 2017

v0.11.3 is out

If you're still interrested in trying the v1 preview, the change log is in the corresponding PR: #15

@pygy pygy closed this as completed Apr 13, 2017
@barryels
Copy link
Contributor Author

Ahh, i see, cool. Thanks for the quick feedback. Was on v1.0.0-4

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

2 participants