New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

braintree-as-promised

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

braintree-as-promised - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

2

package.json
{
"name": "braintree-as-promised",
"description": "Add native promises to braintree gateway",
"version": "0.2.0",
"version": "0.3.0",
"homepage": "https://github.com/enhancv/braintree-as-promised",

@@ -6,0 +6,0 @@ "author": {

@@ -31,5 +31,5 @@ # braintree-as-promised

## Documantation
## Documentation
calling `promised(gateway)` will return a new gateway object with all the methods converted to promise-based, using native promises. You can continue to use your gateway object normall, as it does not change anything there
calling `promised(gateway)` will return a new gateway object with all the methods converted to promise-based ones, using native promises. You can continue to use your gateway object normal, as it does not change anything on the original object.

@@ -36,0 +36,0 @@ Additionally it handles the "result.success" parameter, so that if success === false, the promise is rejected with the returned error message.

@@ -85,2 +85,5 @@ 'use strict';

},
webhookNotification: {
parse: null,
},
};

@@ -87,0 +90,0 @@

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