pnpm 12.15.0 → 12.16.1

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 (47) hide show
  1. package/CHANGELOG.md +213 -0
  2. package/README.md +4 -4
  3. package/bin/pnpm.mjs +11 -233
  4. package/dist/node_modules/.pnpm-workspace-state-v1.json +97 -269
  5. package/dist/node_modules/confbox/LICENSE +27 -0
  6. package/dist/node_modules/confbox/dist/_chunks/_format.d.mts +22 -0
  7. package/dist/node_modules/confbox/dist/_chunks/_format.mjs +1 -0
  8. package/dist/node_modules/confbox/dist/_chunks/libs/detect-indent.mjs +1 -0
  9. package/dist/node_modules/confbox/dist/_chunks/libs/ini.mjs +3 -0
  10. package/dist/node_modules/confbox/dist/_chunks/libs/js-yaml.d.mts +33 -0
  11. package/dist/node_modules/confbox/dist/_chunks/libs/js-yaml.mjs +38 -0
  12. package/dist/node_modules/confbox/dist/_chunks/libs/json5.mjs +14 -0
  13. package/dist/node_modules/confbox/dist/_chunks/libs/smol-toml.mjs +11 -0
  14. package/dist/node_modules/confbox/dist/_chunks/libs/strip-json-comments.mjs +4 -0
  15. package/dist/node_modules/confbox/dist/_chunks/rolldown-runtime.mjs +1 -0
  16. package/dist/node_modules/confbox/dist/index.d.mts +7 -0
  17. package/dist/node_modules/confbox/dist/index.mjs +1 -0
  18. package/dist/node_modules/confbox/dist/ini.d.mts +59 -0
  19. package/dist/node_modules/confbox/dist/ini.mjs +1 -0
  20. package/dist/node_modules/confbox/dist/json.d.mts +25 -0
  21. package/dist/node_modules/confbox/dist/json.mjs +1 -0
  22. package/dist/node_modules/confbox/dist/json5.d.mts +55 -0
  23. package/dist/node_modules/confbox/dist/json5.mjs +1 -0
  24. package/dist/node_modules/confbox/dist/jsonc.d.mts +29 -0
  25. package/dist/node_modules/confbox/dist/jsonc.mjs +1 -0
  26. package/dist/node_modules/confbox/dist/toml.d.mts +20 -0
  27. package/dist/node_modules/confbox/dist/toml.mjs +1 -0
  28. package/dist/node_modules/confbox/dist/yaml.d.mts +101 -0
  29. package/dist/node_modules/confbox/dist/yaml.mjs +1 -0
  30. package/dist/node_modules/confbox/package.json +68 -0
  31. package/dist/node_modules/get-pnpm/lib/corepack.js +79 -0
  32. package/dist/node_modules/get-pnpm/lib/downloadExecutable.js +10 -4
  33. package/dist/node_modules/get-pnpm/lib/extractTarballMember.js +45 -35
  34. package/dist/node_modules/get-pnpm/lib/index.js +3 -219
  35. package/dist/node_modules/get-pnpm/lib/install.js +293 -0
  36. package/dist/node_modules/get-pnpm/lib/npmConfig.js +280 -0
  37. package/dist/node_modules/get-pnpm/lib/npmSigningKeys.js +2 -6
  38. package/dist/node_modules/get-pnpm/lib/platformPackageName.js +11 -7
  39. package/dist/node_modules/get-pnpm/lib/pnpmConfig.js +297 -0
  40. package/dist/node_modules/get-pnpm/lib/projectPin.js +201 -0
  41. package/dist/node_modules/get-pnpm/lib/registry.js +265 -41
  42. package/dist/node_modules/get-pnpm/lib/resolveVersion.js +19 -2
  43. package/dist/node_modules/get-pnpm/lib/sameFileContents.js +31 -27
  44. package/dist/node_modules/get-pnpm/lib/shadowingPnpm.js +174 -0
  45. package/dist/node_modules/get-pnpm/lib/undoHint.js +12 -0
  46. package/dist/node_modules/get-pnpm/package.json +20 -14
  47. package/package.json +15 -15
