Comparing version 1.0.0-beta.2 to 1.0.0-beta.3
@@ -1,2 +0,2 @@ | ||
// FinLambda v1.0.0-beta.2 | ||
// FinLambda v1.0.0-beta.3 | ||
// https://github.com/eboukamza/finlambda#readme | ||
@@ -132,3 +132,3 @@ // (c) 2018 - Elias Boukamza' | ||
*/ | ||
const tax = taxBrackets => compose(Math.ceil, sum, taxDetail(taxBrackets)); | ||
const tax = taxBrackets => compose(sum, taxDetail(taxBrackets)); | ||
@@ -135,0 +135,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
// FinLambda v1.0.0-beta.2 | ||
// FinLambda v1.0.0-beta.3 | ||
// https://github.com/eboukamza/finlambda#readme | ||
@@ -155,3 +155,3 @@ // (c) 2018 - Elias Boukamza' | ||
var tax = function tax(taxBrackets) { | ||
return compose(Math.ceil, sum, taxDetail(taxBrackets)); | ||
return compose(sum, taxDetail(taxBrackets)); | ||
}; | ||
@@ -158,0 +158,0 @@ |
{ | ||
"name": "finlambda", | ||
"version": "1.0.0-beta.2", | ||
"version": "1.0.0-beta.3", | ||
"description": "Functional programing library for financial calculations", | ||
@@ -20,6 +20,6 @@ "keywords": [ | ||
"scripts": { | ||
"build:esm5": "rollup -c rollup-es5m.config.js -o dist/es5m/finlambda.js", | ||
"build:es2015": "rollup -c rollup-es2015.config.js -o dist/es2015/finlambda.js", | ||
"build:umd": "cross-env NODE_ENV=development rollup -c rollup-umd.config.js -o dist/umd/finlambda.umd.js", | ||
"build:umd:min": "cross-env NODE_ENV=production rollup -c rollup-umd.config.js -o dist/umd/finlambda.umd.min.js", | ||
"build:esm5": "rollup -c config/rollup-es5m.config.js -o dist/es5m/finlambda.js", | ||
"build:es2015": "rollup -c config/rollup-es2015.config.js -o dist/es2015/finlambda.js", | ||
"build:umd": "rollup -c config/rollup-umd.config.js -o dist/umd/finlambda.umd.js", | ||
"build:umd:min": "cross-env NODE_ENV=prod rollup -c config/rollup-umd.config.js -o dist/umd/finlambda.umd.min.js", | ||
"build": "npm run build:esm5 && npm run build:es2015 && npm run build:umd && npm run build:umd:min && npm run copy:assets", | ||
@@ -29,3 +29,3 @@ "copy:assets": "cp -r src/ dist/ && cp README.md dist && cp package.json dist", | ||
"release": "npm test && npm run build && npm publish dist", | ||
"generate-docs": "jsdoc -c doc.config.json src" | ||
"generate-docs": "jsdoc -c config/jsdoc.config.json src" | ||
}, | ||
@@ -52,5 +52,6 @@ "publishConfig": { | ||
"babel-core": "^7.0.0-bridge", | ||
"babel-jest": "^23.6.0", | ||
"babel-jest": "^24.9.0", | ||
"cross-env": "^5.2.0", | ||
"jest": "^22.4.3", | ||
"jest": "^24.9.0", | ||
"jsdoc": "^3.6.3", | ||
"ramda": "0.26.0", | ||
@@ -66,6 +67,3 @@ "rollup": "^0.67.3", | ||
"testEnvironment": "node" | ||
}, | ||
"dependencies": { | ||
"jsdoc": "^3.5.5" | ||
} | ||
} |
@@ -70,1 +70,3 @@ finlambda | ||
corpTaxDetailed(100000) //=> [ 5718, 11726.12 ] | ||
Read all documentation [here](https://eboukamza.github.io/finlambda-docs/) |
@@ -27,3 +27,3 @@ import { compose, sum } from 'ramda' | ||
*/ | ||
const tax = taxBrackets => compose(Math.ceil, sum, taxDetail(taxBrackets)) | ||
const tax = taxBrackets => compose(sum, taxDetail(taxBrackets)) | ||
export { tax } |
@@ -1,2 +0,2 @@ | ||
// FinLambda v1.0.0-beta.2 | ||
// FinLambda v1.0.0-beta.3 | ||
// https://github.com/eboukamza/finlambda#readme | ||
@@ -159,3 +159,3 @@ // (c) 2018 - Elias Boukamza' | ||
var tax = function tax(taxBrackets) { | ||
return ramda.compose(Math.ceil, ramda.sum, taxDetail(taxBrackets)); | ||
return ramda.compose(ramda.sum, taxDetail(taxBrackets)); | ||
}; | ||
@@ -162,0 +162,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("ramda")):"function"==typeof define&&define.amd?define(["exports","ramda"],e):e(t.FinLambda={},t.R)}(this,function(t,e){"use strict";t.netAfter=function(t,e){return e-t(e)},t.netAfter=e.curry(t.netAfter),t.rateAt=function(t,e){return e*t},t.rateAt=e.curry(t.rateAt);var n=function(t,e){return e(t)};n=e.curry(n);var r=function(t){return function(r){return e.map(n(r),t)}};t.forInterval=function(t,e){return function(n){return Math.max(Math.min(e||n,n)-t,0)}},t.tax=function(t){return e.compose(Math.ceil,e.sum,r(t))},t.taxBracket=function(t,n){return e.compose(t,n)},t.taxDetail=r,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("ramda")):"function"==typeof define&&define.amd?define(["exports","ramda"],e):e(t.FinLambda={},t.R)}(this,function(t,e){"use strict";t.netAfter=function(t,e){return e-t(e)},t.netAfter=e.curry(t.netAfter),t.rateAt=function(t,e){return e*t},t.rateAt=e.curry(t.rateAt);var n=function(t,e){return e(t)};n=e.curry(n);var r=function(t){return function(r){return e.map(n(r),t)}};t.forInterval=function(t,e){return function(n){return Math.max(Math.min(e||n,n)-t,0)}},t.tax=function(t){return e.compose(e.sum,r(t))},t.taxBracket=function(t,n){return e.compose(t,n)},t.taxDetail=r,Object.defineProperty(t,"__esModule",{value:!0})}); |
1
72
22532
11
- Removedjsdoc@^3.5.5
- Removed@babel/helper-string-parser@7.25.9(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@babel/parser@7.26.5(transitive)
- Removed@babel/types@7.26.5(transitive)
- Removed@types/linkify-it@5.0.0(transitive)
- Removed@types/markdown-it@12.2.3(transitive)
- Removed@types/mdurl@2.0.0(transitive)
- Removedargparse@2.0.1(transitive)
- Removedbluebird@3.7.2(transitive)
- Removedcatharsis@0.9.0(transitive)
- Removedentities@2.1.0(transitive)
- Removedescape-string-regexp@2.0.0(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedjs2xmlparser@4.0.2(transitive)
- Removedjsdoc@3.6.11(transitive)
- Removedklaw@3.0.0(transitive)
- Removedlinkify-it@3.0.3(transitive)
- Removedlodash@4.17.21(transitive)
- Removedmarkdown-it@12.3.2(transitive)
- Removedmarkdown-it-anchor@8.6.7(transitive)
- Removedmarked@4.3.0(transitive)
- Removedmdurl@1.0.1(transitive)
- Removedmkdirp@1.0.4(transitive)
- Removedrequizzle@0.2.4(transitive)
- Removedstrip-json-comments@3.1.1(transitive)
- Removedtaffydb@2.6.2(transitive)
- Removeduc.micro@1.0.6(transitive)
- Removedunderscore@1.13.7(transitive)
- Removedxmlcreate@2.0.4(transitive)