scratch-paint 2.2.467 → 2.2.468
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/CHANGELOG.md +7 -0
- package/dist/scratch-paint.js +122 -13
- package/dist/scratch-paint.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See
|
|
4
4
|
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.2.468](https://github.com/scratchfoundation/scratch-paint/compare/v2.2.467...v2.2.468) (2024-10-30)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **deps:** lock file maintenance ([#2890](https://github.com/scratchfoundation/scratch-paint/issues/2890)) ([bb55e8d](https://github.com/scratchfoundation/scratch-paint/commit/bb55e8d17c43f86b8eb05aba6e252435e83a6390))
|
|
12
|
+
|
|
6
13
|
## [2.2.467](https://github.com/scratchfoundation/scratch-paint/compare/v2.2.466...v2.2.467) (2024-10-29)
|
|
7
14
|
|
|
8
15
|
|
package/dist/scratch-paint.js
CHANGED
|
@@ -23910,6 +23910,8 @@ pp$8.parseExportAllDeclaration = function(node, exports) {
|
|
|
23910
23910
|
this.expectContextual("from");
|
|
23911
23911
|
if (this.type !== types$1.string) { this.unexpected(); }
|
|
23912
23912
|
node.source = this.parseExprAtom();
|
|
23913
|
+
if (this.options.ecmaVersion >= 16)
|
|
23914
|
+
{ node.attributes = this.parseWithClause(); }
|
|
23913
23915
|
this.semicolon();
|
|
23914
23916
|
return this.finishNode(node, "ExportAllDeclaration")
|
|
23915
23917
|
};
|
|
@@ -23940,6 +23942,8 @@ pp$8.parseExport = function(node, exports) {
|
|
|
23940
23942
|
if (this.eatContextual("from")) {
|
|
23941
23943
|
if (this.type !== types$1.string) { this.unexpected(); }
|
|
23942
23944
|
node.source = this.parseExprAtom();
|
|
23945
|
+
if (this.options.ecmaVersion >= 16)
|
|
23946
|
+
{ node.attributes = this.parseWithClause(); }
|
|
23943
23947
|
} else {
|
|
23944
23948
|
for (var i = 0, list = node.specifiers; i < list.length; i += 1) {
|
|
23945
23949
|
// check for keywords used as local names
|
|
@@ -24080,6 +24084,8 @@ pp$8.parseImport = function(node) {
|
|
|
24080
24084
|
this.expectContextual("from");
|
|
24081
24085
|
node.source = this.type === types$1.string ? this.parseExprAtom() : this.unexpected();
|
|
24082
24086
|
}
|
|
24087
|
+
if (this.options.ecmaVersion >= 16)
|
|
24088
|
+
{ node.attributes = this.parseWithClause(); }
|
|
24083
24089
|
this.semicolon();
|
|
24084
24090
|
return this.finishNode(node, "ImportDeclaration")
|
|
24085
24091
|
};
|
|
@@ -24140,6 +24146,41 @@ pp$8.parseImportSpecifiers = function() {
|
|
|
24140
24146
|
return nodes
|
|
24141
24147
|
};
|
|
24142
24148
|
|
|
24149
|
+
pp$8.parseWithClause = function() {
|
|
24150
|
+
var nodes = [];
|
|
24151
|
+
if (!this.eat(types$1._with)) {
|
|
24152
|
+
return nodes
|
|
24153
|
+
}
|
|
24154
|
+
this.expect(types$1.braceL);
|
|
24155
|
+
var attributeKeys = {};
|
|
24156
|
+
var first = true;
|
|
24157
|
+
while (!this.eat(types$1.braceR)) {
|
|
24158
|
+
if (!first) {
|
|
24159
|
+
this.expect(types$1.comma);
|
|
24160
|
+
if (this.afterTrailingComma(types$1.braceR)) { break }
|
|
24161
|
+
} else { first = false; }
|
|
24162
|
+
|
|
24163
|
+
var attr = this.parseImportAttribute();
|
|
24164
|
+
var keyName = attr.key.type === "Identifier" ? attr.key.name : attr.key.value;
|
|
24165
|
+
if (hasOwn(attributeKeys, keyName))
|
|
24166
|
+
{ this.raiseRecoverable(attr.key.start, "Duplicate attribute key '" + keyName + "'"); }
|
|
24167
|
+
attributeKeys[keyName] = true;
|
|
24168
|
+
nodes.push(attr);
|
|
24169
|
+
}
|
|
24170
|
+
return nodes
|
|
24171
|
+
};
|
|
24172
|
+
|
|
24173
|
+
pp$8.parseImportAttribute = function() {
|
|
24174
|
+
var node = this.startNode();
|
|
24175
|
+
node.key = this.type === types$1.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never");
|
|
24176
|
+
this.expect(types$1.colon);
|
|
24177
|
+
if (this.type !== types$1.string) {
|
|
24178
|
+
this.unexpected();
|
|
24179
|
+
}
|
|
24180
|
+
node.value = this.parseExprAtom();
|
|
24181
|
+
return this.finishNode(node, "ImportAttribute")
|
|
24182
|
+
};
|
|
24183
|
+
|
|
24143
24184
|
pp$8.parseModuleExportName = function() {
|
|
24144
24185
|
if (this.options.ecmaVersion >= 13 && this.type === types$1.string) {
|
|
24145
24186
|
var stringLiteral = this.parseLiteral(this.value);
|
|
@@ -25207,13 +25248,32 @@ pp$5.parseDynamicImport = function(node) {
|
|
|
25207
25248
|
// Parse node.source.
|
|
25208
25249
|
node.source = this.parseMaybeAssign();
|
|
25209
25250
|
|
|
25210
|
-
|
|
25211
|
-
|
|
25212
|
-
|
|
25213
|
-
|
|
25214
|
-
|
|
25251
|
+
if (this.options.ecmaVersion >= 16) {
|
|
25252
|
+
if (!this.eat(types$1.parenR)) {
|
|
25253
|
+
this.expect(types$1.comma);
|
|
25254
|
+
if (!this.afterTrailingComma(types$1.parenR)) {
|
|
25255
|
+
node.options = this.parseMaybeAssign();
|
|
25256
|
+
if (!this.eat(types$1.parenR)) {
|
|
25257
|
+
this.expect(types$1.comma);
|
|
25258
|
+
if (!this.afterTrailingComma(types$1.parenR)) {
|
|
25259
|
+
this.unexpected();
|
|
25260
|
+
}
|
|
25261
|
+
}
|
|
25262
|
+
} else {
|
|
25263
|
+
node.options = null;
|
|
25264
|
+
}
|
|
25215
25265
|
} else {
|
|
25216
|
-
|
|
25266
|
+
node.options = null;
|
|
25267
|
+
}
|
|
25268
|
+
} else {
|
|
25269
|
+
// Verify ending.
|
|
25270
|
+
if (!this.eat(types$1.parenR)) {
|
|
25271
|
+
var errorPos = this.start;
|
|
25272
|
+
if (this.eat(types$1.comma) && this.eat(types$1.parenR)) {
|
|
25273
|
+
this.raiseRecoverable(errorPos, "Trailing comma is not allowed in import()");
|
|
25274
|
+
} else {
|
|
25275
|
+
this.unexpected(errorPos);
|
|
25276
|
+
}
|
|
25217
25277
|
}
|
|
25218
25278
|
}
|
|
25219
25279
|
|
|
@@ -25973,6 +26033,9 @@ pp$2.copyNode = function(node) {
|
|
|
25973
26033
|
return newNode
|
|
25974
26034
|
};
|
|
25975
26035
|
|
|
26036
|
+
// This file was generated by "bin/generate-unicode-script-values.js". Do not modify manually!
|
|
26037
|
+
var scriptValuesAddedInUnicode = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz";
|
|
26038
|
+
|
|
25976
26039
|
// This file contains Unicode properties extracted from the ECMAScript specification.
|
|
25977
26040
|
// The lists are extracted like so:
|
|
25978
26041
|
// $$('#table-binary-unicode-properties > figure > table > tbody > tr > td:nth-child(1) code').map(el => el.innerText)
|
|
@@ -26015,7 +26078,7 @@ var ecma10ScriptValues = ecma9ScriptValues + " Dogra Dogr Gunjala_Gondi Gong Han
|
|
|
26015
26078
|
var ecma11ScriptValues = ecma10ScriptValues + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";
|
|
26016
26079
|
var ecma12ScriptValues = ecma11ScriptValues + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi";
|
|
26017
26080
|
var ecma13ScriptValues = ecma12ScriptValues + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith";
|
|
26018
|
-
var ecma14ScriptValues = ecma13ScriptValues + "
|
|
26081
|
+
var ecma14ScriptValues = ecma13ScriptValues + " " + scriptValuesAddedInUnicode;
|
|
26019
26082
|
|
|
26020
26083
|
var unicodeScriptValues = {
|
|
26021
26084
|
9: ecma9ScriptValues,
|
|
@@ -26440,12 +26503,41 @@ pp$1.regexp_eatReverseSolidusAtomEscape = function(state) {
|
|
|
26440
26503
|
pp$1.regexp_eatUncapturingGroup = function(state) {
|
|
26441
26504
|
var start = state.pos;
|
|
26442
26505
|
if (state.eat(0x28 /* ( */)) {
|
|
26443
|
-
if (state.eat(0x3F /* ? */)
|
|
26444
|
-
this.
|
|
26445
|
-
|
|
26446
|
-
|
|
26506
|
+
if (state.eat(0x3F /* ? */)) {
|
|
26507
|
+
if (this.options.ecmaVersion >= 16) {
|
|
26508
|
+
var addModifiers = this.regexp_eatModifiers(state);
|
|
26509
|
+
var hasHyphen = state.eat(0x2D /* - */);
|
|
26510
|
+
if (addModifiers || hasHyphen) {
|
|
26511
|
+
for (var i = 0; i < addModifiers.length; i++) {
|
|
26512
|
+
var modifier = addModifiers.charAt(i);
|
|
26513
|
+
if (addModifiers.indexOf(modifier, i + 1) > -1) {
|
|
26514
|
+
state.raise("Duplicate regular expression modifiers");
|
|
26515
|
+
}
|
|
26516
|
+
}
|
|
26517
|
+
if (hasHyphen) {
|
|
26518
|
+
var removeModifiers = this.regexp_eatModifiers(state);
|
|
26519
|
+
if (!addModifiers && !removeModifiers && state.current() === 0x3A /* : */) {
|
|
26520
|
+
state.raise("Invalid regular expression modifiers");
|
|
26521
|
+
}
|
|
26522
|
+
for (var i$1 = 0; i$1 < removeModifiers.length; i$1++) {
|
|
26523
|
+
var modifier$1 = removeModifiers.charAt(i$1);
|
|
26524
|
+
if (
|
|
26525
|
+
removeModifiers.indexOf(modifier$1, i$1 + 1) > -1 ||
|
|
26526
|
+
addModifiers.indexOf(modifier$1) > -1
|
|
26527
|
+
) {
|
|
26528
|
+
state.raise("Duplicate regular expression modifiers");
|
|
26529
|
+
}
|
|
26530
|
+
}
|
|
26531
|
+
}
|
|
26532
|
+
}
|
|
26533
|
+
}
|
|
26534
|
+
if (state.eat(0x3A /* : */)) {
|
|
26535
|
+
this.regexp_disjunction(state);
|
|
26536
|
+
if (state.eat(0x29 /* ) */)) {
|
|
26537
|
+
return true
|
|
26538
|
+
}
|
|
26539
|
+
state.raise("Unterminated group");
|
|
26447
26540
|
}
|
|
26448
|
-
state.raise("Unterminated group");
|
|
26449
26541
|
}
|
|
26450
26542
|
state.pos = start;
|
|
26451
26543
|
}
|
|
@@ -26467,6 +26559,23 @@ pp$1.regexp_eatCapturingGroup = function(state) {
|
|
|
26467
26559
|
}
|
|
26468
26560
|
return false
|
|
26469
26561
|
};
|
|
26562
|
+
// RegularExpressionModifiers ::
|
|
26563
|
+
// [empty]
|
|
26564
|
+
// RegularExpressionModifiers RegularExpressionModifier
|
|
26565
|
+
pp$1.regexp_eatModifiers = function(state) {
|
|
26566
|
+
var modifiers = "";
|
|
26567
|
+
var ch = 0;
|
|
26568
|
+
while ((ch = state.current()) !== -1 && isRegularExpressionModifier(ch)) {
|
|
26569
|
+
modifiers += codePointToString(ch);
|
|
26570
|
+
state.advance();
|
|
26571
|
+
}
|
|
26572
|
+
return modifiers
|
|
26573
|
+
};
|
|
26574
|
+
// RegularExpressionModifier :: one of
|
|
26575
|
+
// `i` `m` `s`
|
|
26576
|
+
function isRegularExpressionModifier(ch) {
|
|
26577
|
+
return ch === 0x69 /* i */ || ch === 0x6d /* m */ || ch === 0x73 /* s */
|
|
26578
|
+
}
|
|
26470
26579
|
|
|
26471
26580
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedAtom
|
|
26472
26581
|
pp$1.regexp_eatExtendedAtom = function(state) {
|
|
@@ -28222,7 +28331,7 @@ pp.readWord = function() {
|
|
|
28222
28331
|
// [walk]: util/walk.js
|
|
28223
28332
|
|
|
28224
28333
|
|
|
28225
|
-
var version = "8.
|
|
28334
|
+
var version = "8.14.0";
|
|
28226
28335
|
|
|
28227
28336
|
Parser.acorn = {
|
|
28228
28337
|
Parser: Parser,
|