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

midtrans-client

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

midtrans-client - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

4

lib/httpClient.js

@@ -14,3 +14,3 @@ 'use strict'

this.parent = parentObj;
this.http_client = axios;
this.http_client = axios.create();
}

@@ -21,3 +21,3 @@ request(httpMethod,serverKey,requestUrl,firstParam={},secondParam={}){

'accept': 'application/json',
'user-agent': 'midtransclient-nodejs/1.2.0'
'user-agent': 'midtransclient-nodejs/1.2.1'
};

@@ -24,0 +24,0 @@

{
"name": "midtrans-client",
"version": "1.2.0",
"version": "1.2.1",
"description": "Official Midtrans Payment API Client for Node JS",

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

@@ -470,3 +470,3 @@ Midtrans Client - Node JS

// set custom HTTP header for every request from this instance
snap.httpClient.http_client.headers.common['My-Header'] = 'my-custom-value';
snap.httpClient.http_client.defaults.headers.common['My-Header'] = 'my-custom-value';
```

@@ -501,3 +501,3 @@ ### Custom Http Client Interceptor

// set custom HTTP header that will be used by Midtrans API to override notification url:
snap.httpClient.http_client.headers.common['X-Override-Notification'] = 'https://mysite/midtrans-notification-handler';
snap.httpClient.http_client.defaults.headers.common['X-Override-Notification'] = 'https://mysite.com/midtrans-notification-handler';
```

@@ -507,3 +507,3 @@

```javascript
snap.httpClient.http_client.headers.common['X-Append-Notification'] = 'https://mysite/midtrans-notification-handler';
snap.httpClient.http_client.defaults.headers.common['X-Append-Notification'] = 'https://mysite.com/midtrans-notification-handler';
```

@@ -510,0 +510,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