mirror of
https://github.com/morluto/rea.git
synced 2026-10-30 11:25:39 +00:00
fix(javascript): retain unresolved network targets with provenance
Resolve stable lexical and URL targets using shared effects, and preserve unresolved request expressions as partial facts. Carry their uncertainty through workers, artifact graphs, and the CLI. Scope partial endpoint identity to the source site. Refs: #3451, #3534 Co-authored-by: Hemang Varshney <218273197+hemv-857@users.noreply.github.com>
This commit is contained in:
1 parent
1b9b725c4c
commit
018ab2c5d9
15 files changed
+737
-27
No files matched your search
@@ -34,7 +34,15 @@ describe("server-sent event endpoints", () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it("keeps a dynamic EventSource URL unreported", () => {
|
||||
expect(endpoints("new EventSource(url);")).toEqual([]);
|
||||
it("retains a dynamic EventSource target as partial source evidence", () => {
|
||||
expect(
|
||||
analyzeJavaScriptStaticSource("new EventSource(url);").endpoints,
|
||||
).toEqual([
|
||||
expect.objectContaining({
|
||||
value: "url",
|
||||
mechanism: "call:EventSource",
|
||||
resolution: "partial",
|
||||
}),
|
||||
]);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user