calculation-breakdown 0.0.0-stage → 0.1.2
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-ARCHIVE.md +3 -0
- package/CHANGELOG.md +19 -0
- package/LICENSE +21 -0
- package/README.md +179 -2
- package/dist/calculation-breakdown-builder.d.ts +56 -0
- package/dist/calculation-breakdown-builder.d.ts.map +1 -0
- package/dist/calculation-breakdown-builder.js +242 -0
- package/dist/calculation-breakdown-builder.js.map +1 -0
- package/dist/calculation-breakdown-human-string.d.ts +24 -0
- package/dist/calculation-breakdown-human-string.d.ts.map +1 -0
- package/dist/calculation-breakdown-human-string.js +86 -0
- package/dist/calculation-breakdown-human-string.js.map +1 -0
- package/dist/calculation-breakdown.error.d.ts +14 -0
- package/dist/calculation-breakdown.error.d.ts.map +1 -0
- package/dist/calculation-breakdown.error.js +16 -0
- package/dist/calculation-breakdown.error.js.map +1 -0
- package/dist/calculation-breakdown.interface.d.ts +134 -0
- package/dist/calculation-breakdown.interface.d.ts.map +1 -0
- package/dist/calculation-breakdown.interface.js +2 -0
- package/dist/calculation-breakdown.interface.js.map +1 -0
- package/dist/calculation-breakdown.type.d.ts +20 -0
- package/dist/calculation-breakdown.type.d.ts.map +1 -0
- package/dist/calculation-breakdown.type.js +2 -0
- package/dist/calculation-breakdown.type.js.map +1 -0
- package/dist/cjs/calculation-breakdown-builder.d.ts +55 -0
- package/dist/cjs/calculation-breakdown-builder.js +245 -0
- package/dist/cjs/calculation-breakdown-human-string.d.ts +23 -0
- package/dist/cjs/calculation-breakdown-human-string.js +88 -0
- package/dist/cjs/calculation-breakdown.error.d.ts +13 -0
- package/dist/cjs/calculation-breakdown.error.js +19 -0
- package/dist/cjs/calculation-breakdown.interface.d.ts +133 -0
- package/dist/cjs/calculation-breakdown.interface.js +2 -0
- package/dist/cjs/calculation-breakdown.type.d.ts +19 -0
- package/dist/cjs/calculation-breakdown.type.js +2 -0
- package/dist/cjs/index.d.ts +5 -0
- package/dist/cjs/index.js +9 -0
- package/dist/cjs/package.json +3 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/docs/_config.yml +19 -0
- package/docs/assets/calculation-breakdown/calculation-breakdown-builder.js +242 -0
- package/docs/assets/calculation-breakdown/calculation-breakdown-human-string.js +86 -0
- package/docs/assets/calculation-breakdown/calculation-breakdown.error.js +16 -0
- package/docs/assets/calculation-breakdown/calculation-breakdown.interface.js +2 -0
- package/docs/assets/calculation-breakdown/calculation-breakdown.type.js +2 -0
- package/docs/assets/calculation-breakdown/index.js +4 -0
- package/docs/changelog-archive.md +9 -0
- package/docs/changelog.md +25 -0
- package/docs/index.md +13 -0
- package/docs/playground/index.html +110 -0
- package/docs/playground/playground.css +407 -0
- package/docs/playground/playground.js +1303 -0
- package/package.json +66 -4
package/package.json
CHANGED
|
@@ -1,6 +1,68 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "calculation-breakdown",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Typed, serializable breakdowns of calculations performed by financial and billing systems",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/ThisMeansMore/calculation-breakdown.git"
|
|
10
|
+
},
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/ThisMeansMore/calculation-breakdown/issues"
|
|
13
|
+
},
|
|
14
|
+
"homepage": "https://github.com/ThisMeansMore/calculation-breakdown#readme",
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public"
|
|
17
|
+
},
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": ">=18"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist",
|
|
23
|
+
"docs",
|
|
24
|
+
"README.md",
|
|
25
|
+
"CHANGELOG.md",
|
|
26
|
+
"CHANGELOG-ARCHIVE.md",
|
|
27
|
+
"LICENSE"
|
|
28
|
+
],
|
|
29
|
+
"sideEffects": false,
|
|
30
|
+
"exports": {
|
|
31
|
+
".": {
|
|
32
|
+
"import": {
|
|
33
|
+
"types": "./dist/index.d.ts",
|
|
34
|
+
"default": "./dist/index.js"
|
|
35
|
+
},
|
|
36
|
+
"require": {
|
|
37
|
+
"types": "./dist/cjs/index.d.ts",
|
|
38
|
+
"default": "./dist/cjs/index.js"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"main": "./dist/cjs/index.js",
|
|
43
|
+
"types": "./dist/index.d.ts",
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "node scripts/build.mjs",
|
|
46
|
+
"docs:sync": "npm run build",
|
|
47
|
+
"playground": "npm run build && node scripts/playground-server.mjs",
|
|
48
|
+
"typecheck": "tsc --noEmit -p tsconfig.json && tsc -p test/tsconfig.json && tsc -p test/types/tsconfig.json",
|
|
49
|
+
"test:unit": "node -e \"require('node:fs').rmSync('.test-dist', { recursive: true, force: true })\" && tsc -p test/tsconfig.build.json && node --test .test-dist/*.spec.js",
|
|
50
|
+
"test": "npm run build && npm run test:unit && npm run typecheck",
|
|
51
|
+
"prepack": "npm test",
|
|
52
|
+
"prepublishOnly": "node scripts/publish-version.mjs --check",
|
|
53
|
+
"prepare-version": "node scripts/prepare-version.mjs",
|
|
54
|
+
"publish-version": "node scripts/publish-version.mjs"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@types/node": "^22.0.0",
|
|
58
|
+
"typescript": "^5.9.3"
|
|
59
|
+
},
|
|
60
|
+
"keywords": [
|
|
61
|
+
"financial",
|
|
62
|
+
"billing",
|
|
63
|
+
"accounting",
|
|
64
|
+
"breakdown",
|
|
65
|
+
"trace",
|
|
66
|
+
"typescript"
|
|
67
|
+
]
|
|
68
|
+
}
|