jednano / linez

Parse lines from text.
4 stars 2 forks source link

Export doesn't return the specified API anymore #21

Closed FlorianKlosPpi closed 7 years ago

FlorianKlosPpi commented 7 years ago

The export of the linez package does not return the API anymore, but an object with the API as the default property.

Should:

{ [Function: linez]
  Document: [Function: Document],
  configure: [Function: configure],
  resetConfiguration: [Function: resetConfiguration] }

Is:

{ default: 
   { [Function: linez]
     Document: [Function: Document],
     configure: [Function: configure],
     resetConfiguration: [Function: resetConfiguration] } }

This breaks for example the usage in the eclint package:

Unhandled rejection TypeError: linez is not a function
  at /xxx/node_modules/eclint/js/eclint.js:114:27
jednano commented 7 years ago

Can you show me your import statement?

jednano commented 7 years ago

Just published the fix in v4.1.4. Thanks for reporting!