Wizcorp / node-pivotal

NodeJS API library for PivotalTracker
44 stars 20 forks source link

TypeError when adding memberships #31

Open kevgo opened 10 years ago

kevgo commented 10 years ago
/Users/kevin/cumulus/node_modules/pivotal/index.js:913
                    val = sanitize(data[d].toString()).entityEncode();
                          ^
TypeError: undefined is not a function
  at Object.pivotal.toXml (/Users/kevin/cumulus/node_modules/pivotal/index.js:913:27)
  at Object.pivotal.toXml (/Users/kevin/cumulus/node_modules/pivotal/index.js:911:32)

The reason seems that Entity encoding is no longer in validator.js since version 3: https://github.com/chriso/validator.js#deprecations

b00gizm commented 10 years ago

+1

Ran into the same problem during addStoryComment