Home / Function/ merge() — astro Function Reference

merge() — astro Function Reference

Architecture documentation for the merge() function in cookies.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  c8875d28_14c6_0b92_021c_fcc01ea915ac["merge()"]
  28935751_f2b1_4797_d41a_fc616c40e0a8["AstroCookies"]
  c8875d28_14c6_0b92_021c_fcc01ea915ac -->|defined in| 28935751_f2b1_4797_d41a_fc616c40e0a8
  1eca20ec_d5f5_80f3_2ce1_84641921b4ed["set()"]
  c8875d28_14c6_0b92_021c_fcc01ea915ac -->|calls| 1eca20ec_d5f5_80f3_2ce1_84641921b4ed
  style c8875d28_14c6_0b92_021c_fcc01ea915ac fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/cookies/cookies.ts lines 220–227

	merge(cookies: AstroCookies) {
		const outgoing = cookies.#outgoing;
		if (outgoing) {
			for (const [key, value] of outgoing) {
				this.#ensureOutgoingMap().set(key, value);
			}
		}
	}

Domain

Subdomains

Calls

Frequently Asked Questions

What does merge() do?
merge() is a function in the astro codebase, defined in packages/astro/src/core/cookies/cookies.ts.
Where is merge() defined?
merge() is defined in packages/astro/src/core/cookies/cookies.ts at line 220.
What does merge() call?
merge() calls 1 function(s): set.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free