@@ -1,9 +1,9 @@
1
1
  {
2
- "lastValidatedTimestamp": 1792577863758,
2
+ "lastValidatedTimestamp": 1793108148932,
3
3
  "projects": {
4
4
  "/home/runner/_work/pnpm/pnpm/pnpm/npm/pnpm/temp-deploy": {
5
5
  "name": "pacquet",
6
- "version": "12.15.0",
6
+ "version": "12.16.1",
7
7
  "hasModulesDir": true
8
8
  }
9
9
  },
@@ -20,276 +20,18 @@
20
20
  "unrs-resolver": true
21
21
  },
22
22
  "autoInstallPeers": true,
23
- "catalogs": {
24
- "default": {
25
- "@babel/core": "^7.29.7",
26
- "@babel/plugin-transform-explicit-resource-management": "^7.29.7",
27
- "@commitlint/cli": "^21.2.4",
28
- "@commitlint/config-conventional": "^21.2.4",
29
- "@commitlint/prompt-cli": "^21.2.4",
30
- "@cyclonedx/cyclonedx-library": "10.3.0",
31
- "@emnapi/wasi-threads": "2.2.0",
32
- "@eslint/js": "^10.0.1",
33
- "@inquirer/prompts": "^8.7.4",
34
- "@jest/globals": "30.4.1",
35
- "@npm/types": "^2.1.0",
36
- "@openpgp/web-stream-tools": "0.3.1",
37
- "@pnpm/byline": "^1.0.0",
38
- "@pnpm/colorize-semver-diff": "^2.0.0",
39
- "@pnpm/exec": "^4.0.0",
40
- "@pnpm/logger": "^1100.0.0",
41
- "@pnpm/meta-updater": "2.0.6",
42
- "@pnpm/nopt": "^0.3.1",
43
- "@pnpm/npm-package-arg": "^2.0.0",
44
- "@pnpm/patch-package": "0.0.1",
45
- "@pnpm/semver-diff": "^2.0.0",
46
- "@pnpm/tabtab": "^0.5.4",
47
- "@pnpm/tgz-fixtures": "0.0.0",
48
- "@reflink/reflink": "0.1.19",
49
- "@rushstack/worker-pool": "0.7.30",
50
- "@stylistic/eslint-plugin": "^5.10.0",
51
- "@tybys/wasm-util": "0.10.4",
52
- "@types/adm-zip": "^0.6.0",
53
- "@types/archy": "0.0.36",
54
- "@types/cross-spawn": "^6.0.6",
55
- "@types/fs-extra": "^11.0.4",
56
- "@types/graceful-fs": "^4.1.9",
57
- "@types/hosted-git-info": "^3.0.5",
58
- "@types/ini": "4.1.1",
59
- "@types/is-gzip": "2.0.2",
60
- "@types/is-windows": "^1.0.2",
61
- "@types/isexe": "2.0.4",
62
- "@types/jest": "^30.0.0",
63
- "@types/js-yaml": "^4.0.9",
64
- "@types/libnpmpublish": "^11.2.0",
65
- "@types/lodash.kebabcase": "4.1.9",
66
- "@types/lodash.throttle": "4.1.9",
67
- "@types/micromatch": "^4.0.10",
68
- "@types/node": "^22.19.19",
69
- "@types/normalize-package-data": "^2.4.4",
70
- "@types/normalize-path": "^3.0.2",
71
- "@types/npm-registry-fetch": "^8.0.9",
72
- "@types/object-hash": "3.0.6",
73
- "@types/parse-json": "^7.0.0",
74
- "@types/picomatch": "^4.0.3",
75
- "@types/pnpm__byline": "npm:@types/byline@^4.2.36",
76
- "@types/proxyquire": "^1.3.31",
77
- "@types/qrcode-terminal": "^0.12.2",
78
- "@types/ramda": "0.32.0",
79
- "@types/retry": "^0.12.5",
80
- "@types/semver": "7.8.0",
81
- "@types/spdx-expression-parse": "4.0.0",
82
- "@types/ssri": "^7.1.5",
83
- "@types/tar-stream": "^3.1.5",
84
- "@types/touch": "^3.1.5",
85
- "@types/validate-npm-package-name": "^4.0.2",
86
- "@types/which": "^3.0.4",
87
- "@types/write-file-atomic": "^4.0.3",
88
- "@types/yarnpkg__lockfile": "^1.1.9",
89
- "@types/yauzl": "^3.4.0",
90
- "@types/zkochan__table": "npm:@types/table@6.3.2",
91
- "@typescript-eslint/utils": "^8.72.0",
92
- "@typescript/native-preview": "7.0.0-dev.20260707.2",
93
- "@webcontainer/api": "^1.6.4",
94
- "@yarnpkg/core": "4.9.1",
95
- "@yarnpkg/extensions": "2.0.7",
96
- "@yarnpkg/fslib": "^3.1.5",
97
- "@yarnpkg/lockfile": "^1.1.0",
98
- "@yarnpkg/nm": "4.1.1",
99
- "@yarnpkg/parsers": "3.1.0",
100
- "@yarnpkg/pnp": "^4.1.7",
101
- "@yarnpkg/shell": "4.1.3",
102
- "@zkochan/retry": "^0.2.0",
103
- "@zkochan/rimraf": "^4.0.0",
104
- "@zkochan/table": "^2.0.1",
105
- "adm-zip": "^0.6.1",
106
- "agentkeepalive": "^4.6.0",
107
- "amaro": "^1.2.1",
108
- "ansi-diff": "^1.2.0",
109
- "archy": "^1.0.0",
110
- "better-path-resolve": "2.0.0",
111
- "bin-links": "^6.0.2",
112
- "bole": "^5.0.29",
113
- "boxen": "npm:@zkochan/boxen@5.1.2",
114
- "c8": "^12.0.0",
115
- "camelcase": "^10.0.0",
116
- "camelcase-keys": "^10.0.3",
117
- "can-link": "^3.0.0",
118
- "can-write-to-dir": "^2.0.0",
119
- "chalk": "^6.0.1",
120
- "ci-info": "^4.4.0",
121
- "cli-truncate": "^6.1.1",
122
- "cmd-extension": "^2.0.0",
123
- "comver-to-semver": "^2.0.0",
124
- "cross-env": "^10.1.0",
125
- "cross-spawn": "^7.0.6",
126
- "cspell": "9.8.0",
127
- "deep-require-cwd": "1.0.0",
128
- "delay": "^7.0.0",
129
- "detect-indent": "7.0.2",
130
- "detect-libc": "^2.1.2",
131
- "didyoumean2": "^7.0.4",
132
- "dint": "^5.1.0",
133
- "dir-is-case-sensitive": "^3.0.0",
134
- "empathic": "^2.1.0",
135
- "enhanced-resolve": "5.26.0",
136
- "esbuild": "^0.28.2",
137
- "escape-string-regexp": "^5.0.0",
138
- "eslint": "^10.13.0",
139
- "eslint-plugin-import-x": "^4.17.1",
140
- "eslint-plugin-jest": "^29.17.0",
141
- "eslint-plugin-n": "^18.5.0",
142
- "eslint-plugin-promise": "^7.3.0",
143
- "eslint-plugin-regexp": "^3.1.1",
144
- "eslint-plugin-simple-import-sort": "^14.0.0",
145
- "execa": "npm:safe-execa@0.3.0",
146
- "exists-link": "2.0.0",
147
- "fast-deep-equal": "^3.1.3",
148
- "fast-glob": "^3.3.3",
149
- "fs-extra": "^11.4.1",
150
- "fuse-native": "^2.2.6",
151
- "get-pnpm": "^0.0.5",
152
- "get-port": "^7.2.0",
153
- "ghooks": "2.0.4",
154
- "graceful-fs": "^4.2.11",
155
- "graph-cycles": "3.0.0",
156
- "hosted-git-info": "npm:@pnpm/hosted-git-info@1.0.0",
157
- "http-proxy-agent": "^9.1.0",
158
- "https-proxy-agent": "^9.1.0",
159
- "https-proxy-server-express": "0.1.2",
160
- "human-id": "^4.2.2",
161
- "husky": "^9.1.7",
162
- "hyperdrive-schemas": "^2.0.0",
163
- "ini": "6.0.0",
164
- "is-gzip": "2.0.0",
165
- "is-inner-link": "^5.0.0",
166
- "is-subdir": "^2.0.1",
167
- "is-windows": "^1.0.2",
168
- "isexe": "4.0.0",
169
- "jest": "30.4.2",
170
- "jest-diff": "30.4.1",
171
- "js-yaml": "npm:@zkochan/js-yaml@0.0.11",
172
- "json5": "^2.2.3",
173
- "keyv": "6.1.0",
174
- "lcov-result-merger": "^6.0.0",
175
- "libnpmpublish": "^11.2.0",
176
- "load-json-file": "^7.0.1",
177
- "lodash.kebabcase": "^4.1.1",
178
- "lodash.throttle": "4.1.1",
179
- "loud-rejection": "^2.2.0",
180
- "lru-cache": "^11.5.3",
181
- "make-empty-dir": "^4.0.0",
182
- "mdast-util-to-string": "^4.0.0",
183
- "memfs": "^4.80.0",
184
- "memoize": "^11.0.0",
185
- "micromatch": "^4.0.8",
186
- "msgpackr": "2.1.2",
187
- "nm-prune": "^5.0.0",
188
- "node-gyp": "^12.3.0",
189
- "normalize-newline": "5.0.0",
190
- "normalize-package-data": "^8.0.0",
191
- "normalize-path": "^3.0.0",
192
- "normalize-registry-url": "2.0.1",
193
- "npm-packlist": "10.0.4",
194
- "npm-registry-fetch": "^19.0.0",
195
- "object-hash": "3.0.0",
196
- "open": "^11.0.4",
197
- "openpgp": "^6.3.2",
198
- "p-defer": "^4.0.1",
199
- "p-every": "^2.0.0",
200
- "p-filter": "^4.1.0",
201
- "p-limit": "^7.3.3",
202
- "p-queue": "^10.0.0",
203
- "parse-json": "^8.3.0",
204
- "path-absolute": "^2.0.0",
205
- "path-exists": "^5.0.0",
206
- "path-name": "^1.0.0",
207
- "path-temp": "^3.0.0",
208
- "pidtree": "^1.0.0",
209
- "playwright-core": "^1.64.1",
210
- "preferred-pm": "^5.0.1",
211
- "pretty-bytes": "^7.2.0",
212
- "pretty-ms": "^10.0.0",
213
- "promise-share": "^2.0.1",
214
- "proxy": "^4.1.0",
215
- "proxyquire": "^2.1.3",
216
- "ps-list": "^9.0.0",
217
- "qrcode-terminal": "^0.12.0",
218
- "ramda": "npm:@pnpm/ramda@0.28.1",
219
- "read-ini-file": "5.0.0",
220
- "read-yaml-file": "^3.0.0",
221
- "realpath-missing": "^2.0.0",
222
- "remark-parse": "^11.0.0",
223
- "remark-stringify": "^11.0.0",
224
- "rename-overwrite": "^7.0.1",
225
- "render-help": "^2.0.0",
226
- "resolve-link-target": "^3.0.0",
227
- "rimraf": "^6.1.3",
228
- "root-link-target": "^4.0.0",
229
- "rxjs": "^7.8.2",
230
- "safe-buffer": "5.2.1",
231
- "safe-execa": "^0.3.0",
232
- "safe-promise-defer": "^2.0.0",
233
- "sanitize-filename": "^1.6.4",
234
- "seek-bzip": "2.0.0",
235
- "semver": "^7.8.5",
236
- "semver-range-intersect": "^0.3.1",
237
- "semver-utils": "^1.1.4",
238
- "shlex": "^3.0.0",
239
- "shx": "^0.4.0",
240
- "signal-exit": "^4.1.0",
241
- "socks": "^2.8.10",
242
- "socks-proxy-agent": "^10.1.0",
243
- "sort-keys": "^6.0.1",
244
- "spdx-expression-parse": "5.0.0",
245
- "split-cmd": "^1.1.0",
246
- "split2": "^4.2.0",
247
- "ssri": "13.0.1",
248
- "stacktracey": "^2.2.0",
249
- "string-length": "^7.0.1",
250
- "string-width": "^8.3.0",
251
- "strip-bom": "^5.0.0",
252
- "strip-comments-strings": "1.2.0",
253
- "symlink-dir": "^10.0.3",
254
- "tar": "^7.5.22",
255
- "tar-stream": "^3.2.2",
256
- "tempy": "3.0.0",
257
- "terminal-link": "^5.0.0",
258
- "tinyglobby": "^0.2.17",
259
- "touch": "3.1.1",
260
- "tree-kill": "^1.2.2",
261
- "ts-jest-resolver": "2.0.1",
262
- "typescript": "6.0.3",
263
- "typescript-eslint": "^8.72.0",
264
- "uid-number": "0.0.6",
265
- "undici": "^7.29.1",
266
- "unified": "^11.0.5",
267
- "validate-npm-package-name": "7.0.2",
268
- "version-selector-type": "^3.0.0",
269
- "vfile": "^6.0.3",
270
- "which": "npm:@pnpm/which@^3.0.1",
271
- "write-file-atomic": "^7.0.1",
272
- "write-ini-file": "5.0.0",
273
- "write-json-file": "^7.0.0",
274
- "write-json5-file": "^4.0.0",
275
- "write-package": "7.2.0",
276
- "write-yaml-file": "^6.0.0",
277
- "yaml": "^2.9.1",
278
- "yaml-tag": "1.1.0",
279
- "yauzl": "^3.4.0"
280
- }
281
- },
23
+ "catalogs": {},
282
24
  "dedupeDirectDeps": false,
