Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Commit

Permalink
Handle missing _attachments obj
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jan 28, 2014
1 parent 9a6a0b8 commit 604b1b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/publish.js
Expand Up @@ -117,6 +117,7 @@ function putNext(newVersion, root, current, cb) {
}

current.versions[newVersion] = root.versions[newVersion]
current._attachments = current._attachments || {}
for (var i in root) {
switch (i) {
// objects that copy over the new stuffs
Expand Down

0 comments on commit 604b1b1

Please sign in to comment.