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

ysk-utils

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ysk-utils - npm Package Compare versions

Comparing version
1.0.84
to
1.0.85
+4
-2
dist/goods.js

@@ -749,3 +749,5 @@ "use strict";

}
function calcVipDiscountAmount(goodsRealAmount, shopUserInfo) {
function calcVipDiscountAmount(goodsRealAmount, shopUserInfo, isMember) {
if (!isMember)
return 0;
if (!shopUserInfo.isVip || shopUserInfo.discount === 0)

@@ -933,3 +935,3 @@ return 0;

.minus(fullReductionAmount)
.toNumber(), shopUserInfo);
.toNumber(), shopUserInfo, config.isMember);
// ------------------------------ 6. 最终实付金额计算 ------------------------------

@@ -936,0 +938,0 @@ const finalPayAmountBn = new bignumber_js_1.BigNumber(goodsRealAmount)

{
"name": "ysk-utils",
"version": "1.0.84",
"version": "1.0.85",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",