283
25
  "dedupeInjectedDeps": false,
284
26
  "dedupePeerDependents": false,
285
27
  "dedupePeers": false,
286
- "autoDedupe": true,
287
28
  "dev": false,
288
29
  "excludeLinksFromLockfile": false,
289
30
  "hoistPattern": [
290
31
  "jest-runner"
291
32
  ],
292
33
  "hoistWorkspacePackages": true,
34
+ "ignoredOptionalDependencies": [],
293
35
  "injectWorkspacePackages": false,
294
36
  "linkWorkspacePackages": false,
295
37
  "lockfileIncludeResolutionSettings": true,
@@ -327,18 +69,14 @@
327
69
  "which-pm",
328
70
  "write-ini-file",
329
71
  "write-json5-file",
330
- "write-yaml-file",
331
- "http-proxy-middleware@3.0.7"
72
+ "write-yaml-file"
332
73
  ],
333
74
  "minimumReleaseAgeIgnoreMissingTime": true,
334
75
  "minimumReleaseAgeStrict": true,
335
76
  "nodeLinker": "hoisted",
336
77
  "optional": true,
337
78
  "patchedDependencies": {
338
- "@tybys/wasm-util@0.10.4": "../../../../__patches__/@tybys__wasm-util@0.10.4.patch",
339
- "graceful-fs@4.2.11": "../../../../__patches__/graceful-fs@4.2.11.patch",
340
- "normalize-registry-url@2.0.1": "../../../../__patches__/normalize-registry-url@2.0.1.patch",
341
- "unrs-resolver@1.12.2": "../../../../__patches__/unrs-resolver@1.12.2.patch"
79
+ "graceful-fs@4.2.11": "../../../../.config/pnpm/patches/graceful-fs@4.2.11.patch"
342
80
  },
