Comparing version 5.11.1 to 5.11.2
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "5.11.1", | ||
"version": "5.11.2", | ||
"type": "module", | ||
@@ -8,0 +8,0 @@ "types": "./types/index.d.ts", |
@@ -16,3 +16,2 @@ /* This file is generated by scripts/process-messages/index.js. Do not edit! */ | ||
} else { | ||
// TODO print a link to the documentation | ||
throw new Error(`https://svelte.dev/e/invalid_default_snippet`); | ||
@@ -34,3 +33,2 @@ } | ||
} else { | ||
// TODO print a link to the documentation | ||
throw new Error(`https://svelte.dev/e/lifecycle_outside_component`); | ||
@@ -52,3 +50,2 @@ } | ||
} else { | ||
// TODO print a link to the documentation | ||
throw new Error(`https://svelte.dev/e/store_invalid_shape`); | ||
@@ -69,5 +66,4 @@ } | ||
} else { | ||
// TODO print a link to the documentation | ||
throw new Error(`https://svelte.dev/e/svelte_element_invalid_this_value`); | ||
} | ||
} |
@@ -16,3 +16,2 @@ /* This file is generated by scripts/process-messages/index.js. Do not edit! */ | ||
} else { | ||
// TODO print a link to the documentation | ||
console.warn(`https://svelte.dev/e/dynamic_void_element_content`); | ||
@@ -36,5 +35,4 @@ } | ||
} else { | ||
// TODO print a link to the documentation | ||
console.warn(`https://svelte.dev/e/state_snapshot_uncloneable`); | ||
} | ||
} |
@@ -127,3 +127,3 @@ import { BROWSER } from 'esm-env'; | ||
* on Firefox and Safari it won't. | ||
* @type {{ get current(): number }} | ||
* @type {{ get current(): number | undefined }} | ||
* @since 5.11.0 | ||
@@ -148,3 +148,5 @@ */ | ||
constructor() { | ||
this.#update(); | ||
if (BROWSER) { | ||
this.#update(); | ||
} | ||
} | ||
@@ -154,4 +156,4 @@ | ||
get(this.#dpr); | ||
return window.devicePixelRatio; | ||
return BROWSER ? window.devicePixelRatio : undefined; | ||
} | ||
})(); |
@@ -9,3 +9,3 @@ // generated during release, do not modify | ||
*/ | ||
export const VERSION = '5.11.1'; | ||
export const VERSION = '5.11.2'; | ||
export const PUBLIC_VERSION = '5'; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
66
9
2430027
53421