🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@humwing/wxpay

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@humwing/wxpay - npm Package Compare versions

Comparing version
0.0.5
to
0.0.6
+6
-2
dist/index.cjs

@@ -550,2 +550,4 @@ 'use strict';

this.options = _options;
axios__default.defaults.baseURL = this.options.baseURL;
axios__default.defaults.headers.common["Content-Type"] = "application/json";
}

@@ -850,2 +852,3 @@ /**

request(params, signData) {
params.baseURL = params.baseURL ?? this.options.baseURL;
let requestUrl = buildURL(

@@ -856,5 +859,6 @@ params.url,

);
let requestURL = new url.URL(requestUrl);
let requestURL = new url.URL(requestUrl, params.baseURL);
params.method = (params.method ?? "GET").toUpperCase();
let token = this.getToken(
params.method ?? "GET",
params.method,
requestURL.pathname + requestURL.search,

@@ -861,0 +865,0 @@ signData ?? params.data

@@ -243,2 +243,4 @@ import * as axios from 'axios';

publicKeyStr?: string;
/** 主域名 */
baseURL?: string;
};

@@ -245,0 +247,0 @@ type WXPayPlatformCert = {

@@ -243,2 +243,4 @@ import * as axios from 'axios';

publicKeyStr?: string;
/** 主域名 */
baseURL?: string;
};

@@ -245,0 +247,0 @@ type WXPayPlatformCert = {

@@ -243,2 +243,4 @@ import * as axios from 'axios';

publicKeyStr?: string;
/** 主域名 */
baseURL?: string;
};

@@ -245,0 +247,0 @@ type WXPayPlatformCert = {

@@ -538,2 +538,4 @@ import xml2js from 'xml2js';

this.options = _options;
axios.defaults.baseURL = this.options.baseURL;
axios.defaults.headers.common["Content-Type"] = "application/json";
}

@@ -838,2 +840,3 @@ /**

request(params, signData) {
params.baseURL = params.baseURL ?? this.options.baseURL;
let requestUrl = buildURL(

@@ -844,5 +847,6 @@ params.url,

);
let requestURL = new URL(requestUrl);
let requestURL = new URL(requestUrl, params.baseURL);
params.method = (params.method ?? "GET").toUpperCase();
let token = this.getToken(
params.method ?? "GET",
params.method,
requestURL.pathname + requestURL.search,

@@ -849,0 +853,0 @@ signData ?? params.data

{
"name": "@humwing/wxpay",
"version": "0.0.5",
"version": "0.0.6",
"description": "wechat pay",

@@ -5,0 +5,0 @@ "keywords": [