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

awesome-wechat-sdk

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

awesome-wechat-sdk - npm Package Compare versions

Comparing version 2.9.0 to 2.9.1

8

lib/pay.d.ts

@@ -145,8 +145,6 @@ /// <reference types="node" />

getAppPaySign(prepayId: string, signType?: 'MD5' | 'HMAC-SHA256'): Promise<{
appid: string;
partnerid: string;
prepayid: string;
partnerId: string;
package: string;
noncestr: string;
timestamp: number;
nonceStr: string;
timeStamp: number;
sign: string;

@@ -153,0 +151,0 @@ }>;

@@ -199,3 +199,9 @@ "use strict";

const sign = await this.getSign(params, signType);
return Object.assign({}, params, { sign });
return {
partnerId: this.mchid,
package: packageStr,
nonceStr,
timeStamp,
sign
};
}

@@ -202,0 +208,0 @@ async queryOrder(query, signType = 'MD5') {

{
"name": "awesome-wechat-sdk",
"version": "2.9.0",
"version": "2.9.1",
"description": "an awesome sdk for wechat oauth, api and message middleware",

@@ -5,0 +5,0 @@ "scripts": {

@@ -325,8 +325,6 @@ import * as crypto from 'crypto';

async getAppPaySign(prepayId: string, signType: 'MD5' | 'HMAC-SHA256' = 'MD5'): Promise<{
appid: string,
partnerid: string,
prepayid: string,
partnerId: string,
package: string,
noncestr: string,
timestamp: number,
nonceStr: string,
timeStamp: number,
sign: string

@@ -348,3 +346,6 @@ }> {

return {
...params,
partnerId: this.mchid,
package: packageStr,
nonceStr,
timeStamp,
sign

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