mbrevoort / node-reggie

An experimental light weight alternative to a full blown npm registry
416 stars 50 forks source link

DELETE doesn't remove the deleted package from _packageMap (in Data.js) #21

Closed paolodm closed 11 years ago

paolodm commented 11 years ago
url -X DELETE http://localhost:8080/package/:name/:version 
curl http://localhost:8080/index

:name and :version are from random package

Get this error:

{
code: "InternalError",
message: "Cannot read property 'data' of undefined"
}

The package was never removed from Data.js's _packageMap after the delete package endpoint was called.