🎩 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.78
to
1.0.81
+15
-10
dist/goods.js

@@ -510,12 +510,17 @@ "use strict";

}
//限时折扣优先或者会员价优先但是不是会员或者未开启会员价格时限时折扣优先
if (activity.discountPriority == "limit-time" ||
(activity.discountPriority == "vip-price" && !isMember) ||
(activity.discountPriority == "vip-price" && isMember && !goods.memberPrice)) {
//限时折扣优先
return truncateToTwoDecimals(new bignumber_js_1.BigNumber(goods.salePrice)
.times(activity.discountRate / 100)
.decimalPlaces(2, bignumber_js_1.BigNumber.ROUND_UP)
.toNumber());
}
// //限时折扣优先或者会员价优先但是不是会员或者未开启会员价格时限时折扣优先
// if (
// activity.discountPriority == "limit-time" ||
// (activity.discountPriority == "vip-price" && !isMember) ||
// (activity.discountPriority == "vip-price" && isMember && !goods.memberPrice)
// )
// {
// //限时折扣优先
// return truncateToTwoDecimals(
// new BigNumber(goods.salePrice)
// .times(activity.discountRate / 100)
// .decimalPlaces(2, BigNumber.ROUND_UP)
// .toNumber()
// );
// }
if (activity.discountPriority == "vip-price" && isMember) {

@@ -522,0 +527,0 @@ return memberPrice.toNumber();

+1
-1
{
"name": "ysk-utils",
"version": "1.0.78",
"version": "1.0.81",
"main": "dist/index.js",

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