From 76ce303b0aa08e76cefc5d13f1fe21345caa0ce9 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Fri, 10 Jan 2025 12:05:23 -0500 Subject: [PATCH] chore: bump esrap (#14969) * chore: bump esrap * fix * bump again --- packages/svelte/package.json | 2 +- packages/svelte/src/compiler/errors.js | 330 +++++++++--------- packages/svelte/src/compiler/warnings.js | 312 ++++++++--------- .../svelte/src/internal/client/warnings.js | 6 +- .../svelte/src/internal/shared/warnings.js | 2 +- .../_expected/client/index.svelte.js | 10 +- .../_expected/server/index.svelte.js | 2 +- .../_expected/client/index.svelte.js | 8 +- .../_expected/server/index.svelte.js | 2 +- .../_expected/client/index.svelte.js | 6 +- .../_expected/server/index.svelte.js | 2 +- .../_expected/client/index.svelte.js | 4 +- .../_expected/server/index.svelte.js | 2 +- .../_expected/client/index.svelte.js | 2 +- .../_expected/server/index.svelte.js | 2 +- .../_expected/client/main.svelte.js | 16 +- .../_expected/server/main.svelte.js | 4 +- .../_expected/client/index.svelte.js | 8 +- .../_expected/server/index.svelte.js | 2 +- .../_expected/client/index.svelte.js | 2 +- .../_expected/server/index.svelte.js | 2 +- .../_expected/client/index.svelte.js | 6 +- .../_expected/server/index.svelte.js | 2 +- .../_expected/client/index.svelte.js | 6 +- .../_expected/server/index.svelte.js | 2 +- .../hmr/_expected/client/index.svelte.js | 6 +- .../hmr/_expected/server/index.svelte.js | 2 +- .../_expected/client/index.svelte.js | 6 +- .../_expected/client/module.svelte.js | 2 +- .../_expected/server/index.svelte.js | 2 +- .../_expected/server/module.svelte.js | 2 +- .../_expected/client/index.svelte.js | 6 +- .../_expected/server/index.svelte.js | 2 +- .../purity/_expected/client/index.svelte.js | 6 +- .../purity/_expected/server/index.svelte.js | 2 +- .../_expected/client/index.svelte.js | 8 +- .../_expected/server/index.svelte.js | 2 +- .../_expected/client/index.svelte.js | 6 +- .../_expected/server/index.svelte.js | 4 +- .../_expected/client/index.svelte.js | 6 +- .../_expected/server/index.svelte.js | 2 +- .../_expected/client/index.svelte.js | 8 +- .../_expected/server/index.svelte.js | 2 +- .../samples/css-injected-map/_config.js | 2 +- pnpm-lock.yaml | 10 +- 45 files changed, 414 insertions(+), 414 deletions(-) diff --git a/packages/svelte/package.json b/packages/svelte/package.json index 459786330b..47aec9ee93 100644 --- a/packages/svelte/package.json +++ b/packages/svelte/package.json @@ -155,7 +155,7 @@ "axobject-query": "^4.1.0", "clsx": "^2.1.1", "esm-env": "^1.2.1", - "esrap": "^1.3.2", + "esrap": "^1.4.2", "is-reference": "^3.0.3", "locate-character": "^3.0.0", "magic-string": "^0.30.11", diff --git a/packages/svelte/src/compiler/errors.js b/packages/svelte/src/compiler/errors.js index a997eeef8d..da038af430 100644 --- a/packages/svelte/src/compiler/errors.js +++ b/packages/svelte/src/compiler/errors.js @@ -52,7 +52,7 @@ function e(node, code, message) { * @returns {never} */ export function options_invalid_value(node, details) { - e(node, "options_invalid_value", `Invalid compiler option: ${details}\nhttps://svelte.dev/e/options_invalid_value`); + e(node, 'options_invalid_value', `Invalid compiler option: ${details}\nhttps://svelte.dev/e/options_invalid_value`); } /** @@ -62,7 +62,7 @@ export function options_invalid_value(node, details) { * @returns {never} */ export function options_removed(node, details) { - e(node, "options_removed", `Invalid compiler option: ${details}\nhttps://svelte.dev/e/options_removed`); + e(node, 'options_removed', `Invalid compiler option: ${details}\nhttps://svelte.dev/e/options_removed`); } /** @@ -72,7 +72,7 @@ export function options_removed(node, details) { * @returns {never} */ export function options_unrecognised(node, keypath) { - e(node, "options_unrecognised", `Unrecognised compiler option ${keypath}\nhttps://svelte.dev/e/options_unrecognised`); + e(node, 'options_unrecognised', `Unrecognised compiler option ${keypath}\nhttps://svelte.dev/e/options_unrecognised`); } /** @@ -81,7 +81,7 @@ export function options_unrecognised(node, keypath) { * @returns {never} */ export function bindable_invalid_location(node) { - e(node, "bindable_invalid_location", `\`$bindable()\` can only be used inside a \`$props()\` declaration\nhttps://svelte.dev/e/bindable_invalid_location`); + e(node, 'bindable_invalid_location', `\`$bindable()\` can only be used inside a \`$props()\` declaration\nhttps://svelte.dev/e/bindable_invalid_location`); } /** @@ -91,7 +91,7 @@ export function bindable_invalid_location(node) { * @returns {never} */ export function constant_assignment(node, thing) { - e(node, "constant_assignment", `Cannot assign to ${thing}\nhttps://svelte.dev/e/constant_assignment`); + e(node, 'constant_assignment', `Cannot assign to ${thing}\nhttps://svelte.dev/e/constant_assignment`); } /** @@ -101,7 +101,7 @@ export function constant_assignment(node, thing) { * @returns {never} */ export function constant_binding(node, thing) { - e(node, "constant_binding", `Cannot bind to ${thing}\nhttps://svelte.dev/e/constant_binding`); + e(node, 'constant_binding', `Cannot bind to ${thing}\nhttps://svelte.dev/e/constant_binding`); } /** @@ -111,7 +111,7 @@ export function constant_binding(node, thing) { * @returns {never} */ export function declaration_duplicate(node, name) { - e(node, "declaration_duplicate", `\`${name}\` has already been declared\nhttps://svelte.dev/e/declaration_duplicate`); + e(node, 'declaration_duplicate', `\`${name}\` has already been declared\nhttps://svelte.dev/e/declaration_duplicate`); } /** @@ -120,7 +120,7 @@ export function declaration_duplicate(node, name) { * @returns {never} */ export function declaration_duplicate_module_import(node) { - e(node, "declaration_duplicate_module_import", `Cannot declare a variable with the same name as an import inside \`