@diffci.com/diffci 0.3.65 → 0.3.67
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-client/src/client/isolated-worktree.d.ts +16 -0
- package/dist-client/src/client/isolated-worktree.js +67 -1
- package/node_modules/@babel/helper-string-parser/lib/index.js +15 -6
- package/node_modules/@babel/helper-string-parser/lib/index.js.map +1 -1
- package/node_modules/@babel/helper-string-parser/package.json +1 -1
- package/node_modules/@babel/parser/lib/index.js +326 -93
- package/node_modules/@babel/parser/lib/index.js.map +1 -1
- package/node_modules/@babel/parser/package.json +3 -3
- package/node_modules/@babel/parser/typings/babel-parser.d.ts +23 -25
- package/node_modules/@babel/types/lib/ast-types/generated/index.js.map +1 -1
- package/node_modules/@babel/types/lib/clone/cloneNode.js.map +1 -1
- package/node_modules/@babel/types/lib/definitions/core.js +4 -0
- package/node_modules/@babel/types/lib/definitions/core.js.map +1 -1
- package/node_modules/@babel/types/lib/index-legacy.d.ts +1 -0
- package/node_modules/@babel/types/lib/index.d.ts +5 -5
- package/node_modules/@babel/types/lib/index.js.flow +1 -0
- package/node_modules/@babel/types/lib/validators/is.js.map +1 -1
- package/node_modules/@babel/types/lib/validators/isSpecifierDefault.js +5 -1
- package/node_modules/@babel/types/lib/validators/isSpecifierDefault.js.map +1 -1
- package/node_modules/@babel/types/package.json +4 -4
- package/node_modules/@diffci.com/core/README.md +1 -1
- package/node_modules/@diffci.com/core/dist/git/git-diff.js +7 -4
- package/node_modules/@diffci.com/core/dist/git/git-diff.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/git/types.d.ts +4 -0
- package/node_modules/@diffci.com/core/dist/repo/adapters/maven.js +16 -10
- package/node_modules/@diffci.com/core/dist/repo/adapters/maven.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/repo/graph.js +8 -3
- package/node_modules/@diffci.com/core/dist/repo/graph.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/repo/impact.js +4 -1
- package/node_modules/@diffci.com/core/dist/repo/impact.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/repo/npm-lockfile.d.ts +11 -0
- package/node_modules/@diffci.com/core/dist/repo/npm-lockfile.js +45 -0
- package/node_modules/@diffci.com/core/dist/repo/npm-lockfile.js.map +1 -1
- package/node_modules/@diffci.com/core/package.json +1 -1
- package/node_modules/@diffci.com/core/src/git/git-diff.ts +6 -4
- package/node_modules/@diffci.com/core/src/git/types.ts +4 -0
- package/node_modules/@diffci.com/core/src/repo/adapters/maven.ts +16 -9
- package/node_modules/@diffci.com/core/src/repo/graph.ts +8 -3
- package/node_modules/@diffci.com/core/src/repo/impact.ts +4 -1
- package/node_modules/@diffci.com/core/src/repo/npm-lockfile.ts +39 -0
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +115 -71
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +2 -2
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +115 -71
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +2 -2
- package/node_modules/@jridgewell/sourcemap-codec/package.json +2 -1
- package/node_modules/@jridgewell/sourcemap-codec/src/range-mappings.ts +47 -0
- package/node_modules/@jridgewell/sourcemap-codec/src/scopes.ts +66 -46
- package/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts +27 -11
- package/node_modules/@jridgewell/sourcemap-codec/src/vlq.ts +13 -17
- package/node_modules/@jridgewell/sourcemap-codec/types/range-mappings.d.cts +5 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/range-mappings.d.cts.map +1 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/range-mappings.d.mts +5 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/range-mappings.d.mts.map +1 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts.map +1 -1
- package/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts.map +1 -1
- package/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts +2 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts.map +1 -1
- package/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +2 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts.map +1 -1
- package/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts +4 -2
- package/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts.map +1 -1
- package/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +4 -2
- package/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts.map +1 -1
- package/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js +6 -2
- package/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6 -2
- package/node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js +6 -2
- package/node_modules/@vue/compiler-core/package.json +4 -4
- package/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js +8 -8
- package/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +8 -8
- package/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-browser.js +14 -14
- package/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-browser.prod.js +2 -2
- package/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js +1 -1
- package/node_modules/@vue/compiler-dom/dist/compiler-dom.global.js +14 -14
- package/node_modules/@vue/compiler-dom/dist/compiler-dom.global.prod.js +2 -2
- package/node_modules/@vue/compiler-dom/package.json +3 -3
- package/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +1847 -1370
- package/node_modules/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +6462 -6187
- package/node_modules/@vue/compiler-sfc/package.json +11 -11
- package/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +32 -9
- package/node_modules/@vue/compiler-ssr/package.json +3 -3
- package/node_modules/@vue/shared/dist/shared.cjs.js +11 -15
- package/node_modules/@vue/shared/dist/shared.cjs.prod.js +11 -15
- package/node_modules/@vue/shared/dist/shared.esm-bundler.js +11 -15
- package/node_modules/@vue/shared/package.json +1 -1
- package/node_modules/postcss/lib/css-syntax-error.js +6 -4
- package/node_modules/postcss/lib/declaration.d.ts +2 -2
- package/node_modules/postcss/lib/map-generator.js +12 -2
- package/node_modules/postcss/lib/processor.js +1 -1
- package/node_modules/postcss/lib/tokenize.js +6 -13
- package/node_modules/postcss/package.json +1 -1
- package/node_modules/source-map-js/README.md +192 -176
- package/node_modules/source-map-js/lib/array-set.js +5 -3
- package/node_modules/source-map-js/lib/base64-vlq.js +5 -9
- package/node_modules/source-map-js/lib/base64.js +13 -12
- package/node_modules/source-map-js/lib/binary-search.js +10 -6
- package/node_modules/source-map-js/lib/mapping-list.js +12 -7
- package/node_modules/source-map-js/lib/quick-sort.js +93 -23
- package/node_modules/source-map-js/lib/source-map-consumer.js +272 -194
- package/node_modules/source-map-js/lib/source-map-generator.js +146 -106
- package/node_modules/source-map-js/lib/source-node.js +144 -118
- package/node_modules/source-map-js/lib/util.js +56 -37
- package/node_modules/source-map-js/package.json +14 -7
- package/node_modules/source-map-js/source-map.d.ts +177 -63
- package/node_modules/source-map-js/source-map.js +4 -2
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-sfc",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.45",
|
|
4
4
|
"description": "@vue/compiler-sfc",
|
|
5
5
|
"main": "dist/compiler-sfc.cjs.js",
|
|
6
6
|
"module": "dist/compiler-sfc.esm-browser.js",
|
|
@@ -42,26 +42,26 @@
|
|
|
42
42
|
},
|
|
43
43
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-sfc#readme",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@babel/parser": "^7.29.
|
|
46
|
-
"@vue/compiler-core": "3.5.
|
|
47
|
-
"@vue/compiler-dom": "3.5.
|
|
48
|
-
"@vue/compiler-ssr": "3.5.
|
|
49
|
-
"@vue/shared": "3.5.
|
|
45
|
+
"@babel/parser": "^7.29.12",
|
|
46
|
+
"@vue/compiler-core": "3.5.45",
|
|
47
|
+
"@vue/compiler-dom": "3.5.45",
|
|
48
|
+
"@vue/compiler-ssr": "3.5.45",
|
|
49
|
+
"@vue/shared": "3.5.45",
|
|
50
50
|
"estree-walker": "^2.0.2",
|
|
51
51
|
"magic-string": "^0.30.21",
|
|
52
|
-
"postcss": "^8.5.
|
|
52
|
+
"postcss": "^8.5.32",
|
|
53
53
|
"source-map-js": "^1.2.2"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@babel/types": "^7.29.
|
|
56
|
+
"@babel/types": "^7.29.11",
|
|
57
57
|
"@vue/consolidate": "^1.0.0",
|
|
58
58
|
"hash-sum": "^2.0.0",
|
|
59
59
|
"lru-cache": "10.1.0",
|
|
60
60
|
"merge-source-map": "^1.1.0",
|
|
61
|
-
"minimatch": "~
|
|
61
|
+
"minimatch": "~11.0.0",
|
|
62
62
|
"postcss-modules": "^6.0.1",
|
|
63
|
-
"postcss-selector-parser": "^7.1.
|
|
63
|
+
"postcss-selector-parser": "^7.1.7",
|
|
64
64
|
"pug": "^3.0.4",
|
|
65
|
-
"sass": "^1.
|
|
65
|
+
"sass": "^1.107.1"
|
|
66
66
|
}
|
|
67
67
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-ssr v3.5.
|
|
2
|
+
* @vue/compiler-ssr v3.5.45
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -287,6 +287,11 @@ function ssrProcessSuspense(node, context) {
|
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
const rawChildrenMap = /* @__PURE__ */ new WeakMap();
|
|
290
|
+
const ssrTransformStyle = (node, context) => {
|
|
291
|
+
if (node.type === 1 && node.tagType !== 0) {
|
|
292
|
+
compilerDom.transformStyle(node, context);
|
|
293
|
+
}
|
|
294
|
+
};
|
|
290
295
|
const ssrTransformElement = (node, context) => {
|
|
291
296
|
if (node.type !== 1 || node.tagType !== 0) {
|
|
292
297
|
return;
|
|
@@ -308,6 +313,7 @@ const ssrTransformElement = (node, context) => {
|
|
|
308
313
|
}
|
|
309
314
|
const needMergeProps = hasDynamicVBind || hasCustomDir;
|
|
310
315
|
if (needMergeProps) {
|
|
316
|
+
compilerDom.transformStyle(node, context);
|
|
311
317
|
const { props, directives } = compilerDom.buildProps(
|
|
312
318
|
node,
|
|
313
319
|
context,
|
|
@@ -401,6 +407,8 @@ const ssrTransformElement = (node, context) => {
|
|
|
401
407
|
let dynamicClassBinding = void 0;
|
|
402
408
|
let staticClassBinding = void 0;
|
|
403
409
|
let dynamicStyleBinding = void 0;
|
|
410
|
+
let staticStyleBinding = void 0;
|
|
411
|
+
let staticStyleIndex = -1;
|
|
404
412
|
for (let i = 0; i < node.props.length; i++) {
|
|
405
413
|
const prop = node.props[i];
|
|
406
414
|
if (node.tag === "input" && isTrueFalseValue(prop)) {
|
|
@@ -453,14 +461,18 @@ const ssrTransformElement = (node, context) => {
|
|
|
453
461
|
if (dynamicStyleBinding) {
|
|
454
462
|
mergeCall(dynamicStyleBinding, value);
|
|
455
463
|
} else {
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
),
|
|
462
|
-
`"`
|
|
464
|
+
dynamicStyleBinding = compilerDom.createCallExpression(
|
|
465
|
+
context.helper(SSR_RENDER_STYLE),
|
|
466
|
+
[
|
|
467
|
+
staticStyleBinding ? compilerDom.createArrayExpression([staticStyleBinding, value]) : value
|
|
468
|
+
]
|
|
463
469
|
);
|
|
470
|
+
const parts = [` style="`, dynamicStyleBinding, `"`];
|
|
471
|
+
if (staticStyleBinding) {
|
|
472
|
+
openTag.splice(staticStyleIndex, 1, ...parts);
|
|
473
|
+
} else {
|
|
474
|
+
openTag.push(...parts);
|
|
475
|
+
}
|
|
464
476
|
}
|
|
465
477
|
} else {
|
|
466
478
|
attrName = node.tag.indexOf("-") > 0 ? attrName : shared.propsToAttrMap[attrName] || attrName.toLowerCase();
|
|
@@ -525,6 +537,17 @@ const ssrTransformElement = (node, context) => {
|
|
|
525
537
|
if (name === "class" && prop.value) {
|
|
526
538
|
staticClassBinding = JSON.stringify(prop.value.content);
|
|
527
539
|
}
|
|
540
|
+
if (name === "style" && prop.value) {
|
|
541
|
+
const style = shared.parseStringStyle(prop.value.content);
|
|
542
|
+
if (dynamicStyleBinding) {
|
|
543
|
+
mergeCall(dynamicStyleBinding, JSON.stringify(style));
|
|
544
|
+
} else {
|
|
545
|
+
staticStyleBinding = JSON.stringify(style);
|
|
546
|
+
staticStyleIndex = openTag.length;
|
|
547
|
+
openTag.push(` style="${shared.escapeHtml(shared.stringifyStyle(style))}"`);
|
|
548
|
+
}
|
|
549
|
+
continue;
|
|
550
|
+
}
|
|
528
551
|
openTag.push(
|
|
529
552
|
` ${prop.name}` + (prop.value ? `="${shared.escapeHtml(prop.value.content)}"` : ``)
|
|
530
553
|
);
|
|
@@ -1393,7 +1416,7 @@ function compile(source, options = {}) {
|
|
|
1393
1416
|
ssrTransformElement,
|
|
1394
1417
|
ssrTransformComponent,
|
|
1395
1418
|
compilerDom.trackSlotScopes,
|
|
1396
|
-
|
|
1419
|
+
ssrTransformStyle,
|
|
1397
1420
|
...options.nodeTransforms || []
|
|
1398
1421
|
// user transforms
|
|
1399
1422
|
],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-ssr",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.45",
|
|
4
4
|
"description": "@vue/compiler-ssr",
|
|
5
5
|
"main": "dist/compiler-ssr.cjs.js",
|
|
6
6
|
"types": "dist/compiler-ssr.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-ssr#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@vue/shared": "3.5.
|
|
32
|
-
"@vue/compiler-dom": "3.5.
|
|
31
|
+
"@vue/shared": "3.5.45",
|
|
32
|
+
"@vue/compiler-dom": "3.5.45"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/shared v3.5.
|
|
2
|
+
* @vue/shared v3.5.45
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -65,24 +65,20 @@ const cacheStringFunction = (fn) => {
|
|
|
65
65
|
});
|
|
66
66
|
};
|
|
67
67
|
const camelizeRE = /-\w/g;
|
|
68
|
-
const camelize = cacheStringFunction(
|
|
69
|
-
(
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
);
|
|
68
|
+
const camelize = /* @__PURE__ */ cacheStringFunction((str) => {
|
|
69
|
+
return str.replace(camelizeRE, (c) => c.slice(1).toUpperCase());
|
|
70
|
+
});
|
|
73
71
|
const hyphenateRE = /\B([A-Z])/g;
|
|
74
|
-
const hyphenate = cacheStringFunction(
|
|
72
|
+
const hyphenate = /* @__PURE__ */ cacheStringFunction(
|
|
75
73
|
(str) => str.replace(hyphenateRE, "-$1").toLowerCase()
|
|
76
74
|
);
|
|
77
|
-
const capitalize = cacheStringFunction((str) => {
|
|
75
|
+
const capitalize = /* @__PURE__ */ cacheStringFunction((str) => {
|
|
78
76
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
79
77
|
});
|
|
80
|
-
const toHandlerKey = cacheStringFunction(
|
|
81
|
-
(str)
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
);
|
|
78
|
+
const toHandlerKey = /* @__PURE__ */ cacheStringFunction((str) => {
|
|
79
|
+
const s = str ? `on${capitalize(str)}` : ``;
|
|
80
|
+
return s;
|
|
81
|
+
});
|
|
86
82
|
const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
|
|
87
83
|
const invokeArrayFns = (fns, ...arg) => {
|
|
88
84
|
for (let i = 0; i < fns.length; i++) {
|
|
@@ -336,7 +332,7 @@ const isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS);
|
|
|
336
332
|
const isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS);
|
|
337
333
|
const isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS);
|
|
338
334
|
|
|
339
|
-
const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly`;
|
|
335
|
+
const specialBooleanAttrs = `itemscope,allowfullscreen,disablepictureinpicture,disableremoteplayback,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly`;
|
|
340
336
|
const isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);
|
|
341
337
|
const isBooleanAttr = /* @__PURE__ */ makeMap(
|
|
342
338
|
specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/shared v3.5.
|
|
2
|
+
* @vue/shared v3.5.45
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -65,24 +65,20 @@ const cacheStringFunction = (fn) => {
|
|
|
65
65
|
});
|
|
66
66
|
};
|
|
67
67
|
const camelizeRE = /-\w/g;
|
|
68
|
-
const camelize = cacheStringFunction(
|
|
69
|
-
(
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
);
|
|
68
|
+
const camelize = /* @__PURE__ */ cacheStringFunction((str) => {
|
|
69
|
+
return str.replace(camelizeRE, (c) => c.slice(1).toUpperCase());
|
|
70
|
+
});
|
|
73
71
|
const hyphenateRE = /\B([A-Z])/g;
|
|
74
|
-
const hyphenate = cacheStringFunction(
|
|
72
|
+
const hyphenate = /* @__PURE__ */ cacheStringFunction(
|
|
75
73
|
(str) => str.replace(hyphenateRE, "-$1").toLowerCase()
|
|
76
74
|
);
|
|
77
|
-
const capitalize = cacheStringFunction((str) => {
|
|
75
|
+
const capitalize = /* @__PURE__ */ cacheStringFunction((str) => {
|
|
78
76
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
79
77
|
});
|
|
80
|
-
const toHandlerKey = cacheStringFunction(
|
|
81
|
-
(str)
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
);
|
|
78
|
+
const toHandlerKey = /* @__PURE__ */ cacheStringFunction((str) => {
|
|
79
|
+
const s = str ? `on${capitalize(str)}` : ``;
|
|
80
|
+
return s;
|
|
81
|
+
});
|
|
86
82
|
const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
|
|
87
83
|
const invokeArrayFns = (fns, ...arg) => {
|
|
88
84
|
for (let i = 0; i < fns.length; i++) {
|
|
@@ -336,7 +332,7 @@ const isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS);
|
|
|
336
332
|
const isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS);
|
|
337
333
|
const isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS);
|
|
338
334
|
|
|
339
|
-
const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly`;
|
|
335
|
+
const specialBooleanAttrs = `itemscope,allowfullscreen,disablepictureinpicture,disableremoteplayback,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly`;
|
|
340
336
|
const isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);
|
|
341
337
|
const isBooleanAttr = /* @__PURE__ */ makeMap(
|
|
342
338
|
specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/shared v3.5.
|
|
2
|
+
* @vue/shared v3.5.45
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -61,24 +61,20 @@ const cacheStringFunction = (fn) => {
|
|
|
61
61
|
});
|
|
62
62
|
};
|
|
63
63
|
const camelizeRE = /-\w/g;
|
|
64
|
-
const camelize = cacheStringFunction(
|
|
65
|
-
(
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
);
|
|
64
|
+
const camelize = /* @__PURE__ */ cacheStringFunction((str) => {
|
|
65
|
+
return str.replace(camelizeRE, (c) => c.slice(1).toUpperCase());
|
|
66
|
+
});
|
|
69
67
|
const hyphenateRE = /\B([A-Z])/g;
|
|
70
|
-
const hyphenate = cacheStringFunction(
|
|
68
|
+
const hyphenate = /* @__PURE__ */ cacheStringFunction(
|
|
71
69
|
(str) => str.replace(hyphenateRE, "-$1").toLowerCase()
|
|
72
70
|
);
|
|
73
|
-
const capitalize = cacheStringFunction((str) => {
|
|
71
|
+
const capitalize = /* @__PURE__ */ cacheStringFunction((str) => {
|
|
74
72
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
75
73
|
});
|
|
76
|
-
const toHandlerKey = cacheStringFunction(
|
|
77
|
-
(str)
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
);
|
|
74
|
+
const toHandlerKey = /* @__PURE__ */ cacheStringFunction((str) => {
|
|
75
|
+
const s = str ? `on${capitalize(str)}` : ``;
|
|
76
|
+
return s;
|
|
77
|
+
});
|
|
82
78
|
const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
|
|
83
79
|
const invokeArrayFns = (fns, ...arg) => {
|
|
84
80
|
for (let i = 0; i < fns.length; i++) {
|
|
@@ -332,7 +328,7 @@ const isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS);
|
|
|
332
328
|
const isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS);
|
|
333
329
|
const isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS);
|
|
334
330
|
|
|
335
|
-
const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly`;
|
|
331
|
+
const specialBooleanAttrs = `itemscope,allowfullscreen,disablepictureinpicture,disableremoteplayback,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly`;
|
|
336
332
|
const isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);
|
|
337
333
|
const isBooleanAttr = /* @__PURE__ */ makeMap(
|
|
338
334
|
specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`
|
|
@@ -78,11 +78,13 @@ class CssSyntaxError extends Error {
|
|
|
78
78
|
if (number === this.line) {
|
|
79
79
|
if (line.length > 160) {
|
|
80
80
|
let padding = 20
|
|
81
|
+
// Errors from the tokenizer (e.g. `Unclosed string`) have no end
|
|
82
|
+
// position. Fall back to the single error column to still show
|
|
83
|
+
// a window around it.
|
|
84
|
+
let endColumn =
|
|
85
|
+
typeof this.endColumn === 'number' ? this.endColumn : this.column
|
|
81
86
|
let subLineStart = Math.max(0, this.column - padding)
|
|
82
|
-
let subLineEnd = Math.max(
|
|
83
|
-
this.column + padding,
|
|
84
|
-
this.endColumn + padding
|
|
85
|
-
)
|
|
87
|
+
let subLineEnd = Math.max(this.column + padding, endColumn + padding)
|
|
86
88
|
let subLine = line.slice(subLineStart, subLineEnd)
|
|
87
89
|
|
|
88
90
|
let spacing =
|
|
@@ -81,8 +81,8 @@ declare class Declaration_ extends Node {
|
|
|
81
81
|
* root.first.last.important //=> undefined
|
|
82
82
|
* ```
|
|
83
83
|
*/
|
|
84
|
-
get important(): boolean
|
|
85
|
-
set important(value: boolean)
|
|
84
|
+
get important(): boolean | undefined
|
|
85
|
+
set important(value: boolean | undefined)
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
88
|
* The property name for a CSS declaration.
|
|
@@ -84,8 +84,18 @@ class MapGenerator {
|
|
|
84
84
|
while ((startIndex = this.css.indexOf(annotation, cursor)) !== -1) {
|
|
85
85
|
let endIndex = this.css.indexOf('*/', startIndex + annotation.length)
|
|
86
86
|
if (endIndex === -1) break
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
// Keep line breaks that separate tokens after removing the comment.
|
|
88
|
+
if (
|
|
89
|
+
endIndex + 2 === this.css.length ||
|
|
90
|
+
/[\t\n\f\r ]/.test(this.css[endIndex + 2])
|
|
91
|
+
) {
|
|
92
|
+
while (
|
|
93
|
+
startIndex > cursor &&
|
|
94
|
+
(this.css[startIndex - 1] === '\n' ||
|
|
95
|
+
this.css[startIndex - 1] === '\r')
|
|
96
|
+
) {
|
|
97
|
+
startIndex--
|
|
98
|
+
}
|
|
89
99
|
}
|
|
90
100
|
css += this.css.slice(cursor, startIndex)
|
|
91
101
|
cursor = endIndex + 2
|
|
@@ -24,17 +24,18 @@ const RE_AT_END = /[\t\n\f\r "#'()/;[\\\]{}]/g
|
|
|
24
24
|
const RE_WORD_END = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g
|
|
25
25
|
const RE_BAD_BRACKET = /.[\r\n"'(/\\]/
|
|
26
26
|
const RE_HEX_ESCAPE = /[\da-f]/i
|
|
27
|
+
const RE_URL_NAME = /(^|[\t\n\f\r "'(),/:;[\]{}])url$/i
|
|
28
|
+
const RE_QUOTED = /[\t\n\f\r ]*["']/y
|
|
27
29
|
|
|
28
30
|
module.exports = function tokenizer(input, options = {}) {
|
|
29
31
|
let css = input.css.valueOf()
|
|
30
32
|
let ignore = options.ignoreErrors
|
|
31
33
|
|
|
32
34
|
let code, content, escape, next, quote
|
|
33
|
-
let currentToken, escaped, escapePos
|
|
35
|
+
let currentToken, escaped, escapePos
|
|
34
36
|
|
|
35
37
|
let length = css.length
|
|
36
38
|
let pos = 0
|
|
37
|
-
let buffer = []
|
|
38
39
|
let returned = []
|
|
39
40
|
let lastBadParen = -1
|
|
40
41
|
|
|
@@ -94,17 +95,10 @@ module.exports = function tokenizer(input, options = {}) {
|
|
|
94
95
|
}
|
|
95
96
|
|
|
96
97
|
case OPEN_PARENTHESES: {
|
|
97
|
-
|
|
98
|
-
n = css.charCodeAt(pos + 1)
|
|
98
|
+
RE_QUOTED.lastIndex = pos + 1
|
|
99
99
|
if (
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
n !== DOUBLE_QUOTE &&
|
|
103
|
-
n !== SPACE &&
|
|
104
|
-
n !== NEWLINE &&
|
|
105
|
-
n !== TAB &&
|
|
106
|
-
n !== FEED &&
|
|
107
|
-
n !== CR
|
|
100
|
+
RE_URL_NAME.test(css.substring(pos - 4, pos)) &&
|
|
101
|
+
!RE_QUOTED.test(css)
|
|
108
102
|
) {
|
|
109
103
|
next = pos
|
|
110
104
|
do {
|
|
@@ -245,7 +239,6 @@ module.exports = function tokenizer(input, options = {}) {
|
|
|
245
239
|
}
|
|
246
240
|
|
|
247
241
|
currentToken = ['word', css.slice(pos, next + 1), pos, next]
|
|
248
|
-
buffer.push(currentToken)
|
|
249
242
|
pos = next
|
|
250
243
|
}
|
|
251
244
|
|