@vue/compiler-sfc 3.4.19 → 3.4.20
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/compiler-sfc.cjs.js +140 -140
- package/dist/compiler-sfc.esm-browser.js +44 -14
- package/package.json +8 -8
package/dist/compiler-sfc.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-sfc v3.4.
|
|
2
|
+
* @vue/compiler-sfc v3.4.20
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -12727,122 +12727,6 @@ src$3.exports.postcss = true;
|
|
|
12727
12727
|
|
|
12728
12728
|
var srcExports$2 = src$3.exports;
|
|
12729
12729
|
|
|
12730
|
-
var BulkUpdateDecorator_1;
|
|
12731
|
-
var hasRequiredBulkUpdateDecorator;
|
|
12732
|
-
|
|
12733
|
-
function requireBulkUpdateDecorator () {
|
|
12734
|
-
if (hasRequiredBulkUpdateDecorator) return BulkUpdateDecorator_1;
|
|
12735
|
-
hasRequiredBulkUpdateDecorator = 1;
|
|
12736
|
-
const BULK_SIZE = 2000;
|
|
12737
|
-
|
|
12738
|
-
// We are using an object instead of a Map as this will stay static during the runtime
|
|
12739
|
-
// so access to it can be optimized by v8
|
|
12740
|
-
const digestCaches = {};
|
|
12741
|
-
|
|
12742
|
-
class BulkUpdateDecorator {
|
|
12743
|
-
/**
|
|
12744
|
-
* @param {Hash | function(): Hash} hashOrFactory function to create a hash
|
|
12745
|
-
* @param {string=} hashKey key for caching
|
|
12746
|
-
*/
|
|
12747
|
-
constructor(hashOrFactory, hashKey) {
|
|
12748
|
-
this.hashKey = hashKey;
|
|
12749
|
-
|
|
12750
|
-
if (typeof hashOrFactory === "function") {
|
|
12751
|
-
this.hashFactory = hashOrFactory;
|
|
12752
|
-
this.hash = undefined;
|
|
12753
|
-
} else {
|
|
12754
|
-
this.hashFactory = undefined;
|
|
12755
|
-
this.hash = hashOrFactory;
|
|
12756
|
-
}
|
|
12757
|
-
|
|
12758
|
-
this.buffer = "";
|
|
12759
|
-
}
|
|
12760
|
-
|
|
12761
|
-
/**
|
|
12762
|
-
* Update hash {@link https://nodejs.org/api/crypto.html#crypto_hash_update_data_inputencoding}
|
|
12763
|
-
* @param {string|Buffer} data data
|
|
12764
|
-
* @param {string=} inputEncoding data encoding
|
|
12765
|
-
* @returns {this} updated hash
|
|
12766
|
-
*/
|
|
12767
|
-
update(data, inputEncoding) {
|
|
12768
|
-
if (
|
|
12769
|
-
inputEncoding !== undefined ||
|
|
12770
|
-
typeof data !== "string" ||
|
|
12771
|
-
data.length > BULK_SIZE
|
|
12772
|
-
) {
|
|
12773
|
-
if (this.hash === undefined) {
|
|
12774
|
-
this.hash = this.hashFactory();
|
|
12775
|
-
}
|
|
12776
|
-
|
|
12777
|
-
if (this.buffer.length > 0) {
|
|
12778
|
-
this.hash.update(this.buffer);
|
|
12779
|
-
this.buffer = "";
|
|
12780
|
-
}
|
|
12781
|
-
|
|
12782
|
-
this.hash.update(data, inputEncoding);
|
|
12783
|
-
} else {
|
|
12784
|
-
this.buffer += data;
|
|
12785
|
-
|
|
12786
|
-
if (this.buffer.length > BULK_SIZE) {
|
|
12787
|
-
if (this.hash === undefined) {
|
|
12788
|
-
this.hash = this.hashFactory();
|
|
12789
|
-
}
|
|
12790
|
-
|
|
12791
|
-
this.hash.update(this.buffer);
|
|
12792
|
-
this.buffer = "";
|
|
12793
|
-
}
|
|
12794
|
-
}
|
|
12795
|
-
|
|
12796
|
-
return this;
|
|
12797
|
-
}
|
|
12798
|
-
|
|
12799
|
-
/**
|
|
12800
|
-
* Calculates the digest {@link https://nodejs.org/api/crypto.html#crypto_hash_digest_encoding}
|
|
12801
|
-
* @param {string=} encoding encoding of the return value
|
|
12802
|
-
* @returns {string|Buffer} digest
|
|
12803
|
-
*/
|
|
12804
|
-
digest(encoding) {
|
|
12805
|
-
let digestCache;
|
|
12806
|
-
|
|
12807
|
-
const buffer = this.buffer;
|
|
12808
|
-
|
|
12809
|
-
if (this.hash === undefined) {
|
|
12810
|
-
// short data for hash, we can use caching
|
|
12811
|
-
const cacheKey = `${this.hashKey}-${encoding}`;
|
|
12812
|
-
|
|
12813
|
-
digestCache = digestCaches[cacheKey];
|
|
12814
|
-
|
|
12815
|
-
if (digestCache === undefined) {
|
|
12816
|
-
digestCache = digestCaches[cacheKey] = new Map();
|
|
12817
|
-
}
|
|
12818
|
-
|
|
12819
|
-
const cacheEntry = digestCache.get(buffer);
|
|
12820
|
-
|
|
12821
|
-
if (cacheEntry !== undefined) {
|
|
12822
|
-
return cacheEntry;
|
|
12823
|
-
}
|
|
12824
|
-
|
|
12825
|
-
this.hash = this.hashFactory();
|
|
12826
|
-
}
|
|
12827
|
-
|
|
12828
|
-
if (buffer.length > 0) {
|
|
12829
|
-
this.hash.update(buffer);
|
|
12830
|
-
}
|
|
12831
|
-
|
|
12832
|
-
const digestResult = this.hash.digest(encoding);
|
|
12833
|
-
|
|
12834
|
-
if (digestCache !== undefined) {
|
|
12835
|
-
digestCache.set(buffer, digestResult);
|
|
12836
|
-
}
|
|
12837
|
-
|
|
12838
|
-
return digestResult;
|
|
12839
|
-
}
|
|
12840
|
-
}
|
|
12841
|
-
|
|
12842
|
-
BulkUpdateDecorator_1 = BulkUpdateDecorator;
|
|
12843
|
-
return BulkUpdateDecorator_1;
|
|
12844
|
-
}
|
|
12845
|
-
|
|
12846
12730
|
var wasmHash = {exports: {}};
|
|
12847
12731
|
|
|
12848
12732
|
/*
|
|
@@ -13065,27 +12949,27 @@ function requireWasmHash () {
|
|
|
13065
12949
|
Author Tobias Koppers @sokra
|
|
13066
12950
|
*/
|
|
13067
12951
|
|
|
13068
|
-
var
|
|
13069
|
-
var
|
|
12952
|
+
var xxhash64_1;
|
|
12953
|
+
var hasRequiredXxhash64;
|
|
13070
12954
|
|
|
13071
|
-
function
|
|
13072
|
-
if (
|
|
13073
|
-
|
|
12955
|
+
function requireXxhash64 () {
|
|
12956
|
+
if (hasRequiredXxhash64) return xxhash64_1;
|
|
12957
|
+
hasRequiredXxhash64 = 1;
|
|
13074
12958
|
|
|
13075
12959
|
const create = requireWasmHash();
|
|
13076
12960
|
|
|
13077
|
-
//#region wasm code:
|
|
13078
|
-
const
|
|
12961
|
+
//#region wasm code: xxhash64 (../../../assembly/hash/xxhash64.asm.ts) --initialMemory 1
|
|
12962
|
+
const xxhash64 = new WebAssembly.Module(
|
|
13079
12963
|
Buffer.from(
|
|
13080
|
-
//
|
|
13081
|
-
"
|
|
12964
|
+
// 1173 bytes
|
|
12965
|
+
"AGFzbQEAAAABCAJgAX8AYAAAAwQDAQAABQMBAAEGGgV+AUIAC34BQgALfgFCAAt+AUIAC34BQgALByIEBGluaXQAAAZ1cGRhdGUAAQVmaW5hbAACBm1lbW9yeQIACrUIAzAAQtbrgu7q/Yn14AAkAELP1tO+0ser2UIkAUIAJAJC+erQ0OfJoeThACQDQgAkBAvUAQIBfwR+IABFBEAPCyMEIACtfCQEIwAhAiMBIQMjAiEEIwMhBQNAIAIgASkDAELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiECIAMgASkDCELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEDIAQgASkDEELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEEIAUgASkDGELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEFIAAgAUEgaiIBSw0ACyACJAAgAyQBIAQkAiAFJAMLqwYCAX8EfiMEQgBSBH4jACICQgGJIwEiA0IHiXwjAiIEQgyJfCMDIgVCEol8IAJCz9bTvtLHq9lCfkIfiUKHla+vmLbem55/foVCh5Wvr5i23puef35CnaO16oOxjYr6AH0gA0LP1tO+0ser2UJ+Qh+JQoeVr6+Ytt6bnn9+hUKHla+vmLbem55/fkKdo7Xqg7GNivoAfSAEQs/W077Sx6vZQn5CH4lCh5Wvr5i23puef36FQoeVr6+Ytt6bnn9+Qp2jteqDsY2K+gB9IAVCz9bTvtLHq9lCfkIfiUKHla+vmLbem55/foVCh5Wvr5i23puef35CnaO16oOxjYr6AH0FQsXP2bLx5brqJwsjBCAArXx8IQIDQCABQQhqIABNBEAgAiABKQMAQs/W077Sx6vZQn5CH4lCh5Wvr5i23puef36FQhuJQoeVr6+Ytt6bnn9+Qp2jteqDsY2K+gB9IQIgAUEIaiEBDAELCyABQQRqIABNBEACfyACIAE1AgBCh5Wvr5i23puef36FQheJQs/W077Sx6vZQn5C+fPd8Zn2masWfCECIAFBBGoLIQELA0AgACABRwRAIAIgATEAAELFz9my8eW66id+hUILiUKHla+vmLbem55/fiECIAFBAWohAQwBCwtBACACIAJCIYiFQs/W077Sx6vZQn4iAiACQh2IhUL5893xmfaZqxZ+IgIgAkIgiIUiAkIgiCIDQv//A4NCIIYgA0KAgPz/D4NCEIiEIgNC/4GAgPAfg0IQhiADQoD+g4CA4D+DQgiIhCIDQo+AvIDwgcAHg0IIhiADQvCBwIeAnoD4AINCBIiEIgNChoyYsODAgYMGfEIEiEKBgoSIkKDAgAGDQid+IANCsODAgYOGjJgwhHw3AwBBCCACQv////8PgyICQv//A4NCIIYgAkKAgPz/D4NCEIiEIgJC/4GAgPAfg0IQhiACQoD+g4CA4D+DQgiIhCICQo+AvIDwgcAHg0IIhiACQvCBwIeAnoD4AINCBIiEIgJChoyYsODAgYMGfEIEiEKBgoSIkKDAgAGDQid+IAJCsODAgYOGjJgwhHw3AwAL",
|
|
13082
12966
|
"base64"
|
|
13083
12967
|
)
|
|
13084
12968
|
);
|
|
13085
12969
|
//#endregion
|
|
13086
12970
|
|
|
13087
|
-
|
|
13088
|
-
return
|
|
12971
|
+
xxhash64_1 = create.bind(null, xxhash64, [], 32, 16);
|
|
12972
|
+
return xxhash64_1;
|
|
13089
12973
|
}
|
|
13090
12974
|
|
|
13091
12975
|
var BatchedHash_1;
|
|
@@ -13166,27 +13050,143 @@ function requireBatchedHash () {
|
|
|
13166
13050
|
Author Tobias Koppers @sokra
|
|
13167
13051
|
*/
|
|
13168
13052
|
|
|
13169
|
-
var
|
|
13170
|
-
var
|
|
13053
|
+
var md4_1;
|
|
13054
|
+
var hasRequiredMd4;
|
|
13171
13055
|
|
|
13172
|
-
function
|
|
13173
|
-
if (
|
|
13174
|
-
|
|
13056
|
+
function requireMd4 () {
|
|
13057
|
+
if (hasRequiredMd4) return md4_1;
|
|
13058
|
+
hasRequiredMd4 = 1;
|
|
13175
13059
|
|
|
13176
13060
|
const create = requireWasmHash();
|
|
13177
13061
|
|
|
13178
|
-
//#region wasm code:
|
|
13179
|
-
const
|
|
13062
|
+
//#region wasm code: md4 (../../../assembly/hash/md4.asm.ts) --initialMemory 1
|
|
13063
|
+
const md4 = new WebAssembly.Module(
|
|
13180
13064
|
Buffer.from(
|
|
13181
|
-
//
|
|
13182
|
-
"
|
|
13065
|
+
// 2150 bytes
|
|
13066
|
+
"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",
|
|
13183
13067
|
"base64"
|
|
13184
13068
|
)
|
|
13185
13069
|
);
|
|
13186
13070
|
//#endregion
|
|
13187
13071
|
|
|
13188
|
-
|
|
13189
|
-
return
|
|
13072
|
+
md4_1 = create.bind(null, md4, [], 64, 32);
|
|
13073
|
+
return md4_1;
|
|
13074
|
+
}
|
|
13075
|
+
|
|
13076
|
+
var BulkUpdateDecorator_1;
|
|
13077
|
+
var hasRequiredBulkUpdateDecorator;
|
|
13078
|
+
|
|
13079
|
+
function requireBulkUpdateDecorator () {
|
|
13080
|
+
if (hasRequiredBulkUpdateDecorator) return BulkUpdateDecorator_1;
|
|
13081
|
+
hasRequiredBulkUpdateDecorator = 1;
|
|
13082
|
+
const BULK_SIZE = 2000;
|
|
13083
|
+
|
|
13084
|
+
// We are using an object instead of a Map as this will stay static during the runtime
|
|
13085
|
+
// so access to it can be optimized by v8
|
|
13086
|
+
const digestCaches = {};
|
|
13087
|
+
|
|
13088
|
+
class BulkUpdateDecorator {
|
|
13089
|
+
/**
|
|
13090
|
+
* @param {Hash | function(): Hash} hashOrFactory function to create a hash
|
|
13091
|
+
* @param {string=} hashKey key for caching
|
|
13092
|
+
*/
|
|
13093
|
+
constructor(hashOrFactory, hashKey) {
|
|
13094
|
+
this.hashKey = hashKey;
|
|
13095
|
+
|
|
13096
|
+
if (typeof hashOrFactory === "function") {
|
|
13097
|
+
this.hashFactory = hashOrFactory;
|
|
13098
|
+
this.hash = undefined;
|
|
13099
|
+
} else {
|
|
13100
|
+
this.hashFactory = undefined;
|
|
13101
|
+
this.hash = hashOrFactory;
|
|
13102
|
+
}
|
|
13103
|
+
|
|
13104
|
+
this.buffer = "";
|
|
13105
|
+
}
|
|
13106
|
+
|
|
13107
|
+
/**
|
|
13108
|
+
* Update hash {@link https://nodejs.org/api/crypto.html#crypto_hash_update_data_inputencoding}
|
|
13109
|
+
* @param {string|Buffer} data data
|
|
13110
|
+
* @param {string=} inputEncoding data encoding
|
|
13111
|
+
* @returns {this} updated hash
|
|
13112
|
+
*/
|
|
13113
|
+
update(data, inputEncoding) {
|
|
13114
|
+
if (
|
|
13115
|
+
inputEncoding !== undefined ||
|
|
13116
|
+
typeof data !== "string" ||
|
|
13117
|
+
data.length > BULK_SIZE
|
|
13118
|
+
) {
|
|
13119
|
+
if (this.hash === undefined) {
|
|
13120
|
+
this.hash = this.hashFactory();
|
|
13121
|
+
}
|
|
13122
|
+
|
|
13123
|
+
if (this.buffer.length > 0) {
|
|
13124
|
+
this.hash.update(this.buffer);
|
|
13125
|
+
this.buffer = "";
|
|
13126
|
+
}
|
|
13127
|
+
|
|
13128
|
+
this.hash.update(data, inputEncoding);
|
|
13129
|
+
} else {
|
|
13130
|
+
this.buffer += data;
|
|
13131
|
+
|
|
13132
|
+
if (this.buffer.length > BULK_SIZE) {
|
|
13133
|
+
if (this.hash === undefined) {
|
|
13134
|
+
this.hash = this.hashFactory();
|
|
13135
|
+
}
|
|
13136
|
+
|
|
13137
|
+
this.hash.update(this.buffer);
|
|
13138
|
+
this.buffer = "";
|
|
13139
|
+
}
|
|
13140
|
+
}
|
|
13141
|
+
|
|
13142
|
+
return this;
|
|
13143
|
+
}
|
|
13144
|
+
|
|
13145
|
+
/**
|
|
13146
|
+
* Calculates the digest {@link https://nodejs.org/api/crypto.html#crypto_hash_digest_encoding}
|
|
13147
|
+
* @param {string=} encoding encoding of the return value
|
|
13148
|
+
* @returns {string|Buffer} digest
|
|
13149
|
+
*/
|
|
13150
|
+
digest(encoding) {
|
|
13151
|
+
let digestCache;
|
|
13152
|
+
|
|
13153
|
+
const buffer = this.buffer;
|
|
13154
|
+
|
|
13155
|
+
if (this.hash === undefined) {
|
|
13156
|
+
// short data for hash, we can use caching
|
|
13157
|
+
const cacheKey = `${this.hashKey}-${encoding}`;
|
|
13158
|
+
|
|
13159
|
+
digestCache = digestCaches[cacheKey];
|
|
13160
|
+
|
|
13161
|
+
if (digestCache === undefined) {
|
|
13162
|
+
digestCache = digestCaches[cacheKey] = new Map();
|
|
13163
|
+
}
|
|
13164
|
+
|
|
13165
|
+
const cacheEntry = digestCache.get(buffer);
|
|
13166
|
+
|
|
13167
|
+
if (cacheEntry !== undefined) {
|
|
13168
|
+
return cacheEntry;
|
|
13169
|
+
}
|
|
13170
|
+
|
|
13171
|
+
this.hash = this.hashFactory();
|
|
13172
|
+
}
|
|
13173
|
+
|
|
13174
|
+
if (buffer.length > 0) {
|
|
13175
|
+
this.hash.update(buffer);
|
|
13176
|
+
}
|
|
13177
|
+
|
|
13178
|
+
const digestResult = this.hash.digest(encoding);
|
|
13179
|
+
|
|
13180
|
+
if (digestCache !== undefined) {
|
|
13181
|
+
digestCache.set(buffer, digestResult);
|
|
13182
|
+
}
|
|
13183
|
+
|
|
13184
|
+
return digestResult;
|
|
13185
|
+
}
|
|
13186
|
+
}
|
|
13187
|
+
|
|
13188
|
+
BulkUpdateDecorator_1 = BulkUpdateDecorator;
|
|
13189
|
+
return BulkUpdateDecorator_1;
|
|
13190
13190
|
}
|
|
13191
13191
|
|
|
13192
13192
|
const baseEncodeTables = {
|
|
@@ -20607,7 +20607,7 @@ function isStaticNode(node) {
|
|
|
20607
20607
|
return false;
|
|
20608
20608
|
}
|
|
20609
20609
|
|
|
20610
|
-
const version = "3.4.
|
|
20610
|
+
const version = "3.4.20";
|
|
20611
20611
|
const parseCache = parseCache$1;
|
|
20612
20612
|
const errorMessages = {
|
|
20613
20613
|
...CompilerDOM.errorMessages,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-sfc v3.4.
|
|
2
|
+
* @vue/compiler-sfc v3.4.20
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1524,11 +1524,10 @@ let Tokenizer$1 = class Tokenizer {
|
|
|
1524
1524
|
} else if (this.inSFCRoot) {
|
|
1525
1525
|
this.state = 34;
|
|
1526
1526
|
} else if (!this.inXML) {
|
|
1527
|
-
|
|
1528
|
-
if (lower === 116) {
|
|
1527
|
+
if (c === 116) {
|
|
1529
1528
|
this.state = 30;
|
|
1530
1529
|
} else {
|
|
1531
|
-
this.state =
|
|
1530
|
+
this.state = c === 115 ? 29 : 6;
|
|
1532
1531
|
}
|
|
1533
1532
|
} else {
|
|
1534
1533
|
this.state = 6;
|
|
@@ -1804,10 +1803,9 @@ let Tokenizer$1 = class Tokenizer {
|
|
|
1804
1803
|
}
|
|
1805
1804
|
}
|
|
1806
1805
|
stateBeforeSpecialS(c) {
|
|
1807
|
-
|
|
1808
|
-
if (lower === Sequences.ScriptEnd[3]) {
|
|
1806
|
+
if (c === Sequences.ScriptEnd[3]) {
|
|
1809
1807
|
this.startSpecial(Sequences.ScriptEnd, 4);
|
|
1810
|
-
} else if (
|
|
1808
|
+
} else if (c === Sequences.StyleEnd[3]) {
|
|
1811
1809
|
this.startSpecial(Sequences.StyleEnd, 4);
|
|
1812
1810
|
} else {
|
|
1813
1811
|
this.state = 6;
|
|
@@ -1815,10 +1813,9 @@ let Tokenizer$1 = class Tokenizer {
|
|
|
1815
1813
|
}
|
|
1816
1814
|
}
|
|
1817
1815
|
stateBeforeSpecialT(c) {
|
|
1818
|
-
|
|
1819
|
-
if (lower === Sequences.TitleEnd[3]) {
|
|
1816
|
+
if (c === Sequences.TitleEnd[3]) {
|
|
1820
1817
|
this.startSpecial(Sequences.TitleEnd, 4);
|
|
1821
|
-
} else if (
|
|
1818
|
+
} else if (c === Sequences.TextareaEnd[3]) {
|
|
1822
1819
|
this.startSpecial(Sequences.TextareaEnd, 4);
|
|
1823
1820
|
} else {
|
|
1824
1821
|
this.state = 6;
|
|
@@ -34078,7 +34075,7 @@ let MapGenerator$2 = class MapGenerator {
|
|
|
34078
34075
|
if (this.mapOpts.sourcesContent === false) {
|
|
34079
34076
|
map = new SourceMapConsumer$2(prev.text);
|
|
34080
34077
|
if (map.sourcesContent) {
|
|
34081
|
-
map.sourcesContent =
|
|
34078
|
+
map.sourcesContent = null;
|
|
34082
34079
|
}
|
|
34083
34080
|
} else {
|
|
34084
34081
|
map = prev.consumer();
|
|
@@ -34570,6 +34567,8 @@ let Container$7 = class Container extends Node$1 {
|
|
|
34570
34567
|
normalize(nodes, sample) {
|
|
34571
34568
|
if (typeof nodes === 'string') {
|
|
34572
34569
|
nodes = cleanSource(parse$4(nodes).nodes);
|
|
34570
|
+
} else if (typeof nodes === 'undefined') {
|
|
34571
|
+
nodes = [];
|
|
34573
34572
|
} else if (Array.isArray(nodes)) {
|
|
34574
34573
|
nodes = nodes.slice(0);
|
|
34575
34574
|
for (let i of nodes) {
|
|
@@ -35151,7 +35150,6 @@ let Parser$1 = class Parser {
|
|
|
35151
35150
|
this.current = this.root;
|
|
35152
35151
|
this.spaces = '';
|
|
35153
35152
|
this.semicolon = false;
|
|
35154
|
-
this.customProperty = false;
|
|
35155
35153
|
|
|
35156
35154
|
this.createTokenizer();
|
|
35157
35155
|
this.root.source = { input, start: { column: 1, line: 1, offset: 0 } };
|
|
@@ -36466,7 +36464,7 @@ let Root$2 = root$2;
|
|
|
36466
36464
|
|
|
36467
36465
|
let Processor$1 = class Processor {
|
|
36468
36466
|
constructor(plugins = []) {
|
|
36469
|
-
this.version = '8.4.
|
|
36467
|
+
this.version = '8.4.35';
|
|
36470
36468
|
this.plugins = this.normalize(plugins);
|
|
36471
36469
|
}
|
|
36472
36470
|
|
|
@@ -44034,6 +44032,16 @@ class Chunk {
|
|
|
44034
44032
|
this.intro = content + this.intro;
|
|
44035
44033
|
}
|
|
44036
44034
|
|
|
44035
|
+
reset() {
|
|
44036
|
+
this.intro = '';
|
|
44037
|
+
this.outro = '';
|
|
44038
|
+
if (this.edited) {
|
|
44039
|
+
this.content = this.original;
|
|
44040
|
+
this.storeName = false;
|
|
44041
|
+
this.edited = false;
|
|
44042
|
+
}
|
|
44043
|
+
}
|
|
44044
|
+
|
|
44037
44045
|
split(index) {
|
|
44038
44046
|
const sliceIndex = index - this.start;
|
|
44039
44047
|
|
|
@@ -44802,6 +44810,28 @@ class MagicString {
|
|
|
44802
44810
|
return this;
|
|
44803
44811
|
}
|
|
44804
44812
|
|
|
44813
|
+
reset(start, end) {
|
|
44814
|
+
while (start < 0) start += this.original.length;
|
|
44815
|
+
while (end < 0) end += this.original.length;
|
|
44816
|
+
|
|
44817
|
+
if (start === end) return this;
|
|
44818
|
+
|
|
44819
|
+
if (start < 0 || end > this.original.length) throw new Error('Character is out of bounds');
|
|
44820
|
+
if (start > end) throw new Error('end must be greater than start');
|
|
44821
|
+
|
|
44822
|
+
this._split(start);
|
|
44823
|
+
this._split(end);
|
|
44824
|
+
|
|
44825
|
+
let chunk = this.byStart[start];
|
|
44826
|
+
|
|
44827
|
+
while (chunk) {
|
|
44828
|
+
chunk.reset();
|
|
44829
|
+
|
|
44830
|
+
chunk = end > chunk.end ? this.byStart[chunk.end] : null;
|
|
44831
|
+
}
|
|
44832
|
+
return this;
|
|
44833
|
+
}
|
|
44834
|
+
|
|
44805
44835
|
lastChar() {
|
|
44806
44836
|
if (this.outro.length) return this.outro[this.outro.length - 1];
|
|
44807
44837
|
let chunk = this.lastChunk;
|
|
@@ -48198,7 +48228,7 @@ var __spreadValues = (a, b) => {
|
|
|
48198
48228
|
}
|
|
48199
48229
|
return a;
|
|
48200
48230
|
};
|
|
48201
|
-
const version = "3.4.
|
|
48231
|
+
const version = "3.4.20";
|
|
48202
48232
|
const parseCache = parseCache$1;
|
|
48203
48233
|
const errorMessages = __spreadValues(__spreadValues({}, errorMessages$1), DOMErrorMessages);
|
|
48204
48234
|
const walk = walk$2;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-sfc",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.20",
|
|
4
4
|
"description": "@vue/compiler-sfc",
|
|
5
5
|
"main": "dist/compiler-sfc.cjs.js",
|
|
6
6
|
"module": "dist/compiler-sfc.esm-browser.js",
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@babel/parser": "^7.23.9",
|
|
46
46
|
"estree-walker": "^2.0.2",
|
|
47
|
-
"magic-string": "^0.30.
|
|
48
|
-
"postcss": "^8.4.
|
|
47
|
+
"magic-string": "^0.30.7",
|
|
48
|
+
"postcss": "^8.4.35",
|
|
49
49
|
"source-map-js": "^1.0.2",
|
|
50
|
-
"@vue/compiler-core": "3.4.
|
|
51
|
-
"@vue/
|
|
52
|
-
"@vue/compiler-
|
|
53
|
-
"@vue/
|
|
50
|
+
"@vue/compiler-core": "3.4.20",
|
|
51
|
+
"@vue/compiler-dom": "3.4.20",
|
|
52
|
+
"@vue/compiler-ssr": "3.4.20",
|
|
53
|
+
"@vue/shared": "3.4.20"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@babel/types": "^7.23.9",
|
|
@@ -62,6 +62,6 @@
|
|
|
62
62
|
"postcss-modules": "^6.0.0",
|
|
63
63
|
"postcss-selector-parser": "^6.0.15",
|
|
64
64
|
"pug": "^3.0.2",
|
|
65
|
-
"sass": "^1.
|
|
65
|
+
"sass": "^1.71.1"
|
|
66
66
|
}
|
|
67
67
|
}
|