Update smart-publish.js

add _id for addDependency callback

I need the _id for addDependency callbacks, but I just found this solution.