343
81
  "peersSuffixMaxLength": 1000,
344
82
  "preferWorkspacePackages": false,
@@ -352,6 +90,96 @@
352
90
  "rxjs@7.8.2",
353
91
  "undici-types@6.21.0"
354
92
  ],
355
- "trustPolicyIgnoreAfter": 10080
93
+ "trustPolicyIgnoreAfter": 10080,
94
+ "workspacePackagePatterns": [
95
+ ".meta-updater",
96
+ "pnpm11/__typecheck__",
97
+ "pnpm11/__typings__",
98
+ "pnpm11/__utils__/*",
99
+ "!pnpm11/__utils__/build-artifacts",
100
+ "pnpm11/auth/*",
101
+ "pnpm11/building/*",
102
+ "pnpm11/cache/*",
103
+ "pnpm11/catalogs/*",
104
+ "pnpm11/cli/*",
105
+ "pnpm11/config/*",
106
+ "pnpm11/crypto/*",
107
+ "pnpm11/installing/dedupe/*",
108
+ "pnpm11/deps/*",
109
+ "pnpm11/deps/compliance/*",
110
+ "pnpm11/deps/inspection/*",
111
+ "pnpm11/deps/security/*",
112
+ "pnpm11/engine/*",
113
+ "pnpm11/engine/pm/*",
114
+ "pnpm11/engine/runtime/*",
115
+ "pnpm11/exec/*",
116
+ "pnpm11/fetching/*",
117
+ "pnpm11/fs/*",
118
+ "pnpm11/global/*",
119
+ "pnpm11/hooks/*",
120
+ "pnpm11/lockfile/*",
121
+ "pnpm11/log/*",
122
+ "pnpm11/network/*",
123
+ "pnpm11/modules-mounter/*",
124
+ "pnpm11/object/*",
125
+ "pnpm11/os/*",
126
+ "pnpm11/os/env/*",
127
+ "pnpm11/core/*",
128
+ "pnpm11/bins/*",
129
+ "pnpm11/installing/*",
130
+ "pnpm11/installing/linking/*",
131
+ "pnpm11/pkg-manifest/*",
132
+ "pnpm11/patching/*",
133
+ "pnpm11/pnpm",
134
+ "pnpm11/pnpm/dev",
135
+ "pnpm11/testing/*",
136
+ "pnpm11/worker",
137
+ "pnpm11/pnpm/artifacts/*",
138
+ "pnpr/client",
139
+ "pnpm11/registry-access/*",
140
+ "pnpm11/releasing/*",
141
+ "pnpm11/resolving/*",
142
+ "pnpm11/resolving/registry/*",
143
+ "pnpm11/shell/*",
144
+ "pnpm11/store/*",
145
+ "pnpm11/text/*",
146
+ "pnpm11/workspace/*",
147
+ "pnpm11/yaml/*",
148
+ "pnpm/npm/get-pnpm",
149
+ "pnpm/npm/napi",
150
+ "pnpm/esm-loader",
151
+ "pnpm/npm/pnpm",
152
+ "pnpm/tasks/registry-mock",
153
+ "pnpm/tasks/ecosystem-e2e/webcontainer",
154
+ "pnpm/wasm",
155
+ "pnpr/npm/pnpr",
156
+ "pnpr/npm/pnpr-ui",
157
+ "!vendor/**",
158
+ "!bench-work-env/**",
159
+ "!**/example/**",
160
+ "!**/test/**",
161
+ "!pnpm11/resolving/local-resolver/example-package/**"
162
+ ]
163
+ },
164
+ "validation": {
165
+ "recordedAtNs": 1793108148932732288,
166
+ "files": {
167
+ "/home/runner/_work/pnpm/pnpm/pnpm/npm/pnpm/temp-deploy/../../../../.config/pnpm/patches/graceful-fs@4.2.11.patch": {
168
+ "mtimeNs": 1793108123320725018,
169
+ "ctimeNs": 1793108123320725018,
170
+ "size": 671,
171
+ "digest": "68ebc232025360cb3dcd3081f4067f4e"
172
+ },
173
+ "/home/runner/_work/pnpm/pnpm/pnpm/npm/pnpm/temp-deploy/pnpm-lock.yaml": {
174
+ "mtimeNs": 1793108148656732208,
175
+ "ctimeNs": 1793108148656732208,
176
+ "size": 6001,
177
+ "digest": "b251eb0d29c262f40cbf984a99f53fb8"
178
+ }
179
+ },
180
+ "lockfile": "b251eb0d29c262f40cbf984a99f53fb8",
181
+ "manifests": {
182
+ ".": "48a2e9f48c9ba15435360444fd678acc"
183
+ }
356
184
  }
