Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

razorpay

Package Overview
Dependencies
Maintainers
3
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

razorpay - npm Package Compare versions

Comparing version 2.0.6 to 2.0.7

dist/resources/paymentLink.js

16

dist/api.js

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc