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.
Files changed (55) hide show
  1. package/CHANGELOG-ARCHIVE.md +3 -0
  2. package/CHANGELOG.md +19 -0
  3. package/LICENSE +21 -0
  4. package/README.md +179 -2
  5. package/dist/calculation-breakdown-builder.d.ts +56 -0
  6. package/dist/calculation-breakdown-builder.d.ts.map +1 -0
  7. package/dist/calculation-breakdown-builder.js +242 -0
  8. package/dist/calculation-breakdown-builder.js.map +1 -0
  9. package/dist/calculation-breakdown-human-string.d.ts +24 -0
  10. package/dist/calculation-breakdown-human-string.d.ts.map +1 -0
  11. package/dist/calculation-breakdown-human-string.js +86 -0
  12. package/dist/calculation-breakdown-human-string.js.map +1 -0
  13. package/dist/calculation-breakdown.error.d.ts +14 -0
  14. package/dist/calculation-breakdown.error.d.ts.map +1 -0
  15. package/dist/calculation-breakdown.error.js +16 -0
  16. package/dist/calculation-breakdown.error.js.map +1 -0
  17. package/dist/calculation-breakdown.interface.d.ts +134 -0
  18. package/dist/calculation-breakdown.interface.d.ts.map +1 -0
  19. package/dist/calculation-breakdown.interface.js +2 -0
  20. package/dist/calculation-breakdown.interface.js.map +1 -0
  21. package/dist/calculation-breakdown.type.d.ts +20 -0
  22. package/dist/calculation-breakdown.type.d.ts.map +1 -0
  23. package/dist/calculation-breakdown.type.js +2 -0
  24. package/dist/calculation-breakdown.type.js.map +1 -0
  25. package/dist/cjs/calculation-breakdown-builder.d.ts +55 -0
  26. package/dist/cjs/calculation-breakdown-builder.js +245 -0
  27. package/dist/cjs/calculation-breakdown-human-string.d.ts +23 -0
  28. package/dist/cjs/calculation-breakdown-human-string.js +88 -0
  29. package/dist/cjs/calculation-breakdown.error.d.ts +13 -0
  30. package/dist/cjs/calculation-breakdown.error.js +19 -0
  31. package/dist/cjs/calculation-breakdown.interface.d.ts +133 -0
  32. package/dist/cjs/calculation-breakdown.interface.js +2 -0
  33. package/dist/cjs/calculation-breakdown.type.d.ts +19 -0
  34. package/dist/cjs/calculation-breakdown.type.js +2 -0
  35. package/dist/cjs/index.d.ts +5 -0
  36. package/dist/cjs/index.js +9 -0
  37. package/dist/cjs/package.json +3 -0
  38. package/dist/index.d.ts +6 -0
  39. package/dist/index.d.ts.map +1 -0
  40. package/dist/index.js +4 -0
  41. package/dist/index.js.map +1 -0
  42. package/docs/_config.yml +19 -0
  43. package/docs/assets/calculation-breakdown/calculation-breakdown-builder.js +242 -0
  44. package/docs/assets/calculation-breakdown/calculation-breakdown-human-string.js +86 -0
  45. package/docs/assets/calculation-breakdown/calculation-breakdown.error.js +16 -0
  46. package/docs/assets/calculation-breakdown/calculation-breakdown.interface.js +2 -0
  47. package/docs/assets/calculation-breakdown/calculation-breakdown.type.js +2 -0
  48. package/docs/assets/calculation-breakdown/index.js +4 -0
  49. package/docs/changelog-archive.md +9 -0
  50. package/docs/changelog.md +25 -0
  51. package/docs/index.md +13 -0
  52. package/docs/playground/index.html +110 -0
  53. package/docs/playground/playground.css +407 -0
  54. package/docs/playground/playground.js +1303 -0
  55. package/package.json +66 -4
package/package.json CHANGED
@@ -1,6 +1,68 @@
1
1
  {
2
2
  "name": "calculation-breakdown",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
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
+ }