Update smart-publish.js

add _id for addDependency callback