357
185
  }
@@ -0,0 +1,27 @@
1
+ MIT License
2
+
3
+ Copyright (c) Pooya Parsa <pooya@pi0.io>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ ## Third-Party Licenses
24
+
25
+ This software includes bundled third-party dependencies. The licenses and
26
+ copyright notices for these dependencies are available in
27
+ `dist/THIRD-PARTY-LICENSES.md` within the distributed package.
@@ -0,0 +1,22 @@
1
+ export interface FormatOptions {
2
+ /**
3
+ * A String or Number object that's used to insert white space into the output JSON string for readability purposes.
4
+ *
5
+ * When provided, identation won't be auto detected anymore.
6
+ */
7
+ indent?: string | number;
8
+ /**
9
+ * Set to `false` to skip indentation preservation.
10
+ */
11
+ preserveIndentation?: boolean;
12
+ /**
13
+ * Set to `false` to skip whitespace preservation.
14
+ */
15
+ preserveWhitespace?: boolean;
16
+ /**
17
+ * The number of characters to sample from the start of the text.
18
+ *
19
+ * Default: 1024
20
+ */
21
+ sampleSize?: number;
22
+ }
@@ -0,0 +1 @@
1
+ import{detectIndent as e}from"./libs/detect-indent.mjs";const t=Symbol.for(`__confbox_fmt__`),n=/^(\s+)/,r=/(\s+)$/;function i(e){return e.charCodeAt(0)===65279?e.slice(1):e}function a(e,t={}){return{sample:t.indent===void 0&&t.preserveIndentation!==!1&&i(e).slice(0,t?.sampleSize||1024),whiteSpace:t.preserveWhitespace===!1?void 0:{start:n.exec(e)?.[0]||``,end:r.exec(e)?.[0]||``}}}function o(e,n,r){!n||typeof n!=`object`||Object.defineProperty(n,t,{enumerable:!1,configurable:!0,writable:!0,value:a(e,r)})}function s(n,r){if(!n||typeof n!=`object`||!(t in n))return{indent:r?.indent??2,whitespace:{start:``,end:``}};let i=n[t];return{indent:r?.indent||e(i.sample||``).indent,whitespace:i.whiteSpace||{start:``,end:``}}}export{s as getFormat,o as storeFormat,i as stripBOM};
@@ -0,0 +1 @@
1
+ const e=/^(?:( )+|\t+)/,t=`space`;function n(e,n,r){return e&&n===t&&r===1}function r(r,a){let o=new Map,s=0,c,l;for(let u of r.split(/\n/g)){if(!u)continue;let r=u.match(e);if(r===null)s=0,c=``;else{let e=r[0].length,u=r[1]?t:`tab`;if(n(a,u,e))continue;u!==c&&(s=0),c=u;let d=1,f=0,p=e-s;if(s=e,p===0)d=0,f=1;else{let e=Math.abs(p);if(n(a,u,e))continue;l=i(u,e)}let m=o.get(l);o.set(l,m===void 0?[1,0]:[m[0]+d,m[1]+f])}}return o}function i(e,n){return(e===t?`s`:`t`)+String(n)}function a(e){return{type:e[0]===`s`?t:`tab`,amount:Number(e.slice(1))}}function o(e){let t,n=0,r=0;for(let[i,[a,o]]of e)(a>n||a===n&&o>r)&&(n=a,r=o,t=i);return t}function s(e,n){return(e===t?` `:` `).repeat(n)}function c(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);let t=r(e,!0);t.size===0&&(t=r(e,!1));let n=o(t),i,c=0,l=``;return n!==void 0&&({type:i,amount:c}=a(n),l=s(i,c)),{amount:c,type:i,indent:l}}export{c as detectIndent};
@@ -0,0 +1,3 @@
1
+ import{__commonJSMin as e}from"../rolldown-runtime.mjs";var t=e(((e,t)=>{let{hasOwnProperty:n}=Object.prototype,r=(e,t={})=>{typeof t==`string`&&(t={section:t}),t.align=t.align===!0,t.newline=t.newline===!0,t.sort=t.sort===!0,t.whitespace=t.whitespace===!0||t.align===!0,t.platform=t.platform||typeof process<`u`&&process.platform,t.bracketedArray=t.bracketedArray!==!1;let n=t.platform===`win32`?`\r
2
+ `:`
3
+ `,a=t.whitespace?` = `:`=`,o=[],c=t.sort?Object.keys(e).sort():Object.keys(e),l=0;t.align&&(l=s(c.filter(t=>e[t]===null||Array.isArray(e[t])||typeof e[t]!=`object`).map(t=>Array.isArray(e[t])?`${t}[]`:t).concat([``]).reduce((e,t)=>s(e).length>=s(t).length?e:t)).length);let u=``,d=t.bracketedArray?`[]`:``;for(let t of c){let r=e[t];if(r&&Array.isArray(r))for(let e of r)u+=s(`${t}${d}`).padEnd(l,` `)+a+s(e)+n;else r&&typeof r==`object`?o.push(t):u+=s(t).padEnd(l,` `)+a+s(r)+n}t.section&&u.length&&(u=`[`+s(t.section)+`]`+(t.newline?n+n:n)+u);for(let a of o){let o=i(a,`.`).join(`\\.`),s=(t.section?t.section+`.`:``)+o,c=r(e[a],{...t,section:s});u.length&&c.length&&(u+=n),u+=c}return u};function i(e,t){var n=0,r=0,i=0,a=[];do if(i=e.indexOf(t,n),i!==-1){if(n=i+t.length,i>0&&e[i-1]===`\\`)continue;a.push(e.slice(r,i)),r=i+t.length}while(i!==-1);return a.push(e.slice(r)),a}let a=(e,t={})=>{t.bracketedArray=t.bracketedArray!==!1;let r=Object.create(null),a=r,o=null,s=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,l=e.split(/[\r\n]+/g),u={};for(let e of l){if(!e||e.match(/^\s*[;#]/)||e.match(/^\s*$/))continue;let i=e.match(s);if(!i)continue;if(i[1]!==void 0){if(o=c(i[1]),o===`__proto__`){a=Object.create(null);continue}a=r[o]=r[o]||Object.create(null);continue}let l=c(i[2]),d;t.bracketedArray?d=l.length>2&&l.slice(-2)===`[]`:(u[l]=(u?.[l]||0)+1,d=u[l]>1);let f=d&&l.endsWith(`[]`)?l.slice(0,-2):l;if(f===`__proto__`)continue;let p=!i[3]||c(i[4]),m=p===`true`||p===`false`||p===`null`?JSON.parse(p):p;d&&(n.call(a,f)?Array.isArray(a[f])||(a[f]=[a[f]]):a[f]=[]),Array.isArray(a[f])?a[f].push(m):a[f]=m}let d=[];for(let e of Object.keys(r)){if(!n.call(r,e)||typeof r[e]!=`object`||Array.isArray(r[e]))continue;let t=i(e,`.`);a=r;let o=t.pop(),s=o.replace(/\\\./g,`.`);for(let e of t)e!==`__proto__`&&((!n.call(a,e)||typeof a[e]!=`object`)&&(a[e]=Object.create(null)),a=a[e]);(a!==r||s!==o)&&(a[s]=r[e],d.push(e))}for(let e of d)delete r[e];return r},o=e=>e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`),s=e=>typeof e!=`string`||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&o(e)||e!==e.trim()?JSON.stringify(e):e.split(`;`).join(`\\;`).split(`#`).join(`\\#`),c=e=>{if(e=(e||``).trim(),o(e)){e.charAt(0)===`'`&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch{}}else{let t=!1,n=``;for(let r=0,i=e.length;r<i;r++){let i=e.charAt(r);if(t)`\\;#`.indexOf(i)===-1?n+=`\\`+i:n+=i,t=!1;else if(`;#`.indexOf(i)!==-1)break;else i===`\\`?t=!0:n+=i}return t&&(n+=`\\`),n.trim()}return e};t.exports={parse:a,decode:a,stringify:r,encode:r,safe:s,unsafe:c}}));export{t as require_ini};
@@ -0,0 +1,33 @@
1
+ interface SnippetMark {
2
+ name?: string | null;
3
+ buffer: string;
4
+ position: number;
5
+ line: number;
6
+ column: number;
7
+ snippet?: string | null;
8
+ }
9
+ /**
10
+ * A YAML error. Unlike an ordinary `Error`, it adds a source snippet showing
11
+ * the location of the problem to the error message, when available.
12
+ *
13
+ * @category Main
14
+ */
15
+ declare class YAMLException extends Error {
16
+ reason: string;
17
+ mark?: SnippetMark;
18
+ /**
19
+ * Optional `mark` contains source snippet data. Usually, use
20
+ * {@link YAMLException.throwAt} instead of passing it directly.
21
+ */
22
+ constructor(reason: string, mark?: SnippetMark);
23
+ /**
24
+ * Returns the formatted error, omitting the source snippet in compact mode.
25
+ */
26
+ toString(compact?: boolean): string;
27
+ /**
28
+ * Builds a YAMLException with a source snippet and throws it. `source` is
29
+ * the raw input text; `position` is an offset into it.
30
+ */
31
+ static throwAt(source: string, position: number, message: string, filename?: string): never;
32
+ }
33
+ export { YAMLException };