isaacs/npm — pull request #2173 by mfncooper (2012-02-19 03:58:25+00:00)
Title: Make a copy of the cached objects we'll modify.

As suggested, avoid modifying the cached objects by making a copy of the objects we'll change.

Fixes 1753.