@nexim/financial-calculate 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/main.cjs +3 -3
- package/dist/main.mjs +3 -3
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.0.7](https://github.com/the-nexim/nanolib/compare/@nexim/financial-calculate@1.0.6...@nexim/financial-calculate@1.0.7) (2026-02-05)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @nexim/financial-calculate
|
|
9
|
+
|
|
6
10
|
## [1.0.6](https://github.com/the-nexim/nanolib/compare/@nexim/financial-calculate@1.0.5...@nexim/financial-calculate@1.0.6) (2025-11-22)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @nexim/financial-calculate
|
package/dist/main.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** 📦 @nexim/financial-calculate v1.0.
|
|
2
|
-
__dev_mode__: console.debug("📦 @nexim/financial-calculate v1.0.
|
|
3
|
-
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var main_exports={};__export(main_exports,{calculateDiscountAmount:()=>calculateDiscountAmount,calculateDiscountedPrice:()=>calculateDiscountedPrice,calculatePercentageDiscount:()=>calculatePercentageDiscount,calculatePercentageProfit:()=>calculatePercentageProfit});module.exports=__toCommonJS(main_exports);var import_package_tracer=require("@alwatr/package-tracer");__dev_mode__:import_package_tracer.packageTracer.add("@nexim/financial-calculate","1.0.
|
|
1
|
+
/** 📦 @nexim/financial-calculate v1.0.7 */
|
|
2
|
+
__dev_mode__: console.debug("📦 @nexim/financial-calculate v1.0.7");
|
|
3
|
+
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var main_exports={};__export(main_exports,{calculateDiscountAmount:()=>calculateDiscountAmount,calculateDiscountedPrice:()=>calculateDiscountedPrice,calculatePercentageDiscount:()=>calculatePercentageDiscount,calculatePercentageProfit:()=>calculatePercentageProfit});module.exports=__toCommonJS(main_exports);var import_package_tracer=require("@alwatr/package-tracer");__dev_mode__:import_package_tracer.packageTracer.add("@nexim/financial-calculate","1.0.7");function calculateDiscountedPrice(price,discount,decimal=2){const discountedPrice=price*(1-discount/100);return parseFloat(discountedPrice.toFixed(decimal))}function calculateDiscountAmount(price,discount,decimal=2){const discountAmount=price*discount/100;return parseFloat(discountAmount.toFixed(decimal))}function calculatePercentageProfit(marketPrice,salePrice,decimal=2){const percentage=(marketPrice-salePrice)/salePrice*100;return parseFloat(percentage.toFixed(decimal))}function calculatePercentageDiscount(marketPrice,salePrice,decimal=2){const percentage=(marketPrice-salePrice)/marketPrice*100;return parseFloat(percentage.toFixed(decimal))}
|
|
4
4
|
//# sourceMappingURL=main.cjs.map
|
package/dist/main.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** 📦 @nexim/financial-calculate v1.0.
|
|
2
|
-
__dev_mode__: console.debug("📦 @nexim/financial-calculate v1.0.
|
|
3
|
-
import{packageTracer}from"@alwatr/package-tracer";__dev_mode__:packageTracer.add("@nexim/financial-calculate","1.0.
|
|
1
|
+
/** 📦 @nexim/financial-calculate v1.0.7 */
|
|
2
|
+
__dev_mode__: console.debug("📦 @nexim/financial-calculate v1.0.7");
|
|
3
|
+
import{packageTracer}from"@alwatr/package-tracer";__dev_mode__:packageTracer.add("@nexim/financial-calculate","1.0.7");function calculateDiscountedPrice(price,discount,decimal=2){const discountedPrice=price*(1-discount/100);return parseFloat(discountedPrice.toFixed(decimal))}function calculateDiscountAmount(price,discount,decimal=2){const discountAmount=price*discount/100;return parseFloat(discountAmount.toFixed(decimal))}function calculatePercentageProfit(marketPrice,salePrice,decimal=2){const percentage=(marketPrice-salePrice)/salePrice*100;return parseFloat(percentage.toFixed(decimal))}function calculatePercentageDiscount(marketPrice,salePrice,decimal=2){const percentage=(marketPrice-salePrice)/marketPrice*100;return parseFloat(percentage.toFixed(decimal))}export{calculateDiscountAmount,calculateDiscountedPrice,calculatePercentageDiscount,calculatePercentageProfit};
|
|
4
4
|
//# sourceMappingURL=main.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexim/financial-calculate",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "Provides a set of utils to handle common financial operations.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"financial",
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
"watch": "wireit"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@alwatr/package-tracer": "^5.5.
|
|
48
|
+
"@alwatr/package-tracer": "^5.5.26"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@alwatr/nano-build": "^6.
|
|
51
|
+
"@alwatr/nano-build": "^6.4.0",
|
|
52
52
|
"@alwatr/type-helper": "^5.4.4",
|
|
53
|
-
"@nexim/typescript-config": "^2.0.
|
|
53
|
+
"@nexim/typescript-config": "^2.0.2",
|
|
54
54
|
"ava": "^6.4.1",
|
|
55
|
-
"typedoc": "^0.28.
|
|
55
|
+
"typedoc": "^0.28.16",
|
|
56
56
|
"typedoc-plugin-markdown": "^4.9.0",
|
|
57
57
|
"typedoc-plugin-no-inherit": "^1.6.1",
|
|
58
58
|
"typescript": "^5.9.3",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"command": "typedoc"
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "032c7e6a456ea65c76906bb1663dc84855791218"
|
|
112
112
|
}
|