@skaldapp/monaco-sfc 1.2.4 → 1.2.6
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/dist/vue.worker.js +38 -23
- package/package.json +4 -4
package/dist/vue.worker.js
CHANGED
|
@@ -9942,7 +9942,7 @@ var shared_esm_bundler_exports = /* @__PURE__ */ __exportAll({
|
|
|
9942
9942
|
toTypeString: () => toTypeString
|
|
9943
9943
|
});
|
|
9944
9944
|
/**
|
|
9945
|
-
* @vue/shared v3.5.
|
|
9945
|
+
* @vue/shared v3.5.43
|
|
9946
9946
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
9947
9947
|
* @license MIT
|
|
9948
9948
|
**/
|
|
@@ -10006,7 +10006,7 @@ function normalizeStyle(value) {
|
|
|
10006
10006
|
}
|
|
10007
10007
|
function parseStringStyle(cssText) {
|
|
10008
10008
|
const ret = {};
|
|
10009
|
-
cssText.replace(styleCommentRE, "").split(listDelimiterRE).forEach((item) => {
|
|
10009
|
+
cssText.replace(styleCommentRE, (match) => match.startsWith("/*") ? "" : match).split(listDelimiterRE).forEach((item) => {
|
|
10010
10010
|
if (item) {
|
|
10011
10011
|
const tmp = item.split(propertyDelimiterRE);
|
|
10012
10012
|
tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim());
|
|
@@ -10104,19 +10104,19 @@ function escapeHtmlComment(src) {
|
|
|
10104
10104
|
function getEscapedCssVarName(key, doubleEscape) {
|
|
10105
10105
|
return key.replace(cssVarNameEscapeSymbolsRE, (s) => doubleEscape ? s === "\"" ? "\\\\\\\"" : `\\\\${s}` : `\\${s}`);
|
|
10106
10106
|
}
|
|
10107
|
-
function looseCompareArrays(a, b) {
|
|
10107
|
+
function looseCompareArrays(a, b, seen) {
|
|
10108
10108
|
if (a.length !== b.length) return false;
|
|
10109
10109
|
let equal = true;
|
|
10110
|
-
for (let i = 0; equal && i < a.length; i++) equal = looseEqual(a[i], b[i]);
|
|
10110
|
+
for (let i = 0; equal && i < a.length; i++) equal = looseEqual(a[i], b[i], seen);
|
|
10111
10111
|
return equal;
|
|
10112
10112
|
}
|
|
10113
|
-
function looseCompareCollections(a, b) {
|
|
10113
|
+
function looseCompareCollections(a, b, seen) {
|
|
10114
10114
|
if (a.size !== b.size) return false;
|
|
10115
10115
|
const candidates = Array.from(b);
|
|
10116
10116
|
const matched = new Uint8Array(candidates.length);
|
|
10117
10117
|
for (const item of a) {
|
|
10118
10118
|
let index = -1;
|
|
10119
|
-
for (let i = 0; i < candidates.length; i++) if (!matched[i] && looseEqual(item, candidates[i])) {
|
|
10119
|
+
for (let i = 0; i < candidates.length; i++) if (!matched[i] && looseEqual(item, candidates[i], seen)) {
|
|
10120
10120
|
index = i;
|
|
10121
10121
|
break;
|
|
10122
10122
|
}
|
|
@@ -10125,7 +10125,33 @@ function looseCompareCollections(a, b) {
|
|
|
10125
10125
|
}
|
|
10126
10126
|
return true;
|
|
10127
10127
|
}
|
|
10128
|
-
function
|
|
10128
|
+
function looseCompareObjects(a, b, seen) {
|
|
10129
|
+
let aValidType = isMap(a);
|
|
10130
|
+
let bValidType = isMap(b);
|
|
10131
|
+
if (aValidType || bValidType) return aValidType && bValidType ? looseCompareCollections(a, b, seen) : false;
|
|
10132
|
+
aValidType = isSet(a);
|
|
10133
|
+
bValidType = isSet(b);
|
|
10134
|
+
if (aValidType || bValidType) return aValidType && bValidType ? looseCompareCollections(a, b, seen) : false;
|
|
10135
|
+
if (Object.keys(a).length !== Object.keys(b).length) return false;
|
|
10136
|
+
for (const key in a) {
|
|
10137
|
+
const aHasKey = a.hasOwnProperty(key);
|
|
10138
|
+
const bHasKey = b.hasOwnProperty(key);
|
|
10139
|
+
if (aHasKey && !bHasKey || !aHasKey && bHasKey || !looseEqual(a[key], b[key], seen)) return false;
|
|
10140
|
+
}
|
|
10141
|
+
return String(a) === String(b);
|
|
10142
|
+
}
|
|
10143
|
+
function looseCompareNested(a, b, seen, compare) {
|
|
10144
|
+
if (!seen) seen = [/* @__PURE__ */ new Map(), /* @__PURE__ */ new Map()];
|
|
10145
|
+
const [seenA, seenB] = seen;
|
|
10146
|
+
if (seenA.has(a) || seenB.has(b)) return seenA.get(a) === b && seenB.get(b) === a;
|
|
10147
|
+
seenA.set(a, b);
|
|
10148
|
+
seenB.set(b, a);
|
|
10149
|
+
const equal = compare(a, b, seen);
|
|
10150
|
+
seenA.delete(a);
|
|
10151
|
+
seenB.delete(b);
|
|
10152
|
+
return equal;
|
|
10153
|
+
}
|
|
10154
|
+
function looseEqual(a, b, seen) {
|
|
10129
10155
|
if (a === b) return true;
|
|
10130
10156
|
let aValidType = isDate(a);
|
|
10131
10157
|
let bValidType = isDate(b);
|
|
@@ -10135,23 +10161,12 @@ function looseEqual(a, b) {
|
|
|
10135
10161
|
if (aValidType || bValidType) return a === b;
|
|
10136
10162
|
aValidType = isArray(a);
|
|
10137
10163
|
bValidType = isArray(b);
|
|
10138
|
-
if (aValidType || bValidType) return aValidType && bValidType ?
|
|
10164
|
+
if (aValidType || bValidType) return aValidType && bValidType ? looseCompareNested(a, b, seen, looseCompareArrays) : false;
|
|
10139
10165
|
aValidType = isObject$1(a);
|
|
10140
10166
|
bValidType = isObject$1(b);
|
|
10141
10167
|
if (aValidType || bValidType) {
|
|
10142
10168
|
if (!aValidType || !bValidType) return false;
|
|
10143
|
-
|
|
10144
|
-
bValidType = isMap(b);
|
|
10145
|
-
if (aValidType || bValidType) return aValidType && bValidType ? looseCompareCollections(a, b) : false;
|
|
10146
|
-
aValidType = isSet(a);
|
|
10147
|
-
bValidType = isSet(b);
|
|
10148
|
-
if (aValidType || bValidType) return aValidType && bValidType ? looseCompareCollections(a, b) : false;
|
|
10149
|
-
if (Object.keys(a).length !== Object.keys(b).length) return false;
|
|
10150
|
-
for (const key in a) {
|
|
10151
|
-
const aHasKey = a.hasOwnProperty(key);
|
|
10152
|
-
const bHasKey = b.hasOwnProperty(key);
|
|
10153
|
-
if (aHasKey && !bHasKey || !aHasKey && bHasKey || !looseEqual(a[key], b[key])) return false;
|
|
10154
|
-
}
|
|
10169
|
+
return looseCompareNested(a, b, seen, looseCompareObjects);
|
|
10155
10170
|
}
|
|
10156
10171
|
return String(a) === String(b);
|
|
10157
10172
|
}
|
|
@@ -10332,7 +10347,7 @@ var init_shared_esm_bundler = __esmMin((() => {
|
|
|
10332
10347
|
range = 2;
|
|
10333
10348
|
listDelimiterRE = /;(?![^(]*\))/g;
|
|
10334
10349
|
propertyDelimiterRE = /:([^]+)/;
|
|
10335
|
-
styleCommentRE =
|
|
10350
|
+
styleCommentRE = /"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;
|
|
10336
10351
|
HTML_TAGS = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot";
|
|
10337
10352
|
SVG_TAGS = "svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view";
|
|
10338
10353
|
MATH_TAGS = "annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics";
|
|
@@ -10383,7 +10398,7 @@ var init_shared_esm_bundler = __esmMin((() => {
|
|
|
10383
10398
|
//#endregion
|
|
10384
10399
|
//#region node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js
|
|
10385
10400
|
/**
|
|
10386
|
-
* @vue/compiler-core v3.5.
|
|
10401
|
+
* @vue/compiler-core v3.5.43
|
|
10387
10402
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
10388
10403
|
* @license MIT
|
|
10389
10404
|
**/
|
|
@@ -14741,7 +14756,7 @@ var compiler_dom_esm_bundler_exports = /* @__PURE__ */ __exportAll({
|
|
|
14741
14756
|
warnDeprecation: () => warnDeprecation
|
|
14742
14757
|
});
|
|
14743
14758
|
/**
|
|
14744
|
-
* @vue/compiler-dom v3.5.
|
|
14759
|
+
* @vue/compiler-dom v3.5.43
|
|
14745
14760
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
14746
14761
|
* @license MIT
|
|
14747
14762
|
**/
|
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.2.
|
|
4
|
+
"version": "1.2.6",
|
|
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.6.
|
|
68
|
+
"@skaldapp/configs": "^1.6.5",
|
|
69
69
|
"@types/markdown-it": "^14.2.0",
|
|
70
|
-
"@types/node": "^26.
|
|
70
|
+
"@types/node": "^26.6.1",
|
|
71
71
|
"eslint": "^10.10.0",
|
|
72
72
|
"jsonc-parser": "^3.3.1",
|
|
73
73
|
"path-browserify": "^1.0.1",
|
|
74
|
-
"vite": "^8.
|
|
74
|
+
"vite": "^8.3.0"
|
|
75
75
|
}
|
|
76
76
|
}
|