@equisoft/tax-us 0.0.1-snapshot.20250723132536
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/.eslintrc.json +42 -0
- package/.tool-versions +1 -0
- package/Makefile +28 -0
- package/README.md +113 -0
- package/RELEASE.md +29 -0
- package/babel.config.js +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +21 -0
- package/dist/investments/index.d.ts +6 -0
- package/dist/investments/index.js +22 -0
- package/dist/investments/life-income-fund.d.ts +11 -0
- package/dist/investments/life-income-fund.js +291 -0
- package/dist/investments/non-registered-savings-plan.d.ts +3 -0
- package/dist/investments/non-registered-savings-plan.js +30 -0
- package/dist/investments/registered-education-savings-plan/beneficiary.d.ts +4 -0
- package/dist/investments/registered-education-savings-plan/beneficiary.js +16 -0
- package/dist/investments/registered-education-savings-plan/british-columbia-training-and-education-savings-grant.d.ts +10 -0
- package/dist/investments/registered-education-savings-plan/british-columbia-training-and-education-savings-grant.js +21 -0
- package/dist/investments/registered-education-savings-plan/canada-education-savings-grant.d.ts +2 -0
- package/dist/investments/registered-education-savings-plan/canada-education-savings-grant.js +23 -0
- package/dist/investments/registered-education-savings-plan/canada-learning-bond.d.ts +12 -0
- package/dist/investments/registered-education-savings-plan/canada-learning-bond.js +19 -0
- package/dist/investments/registered-education-savings-plan/income-level.d.ts +11 -0
- package/dist/investments/registered-education-savings-plan/income-level.js +32 -0
- package/dist/investments/registered-education-savings-plan/index.d.ts +7 -0
- package/dist/investments/registered-education-savings-plan/index.js +23 -0
- package/dist/investments/registered-education-savings-plan/quebec-education-savings-incentive.d.ts +2 -0
- package/dist/investments/registered-education-savings-plan/quebec-education-savings-incentive.js +17 -0
- package/dist/investments/registered-education-savings-plan/savings-grant.d.ts +25 -0
- package/dist/investments/registered-education-savings-plan/savings-grant.js +51 -0
- package/dist/investments/registered-education-savings-plan/tuition-fees.d.ts +6 -0
- package/dist/investments/registered-education-savings-plan/tuition-fees.js +33 -0
- package/dist/investments/registered-retirement-income-fund.d.ts +7 -0
- package/dist/investments/registered-retirement-income-fund.js +68 -0
- package/dist/investments/registered-retirement-savings-plan.d.ts +9 -0
- package/dist/investments/registered-retirement-savings-plan.js +20 -0
- package/dist/investments/tax-free-savings-account.d.ts +7 -0
- package/dist/investments/tax-free-savings-account.js +21 -0
- package/dist/misc/code-types.d.ts +11 -0
- package/dist/misc/code-types.js +19 -0
- package/dist/misc/consumer-price-index.d.ts +34 -0
- package/dist/misc/consumer-price-index.js +240 -0
- package/dist/misc/index.d.ts +5 -0
- package/dist/misc/index.js +21 -0
- package/dist/misc/ipf-stats.d.ts +18 -0
- package/dist/misc/ipf-stats.js +25 -0
- package/dist/misc/life-expectancy.d.ts +28 -0
- package/dist/misc/life-expectancy.js +58 -0
- package/dist/misc/ppp-increase-factor.d.ts +10 -0
- package/dist/misc/ppp-increase-factor.js +25 -0
- package/dist/pension/canada-pension-plan.d.ts +2 -0
- package/dist/pension/canada-pension-plan.js +176 -0
- package/dist/pension/index.d.ts +5 -0
- package/dist/pension/index.js +21 -0
- package/dist/pension/old-age-security.d.ts +21 -0
- package/dist/pension/old-age-security.js +70 -0
- package/dist/pension/public-pension-plan.d.ts +63 -0
- package/dist/pension/public-pension-plan.js +2 -0
- package/dist/pension/quebec-pension-plan.d.ts +2 -0
- package/dist/pension/quebec-pension-plan.js +176 -0
- package/dist/pension/supplemental-pension-plan.d.ts +5 -0
- package/dist/pension/supplemental-pension-plan.js +14 -0
- package/dist/taxes/dividend-credit.d.ts +8 -0
- package/dist/taxes/dividend-credit.js +45 -0
- package/dist/taxes/employment-insurance.d.ts +9 -0
- package/dist/taxes/employment-insurance.js +20 -0
- package/dist/taxes/income-tax.d.ts +39 -0
- package/dist/taxes/income-tax.js +593 -0
- package/dist/taxes/index.d.ts +4 -0
- package/dist/taxes/index.js +20 -0
- package/dist/taxes/quebec-parental-insurance-plan.d.ts +9 -0
- package/dist/taxes/quebec-parental-insurance-plan.js +17 -0
- package/dist/utils/collections.d.ts +1 -0
- package/dist/utils/collections.js +7 -0
- package/dist/utils/date.d.ts +3 -0
- package/dist/utils/date.js +18 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +19 -0
- package/dist/utils/math.d.ts +2 -0
- package/dist/utils/math.js +16 -0
- package/package.json +68 -0
- package/tsconfig.json +21 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./collections"), exports);
|
|
18
|
+
__exportStar(require("./date"), exports);
|
|
19
|
+
__exportStar(require("./math"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.clamp = clamp;
|
|
4
|
+
exports.roundToPrecision = roundToPrecision;
|
|
5
|
+
function clamp(num, min, max) {
|
|
6
|
+
if (num <= min) {
|
|
7
|
+
return min;
|
|
8
|
+
}
|
|
9
|
+
return num >= max ? max : num;
|
|
10
|
+
}
|
|
11
|
+
function roundToPrecision(value, precision = 0) {
|
|
12
|
+
if (!Number.isNaN(Number(value))) {
|
|
13
|
+
return Math.round(value * (Math.pow(10, precision))) / (Math.pow(10, precision));
|
|
14
|
+
}
|
|
15
|
+
return 0;
|
|
16
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@equisoft/tax-us",
|
|
3
|
+
"version": "0.0.1-snapshot.20250723132536",
|
|
4
|
+
"description": "US tax data and calculation functions.",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"contributors": [
|
|
8
|
+
{
|
|
9
|
+
"name": "Kevin Doucet",
|
|
10
|
+
"email": "kevin.doucet@equisoft.com"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "Toby Daigle",
|
|
14
|
+
"email": "toby.daigle@equisoft.com"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/kronostechnologies/tax-us"
|
|
20
|
+
},
|
|
21
|
+
"license": "LGPL-3.0-only",
|
|
22
|
+
"keywords": [
|
|
23
|
+
"tax",
|
|
24
|
+
"US",
|
|
25
|
+
"data"
|
|
26
|
+
],
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "tsc",
|
|
29
|
+
"eslint": "eq-eslint ./src ./tests/",
|
|
30
|
+
"eslint:ci": "yarn eslint",
|
|
31
|
+
"prepublishOnly": "rm -rf dist/ && yarn build",
|
|
32
|
+
"test": "NODE_ENV=test jest --config=tests/jest.config.js",
|
|
33
|
+
"test:ci": "NODE_ENV=test yarn test --runInBand --ci",
|
|
34
|
+
"dev:watch": "tsc --watch"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@babel/core": "7.28.0",
|
|
38
|
+
"@babel/preset-env": "7.28.0",
|
|
39
|
+
"@babel/preset-typescript": "7.27.1",
|
|
40
|
+
"@equisoft/eslint-config": "4.0.2",
|
|
41
|
+
"@equisoft/eslint-config-typescript": "4.0.2",
|
|
42
|
+
"@equisoft/jest-utils": "1.7.0",
|
|
43
|
+
"@equisoft/typescript-config": "2.0.0",
|
|
44
|
+
"@microsoft/eslint-formatter-sarif": "3.1.0",
|
|
45
|
+
"@types/babel__core": "^7",
|
|
46
|
+
"@types/babel__preset-env": "^7",
|
|
47
|
+
"@types/jest": "30.0.0",
|
|
48
|
+
"@types/node": "22.16.3",
|
|
49
|
+
"@typescript-eslint/eslint-plugin": "7.18.0",
|
|
50
|
+
"@typescript-eslint/parser": "7.18.0",
|
|
51
|
+
"babel-jest": "30.0.4",
|
|
52
|
+
"eslint": "8.57.1",
|
|
53
|
+
"eslint-import-resolver-node": "0.3.9",
|
|
54
|
+
"eslint-import-resolver-typescript": "4.4.4",
|
|
55
|
+
"eslint-plugin-import": "2.32.0",
|
|
56
|
+
"jest": "30.0.4",
|
|
57
|
+
"jest-junit": "16.0.0",
|
|
58
|
+
"jest-util": "30.0.2",
|
|
59
|
+
"ts-jest": "29.4.0",
|
|
60
|
+
"typescript": "5.8.3",
|
|
61
|
+
"yargs": "18.0.0"
|
|
62
|
+
},
|
|
63
|
+
"resolutions": {
|
|
64
|
+
"@babel/core/json5": "^2.2.2",
|
|
65
|
+
"ts-jest/json5": "^2.2.2"
|
|
66
|
+
},
|
|
67
|
+
"packageManager": "yarn@4.9.2"
|
|
68
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "@equisoft/typescript-config/tsconfig.standards.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "es6",
|
|
5
|
+
"module": "commonjs",
|
|
6
|
+
"esModuleInterop": true,
|
|
7
|
+
"noEmitOnError": true,
|
|
8
|
+
"outDir": "dist",
|
|
9
|
+
"baseUrl": "./src/",
|
|
10
|
+
"paths": {},
|
|
11
|
+
"declaration": true,
|
|
12
|
+
"declarationDir": "dist"
|
|
13
|
+
},
|
|
14
|
+
"include": [
|
|
15
|
+
"src",
|
|
16
|
+
"*.ts"
|
|
17
|
+
],
|
|
18
|
+
"exclude": [
|
|
19
|
+
"src/**/*.spec.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|