svelte 4.2.10 → 4.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/compiler.cjs
CHANGED
|
@@ -35503,14 +35503,13 @@ class InlineComponentWrapper extends Wrapper {
|
|
|
35503
35503
|
// statements will become switch_props function body
|
|
35504
35504
|
// rewrite last statement, add props update logic
|
|
35505
35505
|
statements[statements.length - 1] = b$1`
|
|
35506
|
+
for (let #i = 0; #i < ${levels}.length; #i += 1) {
|
|
35507
|
+
${props} = @assign(${props}, ${levels}[#i]);
|
|
35508
|
+
}
|
|
35506
35509
|
if (#dirty !== undefined && ${condition}) {
|
|
35507
|
-
${props} = @get_spread_update(${levels}, [
|
|
35510
|
+
${props} = @assign(${props}, @get_spread_update(${levels}, [
|
|
35508
35511
|
${changes}
|
|
35509
|
-
]);
|
|
35510
|
-
} else {
|
|
35511
|
-
for (let #i = 0; #i < ${levels}.length; #i += 1) {
|
|
35512
|
-
${props} = @assign(${props}, ${levels}[#i]);
|
|
35513
|
-
}
|
|
35512
|
+
]));
|
|
35514
35513
|
}
|
|
35515
35514
|
`;
|
|
35516
35515
|
}
|
|
@@ -43596,7 +43595,7 @@ function is_used_as_reference(node, parent) {
|
|
|
43596
43595
|
* https://svelte.dev/docs/svelte-compiler#svelte-version
|
|
43597
43596
|
* @type {string}
|
|
43598
43597
|
*/
|
|
43599
|
-
const VERSION = '4.2.
|
|
43598
|
+
const VERSION = '4.2.12';
|
|
43600
43599
|
|
|
43601
43600
|
const regex_leading_directory_separator = /^[/\\]/;
|
|
43602
43601
|
const regex_starts_with_term_export = /^Export/;
|
package/package.json
CHANGED
|
@@ -277,14 +277,13 @@ export default class InlineComponentWrapper extends Wrapper {
|
|
|
277
277
|
// statements will become switch_props function body
|
|
278
278
|
// rewrite last statement, add props update logic
|
|
279
279
|
statements[statements.length - 1] = b`
|
|
280
|
+
for (let #i = 0; #i < ${levels}.length; #i += 1) {
|
|
281
|
+
${props} = @assign(${props}, ${levels}[#i]);
|
|
282
|
+
}
|
|
280
283
|
if (#dirty !== undefined && ${condition}) {
|
|
281
|
-
${props} = @get_spread_update(${levels}, [
|
|
284
|
+
${props} = @assign(${props}, @get_spread_update(${levels}, [
|
|
282
285
|
${changes}
|
|
283
|
-
]);
|
|
284
|
-
} else {
|
|
285
|
-
for (let #i = 0; #i < ${levels}.length; #i += 1) {
|
|
286
|
-
${props} = @assign(${props}, ${levels}[#i]);
|
|
287
|
-
}
|
|
286
|
+
]));
|
|
288
287
|
}
|
|
289
288
|
`;
|
|
290
289
|
}
|
|
@@ -227,7 +227,7 @@ if (typeof HTMLElement === 'function') {
|
|
|
227
227
|
if (!this.$$c) {
|
|
228
228
|
// We wait one tick to let possible child slot elements be created/mounted
|
|
229
229
|
await Promise.resolve();
|
|
230
|
-
if (!this.$$cn) {
|
|
230
|
+
if (!this.$$cn || this.$$c) {
|
|
231
231
|
return;
|
|
232
232
|
}
|
|
233
233
|
function create_slot(name) {
|
package/src/shared/version.js
CHANGED