mercadopago
Advanced tools
Comparing version 2.0.1 to 2.0.2
{ | ||
"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 @@ |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
178355
4381
1
1