@decimalturn/toml-patch 3.2.0-lite → 3.2.0
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/LICENSE +22 -0
- package/README.md +200 -0
- package/dist/toml-patch.d.ts +547 -0
- package/dist/toml-patch.js +84 -0
- package/package.json +110 -14
- /package/dist/{patch.d.ts → patch-lite.d.ts} +0 -0
- /package/dist/{patch.js → patch-lite.js} +0 -0
package/package.json
CHANGED
|
@@ -1,30 +1,126 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decimalturn/toml-patch",
|
|
3
|
-
"version": "3.2.0
|
|
4
|
-
"
|
|
3
|
+
"version": "3.2.0",
|
|
4
|
+
"contributors": [
|
|
5
|
+
"Tim Hall <tim.hall.engr@gmail.com>",
|
|
6
|
+
"Martin Leduc <31558169+DecimalTurn@users.noreply.github.com>"
|
|
7
|
+
],
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"description": "Patch, parse, and stringify TOML while preserving comments, whitespace and formatting.",
|
|
5
10
|
"homepage": "https://github.com/DecimalTurn/toml-patch",
|
|
6
11
|
"repository": {
|
|
7
12
|
"type": "git",
|
|
8
13
|
"url": "git+https://github.com/DecimalTurn/toml-patch.git"
|
|
9
14
|
},
|
|
10
|
-
"
|
|
11
|
-
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"toml",
|
|
20
|
+
"patch",
|
|
21
|
+
"edit",
|
|
22
|
+
"parse",
|
|
23
|
+
"stringify",
|
|
24
|
+
"parser",
|
|
25
|
+
"encoder",
|
|
26
|
+
"decoder",
|
|
27
|
+
"preserve-whitespace",
|
|
28
|
+
"preserve-comments",
|
|
29
|
+
"preserve-formatting",
|
|
30
|
+
"edit-in-place"
|
|
31
|
+
],
|
|
12
32
|
"engines": {
|
|
13
33
|
"node": ">=16"
|
|
14
34
|
},
|
|
35
|
+
"type": "module",
|
|
15
36
|
"sideEffects": false,
|
|
16
|
-
"types": "./dist/patch.d.ts",
|
|
17
|
-
"files": [
|
|
18
|
-
"dist/"
|
|
19
|
-
],
|
|
37
|
+
"types": "./dist/toml-patch.d.ts",
|
|
20
38
|
"exports": {
|
|
21
39
|
".": {
|
|
22
|
-
"types": "./dist/patch.d.ts",
|
|
23
|
-
"import": "./dist/patch.js",
|
|
24
|
-
"default": "./dist/patch.js"
|
|
40
|
+
"types": "./dist/toml-patch.d.ts",
|
|
41
|
+
"import": "./dist/toml-patch.js",
|
|
42
|
+
"default": "./dist/toml-patch.js"
|
|
43
|
+
},
|
|
44
|
+
"./patch-lite": {
|
|
45
|
+
"types": "./dist/patch-lite.d.ts",
|
|
46
|
+
"import": "./dist/patch-lite.js",
|
|
47
|
+
"default": "./dist/patch-lite.js"
|
|
25
48
|
}
|
|
26
49
|
},
|
|
27
|
-
"
|
|
28
|
-
"
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@decimalturn/toml-patch": "npm:@decimalturn/toml-patch@3.1.0",
|
|
52
|
+
"@js-temporal/polyfill": "^0.5.1",
|
|
53
|
+
"@playwright/test": "^1.59.1",
|
|
54
|
+
"@types/dedent": "^0.7.2",
|
|
55
|
+
"@types/js-yaml": "^4.0.0",
|
|
56
|
+
"@types/node": "^24.12.3",
|
|
57
|
+
"benchmark": "^2",
|
|
58
|
+
"dedent": "^1.5.3",
|
|
59
|
+
"glob": "^13.0.0",
|
|
60
|
+
"js-yaml": "4.3.2",
|
|
61
|
+
"jsr": "^0.14.0",
|
|
62
|
+
"mri": "^1",
|
|
63
|
+
"npm-run-all2": "^9.0.0",
|
|
64
|
+
"oxlint": "^1.55.0",
|
|
65
|
+
"rimraf": "^6.0.0",
|
|
66
|
+
"smol-toml": "^1.9.0",
|
|
67
|
+
"tsdown": "^0.23.0",
|
|
68
|
+
"tslib": "^2.0.0",
|
|
69
|
+
"typescript": "7.0.2",
|
|
70
|
+
"vitest": "^5.0.0"
|
|
71
|
+
},
|
|
72
|
+
"prettier": {
|
|
73
|
+
"singleQuote": true,
|
|
74
|
+
"printWidth": 100
|
|
75
|
+
},
|
|
76
|
+
"files": [
|
|
77
|
+
"dist/*.js",
|
|
78
|
+
"dist/*.d.ts"
|
|
79
|
+
],
|
|
80
|
+
"json-comments": {
|
|
81
|
+
"tips": "Please install the JsonComments plugin to enable commenting functionality for JSON files, see: https://github.com/zhangfisher/json_comments_extension",
|
|
82
|
+
"package.json": {
|
|
83
|
+
"devDependencies.js-yaml": "Used by specs/specs.test.ts to parse YAML expected-value fixtures from submodules/spec-tests (https://github.com/iarna/toml-spec-tests).",
|
|
84
|
+
"scripts.bench": "Parse and stringify benchmark over the curated fixtures. Fails the CI job when toml-patch exceeds the maxSlowdown budgets in benchmark/thresholds.toml. Set BENCH_BASELINE to a build path to add the branch comparison.",
|
|
85
|
+
"scripts.bench:all": "Runs the same benchmark over every fixture in both corpora, including the single-type and scaling documents the curated set leaves out."
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"scripts": {
|
|
89
|
+
"dev": "pnpm run typecheck && pnpm run build && npm-run-all2 --parallel test:all specs",
|
|
90
|
+
"test": "vitest run",
|
|
91
|
+
"test:output": "node scripts/test-debug.mjs",
|
|
92
|
+
"test:js": "vitest run --config vitest.js.config.ts",
|
|
93
|
+
"test:watch": "vitest",
|
|
94
|
+
"test:go": "./run-toml-test.bash",
|
|
95
|
+
"test:playwright": "playwright test",
|
|
96
|
+
"playwright:install": "playwright install --with-deps chromium",
|
|
97
|
+
"test:all": "pnpm run test && pnpm run test:js && pnpm run test:playwright",
|
|
98
|
+
"typecheck": "tsc",
|
|
99
|
+
"specs": "vitest run --config vitest.specs.config.ts",
|
|
100
|
+
"bench": "node benchmark/fixture-benchmark.mjs",
|
|
101
|
+
"bench:all": "node benchmark/fixture-benchmark.mjs --all",
|
|
102
|
+
"benchmark": "npm-run-all2 bench:*",
|
|
103
|
+
"benchmark:ci": "npm-run-all2 \"bench:* -- --sample --versions latest\"",
|
|
104
|
+
"seed-toml": "npx -y tsx scripts/generate-seed-toml.ts",
|
|
105
|
+
"fuzz": "npx -y tsx scripts/fuzz-run.ts --seed 0 --to 9999 --mutations 3 --progress 100",
|
|
106
|
+
"fuzz2": "npx -y tsx scripts/fuzz-run2.ts --seed 0 --to 9999 --mutations 3",
|
|
107
|
+
"fuzz3": "npx -y tsx scripts/fuzz-run3.ts --seed 0 --to 9999 --mutations 3",
|
|
108
|
+
"bench:bundle-size": "node benchmark/bundle-size.mjs",
|
|
109
|
+
"bench:parse": "node benchmark/parse-benchmark.mjs",
|
|
110
|
+
"bench:stringify": "node benchmark/stringify-benchmark.mjs",
|
|
111
|
+
"bench:patch": "node benchmark/patch-benchmark.mjs",
|
|
112
|
+
"bench:patch-lite": "node benchmark/patch-lite-bundle-size.mjs",
|
|
113
|
+
"profile": "node benchmark/profile.mjs",
|
|
114
|
+
"build": "rimraf dist && tsdown",
|
|
115
|
+
"build:demo": "node scripts/build-demo.mjs",
|
|
116
|
+
"build:dev": "node scripts/prepare-dev-package.mjs",
|
|
117
|
+
"build:lite": "node scripts/prepare-lite-package.mjs",
|
|
118
|
+
"test:dev": "pnpm run build:dev && node scripts/test-dev-package.mjs",
|
|
119
|
+
"test:lite": "pnpm run build:lite && node scripts/test-lite-package.mjs",
|
|
120
|
+
"lint": "oxlint",
|
|
121
|
+
"lint:fix": "oxlint --fix",
|
|
122
|
+
"check-overrides": "node scripts/check-overrides.mjs",
|
|
123
|
+
"compare-branch-size": "node scripts/compare-branch-size.mjs",
|
|
124
|
+
"publish:jsr": "jsr publish --allow-dirty"
|
|
29
125
|
}
|
|
30
|
-
}
|
|
126
|
+
}
|
|
File without changes
|
|
File without changes
|