Asger F
41aea8828d
Refactor
2025-04-23 14:28:00 +02:00
Asger F
46f1af4ea4
More factoring out
2025-04-23 14:27:58 +02:00
Asger F
7957070055
Factor out PathResolver and TSConfig
2025-04-23 14:27:57 +02:00
Asger F
d3fd5b1673
Rename path resolver
2025-04-23 14:27:56 +02:00
Asger F
e8dc128dab
sdfg
2025-04-23 14:27:55 +02:00
Asger F
7a5a021a82
Create VirtualPaths.qll
2025-04-23 14:27:53 +02:00
Asger F
d48b5d9174
JS: Add test for __dirname using copilot and fix a bug
2025-04-23 14:27:52 +02:00
Asger F
2b7f2488d4
Update test.expected
2025-04-23 14:27:51 +02:00
Asger F
1a41aa7296
JS: Consider package root to be a potential source dir
2025-04-23 14:27:50 +02:00
Asger F
8ffea7d1fe
JS: Add test for 'src' inside 'dist'
2025-04-23 14:27:49 +02:00
Asger F
e0b241a206
Update PathResolution.qll
2025-04-23 14:27:47 +02:00
Asger F
4d6f53ed9a
Resolve "exports" paths more aggressively
2025-04-23 14:27:46 +02:00
Asger F
5b0d7f5990
Factor out isRelevantPathExpr
2025-04-23 14:27:45 +02:00
Asger F
0a15b1b0ba
JS: Handle __dirname (TODO: test)
2025-04-23 14:27:44 +02:00
Asger F
848ac641a5
JS: Handle case where main resolves to a folder
2025-04-23 14:27:43 +02:00
Asger F
8d658ea27a
asdf
2025-04-23 14:27:41 +02:00
Asger F
cd03ef9f02
safd
2025-04-23 14:27:40 +02:00
Asger F
76ad3e6705
JS: Fix automatic file extensions in main file resolution
2025-04-23 14:27:39 +02:00
Asger F
1f0a43340f
Update PathResolution.qll
2025-04-23 14:27:38 +02:00
Asger F
971193ae44
More tests
2025-04-23 14:27:36 +02:00
Asger F
920f618101
Expose for testing purposes
2025-04-23 14:27:35 +02:00
Asger F
f13e8c517f
Support exports with star globs
2025-04-23 14:27:34 +02:00
Asger F
a835aec81b
JS: Proper main/module/exports handling
2025-04-23 14:27:33 +02:00
Asger F
86a882303d
JS: Add getDeclaredPackageName()
2025-04-23 14:27:32 +02:00
Asger F
26a8e0b572
JS: Handle package.json-specified main files
2025-04-23 14:27:30 +02:00
Asger F
95ea1b25f4
JS: Add package.json with 'exports'
2025-04-23 14:27:29 +02:00
Asger F
c807664578
JS: Add test for importing package.json with main
2025-04-23 14:27:28 +02:00
Asger F
92337d701e
Keep old resolveImportPath for comparison
2025-04-23 14:27:27 +02:00
Asger F
a849d3fb2d
Simplify a bit
2025-04-23 14:27:25 +02:00
Asger F
233ed4f113
Handle '..' path
2025-04-23 14:27:24 +02:00
Asger F
55a91ebaef
JS: Path resolution for tsconfig
2025-04-23 14:27:23 +02:00
Asger F
190dfce9c5
JS: Ensure tsconfig.json files are extracted in qltest
...
QLTests still use the Main.java entry point, which didn't extract tsconfig.json and didn't allow non-standard JSON syntax such as trailing commas that are allowed in tsconfig.json files.
2025-04-23 14:27:21 +02:00
Asger F
ec4b3ef202
JS: Stop resolving imports from TS symbols
2025-04-23 14:27:20 +02:00
Asger F
a889e981ba
JS: Add tests for multiple path replacements
2025-04-23 14:27:19 +02:00
Asger F
aa0f7d8ec3
JS: Add test for baseUrl and path mappings in tsconfig files
2025-04-23 14:27:18 +02:00
Asger F
ffe9d542f8
JS: Set TS mode to basic
2025-04-23 14:27:16 +02:00
Asger F
abfbc2e294
JS: Also check contextual type
2025-04-23 14:27:15 +02:00
Asger F
cada794cf1
JS: Some test updates
2025-04-23 14:27:14 +02:00
Asger F
69077ff9b6
JS: Remove some dependencies on type extraction
2025-04-23 14:27:13 +02:00
Asger F
fe06115180
JS: Use in MissingAwait
2025-04-23 14:27:11 +02:00
Asger F
05212e6042
JS: Use hasUnderlyingStringOrAnyType in Nest model (TODO: refactor)
2025-04-23 14:27:10 +02:00
Asger F
0109ab6a70
JS: Use sanitizing primitive type in Nest model
2025-04-23 14:27:09 +02:00
Asger F
9978657a1c
JS: Use sanitizing primitive types in ViewComponentInput
2025-04-23 14:27:07 +02:00
Asger F
6ed900504c
JS: Update jQuery model
2025-04-23 14:27:06 +02:00
Asger F
da7387ee63
JS: Use in TypeAnnotation.getClass and hasUnderlyingType predicates
2025-04-23 14:27:05 +02:00
Asger F
406754c646
JS: Resolve JSDocLocalTypeAccess to a variable in scope
2025-04-23 14:27:04 +02:00
Asger F
52c729b161
JS: Use underlying types in DataFlow::Node
2025-04-23 14:27:02 +02:00
Asger F
21f4349cc6
Create TypeResolution.qll
2025-04-23 14:27:01 +02:00
Asger F
a374b04f0f
Create UnderlyingTypes.qll
2025-04-23 14:27:00 +02:00
Asger F
45ed331115
Create NameResolution.qll
2025-04-23 14:26:59 +02:00