Socket
Socket
Sign inDemoInstall

mercadopago

Package Overview
Dependencies
8
Maintainers
12
Versions
79
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.1 to 2.0.2

dist/src/clients/cardToken/commonTypes.d.ts

2

package.json
{
"name": "mercadopago",
"version": "2.0.1",
"version": "2.0.2",
"description": "Mercadopago SDK for Node.js",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -35,6 +35,6 @@ ![SDK Node Mercado Pago](https://github.com/lucmkz/sdk-nodejs/assets/31546923/84211022-6fc5-4db1-8772-117eca84f2d9)

// Step 1: Import the parts of the module you want to use
import { MercadoPago, Payment } from 'mercadopago';
import { MercadoPagoConfig, Payment } from 'mercadopago';
// Step 2: Initialize the client object
const client = new MercadoPago({ accessToken: 'access_token', options: { timeout: 5000, idempotencyKey: 'abc' } });
const client = new MercadoPagoConfig({ accessToken: 'access_token', options: { timeout: 5000, idempotencyKey: 'abc' } });

@@ -60,6 +60,6 @@ // Step 3: Initialize the API object

Import `MercadoPago` and API objects from the MercadoPago module.
Import `MercadoPagoConfig` and API objects from the MercadoPago module.
``` javascript
import { MercadoPago, Payment } from 'mercadopago';
import { MercadoPagoConfig, Payment } from 'mercadopago';
```

@@ -78,3 +78,3 @@

``` javascript
const client = new MercadoPago({ accessToken: 'access_token', options: { timeout: 5000, idempotencyKey: 'abc' } });
const client = new MercadoPagoConfig({ accessToken: 'access_token', options: { timeout: 5000, idempotencyKey: 'abc' } });
```

@@ -81,0 +81,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc