Comparing version 2.0.6 to 2.0.7
@@ -14,3 +14,4 @@ 'use strict'; | ||
var allowedHeaders = { | ||
"X-Razorpay-Account": "" | ||
"X-Razorpay-Account": "", | ||
"Content-Type": "application/json" | ||
}; | ||
@@ -70,7 +71,14 @@ | ||
key: 'post', | ||
value: function post(params, cb) { | ||
return nodeify(this.rq.post({ | ||
value: function post(params, cb, isNotForm = false) { | ||
var request = { | ||
url: params.url, | ||
form: params.data | ||
}).catch(normalizeError), cb); | ||
}; | ||
if (isNotForm) { | ||
delete request['form']; | ||
request.body = params.data; | ||
} | ||
return nodeify(this.rq.post(request).catch(normalizeError), cb); | ||
} | ||
@@ -77,0 +85,0 @@ }, { |
@@ -64,2 +64,3 @@ 'use strict'; | ||
invoices: require('./resources/invoices')(this.api), | ||
paymentLink: require('./resources/paymentLink')(this.api), | ||
plans: require('./resources/plans')(this.api), | ||
@@ -66,0 +67,0 @@ subscriptions: require('./resources/subscriptions')(this.api), |
{ | ||
"name": "razorpay", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"description": "Official Node SDK for Razorpay API", | ||
@@ -14,3 +14,3 @@ "main": "dist/razorpay", | ||
"debug": "npm run build && node-debug examples/index.js", | ||
"test": "npm run build && mocha --require babel-register" | ||
"test": "npm run build && mocha --recursive --require babel-register test/" | ||
}, | ||
@@ -31,18 +31,22 @@ "repository": { | ||
], | ||
"mocha": { | ||
"recursive": true, | ||
"full-trace": true | ||
}, | ||
"license": "MIT", | ||
"devDependencies": { | ||
"babel-cli": "^6.14.0", | ||
"babel-preset-es2015": "^6.14.0", | ||
"babel-preset-stage-0": "^6.5.0", | ||
"babel-register": "^6.18.0", | ||
"chai": "^4.1.2", | ||
"deep-equal": "^1.0.1", | ||
"mocha": "^5.2.0", | ||
"nock": "^9.3.3" | ||
"babel-cli": "^6.26.0", | ||
"babel-preset-env": "^1.7.0", | ||
"babel-preset-stage-0": "^6.24.0", | ||
"babel-register": "^6.26.0", | ||
"chai": "^4.3.4", | ||
"deep-equal": "^2.0.5", | ||
"mocha": "^9.0.0", | ||
"nock": "^13.1.1" | ||
}, | ||
"dependencies": { | ||
"promise": "^8.0.1", | ||
"promise": "^8.1.0", | ||
"request": "^2.88.0", | ||
"request-promise": "^4.2.2" | ||
"request-promise": "^4.2.6" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51383
1340
1
Updatedpromise@^8.1.0
Updatedrequest-promise@^4.2.6