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

alipay-sdk

Package Overview
Dependencies
Maintainers
3
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alipay-sdk - npm Package Compare versions

Comparing version 1.0.16 to 1.0.18

2

index.d.ts

@@ -6,3 +6,3 @@ declare module 'alipay-sdk' {

// 请求执行
execute(method: string, bizContext?: Object, publicArgs?: Object, validateSign?: boolean): Promise<AlipaySdkCommonResult>;
execute(method: string, bizContext?: Object, publicArgs?: Object, validateSign?: boolean, log?: object): Promise<AlipaySdkCommonResult>;
// 签名

@@ -9,0 +9,0 @@ sign(params: Object, needEncode?: boolean): string;

@@ -63,5 +63,6 @@ 'use strict';

* @param {Boolean} validateSign 是否验签
* @param {object} log 可选日志记录对象
* @return {Promise} 请求执行结果
*/
execute(method, bizContext, publicArgs, validateSign) {
execute(method, bizContext, publicArgs, validateSign, log) {
publicArgs = publicArgs || {};

@@ -92,2 +93,3 @@ // 默认不验签

.then(ret => {
log && log.info('execute method: %s , params: %s, got resonse: %s', method, JSON.stringify(params), JSON.stringify(ret));
if (ret.status === 200) {

@@ -109,3 +111,6 @@ const data = ret.data[method.replace(/\./g, '_') + '_response'];

})
.catch(reject);
.catch((err) => {
log && log.error('execute method: %s , params: %s, got error: %s', method, JSON.stringify(params), JSON.stringify(err));
reject(err);
});
});

@@ -112,0 +117,0 @@ }

{
"name": "alipay-sdk",
"version": "1.0.16",
"version": "1.0.18",
"description": "",

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

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