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

endsWith error on zip file #10

Closed
lcalvy opened this issue Apr 4, 2014 · 4 comments
Closed

endsWith error on zip file #10

lcalvy opened this issue Apr 4, 2014 · 4 comments

Comments

@lcalvy
Copy link

lcalvy commented Apr 4, 2014

OK in 1.6 version but KO on 1.9 et 2.x version

TypeError: Object function (obj, val) {
var ret = find(Object.keys(obj), function (ret) {
return endsWith(val, ret);
});

return ret ? obj[ret] : null;

} has no method 'endsWith'
at Decompress._getExtractor (/Users/lcalvy/Documents/Boulot/Sources/coorpacademy/node_modules/decompress/index.js:89:19)
at new Decompress (/Users/lcalvy/Documents/Boulot/Sources/coorpacademy/node_modules/decompress/index.js:40:27)
at module.exports (/Users/lcalvy/Documents/Boulot/Sources/coorpacademy/node_modules/decompress/index.js:168:22)

@kevva
Copy link
Owner

kevva commented Apr 4, 2014

Update. It should be fixed in 4b660cb.

@kevva kevva closed this as completed Apr 4, 2014
@lcalvy
Copy link
Author

lcalvy commented Apr 4, 2014

sorry failed also on 0.2.2

@kevva
Copy link
Owner

kevva commented Apr 4, 2014

Look in the source on the ._getExtractor() method. Is it map.endsWith() or just map()? For me (0.2.2) it's just map() which is right.

Cleaned your cache?

@lcalvy
Copy link
Author

lcalvy commented Apr 4, 2014

ok found it. decompress is already loaded in memory on version 1.6 by other module.
When i used it failed because change of map-key. This module is not loaded and don't have endsWith function.

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