Home / Function/ invalid_csp() — svelte Function Reference

invalid_csp() — svelte Function Reference

Architecture documentation for the invalid_csp() function in errors.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  eaea1c3d_4c9d_4517_f746_716fba2f2b5c["invalid_csp()"]
  aa72dc21_2f0c_e44b_b27f_dee45869de27["errors.js"]
  eaea1c3d_4c9d_4517_f746_716fba2f2b5c -->|defined in| aa72dc21_2f0c_e44b_b27f_dee45869de27
  91da79a6_48be_3e67_5beb_aa47cf753c81["render()"]
  91da79a6_48be_3e67_5beb_aa47cf753c81 -->|calls| eaea1c3d_4c9d_4517_f746_716fba2f2b5c
  style eaea1c3d_4c9d_4517_f746_716fba2f2b5c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/internal/server/errors.js lines 87–93

export function invalid_csp() {
	const error = new Error(`invalid_csp\n\`csp.nonce\` was set while \`csp.hash\` was \`true\`. These options cannot be used simultaneously.\nhttps://svelte.dev/e/invalid_csp`);

	error.name = 'Svelte error';

	throw error;
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does invalid_csp() do?
invalid_csp() is a function in the svelte codebase, defined in packages/svelte/src/internal/server/errors.js.
Where is invalid_csp() defined?
invalid_csp() is defined in packages/svelte/src/internal/server/errors.js at line 87.
What calls invalid_csp()?
invalid_csp() is called by 1 function(s): render.

Analyze Your Own Codebase

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

Try Supermodel Free