chore(shared/transport): update for compatibility with new node.d.ts