@dtsx/dtsx 0.11.43 → 0.11.45
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/README.md +6 -0
- package/dist/bin/cli.js +9 -9
- package/dist/{chunk-9dkjzqm0.js → chunk-05cbfytc.js} +6 -6
- package/dist/{chunk-znd7w376.js → chunk-1gy2z5an.js} +5 -5
- package/dist/{chunk-p3n0wx32.js → chunk-2cjs4r5v.js} +4 -4
- package/dist/chunk-3nmjt94q.js +10 -0
- package/dist/{chunk-23w57jk5.js → chunk-3x19egjd.js} +2 -2
- package/dist/chunk-41d5ehn0.js +3 -0
- package/dist/{chunk-51cdjc3e.js → chunk-48jvmndg.js} +2 -2
- package/dist/{chunk-pfvjr5bg.js → chunk-4fspqk22.js} +3 -3
- package/dist/chunk-4t1we2h5.js +3 -0
- package/dist/chunk-4vtfqwpq.js +8 -0
- package/dist/{chunk-9mtn8sk3.js → chunk-51vf9de8.js} +2 -2
- package/dist/{chunk-xgj6rxmd.js → chunk-55yw66ha.js} +3 -3
- package/dist/{chunk-ep3575a9.js → chunk-57xvwm7c.js} +2 -2
- package/dist/{chunk-a3apthex.js → chunk-587w6ktw.js} +2 -2
- package/dist/{chunk-0zj4xkky.js → chunk-6gvctv0q.js} +3 -3
- package/dist/{chunk-xst4jpr9.js → chunk-755bntty.js} +17 -17
- package/dist/{chunk-ah3pwsh5.js → chunk-783erq83.js} +4 -4
- package/dist/{chunk-2p8za6vr.js → chunk-7x4eqjfw.js} +2 -2
- package/dist/chunk-83w2qbmb.js +3 -0
- package/dist/{chunk-xzw0p4nq.js → chunk-870p7sky.js} +2 -2
- package/dist/{chunk-01zsk2q8.js → chunk-8c5dzvwk.js} +3 -3
- package/dist/{chunk-vsa6gbmz.js → chunk-8c8pgvxv.js} +1 -1
- package/dist/{chunk-fhbwwm79.js → chunk-8xpkce3g.js} +4 -4
- package/dist/chunk-8zr7m1pk.js +3 -0
- package/dist/{chunk-7fytm1ya.js → chunk-9knxvphg.js} +3 -3
- package/dist/{chunk-9c0k2b8n.js → chunk-a4791583.js} +2 -2
- package/dist/chunk-b3979d26.js +3 -0
- package/dist/{chunk-rmg7jdhj.js → chunk-b7azvfdn.js} +2 -2
- package/dist/{chunk-a3px4jga.js → chunk-bv1q1w42.js} +4 -4
- package/dist/{chunk-ygpyce6w.js → chunk-c94sk67h.js} +4 -4
- package/dist/chunk-cd27mg71.js +3 -0
- package/dist/{chunk-qqjbaqm6.js → chunk-d5q4qfys.js} +4 -4
- package/dist/{chunk-9fz5erbq.js → chunk-e9x8ywhv.js} +6 -6
- package/dist/{chunk-7k0e2h9b.js → chunk-exf6bsbe.js} +5 -5
- package/dist/{chunk-60wrxcjt.js → chunk-f191378r.js} +11 -11
- package/dist/{chunk-3s37g6bh.js → chunk-f3avgz4y.js} +8 -8
- package/dist/chunk-fkdq1x5f.js +31 -0
- package/dist/{chunk-bkbsg2bv.js → chunk-g9emajpc.js} +2 -2
- package/dist/{chunk-4n2mpvmb.js → chunk-gns23mhj.js} +2 -2
- package/dist/chunk-grpmcw9x.js +27 -0
- package/dist/{chunk-n4hj7rs6.js → chunk-gwsjj23d.js} +4 -4
- package/dist/{chunk-vae5wxar.js → chunk-hgg4aqvf.js} +2 -2
- package/dist/{chunk-e37cbaq7.js → chunk-hvt855ms.js} +2 -2
- package/dist/chunk-hzy5z7x2.js +5 -0
- package/dist/chunk-j51p30sb.js +7 -0
- package/dist/{chunk-m3ysqm3b.js → chunk-jy5h728q.js} +2 -2
- package/dist/chunk-k0vthrqs.js +4 -0
- package/dist/{chunk-06jp6gah.js → chunk-kthga8ar.js} +3 -3
- package/dist/{chunk-y78fsxjf.js → chunk-m14550z9.js} +2 -2
- package/dist/{chunk-b2j236p3.js → chunk-m29ph3cg.js} +2 -2
- package/dist/{chunk-0xam980d.js → chunk-m8rvd58d.js} +4 -4
- package/dist/{chunk-62bqxy6j.js → chunk-mc9kwthm.js} +2 -2
- package/dist/chunk-mvxcxnff.js +3 -0
- package/dist/chunk-nfd9v8ba.js +3 -0
- package/dist/{chunk-3r9dptyy.js → chunk-pydpyx8x.js} +2 -2
- package/dist/{chunk-44zq3xnw.js → chunk-qab5rsk8.js} +6 -6
- package/dist/{chunk-1hhk0zm6.js → chunk-qj2yvdjn.js} +2 -2
- package/dist/{chunk-b79vtkkt.js → chunk-qkesb95f.js} +2 -2
- package/dist/{chunk-b0cdncp3.js → chunk-r2e0r0pd.js} +2 -2
- package/dist/chunk-s013113f.js +3 -0
- package/dist/chunk-s6t0ff96.js +3 -0
- package/dist/chunk-sqa3ke1a.js +3 -0
- package/dist/{chunk-k5wz43yh.js → chunk-srfpcjtn.js} +2 -2
- package/dist/chunk-t1js8enq.js +8 -0
- package/dist/{chunk-fka5apgq.js → chunk-t73v233w.js} +4 -4
- package/dist/chunk-t76htvct.js +3 -0
- package/dist/{chunk-j3egtn0s.js → chunk-t88j01sz.js} +2 -2
- package/dist/chunk-vher6t7j.js +14 -0
- package/dist/{chunk-9vj0g89m.js → chunk-vrfp12ts.js} +2 -2
- package/dist/{chunk-vv5jdqfj.js → chunk-vye45h9n.js} +2 -2
- package/dist/{chunk-w4fj9m56.js → chunk-wwjt0p6m.js} +3 -3
- package/dist/{chunk-btc6zbyj.js → chunk-x5z8vprh.js} +2 -2
- package/dist/{chunk-w3zqfm8a.js → chunk-x6ddycvm.js} +2 -2
- package/dist/chunk-x9vpsya2.js +40 -0
- package/dist/chunk-xhgs3gx2.js +4 -0
- package/dist/chunk-xtckj8w1.js +3 -0
- package/dist/{chunk-zgj8xq4x.js → chunk-xvk9v148.js} +2 -2
- package/dist/chunk-y9bxeq10.js +3 -0
- package/dist/{chunk-jvqczw2k.js → chunk-ybdp7k49.js} +3 -3
- package/dist/{chunk-n1p62kwx.js → chunk-yh04e0n4.js} +2 -2
- package/dist/{chunk-cd26g482.js → chunk-z82jsz2r.js} +3 -3
- package/dist/{chunk-xewmepxp.js → chunk-zb48dx6a.js} +2 -2
- package/dist/chunk-zmnb3yg1.js +37 -0
- package/dist/{chunk-eyc0tk75.js → chunk-zwcvtbt4.js} +10 -10
- package/dist/src/augmentation-graph.js +1 -1
- package/dist/src/binding-patterns.js +1 -1
- package/dist/src/branded-types.js +1 -1
- package/dist/src/bundle-linker.js +1 -1
- package/dist/src/bundler.js +1 -1
- package/dist/src/cache.js +1 -1
- package/dist/src/call-signatures.js +1 -1
- package/dist/src/circular.js +1 -1
- package/dist/src/compat.js +1 -1
- package/dist/src/computed-keys.js +1 -1
- package/dist/src/concurrency.js +1 -1
- package/dist/src/config.js +1 -1
- package/dist/src/dangling-refs.js +1 -1
- package/dist/src/declaration-project.js +1 -1
- package/dist/src/declaration-publication.js +1 -1
- package/dist/src/declaration-references.js +1 -1
- package/dist/src/diff.js +1 -1
- package/dist/src/docs.js +1 -1
- package/dist/src/enum-declarations.js +1 -1
- package/dist/src/errors.js +1 -1
- package/dist/src/extractor/directives.js +1 -1
- package/dist/src/extractor/extract.d.ts +1 -1
- package/dist/src/extractor/extract.js +1 -1
- package/dist/src/extractor/scanner.d.ts +4 -4
- package/dist/src/extractor/scanner.js +1 -1
- package/dist/src/extractor.js +1 -1
- package/dist/src/formats.js +1 -1
- package/dist/src/formatter.js +1 -1
- package/dist/src/function-properties.js +1 -1
- package/dist/src/generator.js +1 -1
- package/dist/src/global-types.js +1 -1
- package/dist/src/import-sorter.js +1 -1
- package/dist/src/incremental.js +1 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.js +1 -1
- package/dist/src/inferred-imports.js +1 -1
- package/dist/src/initializer-type-spans.d.ts +7 -0
- package/dist/src/initializer-type-spans.js +2 -0
- package/dist/src/json-config.js +1 -1
- package/dist/src/lexical.d.ts +8 -1
- package/dist/src/lexical.js +1 -1
- package/dist/src/logger.js +1 -1
- package/dist/src/lsp.js +1 -1
- package/dist/src/memory.js +1 -1
- package/dist/src/merger.js +1 -1
- package/dist/src/module-graph.js +1 -1
- package/dist/src/module-references.js +1 -1
- package/dist/src/native-checker.js +1 -1
- package/dist/src/native-engine.d.ts +24 -2
- package/dist/src/native-engine.js +1 -1
- package/dist/src/native-extractor.js +1 -1
- package/dist/src/native-generation.js +1 -1
- package/dist/src/native-project.js +1 -1
- package/dist/src/numeric-literals.d.ts +9 -0
- package/dist/src/numeric-literals.js +2 -0
- package/dist/src/optimizer.js +1 -1
- package/dist/src/output-normalizer.js +1 -1
- package/dist/src/parallel-processor.js +1 -1
- package/dist/src/parameters.js +1 -1
- package/dist/src/parser.js +1 -1
- package/dist/src/plugins/bun.js +1 -1
- package/dist/src/plugins/esbuild.js +1 -1
- package/dist/src/plugins/index.js +1 -1
- package/dist/src/plugins/tsdown.js +1 -1
- package/dist/src/plugins/tsup.js +1 -1
- package/dist/src/plugins/vite.js +1 -1
- package/dist/src/plugins/webpack.js +1 -1
- package/dist/src/plugins.js +1 -1
- package/dist/src/process-source.d.ts +4 -3
- package/dist/src/process-source.js +1 -1
- package/dist/src/processor/cache.js +1 -1
- package/dist/src/processor/comments.js +1 -1
- package/dist/src/processor/declarations.js +1 -1
- package/dist/src/processor/import-usage.js +1 -1
- package/dist/src/processor/imports.js +1 -1
- package/dist/src/processor/index.js +1 -1
- package/dist/src/processor/type-inference.d.ts +2 -9
- package/dist/src/processor/type-inference.js +1 -1
- package/dist/src/processor.js +1 -1
- package/dist/src/profiling.js +1 -1
- package/dist/src/return-type-scope.js +1 -1
- package/dist/src/security.js +1 -1
- package/dist/src/source-cache.js +1 -1
- package/dist/src/sourcemap.js +1 -1
- package/dist/src/stx.js +1 -1
- package/dist/src/syntax-validator.js +1 -1
- package/dist/src/tracking.js +1 -1
- package/dist/src/transformers.js +1 -1
- package/dist/src/tree-shaker.js +1 -1
- package/dist/src/tsconfig.js +1 -1
- package/dist/src/type-mappings.js +1 -1
- package/dist/src/types.d.ts +1 -0
- package/dist/src/utils.js +1 -1
- package/dist/src/value-inference.js +1 -1
- package/dist/src/vue.js +1 -1
- package/dist/src/watcher.js +1 -1
- package/dist/src/worker-thread.js +1 -1
- package/dist/src/worker.js +1 -1
- package/dist/src/workspace.js +1 -1
- package/native/darwin-arm64/libzig-dtsx.dylib +0 -0
- package/native/darwin-x64/libzig-dtsx.dylib +0 -0
- package/native/freebsd-x64/libzig-dtsx.so +0 -0
- package/native/linux-arm64/libzig-dtsx.so +0 -0
- package/native/linux-x64/libzig-dtsx.so +0 -0
- package/native/windows-x64/zig-dtsx.dll +0 -0
- package/package.json +1 -1
- package/dist/chunk-0h9dz87w.js +0 -3
- package/dist/chunk-1721pyws.js +0 -3
- package/dist/chunk-1903h3dm.js +0 -3
- package/dist/chunk-1dqa0tex.js +0 -8
- package/dist/chunk-36xenw6z.js +0 -3
- package/dist/chunk-3pcxxgwq.js +0 -3
- package/dist/chunk-4q78f5pg.js +0 -3
- package/dist/chunk-5v7drjwg.js +0 -4
- package/dist/chunk-8pfyd95y.js +0 -3
- package/dist/chunk-a2666k9r.js +0 -3
- package/dist/chunk-aqcjv2v5.js +0 -37
- package/dist/chunk-bhqpdftq.js +0 -8
- package/dist/chunk-ettcbmzw.js +0 -4
- package/dist/chunk-km03xc8j.js +0 -14
- package/dist/chunk-ksc4xgdz.js +0 -3
- package/dist/chunk-m9x72e5j.js +0 -7
- package/dist/chunk-mp86smwc.js +0 -38
- package/dist/chunk-pebt9j6c.js +0 -3
- package/dist/chunk-pekphr39.js +0 -3
- package/dist/chunk-pwdmw567.js +0 -3
- package/dist/chunk-rwwrrxtc.js +0 -10
- package/dist/chunk-rz5jszhe.js +0 -5
- package/dist/chunk-tvhg9v4f.js +0 -27
- package/dist/chunk-y83jhbpr.js +0 -31
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{yn,ii,Xe,bn,go,xn,wn,Cn,si,vn,Sn,ho,yo,bo}from"../chunk-zwcvtbt4.js";export{yn as DEFAULT_DECLARATION_ORDER,ii as DEFAULT_IMPORT_GROUP_ORDER,yo as createOutputNormalizer,go as detectLineEnding,Cn as ensureTrailingNewline,wn as normalizeBlankLines,si as normalizeIndent,bn as normalizeLineEndings,Xe as normalizeOutput,bo as normalizerPresets,Sn as orderDeclarations,ho as preserveCommentFormatting,vn as processImports,xn as removeTrailingWhitespace};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Sr,ps,ms,$r,Er,gs}from"../chunk-qkesb95f.js";import"../chunk-3nmjt94q.js";import"../chunk-a4791583.js";import"../chunk-k0vthrqs.js";import"../chunk-sqa3ke1a.js";import"../chunk-4t1we2h5.js";import"../chunk-exf6bsbe.js";import"../chunk-755bntty.js";import"../chunk-mc9kwthm.js";import"../chunk-srfpcjtn.js";import"../chunk-v6fwy63g.js";import"../chunk-zmnb3yg1.js";import"../chunk-4vtfqwpq.js";import"../chunk-t76htvct.js";import"../chunk-05cbfytc.js";import"../chunk-nfd9v8ba.js";import"../chunk-y9bxeq10.js";import"../chunk-t88j01sz.js";import"../chunk-3x19egjd.js";import"../chunk-x9vpsya2.js";import"../chunk-587w6ktw.js";import"../chunk-yh04e0n4.js";import"../chunk-mvxcxnff.js";import"../chunk-s013113f.js";import"../chunk-57xvwm7c.js";import"../chunk-qj2yvdjn.js";import"../chunk-m29ph3cg.js";import"../chunk-j51p30sb.js";import"../chunk-hzy5z7x2.js";export{gs as analyzeParallelizationPotential,Sr as buildProcessingGraph,$r as findIndependentFiles,Er as getProcessingLevels,ms as getTopologicalOrder,ps as processInParallel};
|
package/dist/src/parameters.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{_e,xe,je}from"../chunk-57xvwm7c.js";import"../chunk-j51p30sb.js";import"../chunk-hzy5z7x2.js";export{xe as defaultedObjectBinding,je as defaultedObjectBindingParameter,_e as normalizeDefaultParameterOrder};
|
package/dist/src/parser.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ys,Xs,dn,Zs,Qs,pn,eo,to,no,ro}from"../chunk-c94sk67h.js";import{o}from"../chunk-x9vpsya2.js";import{f}from"../chunk-587w6ktw.js";import"../chunk-yh04e0n4.js";import"../chunk-mvxcxnff.js";import"../chunk-s013113f.js";import"../chunk-57xvwm7c.js";import"../chunk-qj2yvdjn.js";import"../chunk-j51p30sb.js";import"../chunk-hzy5z7x2.js";export{pn as extractBalancedSymbols,Zs as extractLeadingComments,Xs as extractLeadingCommentsFromNode,Qs as extractTrailingComment,o as findMatchingBracket,f as formatComments,Ys as getNodeText,to as isExportStatement,no as isTypeOnlyExport,eo as parseFunctionDeclaration,ro as parseVariableDeclaration,dn as removeLeadingComments};
|
package/dist/src/plugins/bun.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{qe,Ra,Ma}from"../../chunk-vrfp12ts.js";import"../../chunk-fkdq1x5f.js";import"../../chunk-pydpyx8x.js";import"../../chunk-zwcvtbt4.js";import"../../chunk-83w2qbmb.js";import"../../chunk-3nmjt94q.js";import"../../chunk-a4791583.js";import"../../chunk-e9x8ywhv.js";import"../../chunk-m14550z9.js";import"../../chunk-41d5ehn0.js";import"../../chunk-b3979d26.js";import"../../chunk-vher6t7j.js";import"../../chunk-hgg4aqvf.js";import"../../chunk-grpmcw9x.js";import"../../chunk-gns23mhj.js";import"../../chunk-6gvctv0q.js";import"../../chunk-zb48dx6a.js";import"../../chunk-xtckj8w1.js";import"../../chunk-8c5dzvwk.js";import"../../chunk-t1js8enq.js";import"../../chunk-hvt855ms.js";import"../../chunk-k0vthrqs.js";import"../../chunk-f191378r.js";import"../../chunk-s6t0ff96.js";import"../../chunk-x6ddycvm.js";import"../../chunk-g9emajpc.js";import"../../chunk-jy5h728q.js";import"../../chunk-x5z8vprh.js";import"../../chunk-sqa3ke1a.js";import"../../chunk-4t1we2h5.js";import"../../chunk-exf6bsbe.js";import"../../chunk-755bntty.js";import"../../chunk-mc9kwthm.js";import"../../chunk-srfpcjtn.js";import"../../chunk-v6fwy63g.js";import"../../chunk-zmnb3yg1.js";import"../../chunk-4vtfqwpq.js";import"../../chunk-t76htvct.js";import"../../chunk-05cbfytc.js";import"../../chunk-nfd9v8ba.js";import"../../chunk-y9bxeq10.js";import"../../chunk-t88j01sz.js";import"../../chunk-3x19egjd.js";import"../../chunk-x9vpsya2.js";import"../../chunk-587w6ktw.js";import"../../chunk-yh04e0n4.js";import"../../chunk-mvxcxnff.js";import"../../chunk-s013113f.js";import"../../chunk-57xvwm7c.js";import"../../chunk-qj2yvdjn.js";import"../../chunk-m29ph3cg.js";import"../../chunk-j51p30sb.js";import"../../chunk-hzy5z7x2.js";export{Ra as bunDts,Ma as default,qe as dts};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ce,Ta,ur,Aa}from"../../chunk-51vf9de8.js";import"../../chunk-fkdq1x5f.js";import"../../chunk-pydpyx8x.js";import"../../chunk-zwcvtbt4.js";import"../../chunk-83w2qbmb.js";import"../../chunk-3nmjt94q.js";import"../../chunk-a4791583.js";import"../../chunk-e9x8ywhv.js";import"../../chunk-m14550z9.js";import"../../chunk-41d5ehn0.js";import"../../chunk-b3979d26.js";import"../../chunk-vher6t7j.js";import"../../chunk-hgg4aqvf.js";import"../../chunk-grpmcw9x.js";import"../../chunk-gns23mhj.js";import"../../chunk-6gvctv0q.js";import"../../chunk-zb48dx6a.js";import"../../chunk-xtckj8w1.js";import"../../chunk-8c5dzvwk.js";import"../../chunk-t1js8enq.js";import"../../chunk-hvt855ms.js";import"../../chunk-k0vthrqs.js";import"../../chunk-f191378r.js";import"../../chunk-s6t0ff96.js";import"../../chunk-x6ddycvm.js";import"../../chunk-g9emajpc.js";import"../../chunk-jy5h728q.js";import"../../chunk-x5z8vprh.js";import"../../chunk-sqa3ke1a.js";import"../../chunk-4t1we2h5.js";import"../../chunk-exf6bsbe.js";import"../../chunk-755bntty.js";import"../../chunk-mc9kwthm.js";import"../../chunk-srfpcjtn.js";import"../../chunk-v6fwy63g.js";import"../../chunk-zmnb3yg1.js";import"../../chunk-4vtfqwpq.js";import"../../chunk-t76htvct.js";import"../../chunk-05cbfytc.js";import"../../chunk-nfd9v8ba.js";import"../../chunk-y9bxeq10.js";import"../../chunk-t88j01sz.js";import"../../chunk-3x19egjd.js";import"../../chunk-x9vpsya2.js";import"../../chunk-587w6ktw.js";import"../../chunk-yh04e0n4.js";import"../../chunk-mvxcxnff.js";import"../../chunk-s013113f.js";import"../../chunk-57xvwm7c.js";import"../../chunk-qj2yvdjn.js";import"../../chunk-m29ph3cg.js";import"../../chunk-j51p30sb.js";import"../../chunk-hzy5z7x2.js";export{Aa as default,ur as dts,Ce as dtsx,Ta as esbuildDts};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"../../chunk-
|
|
2
|
+
import"../../chunk-jy5h728q.js";import"../../chunk-srfpcjtn.js";import"../../chunk-755bntty.js";import"../../chunk-exf6bsbe.js";import"../../chunk-hzy5z7x2.js";import"../../chunk-j51p30sb.js";import"../../chunk-v6fwy63g.js";import"../../chunk-qj2yvdjn.js";import"../../chunk-m29ph3cg.js";import"../../chunk-yh04e0n4.js";import"../../chunk-3x19egjd.js";import"../../chunk-t76htvct.js";import"../../chunk-s013113f.js";import"../../chunk-mvxcxnff.js";import"../../chunk-57xvwm7c.js";import"../../chunk-587w6ktw.js";import"../../chunk-x9vpsya2.js";import"../../chunk-4vtfqwpq.js";import"../../chunk-05cbfytc.js";import"../../chunk-zmnb3yg1.js";import"../../chunk-t88j01sz.js";import"../../chunk-y9bxeq10.js";import"../../chunk-nfd9v8ba.js";import"../../chunk-4t1we2h5.js";import"../../chunk-mc9kwthm.js";import"../../chunk-sqa3ke1a.js";import"../../chunk-k0vthrqs.js";import"../../chunk-hvt855ms.js";import"../../chunk-x5z8vprh.js";import"../../chunk-g9emajpc.js";import"../../chunk-x6ddycvm.js";import"../../chunk-s6t0ff96.js";import"../../chunk-grpmcw9x.js";import"../../chunk-m14550z9.js";import"../../chunk-f191378r.js";import"../../chunk-t1js8enq.js";import"../../chunk-zb48dx6a.js";import"../../chunk-6gvctv0q.js";import"../../chunk-hgg4aqvf.js";import"../../chunk-vher6t7j.js";import"../../chunk-41d5ehn0.js";import"../../chunk-e9x8ywhv.js";import"../../chunk-pydpyx8x.js";import"../../chunk-xtckj8w1.js";import"../../chunk-b3979d26.js";import"../../chunk-zwcvtbt4.js";import"../../chunk-8c5dzvwk.js";import"../../chunk-a4791583.js";import"../../chunk-3nmjt94q.js";import"../../chunk-gns23mhj.js";import"../../chunk-83w2qbmb.js";import"../../chunk-fkdq1x5f.js";import{Ke}from"../../chunk-b7azvfdn.js";import{qe}from"../../chunk-vrfp12ts.js";import{Ce,ur}from"../../chunk-51vf9de8.js";import{ve,fr}from"../../chunk-xvk9v148.js";import{mt}from"../../chunk-r2e0r0pd.js";import{He,Kt,lr}from"../../chunk-vye45h9n.js";export{He as DtsxWebpackPlugin,qe as bun,qe as bunDts,Ce as esbuild,Ce as esbuildDts,ur as esbuildPlugin,mt as tsdown,mt as tsdownDts,ve as tsup,ve as tsupDts,fr as tsupPlugin,Ke as vite,Ke as viteDts,Kt as webpackDts,lr as webpackPlugin};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{mt,Oa}from"../../chunk-r2e0r0pd.js";import"../../chunk-fkdq1x5f.js";import"../../chunk-pydpyx8x.js";import"../../chunk-zwcvtbt4.js";import"../../chunk-83w2qbmb.js";import"../../chunk-3nmjt94q.js";import"../../chunk-a4791583.js";import"../../chunk-e9x8ywhv.js";import"../../chunk-m14550z9.js";import"../../chunk-41d5ehn0.js";import"../../chunk-b3979d26.js";import"../../chunk-vher6t7j.js";import"../../chunk-hgg4aqvf.js";import"../../chunk-grpmcw9x.js";import"../../chunk-gns23mhj.js";import"../../chunk-6gvctv0q.js";import"../../chunk-zb48dx6a.js";import"../../chunk-xtckj8w1.js";import"../../chunk-8c5dzvwk.js";import"../../chunk-t1js8enq.js";import"../../chunk-hvt855ms.js";import"../../chunk-k0vthrqs.js";import"../../chunk-f191378r.js";import"../../chunk-s6t0ff96.js";import"../../chunk-x6ddycvm.js";import"../../chunk-g9emajpc.js";import"../../chunk-jy5h728q.js";import"../../chunk-x5z8vprh.js";import"../../chunk-sqa3ke1a.js";import"../../chunk-4t1we2h5.js";import"../../chunk-exf6bsbe.js";import"../../chunk-755bntty.js";import"../../chunk-mc9kwthm.js";import"../../chunk-srfpcjtn.js";import"../../chunk-v6fwy63g.js";import"../../chunk-zmnb3yg1.js";import"../../chunk-4vtfqwpq.js";import"../../chunk-t76htvct.js";import"../../chunk-05cbfytc.js";import"../../chunk-nfd9v8ba.js";import"../../chunk-y9bxeq10.js";import"../../chunk-t88j01sz.js";import"../../chunk-3x19egjd.js";import"../../chunk-x9vpsya2.js";import"../../chunk-587w6ktw.js";import"../../chunk-yh04e0n4.js";import"../../chunk-mvxcxnff.js";import"../../chunk-s013113f.js";import"../../chunk-57xvwm7c.js";import"../../chunk-qj2yvdjn.js";import"../../chunk-m29ph3cg.js";import"../../chunk-j51p30sb.js";import"../../chunk-hzy5z7x2.js";export{Oa as default,mt as dts};
|
package/dist/src/plugins/tsup.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{ve,Ia,fr,La}from"../../chunk-xvk9v148.js";import"../../chunk-fkdq1x5f.js";import"../../chunk-pydpyx8x.js";import"../../chunk-zwcvtbt4.js";import"../../chunk-83w2qbmb.js";import"../../chunk-3nmjt94q.js";import"../../chunk-a4791583.js";import"../../chunk-e9x8ywhv.js";import"../../chunk-m14550z9.js";import"../../chunk-41d5ehn0.js";import"../../chunk-b3979d26.js";import"../../chunk-vher6t7j.js";import"../../chunk-hgg4aqvf.js";import"../../chunk-grpmcw9x.js";import"../../chunk-gns23mhj.js";import"../../chunk-6gvctv0q.js";import"../../chunk-zb48dx6a.js";import"../../chunk-xtckj8w1.js";import"../../chunk-8c5dzvwk.js";import"../../chunk-t1js8enq.js";import"../../chunk-hvt855ms.js";import"../../chunk-k0vthrqs.js";import"../../chunk-f191378r.js";import"../../chunk-s6t0ff96.js";import"../../chunk-x6ddycvm.js";import"../../chunk-g9emajpc.js";import"../../chunk-jy5h728q.js";import"../../chunk-x5z8vprh.js";import"../../chunk-sqa3ke1a.js";import"../../chunk-4t1we2h5.js";import"../../chunk-exf6bsbe.js";import"../../chunk-755bntty.js";import"../../chunk-mc9kwthm.js";import"../../chunk-srfpcjtn.js";import"../../chunk-v6fwy63g.js";import"../../chunk-zmnb3yg1.js";import"../../chunk-4vtfqwpq.js";import"../../chunk-t76htvct.js";import"../../chunk-05cbfytc.js";import"../../chunk-nfd9v8ba.js";import"../../chunk-y9bxeq10.js";import"../../chunk-t88j01sz.js";import"../../chunk-3x19egjd.js";import"../../chunk-x9vpsya2.js";import"../../chunk-587w6ktw.js";import"../../chunk-yh04e0n4.js";import"../../chunk-mvxcxnff.js";import"../../chunk-s013113f.js";import"../../chunk-57xvwm7c.js";import"../../chunk-qj2yvdjn.js";import"../../chunk-m29ph3cg.js";import"../../chunk-j51p30sb.js";import"../../chunk-hzy5z7x2.js";export{La as default,fr as dts,ve as dtsxPlugin,Ia as tsupDts};
|
package/dist/src/plugins/vite.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ke,Da,Pa}from"../../chunk-b7azvfdn.js";import"../../chunk-fkdq1x5f.js";import"../../chunk-pydpyx8x.js";import"../../chunk-zwcvtbt4.js";import"../../chunk-83w2qbmb.js";import"../../chunk-3nmjt94q.js";import"../../chunk-a4791583.js";import"../../chunk-e9x8ywhv.js";import"../../chunk-m14550z9.js";import"../../chunk-41d5ehn0.js";import"../../chunk-b3979d26.js";import"../../chunk-vher6t7j.js";import"../../chunk-hgg4aqvf.js";import"../../chunk-grpmcw9x.js";import"../../chunk-gns23mhj.js";import"../../chunk-6gvctv0q.js";import"../../chunk-zb48dx6a.js";import"../../chunk-xtckj8w1.js";import"../../chunk-8c5dzvwk.js";import"../../chunk-t1js8enq.js";import"../../chunk-hvt855ms.js";import"../../chunk-k0vthrqs.js";import"../../chunk-f191378r.js";import"../../chunk-s6t0ff96.js";import"../../chunk-x6ddycvm.js";import"../../chunk-g9emajpc.js";import"../../chunk-jy5h728q.js";import"../../chunk-x5z8vprh.js";import"../../chunk-sqa3ke1a.js";import"../../chunk-4t1we2h5.js";import"../../chunk-exf6bsbe.js";import"../../chunk-755bntty.js";import"../../chunk-mc9kwthm.js";import"../../chunk-srfpcjtn.js";import"../../chunk-v6fwy63g.js";import"../../chunk-zmnb3yg1.js";import"../../chunk-4vtfqwpq.js";import"../../chunk-t76htvct.js";import"../../chunk-05cbfytc.js";import"../../chunk-nfd9v8ba.js";import"../../chunk-y9bxeq10.js";import"../../chunk-t88j01sz.js";import"../../chunk-3x19egjd.js";import"../../chunk-x9vpsya2.js";import"../../chunk-587w6ktw.js";import"../../chunk-yh04e0n4.js";import"../../chunk-mvxcxnff.js";import"../../chunk-s013113f.js";import"../../chunk-57xvwm7c.js";import"../../chunk-qj2yvdjn.js";import"../../chunk-m29ph3cg.js";import"../../chunk-j51p30sb.js";import"../../chunk-hzy5z7x2.js";export{Pa as default,Ke as dts,Da as viteDts};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{He,Kt,lr,ka}from"../../chunk-vye45h9n.js";import"../../chunk-fkdq1x5f.js";import"../../chunk-pydpyx8x.js";import"../../chunk-zwcvtbt4.js";import"../../chunk-83w2qbmb.js";import"../../chunk-3nmjt94q.js";import"../../chunk-a4791583.js";import"../../chunk-e9x8ywhv.js";import"../../chunk-m14550z9.js";import"../../chunk-41d5ehn0.js";import"../../chunk-b3979d26.js";import"../../chunk-vher6t7j.js";import"../../chunk-hgg4aqvf.js";import"../../chunk-grpmcw9x.js";import"../../chunk-gns23mhj.js";import"../../chunk-6gvctv0q.js";import"../../chunk-zb48dx6a.js";import"../../chunk-xtckj8w1.js";import"../../chunk-8c5dzvwk.js";import"../../chunk-t1js8enq.js";import"../../chunk-hvt855ms.js";import"../../chunk-k0vthrqs.js";import"../../chunk-f191378r.js";import"../../chunk-s6t0ff96.js";import"../../chunk-x6ddycvm.js";import"../../chunk-g9emajpc.js";import"../../chunk-jy5h728q.js";import"../../chunk-x5z8vprh.js";import"../../chunk-sqa3ke1a.js";import"../../chunk-4t1we2h5.js";import"../../chunk-exf6bsbe.js";import"../../chunk-755bntty.js";import"../../chunk-mc9kwthm.js";import"../../chunk-srfpcjtn.js";import"../../chunk-v6fwy63g.js";import"../../chunk-zmnb3yg1.js";import"../../chunk-4vtfqwpq.js";import"../../chunk-t76htvct.js";import"../../chunk-05cbfytc.js";import"../../chunk-nfd9v8ba.js";import"../../chunk-y9bxeq10.js";import"../../chunk-t88j01sz.js";import"../../chunk-3x19egjd.js";import"../../chunk-x9vpsya2.js";import"../../chunk-587w6ktw.js";import"../../chunk-yh04e0n4.js";import"../../chunk-mvxcxnff.js";import"../../chunk-s013113f.js";import"../../chunk-57xvwm7c.js";import"../../chunk-qj2yvdjn.js";import"../../chunk-m29ph3cg.js";import"../../chunk-j51p30sb.js";import"../../chunk-hzy5z7x2.js";export{He as DtsxWebpackPlugin,ka as default,lr as dts,Kt as dtsxWebpack};
|
package/dist/src/plugins.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ae,Qo,se,ea,ta,na}from"../chunk-8c5dzvwk.js";export{Ae as PluginManager,ta as createBannerPlugin,na as createFilterPlugin,se as definePlugin,Qo as pluginManager,ea as stripInternalPlugin};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
+
import type { DeclarationEngine } from './native-engine.js';
|
|
1
2
|
/**
|
|
2
3
|
* Emit through the native engine when it can produce this output: the engine
|
|
3
4
|
* is loaded and the import order is the default one it implements. Returns
|
|
4
5
|
* null otherwise, or when the native emitter rejects the input, and the
|
|
5
6
|
* TypeScript engine runs instead.
|
|
6
7
|
*/
|
|
7
|
-
export declare function emitNatively(sourceCode: string, filename: string, keepComments: boolean, importOrder: readonly string[], isolatedDeclarations: boolean): string | null;
|
|
8
|
+
export declare function emitNatively(sourceCode: string, filename: string | undefined, keepComments: boolean, importOrder: readonly string[], isolatedDeclarations: boolean, engine?: DeclarationEngine): string | null;
|
|
8
9
|
/**
|
|
9
10
|
* Process TypeScript source code from a string (for stdin support)
|
|
10
11
|
* This is a lightweight module that avoids pulling in heavy dependencies
|
|
11
12
|
* like bun Glob, fs/promises, bundler, cache, config, etc.
|
|
12
13
|
*/
|
|
13
|
-
export declare function processSource(sourceCode: string, filename?: string, keepComments?: boolean, importOrder?: string[], isolatedDeclarations?: boolean): string;
|
|
14
|
+
export declare function processSource(sourceCode: string, filename?: string, keepComments?: boolean, importOrder?: string[], isolatedDeclarations?: boolean, engine?: DeclarationEngine): string;
|
|
14
15
|
/** Generate declarations through the annotation-first isolated fast path. */
|
|
15
16
|
export declare function processSourceIsolated(sourceCode: string, filename?: string, keepComments?: boolean, importOrder?: string[]): string;
|
|
16
17
|
/** Generate declarations through the value-aware semantic inference path. */
|
|
@@ -20,7 +21,7 @@ export declare function clearResultCache(): void;
|
|
|
20
21
|
* Fast path for project mode — skips cache lookup/store.
|
|
21
22
|
* Use when processing many files once (no cache benefit).
|
|
22
23
|
*/
|
|
23
|
-
export declare function processSourceDirect(sourceCode: string, filename?: string, keepComments?: boolean, importOrder?: string[], isolatedDeclarations?: boolean): string;
|
|
24
|
+
export declare function processSourceDirect(sourceCode: string, filename?: string, keepComments?: boolean, importOrder?: string[], isolatedDeclarations?: boolean, engine?: DeclarationEngine): string;
|
|
24
25
|
/**
|
|
25
26
|
* Emit through the TypeScript engine only, without the native engine or the
|
|
26
27
|
* result cache: the reference the native engine is held to.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ze,$t,oi,ai,ci,Na,$n}from"../chunk-83w2qbmb.js";import"../chunk-3nmjt94q.js";import"../chunk-a4791583.js";import"../chunk-b3979d26.js";import"../chunk-k0vthrqs.js";import"../chunk-4t1we2h5.js";import"../chunk-exf6bsbe.js";import"../chunk-755bntty.js";import"../chunk-v6fwy63g.js";import"../chunk-zmnb3yg1.js";import"../chunk-4vtfqwpq.js";import"../chunk-t76htvct.js";import"../chunk-05cbfytc.js";import"../chunk-nfd9v8ba.js";import"../chunk-y9bxeq10.js";import"../chunk-t88j01sz.js";import"../chunk-3x19egjd.js";import"../chunk-x9vpsya2.js";import"../chunk-587w6ktw.js";import"../chunk-yh04e0n4.js";import"../chunk-mvxcxnff.js";import"../chunk-s013113f.js";import"../chunk-57xvwm7c.js";import"../chunk-qj2yvdjn.js";import"../chunk-m29ph3cg.js";import"../chunk-j51p30sb.js";import"../chunk-hzy5z7x2.js";export{ci as clearResultCache,Ze as emitNatively,$t as processSource,Na as processSourceDirect,oi as processSourceIsolated,ai as processSourceSemantic,$n as processSourceWithTypeScriptEngine};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{ja,Yn,Xn,Zn}from"../../chunk-t88j01sz.js";export{Zn as clearProcessorCaches,ja as getCachedRegex,Yn as getImportItemsFromCache,Xn as setImportItemsCache};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{f,
|
|
2
|
+
import{f,be}from"../../chunk-587w6ktw.js";export{be as escapeJsdocContent,f as formatComments};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{fe,b,de,pe,me,ge,Hn,Kn,he}from"../../chunk-05cbfytc.js";import"../../chunk-x9vpsya2.js";import"../../chunk-587w6ktw.js";import"../../chunk-yh04e0n4.js";import"../../chunk-mvxcxnff.js";import"../../chunk-s013113f.js";import"../../chunk-57xvwm7c.js";import"../../chunk-qj2yvdjn.js";import"../../chunk-j51p30sb.js";import"../../chunk-hzy5z7x2.js";export{me as processClassDeclaration,ge as processEnumDeclaration,Kn as processExportDeclaration,fe as processFunctionDeclaration,Hn as processImportDeclaration,de as processInterfaceDeclaration,he as processModuleDeclaration,pe as processTypeDeclaration,b as processVariableDeclaration};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Me}from"../../chunk-k0vthrqs.js";import"../../chunk-05cbfytc.js";import"../../chunk-y9bxeq10.js";import"../../chunk-t88j01sz.js";import"../../chunk-x9vpsya2.js";import"../../chunk-587w6ktw.js";import"../../chunk-yh04e0n4.js";import"../../chunk-mvxcxnff.js";import"../../chunk-s013113f.js";import"../../chunk-57xvwm7c.js";import"../../chunk-qj2yvdjn.js";import"../../chunk-j51p30sb.js";import"../../chunk-hzy5z7x2.js";export{Me as analyzeDeclarationImportUsage};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Fe,Jn,x,w,Ba,Oi,Wa,_a}from"../../chunk-y9bxeq10.js";import"../../chunk-t88j01sz.js";import"../../chunk-j51p30sb.js";import"../../chunk-hzy5z7x2.js";export{Wa as convertToTypeOnlyImport,x as extractAllImportedItems,Fe as getImportSourceLiteral,Oi as isTypeOnlyImportItem,_a as mergeImports,Ba as parseExportDetailed,w as parseImportDetailed,Jn as parseImportStatement};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{l}from"../../chunk-
|
|
2
|
+
import{l}from"../../chunk-3nmjt94q.js";import"../../chunk-a4791583.js";import"../../chunk-k0vthrqs.js";import{fe,b,de,pe,me,ge,Hn,Kn,he}from"../../chunk-05cbfytc.js";import{Jn,x}from"../../chunk-y9bxeq10.js";import{Zn}from"../../chunk-t88j01sz.js";import"../../chunk-3x19egjd.js";import{n,zt,Be,Z,dt,o,pt,We,z}from"../../chunk-x9vpsya2.js";import{f}from"../../chunk-587w6ktw.js";import"../../chunk-yh04e0n4.js";import"../../chunk-mvxcxnff.js";import"../../chunk-s013113f.js";import"../../chunk-57xvwm7c.js";import"../../chunk-qj2yvdjn.js";import"../../chunk-j51p30sb.js";import"../../chunk-hzy5z7x2.js";export{Zn as clearProcessorCaches,x as extractAllImportedItems,z as extractSatisfiesType,o as findMatchingBracket,f as formatComments,Be as inferArrayType,pt as inferFunctionType,n as inferNarrowType,zt as inferNarrowTypeInUnion,dt as inferObjectType,We as isGenericType,Z as parseArrayElements,Jn as parseImportStatement,me as processClassDeclaration,l as processDeclarations,ge as processEnumDeclaration,Kn as processExportDeclaration,fe as processFunctionDeclaration,Hn as processImportDeclaration,de as processInterfaceDeclaration,he as processModuleDeclaration,pe as processTypeDeclaration,b as processVariableDeclaration};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isBigIntLiteral, isNumericLiteral, numericLiteralType } from '../numeric-literals.js';
|
|
1
2
|
import type { KeyConstants } from '../computed-keys.js';
|
|
2
3
|
/**
|
|
3
4
|
* Enable clean default collection for the next type inference pass.
|
|
@@ -9,15 +10,6 @@ export declare function enableCleanDefaultCollection(): void;
|
|
|
9
10
|
* Returns null if no clean default was computed.
|
|
10
11
|
*/
|
|
11
12
|
export declare function consumeCleanDefault(): string | null;
|
|
12
|
-
/**
|
|
13
|
-
* Decimal, scientific, hexadecimal, binary, and octal numeric literals with
|
|
14
|
-
* an optional leading minus and numeric separators (the native engine's grammar).
|
|
15
|
-
*/
|
|
16
|
-
export declare function isNumericLiteral(s: string): boolean;
|
|
17
|
-
/** Decimal, hexadecimal, binary, and octal BigInt literals, with a leading minus and separators. */
|
|
18
|
-
export declare function isBigIntLiteral(s: string): boolean;
|
|
19
|
-
/** A numeric or BigInt literal as a literal type: separators do not belong to its value (`5_000` is `5000`). */
|
|
20
|
-
export declare function numericLiteralType(literal: string): string;
|
|
21
13
|
/**
|
|
22
14
|
* Infer and narrow types from values
|
|
23
15
|
* @param inUnion - When true, widens number/boolean literals to their base types (used in array union contexts)
|
|
@@ -143,3 +135,4 @@ export declare function inferTypeofType(typeStr: string): string | null;
|
|
|
143
135
|
* e.g., T[K], Person['name']
|
|
144
136
|
*/
|
|
145
137
|
export declare function isIndexedAccessType(typeStr: string): boolean;
|
|
138
|
+
export { isBigIntLiteral, isNumericLiteral, numericLiteralType } from '../numeric-literals.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Vt,Ut,n,zt,B,va,W,Be,Z,nr,Ht,dt,U,ye,o,pt,We,z,Ga,Va,Ua,za,Ha,Ka,qa,Sa,Ja,Ya,Xa}from"../../chunk-x9vpsya2.js";import"../../chunk-587w6ktw.js";import"../../chunk-yh04e0n4.js";import"../../chunk-mvxcxnff.js";import{g,ee,H}from"../../chunk-s013113f.js";import"../../chunk-57xvwm7c.js";import"../../chunk-qj2yvdjn.js";import"../../chunk-j51p30sb.js";import"../../chunk-hzy5z7x2.js";export{Ht as classFieldDefaultDoc,ye as cleanParameterDefaults,Ut as consumeCleanDefault,Vt as enableCleanDefaultCollection,za as extractInferTypes,z as extractSatisfiesType,o as findMatchingBracket,W as indentNestedType,Be as inferArrayType,U as inferCallType,Va as inferConditionalType,B as inferFunctionBodyReturnType,pt as inferFunctionType,Ja as inferKeyofType,Ga as inferMappedType,n as inferNarrowType,zt as inferNarrowTypeInUnion,dt as inferObjectType,Ua as inferTemplateLiteralTypeAdvanced,Ya as inferTypeofType,ee as isBigIntLiteral,Ha as isComplexType,We as isGenericType,Xa as isIndexedAccessType,g as isNumericLiteral,nr as leadingSourceComments,H as numericLiteralType,Z as parseArrayElements,Sa as parseTypeParameters,qa as parseUtilityType,va as primitiveMethodReturnType,Ka as simplifyComplexType};
|
package/dist/src/processor.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"../chunk-
|
|
2
|
+
import"../chunk-hzy5z7x2.js";import"../chunk-j51p30sb.js";import"../chunk-qj2yvdjn.js";import"../chunk-3x19egjd.js";import"../chunk-a4791583.js";import{f}from"../chunk-587w6ktw.js";import"../chunk-yh04e0n4.js";import"../chunk-s013113f.js";import"../chunk-mvxcxnff.js";import"../chunk-57xvwm7c.js";import{n,zt,Be,Z,dt,o,pt,We,z}from"../chunk-x9vpsya2.js";import{fe,b,de,pe,me,ge,Hn,Kn,he}from"../chunk-05cbfytc.js";import{Zn}from"../chunk-t88j01sz.js";import{Jn,x}from"../chunk-y9bxeq10.js";import"../chunk-k0vthrqs.js";import{l}from"../chunk-3nmjt94q.js";export{Zn as clearProcessorCaches,x as extractAllImportedItems,z as extractSatisfiesType,o as findMatchingBracket,f as formatComments,Be as inferArrayType,pt as inferFunctionType,n as inferNarrowType,zt as inferNarrowTypeInUnion,dt as inferObjectType,We as isGenericType,Z as parseArrayElements,Jn as parseImportStatement,me as processClassDeclaration,l as processDeclarations,ge as processEnumDeclaration,Kn as processExportDeclaration,fe as processFunctionDeclaration,Hn as processImportDeclaration,de as processInterfaceDeclaration,he as processModuleDeclaration,pe as processTypeDeclaration,b as processVariableDeclaration};
|
package/dist/src/profiling.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Zt,vr,us,fs,Qt,ds}from"../chunk-4fspqk22.js";export{Zt as Profiler,Qt as Timer,fs as createProfiledIo,vr as createProfiler,ds as createTimer,us as profileExecution};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Mi}from"../chunk-zmnb3yg1.js";import"../chunk-4vtfqwpq.js";import"../chunk-t76htvct.js";import"../chunk-05cbfytc.js";import"../chunk-nfd9v8ba.js";import"../chunk-y9bxeq10.js";import"../chunk-t88j01sz.js";import"../chunk-3x19egjd.js";import"../chunk-x9vpsya2.js";import"../chunk-587w6ktw.js";import"../chunk-yh04e0n4.js";import"../chunk-mvxcxnff.js";import"../chunk-s013113f.js";import"../chunk-57xvwm7c.js";import"../chunk-qj2yvdjn.js";import"../chunk-m29ph3cg.js";import"../chunk-j51p30sb.js";import"../chunk-hzy5z7x2.js";export{Mi as createReturnTypeScope};
|
package/dist/src/security.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{_,E,Ye,qr,mn,Jr,Yr,Xr,vt,gn,St,Zr,io,so,oo,ao}from"../chunk-cd27mg71.js";export{_ as DEFAULT_SECURITY_CONFIG,E as SecurityError,io as createSecureBatchProcessor,Zr as createSecureProcessor,ao as createSecurityMiddleware,mn as isBlockedPath,oo as isSafePath,Yr as isSymlink,so as sanitizeFilename,gn as validateFileBatch,vt as validateFilePath,Jr as validateFileSize,Ye as validatePath,qr as validatePaths,Xr as validateSymlink,St as withTimeout};
|
package/dist/src/source-cache.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{_t,ue,Wn,_n,jn,Gn,Vn}from"../chunk-mc9kwthm.js";import"../chunk-srfpcjtn.js";import"../chunk-v6fwy63g.js";export{Wn as batchParseSourceFiles,_n as clearSourceFileCache,Gn as getPendingParseCount,_t as getSourceFile,ue as getSourceFileAsync,jn as getSourceFileCacheSize,Vn as shouldUseAsyncParsing};
|
package/dist/src/sourcemap.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{fn,Ct,Us,zs,Hs,Ks,Kr,qs,Js}from"../chunk-2cjs4r5v.js";export{Ct as SourceMapConsumer,fn as SourceMapGenerator,Hs as appendInlineSourceMap,zs as appendSourceMapComment,Js as buildDeclarationMappings,Us as createSourceMap,qs as extractSourceMap,Kr as readSourceMap,Ks as writeSourceMap};
|
package/dist/src/stx.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{O,xa,I}from"../chunk-exf6bsbe.js";import"../chunk-755bntty.js";export{O as isStxFile,xa as parseStxScripts,I as transformStxToTs};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{ke}from"../chunk-hgg4aqvf.js";export{ke as validateTypeScriptSyntax};
|
package/dist/src/tracking.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Jt,Yt,Xt,rs,is}from"../chunk-wwjt0p6m.js";export{Jt as Tracker,rs as analyzeImports,is as analyzeTypes,Yt as createTracker,Xt as trackDeclarations};
|
package/dist/src/transformers.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{vi,Si,In,No,$i,Fo,Te,Bo,it,Wo,Ei,_o,ki,jo,Go,Vo,Uo,Ti,Ai,zo,Ho,Ko,qo,Jo,Yo,Xo,Zo}from"../chunk-xhgs3gx2.js";import"../chunk-8c5dzvwk.js";export{Si as cloneDeclaration,Fo as composeTransformers,vi as createDeclaration,jo as createJSDocTransformer,Ti as createModifierTransformer,Zo as createNamespacePrefixPlugin,Uo as createParameterTransformer,Ei as createPrefixTransformer,ki as createRemoveTransformer,Wo as createRenameTransformer,Vo as createReturnTypeTransformer,Ko as createStripTagsTransformer,_o as createSuffixTransformer,it as createTransformerPlugin,Go as createTypeTransformer,qo as createWrapTypeTransformer,Xo as declarePlugin,Te as filterByKind,Bo as filterByPredicate,No as findDeclarations,$i as mapDeclarations,Ho as optionalTransformer,Jo as readonlyPlugin,Ai as readonlyTransformer,zo as requiredTransformer,Yo as stripPrivatePlugin,In as walkDeclarations};
|
package/dist/src/tree-shaker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{gt,ht,yt,gr,hr,yr,ss}from"../chunk-gwsjj23d.js";export{yr as analyzeDependencies,ht as buildDeclarationDependencyGraph,ss as createTreeShaker,yt as extractTypeReferences,hr as findUnusedDeclarations,gt as treeShake,gr as treeShakeContent};
|
package/dist/src/tsconfig.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{ce}from"../chunk-x6ddycvm.js";import"../chunk-g9emajpc.js";export{ce as readEffectiveTsconfig};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{yi,bi,xi,wi,Ci,Pn,ie,Oo,Io,Rt,Lo}from"../chunk-gns23mhj.js";export{Pn as TypeMapper,Lo as TypeTransformers,Rt as applyTypeMappings,ie as createTypeMapper,Oo as defaultTypeMapper,yi as defaultTypeMappings,Ci as getPresetMappings,xi as readonlyTypeMappings,wi as simplifiedTypeMappings,Io as strictTypeMapper,bi as strictTypeMappings};
|
package/dist/src/types.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export declare interface DtsGenerationConfig {
|
|
|
41
41
|
prettier?: boolean
|
|
42
42
|
include?: string[]
|
|
43
43
|
isolatedDeclarations?: boolean
|
|
44
|
+
engine?: 'native' | 'typescript'
|
|
44
45
|
typeMappings?: import('./type-mappings.js').TypeMappingConfig
|
|
45
46
|
lineEnding?: 'lf' | 'crlf' | 'auto'
|
|
46
47
|
normalizeOutput?: boolean
|
package/dist/src/utils.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{tt,Ro,J,hi,re,Tt,At,Dt,Pt}from"../chunk-vher6t7j.js";import"../chunk-hgg4aqvf.js";import"../chunk-6gvctv0q.js";import"../chunk-zb48dx6a.js";import"../chunk-f191378r.js";import"../chunk-x6ddycvm.js";import"../chunk-g9emajpc.js";import"../chunk-jy5h728q.js";import"../chunk-x5z8vprh.js";export{Pt as addSourceMapComment,Ro as assertNever,re as checkIsolatedDeclarationsConfig,At as createDiff,Dt as generateDeclarationMap,hi as getAllTypeScriptFiles,tt as sourceMapCommentPrefix,Tt as validateDtsContent,J as writeToFile};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{qn}from"../chunk-nfd9v8ba.js";import"../chunk-y9bxeq10.js";import"../chunk-t88j01sz.js";import"../chunk-3x19egjd.js";import"../chunk-x9vpsya2.js";import"../chunk-587w6ktw.js";import"../chunk-yh04e0n4.js";import"../chunk-mvxcxnff.js";import"../chunk-s013113f.js";import"../chunk-57xvwm7c.js";import"../chunk-qj2yvdjn.js";import"../chunk-j51p30sb.js";import"../chunk-hzy5z7x2.js";export{qn as inferDeclarationValueAliases};
|
package/dist/src/vue.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{L,wa,Ot,It,c,Ne,ot,Lt,Nt,at,ct,lt,Ft,ut,Bt,Wt,N}from"../chunk-755bntty.js";export{Ft as collapseTypeText,Nt as extractDefaultExportOptions,ct as filterLocalValueStatements,Ne as findMacroCall,c as findMatching,at as getOptionValue,L as isVueFile,ot as mapRuntimeProps,It as maskNonCode,wa as parseVueSfc,lt as removeInlinedDeclaration,Bt as resolveEmitsType,Wt as resolveExposedType,ut as resolvePropsType,Ot as skipNonCode,Lt as stripMacroStatements,N as transformVueSfcToTs};
|
package/dist/src/watcher.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ii,$a,Li,Ea}from"../chunk-d5q4qfys.js";export{Ea as createWatchLogger,Ii as createWatcher,Li as formatWatchResult,$a as watchAndGenerate};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"../chunk-
|
|
2
|
+
import"../chunk-srfpcjtn.js";import"../chunk-755bntty.js";import"../chunk-exf6bsbe.js";import"../chunk-hzy5z7x2.js";import"../chunk-j51p30sb.js";import"../chunk-v6fwy63g.js";import"../chunk-qj2yvdjn.js";import"../chunk-m29ph3cg.js";import"../chunk-yh04e0n4.js";import"../chunk-3x19egjd.js";import"../chunk-t76htvct.js";import"../chunk-s013113f.js";import"../chunk-mvxcxnff.js";import"../chunk-57xvwm7c.js";import"../chunk-587w6ktw.js";import"../chunk-x9vpsya2.js";import"../chunk-4vtfqwpq.js";import"../chunk-05cbfytc.js";import"../chunk-zmnb3yg1.js";import"../chunk-t88j01sz.js";import"../chunk-y9bxeq10.js";import"../chunk-nfd9v8ba.js";import"../chunk-4t1we2h5.js";import"../chunk-mc9kwthm.js";import{r}from"../chunk-sqa3ke1a.js";import"../chunk-a4791583.js";import"../chunk-k0vthrqs.js";import{l}from"../chunk-3nmjt94q.js";import"../chunk-b3979d26.js";import{Ze}from"../chunk-83w2qbmb.js";import*as R from"fs";import{parentPort as M}from"worker_threads";var P=typeof Bun<"u"?Bun:null,S=P?null:R,T=Promise.resolve({extractDeclarations:r,processDeclarations:l});async function N(e){let u=Date.now();try{let{extractDeclarations:m,processDeclarations:A}=await T,f=e.config?.keepComments,C=e.config?.isolatedDeclarations,v=e.config?.importOrder,B=e.config?.engine;if(e.type==="process-batch"){let{filePaths:o,outPaths:D}=e,p=o?null:e.files||[],d=o?o.length:p.length,w=e.writeOutput===!0,g=w?null:Array(d),c=null,b=e.sources;if(!b&&d>0){let t=Array(d);for(let s=0;s<d;s++){let n=p?p[s]:null,h=n?n.sourceCode:void 0,i=o?o[s]:n.filePath;if(h!=null)t[s]=Promise.resolve(h);else if(P)t[s]=P.file(i).text();else t[s]=Promise.resolve(S.readFileSync(i,"utf-8"))}b=await Promise.all(t)}let x={filePath:"",sourceCode:"",declarations:[]},O=w&&P?Array(d):null,F=!0;for(let t=0;t<d;t++){let s=p?p[t]:null,n=o?o[t]:s.filePath,h=D?D[t]:s?s.outPath:void 0;try{let i=b?b[t]:s?.sourceCode||"",a=null,y=Ze(i,n,f??!0,v??["bun"],C??!1,B);if(y===null)a=m(i,n,f,C),x.filePath=n,x.sourceCode=i,x.declarations=a,y=A(a,x,f??!0,v);if(w){if(!h)throw Error(`Missing outPath for ${n}`);if(P)O[t]=P.write(h,y);else S.writeFileSync(h,y)}else if(g)g[t]={filePath:n,success:!0,content:y,declarations:a}}catch(i){let a=i&&i.message?i.message:String(i);if(w){if(!c)c=[];c.push({filePath:n,success:!1,error:a})}else if(g)g[t]={filePath:n,success:!1,error:a};F=!1}}if(O)await Promise.all(O);let E=c?.length?`${c[0].filePath}: ${c[0].error||"Worker batch failed"}`:void 0;return{id:e.id,success:F,filePath:e.filePath,batchResults:w?c||void 0:g,error:E,duration:Date.now()-u}}if(e.type==="extract"){let o=m(e.sourceCode,e.filePath,f,C);return{id:e.id,success:!0,filePath:e.filePath,declarations:o,duration:Date.now()-u}}if(e.type==="process"){let o=m(e.sourceCode,e.filePath,f,C),D=A(o,{filePath:e.filePath,sourceCode:e.sourceCode,declarations:o},f??!0,v);return{id:e.id,success:!0,filePath:e.filePath,content:D,declarations:o,duration:Date.now()-u}}throw Error(`Unknown task type: ${e.type}`)}catch(m){return{id:e.id,success:!1,filePath:e.filePath,error:m.message,duration:Date.now()-u}}}M?.on("message",async(e)=>{let u=await N(e);M.postMessage(u)});
|
package/dist/src/worker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{qt,dr,Bi,Wi,_i}from"../chunk-z82jsz2r.js";import"../chunk-x5z8vprh.js";export{qt as WorkerPool,Wi as batchFiles,_i as calculateOptimalBatchSize,dr as createWorkerPool,Bi as parallelProcess};
|
package/dist/src/workspace.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Qr,ei,hn,co,ti,ni,lo}from"../chunk-55yw66ha.js";import"../chunk-fkdq1x5f.js";import"../chunk-pydpyx8x.js";import"../chunk-zwcvtbt4.js";import"../chunk-83w2qbmb.js";import"../chunk-3nmjt94q.js";import"../chunk-a4791583.js";import"../chunk-e9x8ywhv.js";import"../chunk-m14550z9.js";import"../chunk-41d5ehn0.js";import"../chunk-b3979d26.js";import"../chunk-vher6t7j.js";import"../chunk-hgg4aqvf.js";import"../chunk-grpmcw9x.js";import"../chunk-gns23mhj.js";import"../chunk-6gvctv0q.js";import"../chunk-zb48dx6a.js";import"../chunk-xtckj8w1.js";import"../chunk-8c5dzvwk.js";import"../chunk-t1js8enq.js";import"../chunk-hvt855ms.js";import"../chunk-k0vthrqs.js";import"../chunk-f191378r.js";import"../chunk-s6t0ff96.js";import"../chunk-x6ddycvm.js";import"../chunk-g9emajpc.js";import"../chunk-jy5h728q.js";import"../chunk-x5z8vprh.js";import"../chunk-sqa3ke1a.js";import"../chunk-4t1we2h5.js";import"../chunk-exf6bsbe.js";import"../chunk-755bntty.js";import"../chunk-mc9kwthm.js";import"../chunk-srfpcjtn.js";import"../chunk-v6fwy63g.js";import"../chunk-zmnb3yg1.js";import"../chunk-4vtfqwpq.js";import"../chunk-t76htvct.js";import"../chunk-05cbfytc.js";import"../chunk-nfd9v8ba.js";import"../chunk-y9bxeq10.js";import"../chunk-t88j01sz.js";import"../chunk-3x19egjd.js";import"../chunk-x9vpsya2.js";import"../chunk-587w6ktw.js";import"../chunk-yh04e0n4.js";import"../chunk-mvxcxnff.js";import"../chunk-s013113f.js";import"../chunk-57xvwm7c.js";import"../chunk-qj2yvdjn.js";import"../chunk-m29ph3cg.js";import"../chunk-j51p30sb.js";import"../chunk-hzy5z7x2.js";export{ti as discoverWorkspaceFromPackageJson,Qr as discoverWorkspaceProjects,lo as generateFromPackageWorkspaces,co as generateMonorepo,hn as generateWorkspace,ni as resolveWorkspacePatterns,ei as sortProjectsByDependencies};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
package/dist/chunk-0h9dz87w.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{E}from"./chunk-60wrxcjt.js";import{J}from"./chunk-km03xc8j.js";import{q,he}from"./chunk-pekphr39.js";import{Pn}from"./chunk-2p8za6vr.js";import{spawn as N}from"child_process";var x=new Set(["cwd","root","outdir","entrypoints","include","exclude","autoIncludeReExports","outputStructure","tsconfigPath","moduleSpecifierMode","keepComments","isolatedDeclarations","clean","lineEnding"]);function y(l,f,d,n,u){let s=u.signal;s?.throwIfAborted();let c=u.timeoutMs??30000;if(!Number.isSafeInteger(c)||c<=0||c>2147483647)throw RangeError("Native project timeoutMs must be an integer between 1 and 2147483647");return new Promise((g,r)=>{let o=N(l,f,{cwd:n,stdio:["pipe","pipe","pipe"],windowsHide:!0}),i=[],a=[],e,h,v=!1,p=(t)=>{e??=t,o.kill()},m=()=>p(s?.reason instanceof Error?s.reason:Error("Native declaration project aborted",{cause:s?.reason})),j=setTimeout(()=>p(Error(`Native declaration project exceeded ${c}ms`)),c),b=(t,w)=>{if(v)return;if(v=!0,clearTimeout(j),s?.removeEventListener("abort",m),t)r(t);else g(w)};if(o.once("error",(t)=>b(t)),o.stdout.on("data",(t)=>i.push(Buffer.from(t))),o.stderr.on("data",(t)=>a.push(Buffer.from(t))),o.stdout.once("error",p),o.stderr.once("error",p),o.stdin.once("error",(t)=>{h??=t}),o.once("close",(t,w)=>{if(t!==0&&!e)e=Error(`Native declaration project failed (${w??t}): ${Buffer.concat(a).toString("utf8")}`);b(e??h,Buffer.concat(i).toString("utf8"))}),s?.addEventListener("abort",m,{once:!0}),s?.aborted)m();o.stdin.end(Buffer.from(d,"utf8"))})}async function Di(l,f={},d={}){if(!l||l.includes("\x00"))throw Error("A native zig-dtsx executable is required");for(let i of Object.keys(f))if(!x.has(i))throw Error(`Native declaration project does not support option: ${i}`);d.signal?.throwIfAborted();let n={...E,...f};if(await q(n),n.isolatedDeclarations===void 0)n.isolatedDeclarations=await J(n);let u=await Pn(n),s=["--batch"];if(!n.keepComments)s.push("--no-comments");if(n.isolatedDeclarations)s.push("--isolated-declarations");let c=JSON.stringify({protocol:"zig-dtsx-project",version:1,files:u.files.map((i)=>({source:i.source,context:i.context}))}),g=await y(l,s,c,n.cwd,d),r;try{r=JSON.parse(g)}catch(i){throw Error("Native executable did not return a valid zig-dtsx project protocol response",{cause:i})}if(!r||typeof r!=="object"||!("protocol"in r)||r.protocol!=="zig-dtsx-project"||!("version"in r)||r.version!==1||!("files"in r)||!Array.isArray(r.files)||r.files.length!==u.files.length)throw Error("Native executable returned an unsupported or incomplete project response");let o=new Map;for(let[i,a]of u.files.entries()){let e=r.files[i];if(!e||typeof e!=="object"||!("sourceFile"in e)||e.sourceFile!==a.sourceFile||!("outputFile"in e)||e.outputFile!==a.outputFile||!("sourceHash"in e)||e.sourceHash!==a.context.sourceHash||!("content"in e)||typeof e.content!=="string")throw Error(`Native executable returned a mismatched project result for ${a.sourceFile}`);o.set(a.outputFile,{content:e.content,lineEnding:n.lineEnding})}return d.signal?.throwIfAborted(),await he(n,o),Object.freeze({filesGenerated:o.size,outputFiles:Object.freeze([...o.keys()])})}
|
|
3
|
-
export{Di};
|
package/dist/chunk-1721pyws.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{t,w,Ne,m}from"./chunk-m9x72e5j.js";import{Un,zn}from"./chunk-j3egtn0s.js";function T(n){return m(n).find((e)=>e.category==="static-import")}function S(n){return t(n).map((e)=>n.slice(e.start,e.end)).join(" ")}function W(n){let e=T(n);return e?n.lastIndexOf(" from ",e.start):-1}function Pe(n){let e=T(n);return e?w(e.specifier,"'"):void 0}function Vn(n){let e=b(n);if(!e)return null;return{defaultName:e.defaultName??e.namespaceName,namedItems:e.namedItems.map((r)=>`${!e.isTypeOnly&&r.isTypeOnly?"type ":""}${r.originalName===r.name?r.name:`${r.originalName} as ${r.name}`}`),source:e.source,isTypeOnly:e.isTypeOnly,isNamespace:e.isNamespace,namespaceName:e.namespaceName,isImportEquals:e.isImportEquals}}function y(n){let e=Un(n);if(e)return e;let r=b(n),f=r?[r.defaultName,r.namespaceName,...r.namedItems.map((a)=>a.name)].filter((a)=>a!==null):[];return zn(n,f),f}function j(n){let e=[],r=0;for(let a of t(n)){if(a.kind!=="punctuation"||n.slice(a.start,a.end)!==",")continue;let s=n.slice(r,a.start).trim();if(s)e.push(s);r=a.end}let f=n.slice(r).trim();if(f)e.push(f);return e}function b(n){n=S(n);let e=Ne(n);if(e)return{defaultName:e.name,namedItems:[],source:e.source,isTypeOnly:e.isTypeOnly,isNamespace:!1,namespaceName:null,isImportEquals:!0};let r=W(n);if(r===-1)return null;let f=T(n);if(!f)return null;let a=f.specifier,s=n.slice(0,r).trim(),d=f.isTypeOnly;if(s.startsWith("import "))s=s.slice(7).trim();if(d&&s.startsWith("type "))s=s.slice(5).trim();let p=null,o=[],i=!1,c=null,u=s.includes("{")?-1:s.indexOf("* as ");if(u!==-1)return i=!0,c=s.slice(u+5).trim(),p=s.slice(0,u).trim().replace(/,$/,"").trim()||null,{defaultName:p,namedItems:[],source:a,isTypeOnly:d,isNamespace:i,namespaceName:c};let l=s.indexOf("{"),g=s.lastIndexOf("}");if(l!==-1&&g!==-1){let I=s.slice(0,l).trim();if(I.endsWith(","))p=I.slice(0,-1).trim()||null;let h=s.slice(l+1,g),C=j(h);for(let O of C){let D=ki(O),N=D?O.slice(5).trim():O,x=N.lastIndexOf(" as "),E,q;if(x!==-1)q=N.slice(0,x).trim(),E=N.slice(x+4).trim();else E=N,q=N;o.push({name:E,originalName:q,isTypeOnly:d||D,isDefault:!1})}}else p=s.trim()||null;return{defaultName:p,namedItems:o,source:a,isTypeOnly:d,isNamespace:i,namespaceName:c}}function Ma(n){let e=n.trim();if(e.startsWith("export default "))return{namedItems:[],source:null,isTypeOnly:!1,isNamespace:!1,isDefault:!0};let r=e.startsWith("export type ");if(e.startsWith("export "))e=e.slice(7).trim();if(r&&e.startsWith("type "))e=e.slice(5).trim();if(e.startsWith("* from ")||e.startsWith("* as ")){let c=e.indexOf(" from "),u=null;if(c!==-1){let l=e.slice(c+6).trim(),g=l[0];if(g==='"'||g==="'"){let I=l.indexOf(g,1);if(I!==-1)u=l.slice(1,I)}}return{namedItems:[],source:u,isTypeOnly:r,isNamespace:!0,isDefault:!1}}let f=e.indexOf("{"),a=e.lastIndexOf("}");if(f===-1||a===-1)return null;let s=null,d=e.indexOf(" from ",a);if(d!==-1){let c=e.slice(d+6).trim(),u=c[0];if(u==='"'||u==="'"){let l=c.indexOf(u,1);if(l!==-1)s=c.slice(1,l)}}let p=[],o=e.slice(f+1,a),i=[];{let c=0;for(let u=0;u<=o.length;u++)if(u===o.length||o.charCodeAt(u)===44){let l=c,g=u;while(l<g&&o.charCodeAt(l)<=32)l++;while(g>l&&o.charCodeAt(g-1)<=32)g--;if(l<g)i.push(o.slice(l,g));c=u+1}}for(let c of i){let u=ki(c),l=u?c.slice(5).trim():c,g=l.lastIndexOf(" as "),I,h;if(g!==-1)h=l.slice(0,g).trim(),I=l.slice(g+4).trim();else I=l,h=l;p.push({name:I,originalName:h,isTypeOnly:r||u,isDefault:!1})}return{namedItems:p,source:s,isTypeOnly:r,isNamespace:!1,isDefault:!1}}function ki(n){let e=t(n),r=e[0];if(!r||r.kind!=="word"||n.slice(r.start,r.end)!=="type"||e.length<2)return!1;return!(e.length===3&&n.slice(e[1].start,e[1].end)==="as")}function Oa(n){let e=b(n);if(!e||e.isTypeOnly||e.isImportEquals)return n;if(e.namedItems.every((r)=>r.isTypeOnly))return n.replace(/^import\s+/,"import type ");return n}function Ia(n){let e=new Map,r=[];for(let a of n){let s=b(a);if(!s)continue;if(s.isImportEquals||s.isNamespace){r.push(a);continue}let d=Pe(a);if(!d)throw Error("Cannot locate a grammatical module literal in the import declaration");let p=e.get(s.source)||{types:[],values:[],defaultName:null,sourceLiteral:d};if(s.defaultName)p.defaultName=s.defaultName;for(let o of s.namedItems)if(o.isTypeOnly)p.types.push(o);else p.values.push(o);e.set(s.source,p)}let f=r;for(let{types:a,values:s,defaultName:d,sourceLiteral:p}of e.values())if(a.length===0&&s.length===0&&d)f.push(`import ${d} from ${p};`);else if(a.length>0&&s.length===0&&!d){let o=a.map((i)=>i.originalName===i.name?i.name:`${i.originalName} as ${i.name}`);f.push(`import type { ${o.join(", ")} } from ${p};`)}else if(s.length>0&&a.length===0&&!d){let o=s.map((i)=>i.originalName===i.name?i.name:`${i.originalName} as ${i.name}`);f.push(`import { ${o.join(", ")} } from ${p};`)}else{let o=[];for(let i of a){let c=i.originalName===i.name?i.name:`${i.originalName} as ${i.name}`;o.push(`type ${c}`)}for(let i of s){let c=i.originalName===i.name?i.name:`${i.originalName} as ${i.name}`;o.push(c)}if(d)f.push(`import ${d}, { ${o.join(", ")} } from ${p};`);else f.push(`import { ${o.join(", ")} } from ${p};`)}return f}
|
|
3
|
-
export{Pe,Vn,y,b,Ma,ki,Oa,Ia};
|
package/dist/chunk-1903h3dm.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{lstat as d,realpath as f,stat as T}from"fs/promises";import{isAbsolute as l,normalize as g,relative as p,resolve as u}from"path";var N={rootDir:process.cwd(),maxFileSize:10485760,maxTotalSize:104857600,timeout:30000,followSymlinks:!1,maxFiles:1e4,blockedPatterns:["**/.git/**","**/node_modules/**","**/.env*","**/secrets/**","**/*.key","**/*.pem"]};class C extends Error{code;path;constructor(t,r,e){super(t);this.code=r;this.path=e;this.name="SecurityError"}}function Ve(t,r={}){let{rootDir:e=process.cwd()}=r,i=g(t),n=l(i)?i:u(e,i),o=u(n),s=p(e,o);if(s.startsWith("..")||l(s))throw new C(`Path traversal detected: "${t}" resolves outside root directory`,"PATH_TRAVERSAL",t);return o}function Gr(t,r={}){return t.map((e)=>Ve(e,r))}function cn(t,r={}){let e=r.blockedPatterns||N.blockedPatterns;for(let i of e)if(h(t,i))return!0;return!1}var m=new Map;function P(t){let r=m.get(t);if(r)return r;let e=t.replace(/\*\*/g,"<<GLOBSTAR>>").replace(/\*/g,"<<STAR>>").replace(/\?/g,"<<QUESTION>>");e=e.replace(/[.+^${}()|[\]\\]/g,"\\$&"),e=e.replace(/^<<GLOBSTAR>>\//,"(.*\\/)?"),e=e.replace(/\/<<GLOBSTAR>>$/,"(\\/.*)?"),e=e.replace(/\/<<GLOBSTAR>>\//g,"(\\/.*)?\\/"),e=e.replace(/<<GLOBSTAR>>/g,".*"),e=e.replace(/<<STAR>>/g,"[^/]*"),e=e.replace(/<<QUESTION>>/g,"[^/]");let i=new RegExp(`^${e}$`);return m.set(t,i),i}function h(t,r){let e=t.indexOf("\\")===-1?t:t.replace(/\\/g,"/");return P(r).test(e)}async function Vr(t,r={}){let e=r.maxFileSize??N.maxFileSize;try{let i=await T(t);if(i.size>e)throw new C(`File too large: "${t}" is ${a(i.size)}, max is ${a(e)}`,"FILE_TOO_LARGE",t);return i.size}catch(i){if(i instanceof C)throw i;throw new C(`Failed to check file size: ${t}`,"INVALID_PATH",t)}}async function Ur(t){try{return(await d(t)).isSymbolicLink()}catch{return!1}}async function zr(t,r={}){let e=r.followSymlinks??N.followSymlinks;if(await Ur(t)){if(!e)throw new C(`Symbolic links not allowed: "${t}"`,"SYMLINK_NOT_ALLOWED",t);let i=await f(t);return Ve(i,r)}return t}async function ht(t,r={}){let e=Ve(t,r);if(cn(e,r))throw new C(`Path matches blocked pattern: "${t}"`,"BLOCKED_PATTERN",t);let i=await zr(e,r),n=await Vr(i,r);return{path:i,size:n}}async function ln(t,r={}){let e=r.maxFiles??N.maxFiles,i=r.maxTotalSize??N.maxTotalSize;if(t.length>e)throw new C(`Too many files: ${t.length} exceeds maximum of ${e}`,"MAX_FILES_EXCEEDED");let n=[],o=0;for(let s of t){let c=await ht(s,r);if(n.push(c.path),o+=c.size,o>i)throw new C(`Total size exceeded: ${a(o)} exceeds maximum of ${a(i)}`,"TOTAL_SIZE_EXCEEDED")}return{paths:n,totalSize:o}}function yt(t,r,e="Operation"){return new Promise((i,n)=>{let o=setTimeout(()=>{n(new C(`${e} timed out after ${r}ms`,"TIMEOUT"))},r);t.then((s)=>{clearTimeout(o),i(s)}).catch((s)=>{clearTimeout(o),n(s)})})}function Hr(t,r={}){let e=r.timeout??N.timeout;return async(i)=>{let{path:n}=await ht(i,r);return yt(t(n),e,`Processing ${i}`)}}function Xs(t,r={}){let e=r.timeout??N.timeout;return async(i)=>{let{paths:n}=await ln(i,r);return yt(t(n),e,`Processing ${i.length} files`)}}function Zs(t){let r=t.replace(/\\/g,"/").replace(/\0/g,"").replace(/^\/+/,"").replace(/^[A-Z]:/i,""),e="";while(e!==r)e=r,r=r.replace(/\.\.\/|\.\.$/g,"").replace(/\/+/g,"/");return r.replace(/^\/+|\/+$/g,"")}function Qs(t){if(t.includes("\x00"))return!1;if(g(t).includes(".."))return!1;if(l(t)&&!t.startsWith(process.cwd()))return!1;return!0}function a(t){if(t===0)return"0 B";let r=["B","KB","MB","GB"],e=1024,i=Math.floor(Math.log(t)/Math.log(e));return`${Number.parseFloat((t/e**i).toFixed(2))} ${r[i]}`}function eo(t={}){let r={...N,...t};return{validatePath:(e)=>Ve(e,r),validatePaths:(e)=>Gr(e,r),validateFile:(e)=>ht(e,r),validateBatch:(e)=>ln(e,r),withTimeout:(e,i)=>yt(e,r.timeout,i),secureProcessor:(e)=>Hr(e,r),isBlocked:(e)=>cn(e,r),getConfig:()=>r}}
|
|
3
|
-
export{N,C,Ve,Gr,cn,Vr,Ur,zr,ht,ln,yt,Hr,Xs,Zs,Qs,eo};
|