mlegenhausen / node-ogone-directlink

Thin node.js wrapper around the directlink rest api of the ogone payment service
6 stars 9 forks source link

Bug with Sugar.js #7

Open hamzahio opened 9 years ago

hamzahio commented 9 years ago

i use sails.js on node.js

the library work fine but when i did' it crash all server.

give me this error !!!!!

server   |  TypeError: undefined is not a function
server   |     at Array.every (native)
server   |     at Array.<anonymous> (/Users/hamzah/Desktop/giftshop/server/node_modules/ogone-directlink/node_modules/sugar/release/sugar-full.development.js:180:23)
server   |     at Object.module.exports.parseCriteria (/Users/hamzah/Desktop/giftshop/server/node_modules/sails-generate-ember-blueprints/templates/basic/api/blueprints/_util/actionUtil.js:269:28)
server   |     at findRecords (/Users/hamzah/Desktop/giftshop/server/node_modules/sails-generate-ember-blueprints/templates/basic/api/blueprints/find.js:54:24)
server   |     at routeTargetFnWrapper (/Users/hamzah/.npm-packages/lib/node_modules/sails/lib/router/bind.js:179:5)
server   |     at callbacks (/Users/hamzah/.npm-packages/lib/node_modules/sails/node_modules/express/lib/router/index.js:164:37)
server   |     at param (/Users/hamzah/.npm-packages/lib/node_modules/sails/node_modules/express/lib/router/index.js:138:11)
server   |     at pass (/Users/hamzah/.npm-packages/lib/node_modules/sails/node_modules/express/lib/router/index.js:145:5)
server   |     at nextRoute (/Users/hamzah/.npm-packages/lib/node_modules/sails/node_modules/express/lib/router/index.js:100:7)
server   |     at callbacks (/Users/hamzah/.npm-packages/lib/node_modules/sails/node_modules/express/lib/router/index.js:167:11)
server   |     at /Users/hamzah/.npm-packages/lib/node_modules/sails/lib/router/bind.js:239:18
server   |     at callbacks (/Users/hamzah/.npm-packages/lib/node_modules/sails/node_modules/express/lib/router/index.js:164:37)
server   |     at param (/Users/hamzah/.npm-packages/lib/node_modules/sails/node_modules/express/lib/router/index.js:138:11)
server   |     at pass (/Users/hamzah/.npm-packages/lib/node_modules/sails/node_modules/express/lib/router/index.js:145:5)
server   |     at nextRoute (/Users/hamzah/.npm-packages/lib/node_modules/sails/node_modules/express/lib/router/index.js:100:7)
server   |     at callbacks (/Users/hamzah/.npm-packages/lib/node_modules/sails/node_modules/express/lib/router/index.js:167:11) [TypeError: undefined is not a function]
mlegenhausen commented 9 years ago

The problem will be sugarjs which monkey patches native JavaScript objects.

Cause this library is not under active development anymore you can try to find out what is the problem and provide a pull request.