@skaldapp/monaco-sfc 1.3.1 → 1.3.3

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.
Files changed (2) hide show
  1. package/dist/vue.worker.js +378 -11
  2. package/package.json +3 -3
@@ -11351,7 +11351,7 @@ var shared_esm_bundler_exports = /* @__PURE__ */ __exportAll({
11351
11351
  toTypeString: () => toTypeString
11352
11352
  });
11353
11353
  /**
11354
- * @vue/shared v3.5.44
11354
+ * @vue/shared v3.5.45
11355
11355
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
11356
11356
  * @license MIT
11357
11357
  **/
@@ -11633,15 +11633,15 @@ var init_shared_esm_bundler = __esmMin((() => {
11633
11633
  });
11634
11634
  };
11635
11635
  camelizeRE = /-\w/g;
11636
- camelize = cacheStringFunction((str) => {
11636
+ camelize = /* @__PURE__ */ cacheStringFunction((str) => {
11637
11637
  return str.replace(camelizeRE, (c) => c.slice(1).toUpperCase());
11638
11638
  });
11639
11639
  hyphenateRE = /\B([A-Z])/g;
11640
- hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, "-$1").toLowerCase());
11641
- capitalize = cacheStringFunction((str) => {
11640
+ hyphenate = /* @__PURE__ */ cacheStringFunction((str) => str.replace(hyphenateRE, "-$1").toLowerCase());
11641
+ capitalize = /* @__PURE__ */ cacheStringFunction((str) => {
11642
11642
  return str.charAt(0).toUpperCase() + str.slice(1);
11643
11643
  });
11644
- toHandlerKey = cacheStringFunction((str) => {
11644
+ toHandlerKey = /* @__PURE__ */ cacheStringFunction((str) => {
11645
11645
  return str ? `on${capitalize(str)}` : ``;
11646
11646
  });
11647
11647
  hasChanged = (value, oldValue) => !Object.is(value, oldValue);
@@ -11765,7 +11765,7 @@ var init_shared_esm_bundler = __esmMin((() => {
11765
11765
  isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS);
11766
11766
  isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS);
11767
11767
  isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS);
11768
- specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly`;
11768
+ specialBooleanAttrs = `itemscope,allowfullscreen,disablepictureinpicture,disableremoteplayback,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly`;
11769
11769
  isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);
11770
11770
  isBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`);
11771
11771
  unsafeAttrCharRE = /[>/="'\u0009\u000a\u000c\u000d\u0020]/;
@@ -11806,7 +11806,7 @@ var init_shared_esm_bundler = __esmMin((() => {
11806
11806
  }));
11807
11807
  // node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js
11808
11808
  /**
11809
- * @vue/compiler-core v3.5.44
11809
+ * @vue/compiler-core v3.5.45
11810
11810
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
11811
11811
  * @license MIT
11812
11812
  **/
@@ -12516,7 +12516,11 @@ function getLoc(start, end) {
12516
12516
  };
12517
12517
  }
12518
12518
  function cloneLoc(loc) {
12519
- return getLoc(loc.start.offset, loc.end.offset);
12519
+ return {
12520
+ start: extend({}, loc.start),
12521
+ end: extend({}, loc.end),
12522
+ source: loc.source
12523
+ };
12520
12524
  }
12521
12525
  function setLocEnd(loc, end) {
12522
12526
  loc.end = tokenizer.getPos(end);
@@ -16168,7 +16172,7 @@ var compiler_dom_esm_bundler_exports = /* @__PURE__ */ __exportAll({
16168
16172
  warnDeprecation: () => warnDeprecation
16169
16173
  });
16170
16174
  /**
16171
- * @vue/compiler-dom v3.5.44
16175
+ * @vue/compiler-dom v3.5.45
16172
16176
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
16173
16177
  * @license MIT
16174
16178
  **/
@@ -34373,6 +34377,33 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
34373
34377
  MAX_SAFE_BUILD_LENGTH: 250,
34374
34378
  MAX_SAFE_INTEGER: Number.MAX_SAFE_INTEGER ||
34375
34379
  /* istanbul ignore next */ 9007199254740991,
34380
+ WHITESPACE_CHARACTERS: [
34381
+ " ",
34382
+ "\n",
34383
+ "\v",
34384
+ "\f",
34385
+ "\r",
34386
+ " ",
34387
+ "\xA0",
34388
+ " ",
34389
+ " ",
34390
+ " ",
34391
+ " ",
34392
+ " ",
34393
+ " ",
34394
+ " ",
34395
+ " ",
34396
+ " ",
34397
+ " ",
34398
+ " ",
34399
+ " ",
34400
+ "\u2028",
34401
+ "\u2029",
34402
+ " ",
34403
+ " ",
34404
+ " ",
34405
+ ""
34406
+ ],
34376
34407
  RELEASE_TYPES: [
34377
34408
  "major",
34378
34409
  "premajor",
@@ -34983,6 +35014,341 @@ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
34983
35014
  };
34984
35015
  module.exports = LRUCache;
34985
35016
  }));
35017
+ // node_modules/semver/internal/trim-comparator-whitespace.js
35018
+ var require_trim_comparator_whitespace = /* @__PURE__ */ __commonJSMin(((exports, module) => {
35019
+ var { MAX_LENGTH, MAX_SAFE_BUILD_LENGTH, WHITESPACE_CHARACTERS } = require_constants();
35020
+ /**
35021
+ * Remembers the last two rows of digits so their characters need not be reread.
35022
+ * Positions start at -1 until a row has been found.
35023
+ *
35024
+ * @typedef {object} DigitRunCache
35025
+ * @property {number} start The first character of the most recently found row.
35026
+ * @property {number} end The position after that row's last character.
35027
+ * @property {number} previousStart The first character of the previous row.
35028
+ * @property {number} previousEnd The position after the previous row.
35029
+ */
35030
+ var whitespace = /* @__PURE__ */ new Uint8Array(65536);
35031
+ for (const char of WHITESPACE_CHARACTERS) whitespace[char.charCodeAt(0)] = 1;
35032
+ /**
35033
+ * Checks whether a character is whitespace, like a space, tab, or newline.
35034
+ * Looking past the end of the string returns false.
35035
+ *
35036
+ * @param {string|undefined} char One character, or undefined past the string's end.
35037
+ * @returns {boolean} Whether the character is whitespace.
35038
+ * @example isWhitespace(' ') // true
35039
+ * @example isWhitespace('1') // false
35040
+ */
35041
+ var isWhitespace = (char) => char !== void 0 && whitespace[char.charCodeAt(0)] === 1;
35042
+ /**
35043
+ * Checks for v, =, or whitespace before the version number.
35044
+ * These are historical version prefixes, not range operators:
35045
+ * < and > are handled separately, as are tilde and caret ranges.
35046
+ *
35047
+ * @param {string|undefined} char One character to check.
35048
+ * @returns {boolean} Whether the character can belong to a version prefix.
35049
+ * @example isVersionPrefix('=') // true
35050
+ * @example isVersionPrefix('>') // false
35051
+ */
35052
+ var isVersionPrefix = (char) => char === "v" || char === "=" || isWhitespace(char);
35053
+ /**
35054
+ * Checks whether a character is one of the digits 0 through 9.
35055
+ *
35056
+ * @param {string|undefined} char One character to check.
35057
+ * @returns {boolean} Whether the character is an ASCII digit.
35058
+ * @example isDigit('7') // true
35059
+ * @example isDigit('.') // false
35060
+ */
35061
+ var isDigit = (char) => char !== void 0 && char >= "0" && char <= "9";
35062
+ /**
35063
+ * Checks whether a character is an English letter, uppercase or lowercase.
35064
+ *
35065
+ * @param {string|undefined} char One character to check.
35066
+ * @returns {boolean} Whether the character is an ASCII letter.
35067
+ * @example isLetter('b') // true
35068
+ * @example isLetter('7') // false
35069
+ */
35070
+ var isLetter = (char) => char !== void 0 && (char >= "a" && char <= "z" || char >= "A" && char <= "Z");
35071
+ /**
35072
+ * Checks for a letter, digit, or hyphen: the characters allowed inside
35073
+ * prerelease and build names such as beta-1.
35074
+ *
35075
+ * @param {string|undefined} char One character to check.
35076
+ * @returns {boolean} Whether the character can be part of an identifier.
35077
+ * @example isIdentifierCharacter('-') // true
35078
+ * @example isIdentifierCharacter('.') // false; dots separate identifiers
35079
+ */
35080
+ var isIdentifierCharacter = (char) => isDigit(char) || isLetter(char) || char === "-";
35081
+ /**
35082
+ * Checks whether a version component can begin here: with a digit or
35083
+ * a wildcard such as x, X, or *.
35084
+ *
35085
+ * @param {string|undefined} char One character to check.
35086
+ * @returns {boolean} Whether a number or wildcard can start with this character.
35087
+ * @example isVersionStart('x') // true
35088
+ * @example isVersionStart('v') // false; v belongs to the prefix
35089
+ */
35090
+ var isVersionStart = (char) => isDigit(char) || char === "x" || char === "X" || char === "*";
35091
+ /**
35092
+ * Finds the end of a row of digits, but returns no more than limit digits.
35093
+ * Remembers the last two rows so looking at them again does not reread them.
35094
+ *
35095
+ * @param {string} range The text to read; it is not changed.
35096
+ * @param {number} start The position of the first character to check.
35097
+ * @param {number} limit The most digit characters the returned match can include.
35098
+ * @param {DigitRunCache} digitRuns Shared cache of digit-run positions, updated in place.
35099
+ * @returns {number} The position after the matched digits, or start if none match.
35100
+ * @example findDigitsEndIndex('123abc', 0, 10, digitRuns) // 3, pointing at a
35101
+ * @example findDigitsEndIndex('123abc', 0, 2, digitRuns) // 2, pointing at the unread 3
35102
+ */
35103
+ var findDigitsEndIndex = (range, start, limit, digitRuns) => {
35104
+ if (!isDigit(range[start])) return start;
35105
+ if (start >= digitRuns.start && start < digitRuns.end) return Math.min(start + limit, digitRuns.end);
35106
+ if (start >= digitRuns.previousStart && start < digitRuns.previousEnd) return Math.min(start + limit, digitRuns.previousEnd);
35107
+ let end = start + 1;
35108
+ while (isDigit(range[end])) end++;
35109
+ digitRuns.previousStart = digitRuns.start;
35110
+ digitRuns.previousEnd = digitRuns.end;
35111
+ digitRuns.start = start;
35112
+ digitRuns.end = end;
35113
+ return Math.min(start + limit, end);
35114
+ };
35115
+ /**
35116
+ * Reads a number using the old regex's length and leading-zero rules.
35117
+ * Strict mode reads just the first zero in 012; loose mode can read all three.
35118
+ *
35119
+ * @param {string} range The text to read; it is not changed.
35120
+ * @param {number} start The position where the number should begin.
35121
+ * @param {boolean} loose Whether to allow leading zeros.
35122
+ * @param {DigitRunCache} digitRuns Shared digit-run cache, updated as needed.
35123
+ * @returns {number} The position after the matched digits, not their numeric value.
35124
+ * @example findVersionNumberEndIndex('012', 0, false, digitRuns) // 1
35125
+ * @example findVersionNumberEndIndex('012', 0, true, digitRuns) // 3
35126
+ */
35127
+ var findVersionNumberEndIndex = (range, start, loose, digitRuns) => {
35128
+ if (!loose && range[start] === "0") return start + 1;
35129
+ return findDigitsEndIndex(range, start, loose ? MAX_LENGTH : MAX_LENGTH + 1, digitRuns);
35130
+ };
35131
+ /**
35132
+ * Reads one piece of a prerelease name, such as beta or 1 in beta.1.
35133
+ * Tries the letter-or-hyphen form first, then the number-only form.
35134
+ *
35135
+ * @param {string} range The text to read; it is not changed.
35136
+ * @param {number} start The position where the identifier should begin.
35137
+ * @param {boolean} loose Whether numeric identifiers may have leading zeros.
35138
+ * @param {DigitRunCache} digitRuns Shared digit-run cache, updated as needed.
35139
+ * @returns {number} The position after the identifier, or start if none matches.
35140
+ * @example findPrereleaseIdentifierEndIndex('beta.1', 0, false, digitRuns) // 4, at the dot
35141
+ * @example findPrereleaseIdentifierEndIndex('001beta', 0, false, digitRuns) // 7
35142
+ */
35143
+ var findPrereleaseIdentifierEndIndex = (range, start, loose, digitRuns) => {
35144
+ const digitsEnd = findDigitsEndIndex(range, start, MAX_LENGTH, digitRuns);
35145
+ if (isLetter(range[digitsEnd]) || range[digitsEnd] === "-") {
35146
+ let end = digitsEnd + 1;
35147
+ const limit = end + MAX_SAFE_BUILD_LENGTH;
35148
+ while (end < limit && isIdentifierCharacter(range[end])) end++;
35149
+ return end;
35150
+ }
35151
+ return findVersionNumberEndIndex(range, start, loose, digitRuns);
35152
+ };
35153
+ /**
35154
+ * Reads a prerelease suffix such as -beta.1, one dot-separated piece at a time.
35155
+ * Loose mode also allows the name without its opening hyphen.
35156
+ *
35157
+ * @param {string} range The text to read; it is not changed.
35158
+ * @param {number} start The position where the suffix should begin, including -.
35159
+ * @param {boolean} loose Whether the opening hyphen is optional and zeros allowed.
35160
+ * @param {DigitRunCache} digitRuns Shared digit-run cache, updated as needed.
35161
+ * @returns {number} The position after the matched suffix, or start if absent.
35162
+ * @example findPrereleaseEndIndex('-beta.1+sha', 0, false, digitRuns) // 7, at the plus
35163
+ * @example findPrereleaseEndIndex('beta', 0, false, digitRuns) // 0; no opening hyphen
35164
+ */
35165
+ var findPrereleaseEndIndex = (range, start, loose, digitRuns) => {
35166
+ const hyphen = range[start] === "-";
35167
+ if (!loose && !hyphen) return start;
35168
+ const identifierStart = start + (hyphen ? 1 : 0);
35169
+ let end = findPrereleaseIdentifierEndIndex(range, identifierStart, loose, digitRuns);
35170
+ if (end === identifierStart) {
35171
+ if (!loose || !hyphen) return start;
35172
+ end = findPrereleaseIdentifierEndIndex(range, start, loose, digitRuns);
35173
+ }
35174
+ while (range[end] === ".") {
35175
+ const next = findPrereleaseIdentifierEndIndex(range, end + 1, loose, digitRuns);
35176
+ if (next === end + 1) break;
35177
+ end = next;
35178
+ }
35179
+ return end;
35180
+ };
35181
+ /**
35182
+ * Reads one build-name piece, such as sha or 123 in +sha.123.
35183
+ * Stops at a disallowed character or the old regex's length limit.
35184
+ *
35185
+ * @param {string} range The text to read; it is not changed.
35186
+ * @param {number} start The position where the identifier should begin.
35187
+ * @returns {number} The position after the identifier, or start if none matches.
35188
+ * @example findBuildIdentifierEndIndex('sha.123', 0) // 3, at the dot
35189
+ * @example findBuildIdentifierEndIndex('001', 0) // 3; leading zeros are allowed
35190
+ */
35191
+ var findBuildIdentifierEndIndex = (range, start) => {
35192
+ let end = start;
35193
+ while (end - start < MAX_SAFE_BUILD_LENGTH && isIdentifierCharacter(range[end])) end++;
35194
+ return end;
35195
+ };
35196
+ /**
35197
+ * Reads optional build metadata such as +sha.123.
35198
+ * Leaves the position unchanged if there is no plus sign followed by a name.
35199
+ *
35200
+ * @param {string} range The text to read; it is not changed.
35201
+ * @param {number} start The position where the opening + should be.
35202
+ * @returns {number} The position after the matched metadata, or start if absent.
35203
+ * @example findBuildEndIndex('+sha.123 <2', 0) // 8, at the space
35204
+ * @example findBuildEndIndex('+', 0) // 0; a plus sign alone is not a match
35205
+ */
35206
+ var findBuildEndIndex = (range, start) => {
35207
+ if (range[start] !== "+") return start;
35208
+ let end = findBuildIdentifierEndIndex(range, start + 1);
35209
+ if (end === start + 1) return start;
35210
+ while (range[end] === ".") {
35211
+ const next = findBuildIdentifierEndIndex(range, end + 1);
35212
+ if (next === end + 1) break;
35213
+ end = next;
35214
+ }
35215
+ return end;
35216
+ };
35217
+ /**
35218
+ * Reads three numbers separated by dots, then any prerelease and build suffixes.
35219
+ * Uses loose rules, so forms such as 01.02.03beta can match here.
35220
+ *
35221
+ * @param {string} range The text to read; it is not changed.
35222
+ * @param {number} start The position of the first number, after any prefix.
35223
+ * @param {DigitRunCache} digitRuns Shared digit-run cache, updated as needed.
35224
+ * @returns {number} The position after the version match, or start if none matches.
35225
+ * @example findLooseFullVersionEndIndex('1.2.3-beta+sha <2', 0, digitRuns) // 14
35226
+ * @example findLooseFullVersionEndIndex('1.2', 0, digitRuns) // 0; needs three numbers
35227
+ */
35228
+ var findLooseFullVersionEndIndex = (range, start, digitRuns) => {
35229
+ let end = start;
35230
+ for (let component = 0; component < 3; component++) {
35231
+ const next = findVersionNumberEndIndex(range, end, true, digitRuns);
35232
+ if (next === end) return start;
35233
+ end = next;
35234
+ if (component < 2) {
35235
+ if (range[end] !== ".") return start;
35236
+ end++;
35237
+ }
35238
+ }
35239
+ return findBuildEndIndex(range, findPrereleaseEndIndex(range, end, true, digitRuns));
35240
+ };
35241
+ /**
35242
+ * Reads one component of a partial or wildcard version, such as 2 or x in 2.x.
35243
+ * Numbers use strict leading-zero rules; wildcards take up one character.
35244
+ *
35245
+ * @param {string} range The text to read; it is not changed.
35246
+ * @param {number} start The position where the component should begin.
35247
+ * @param {DigitRunCache} digitRuns Shared digit-run cache, updated as needed.
35248
+ * @returns {number} The position after the component, or start if none matches.
35249
+ * @example findPartialVersionComponentEndIndex('2.x', 0, digitRuns) // 1, at the dot
35250
+ * @example findPartialVersionComponentEndIndex('2.x', 2, digitRuns) // 3, after x
35251
+ */
35252
+ var findPartialVersionComponentEndIndex = (range, start, digitRuns) => {
35253
+ if (isDigit(range[start])) return findVersionNumberEndIndex(range, start, false, digitRuns);
35254
+ return isVersionStart(range[start]) ? start + 1 : start;
35255
+ };
35256
+ /**
35257
+ * Reads up to three components, allowing forms such as 1, 1.2, or 1.x.
35258
+ * After the third component, also reads any strict prerelease and build suffixes.
35259
+ *
35260
+ * @param {string} range The text to read; it is not changed.
35261
+ * @param {number} start The position of a number or wildcard, after any prefix.
35262
+ * @param {DigitRunCache} digitRuns Shared digit-run cache, updated as needed.
35263
+ * @returns {number} The position after the matched version text.
35264
+ * @example findPartialVersionEndIndex('1.x <2', 0, digitRuns) // 3, at the space
35265
+ * @example findPartialVersionEndIndex('1.', 0, digitRuns) // 1; the trailing dot is unread
35266
+ */
35267
+ var findPartialVersionEndIndex = (range, start, digitRuns) => {
35268
+ let end = findPartialVersionComponentEndIndex(range, start, digitRuns);
35269
+ for (let component = 0; component < 2; component++) {
35270
+ if (range[end] !== ".") return end;
35271
+ const next = findPartialVersionComponentEndIndex(range, end + 1, digitRuns);
35272
+ if (next === end + 1) return end;
35273
+ end = next;
35274
+ }
35275
+ return findBuildEndIndex(range, findPrereleaseEndIndex(range, end, false, digitRuns));
35276
+ };
35277
+ /**
35278
+ * Finds where a version match ends, without deciding whether the range is valid.
35279
+ * Tries a loose full version first, then a partial or wildcard version, just
35280
+ * like the old regex's LOOSEPLAIN and XRANGEPLAIN alternatives.
35281
+ *
35282
+ * @param {string} range The text to read; it is not changed.
35283
+ * @param {number} start The position of a number or wildcard, after any prefix.
35284
+ * @param {DigitRunCache} digitRuns Shared digit-run cache, updated as needed.
35285
+ * @returns {number} The position where scanning the next candidate can resume.
35286
+ * @example findVersionEndIndex('1.2.3 <2', 0, digitRuns) // 5, at the space
35287
+ * @example findVersionEndIndex('1.x <2', 0, digitRuns) // 3, at the space
35288
+ */
35289
+ var findVersionEndIndex = (range, start, digitRuns) => {
35290
+ const fullVersionEnd = findLooseFullVersionEndIndex(range, start, digitRuns);
35291
+ return fullVersionEnd !== start ? fullVersionEnd : findPartialVersionEndIndex(range, start, digitRuns);
35292
+ };
35293
+ /**
35294
+ * Finds the one whitespace character the old replacement would remove.
35295
+ * Keeps leading whitespace, skips an optional operator, and checks immediately
35296
+ * after it. Returns -1 if there is nothing to remove.
35297
+ *
35298
+ * @param {string} range The text containing a candidate already found by the caller.
35299
+ * @param {number} matchStart The candidate's position, including leading whitespace.
35300
+ * @returns {number} The position of the removable whitespace, or -1 if absent.
35301
+ * @example findRemovableWhitespaceIndex(' > 1', 0) // 2; keep the space at position 0
35302
+ * @example findRemovableWhitespaceIndex('>1', 0) // -1
35303
+ */
35304
+ var findRemovableWhitespaceIndex = (range, matchStart) => {
35305
+ let position = matchStart;
35306
+ if (isWhitespace(range[position])) position++;
35307
+ if (range[position] === "<" || range[position] === ">") position++;
35308
+ if (range[position] === "=") position++;
35309
+ return isWhitespace(range[position]) ? position : -1;
35310
+ };
35311
+ /**
35312
+ * Joins an operator to its version, turning > 1.2.3 into >1.2.3.
35313
+ * Copies everything else according to the old regex's matching rules.
35314
+ * Moves forward through prefixes and whole versions to avoid repeatedly
35315
+ * searching the same characters on long inputs.
35316
+ *
35317
+ * @param {string} range The range text to process; the original string is unchanged.
35318
+ * @returns {string} The range with matched operator whitespace removed.
35319
+ * @example trimComparatorWhitespace('> 1.2.3 < 2') // '>1.2.3 <2'
35320
+ * @example trimComparatorWhitespace('> invalid') // '> invalid'
35321
+ */
35322
+ var trimComparatorWhitespace = (range) => {
35323
+ let result = "";
35324
+ let copyFrom = 0;
35325
+ let cursor = 0;
35326
+ const digitRuns = {
35327
+ start: -1,
35328
+ end: -1,
35329
+ previousStart: -1,
35330
+ previousEnd: -1
35331
+ };
35332
+ while (cursor < range.length) {
35333
+ const matchStart = cursor;
35334
+ if (range[cursor] === "<" || range[cursor] === ">") cursor++;
35335
+ else if (!isVersionPrefix(range[cursor]) && !isVersionStart(range[cursor])) {
35336
+ cursor++;
35337
+ continue;
35338
+ }
35339
+ while (cursor < range.length && isVersionPrefix(range[cursor])) cursor++;
35340
+ if (!isVersionStart(range[cursor])) continue;
35341
+ const whitespacePosition = findRemovableWhitespaceIndex(range, matchStart);
35342
+ if (whitespacePosition !== -1) {
35343
+ result += range.slice(copyFrom, whitespacePosition);
35344
+ copyFrom = whitespacePosition + 1;
35345
+ }
35346
+ cursor = findVersionEndIndex(range, cursor, digitRuns);
35347
+ }
35348
+ return result + range.slice(copyFrom);
35349
+ };
35350
+ module.exports = trimComparatorWhitespace;
35351
+ }));
34986
35352
  // node_modules/semver/classes/range.js
34987
35353
  var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
34988
35354
  var SPACE_CHARACTERS = /\s+/g;
@@ -35047,7 +35413,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
35047
35413
  const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
35048
35414
  range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
35049
35415
  debug("hyphen replace", range);
35050
- range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
35416
+ range = trimComparatorWhitespace(range);
35051
35417
  debug("comparator trim", range);
35052
35418
  range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
35053
35419
  debug("tilde trim", range);
@@ -35098,7 +35464,8 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
35098
35464
  var Comparator = require_comparator();
35099
35465
  var debug = require_debug();
35100
35466
  var SemVer = require_semver$1();
35101
- var { safeRe: re, src, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
35467
+ var trimComparatorWhitespace = require_trim_comparator_whitespace();
35468
+ var { safeRe: re, src, t, tildeTrimReplace, caretTrimReplace } = require_re();
35102
35469
  var { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
35103
35470
  var BUILDSTRIPRE = new RegExp(src[t.BUILD], "g");
35104
35471
  var isNullSet = (c) => c.value === "<0.0.0-0";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://www.schemastore.org/package",
3
3
  "name": "@skaldapp/monaco-sfc",
4
- "version": "1.3.1",
4
+ "version": "1.3.3",
5
5
  "description": "A Monaco Editor language server for Vue Single File Components (SFC) providing syntax highlighting, IntelliSense, error detection, and more",
6
6
  "keywords": [
7
7
  "vue",
@@ -65,12 +65,12 @@
65
65
  },
66
66
  "devDependencies": {
67
67
  "@rollup/plugin-commonjs": "^29.0.3",
68
- "@skaldapp/configs": "^1.7.14",
68
+ "@skaldapp/configs": "^1.7.16",
69
69
  "@types/markdown-it": "^14.2.0",
70
70
  "@types/node": "^26.6.6",
71
71
  "eslint": "^10.14.0",
72
72
  "jsonc-parser": "^3.3.1",
73
73
  "path-browserify": "^1.0.1",
74
- "vite": "^8.3.5"
74
+ "vite": "^8.3.6"
75
75
  }
76
76
  }