Skip to content

chore(deps): update dependency webpack to v5.99.7 #230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/scratch-gui/package.json
Original file line number Diff line number Diff line change
@@ -169,7 +169,7 @@
"ts-loader": "9.5.2",
"url-loader": "4.1.1",
"web-audio-test-api": "0.5.2",
"webpack": "5.98.0",
"webpack": "5.99.7",
"webpack-cli": "5.1.4",
"webpack-dev-server": "5.2.1",
"yauzl": "2.10.0"
2 changes: 1 addition & 1 deletion packages/scratch-render/package.json
Original file line number Diff line number Diff line change
@@ -82,7 +82,7 @@
"semantic-release": "19.0.5",
"tap": "16.3.10",
"terser-webpack-plugin": "5.3.14",
"webpack": "5.98.0",
"webpack": "5.99.7",
"webpack-cli": "5.1.4",
"webpack-dev-server": "5.2.1"
}
2 changes: 1 addition & 1 deletion packages/scratch-svg-renderer/package.json
Original file line number Diff line number Diff line change
@@ -66,7 +66,7 @@
"scratch-webpack-configuration": "3.0.0",
"semantic-release": "19.0.5",
"tap": "16.3.10",
"webpack": "5.98.0",
"webpack": "5.99.7",
"webpack-cli": "5.1.4",
"webpack-dev-server": "5.2.1",
"xmldom": "0.1.31"
2 changes: 1 addition & 1 deletion packages/scratch-vm/package.json
Original file line number Diff line number Diff line change
@@ -101,7 +101,7 @@
"semantic-release": "19.0.5",
"stats.js": "0.17.0",
"tap": "16.3.10",
"webpack": "5.98.0",
"webpack": "5.99.7",
"webpack-cli": "4.10.0",
"webpack-dev-server": "5.2.1"
}

Unchanged files with check annotations Beta

_registerExtensionPrimitives (extensionInfo) {
const categoryInfo = {
id: extensionInfo.id,
name: maybeFormatMessage(extensionInfo.name),

Check warning on line 833 in packages/scratch-vm/src/engine/runtime.js

GitHub Actions / Detect affected packages, build and test

Pattern is not a string literal

Check warning on line 833 in packages/scratch-vm/src/engine/runtime.js

GitHub Actions / Detect affected packages, build and test

Pattern is not a string literal
showStatusButton: extensionInfo.showStatusButton,
blockIconURI: extensionInfo.blockIconURI,
menuIconURI: extensionInfo.menuIconURI
_refreshExtensionPrimitives (extensionInfo) {
const categoryInfo = this._blockInfo.find(info => info.id === extensionInfo.id);
if (categoryInfo) {
categoryInfo.name = maybeFormatMessage(extensionInfo.name);

Check warning on line 876 in packages/scratch-vm/src/engine/runtime.js

GitHub Actions / Detect affected packages, build and test

Pattern is not a string literal

Check warning on line 876 in packages/scratch-vm/src/engine/runtime.js

GitHub Actions / Detect affected packages, build and test

Pattern is not a string literal
this._fillExtensionCategory(categoryInfo, extensionInfo);
this.emit(Runtime.BLOCKSINFO_UPDATE, categoryInfo);
if (typeof menuItems !== 'function') {
const extensionMessageContext = this.makeMessageContextForTarget();
return menuItems.map(item => {
const formattedItem = maybeFormatMessage(item, extensionMessageContext);

Check warning on line 951 in packages/scratch-vm/src/engine/runtime.js

GitHub Actions / Detect affected packages, build and test

Pattern is not a string literal

Check warning on line 951 in packages/scratch-vm/src/engine/runtime.js

GitHub Actions / Detect affected packages, build and test

Pattern is not a string literal
switch (typeof formattedItem) {
case 'string':
return [formattedItem, formattedItem];
case 'object':
return [maybeFormatMessage(item.text, extensionMessageContext), item.value];

Check warning on line 956 in packages/scratch-vm/src/engine/runtime.js

GitHub Actions / Detect affected packages, build and test

Pattern is not a string literal

Check warning on line 956 in packages/scratch-vm/src/engine/runtime.js

GitHub Actions / Detect affected packages, build and test

Pattern is not a string literal
default:
throw new Error(`Can't interpret menu item: ${JSON.stringify(item)}`);
}
while (inTextNum < blockText.length || inBranchNum < blockInfo.branchCount) {
if (inTextNum < blockText.length) {
context.outLineNum = outLineNum;
const lineText = maybeFormatMessage(blockText[inTextNum], extensionMessageContext);

Check warning on line 1170 in packages/scratch-vm/src/engine/runtime.js

GitHub Actions / Detect affected packages, build and test

Pattern is not a string literal

Check warning on line 1170 in packages/scratch-vm/src/engine/runtime.js

GitHub Actions / Detect affected packages, build and test

Pattern is not a string literal
const convertedText = lineText.replace(/\[(.+?)]/g, convertPlaceholders);
if (blockJSON[`message${outLineNum}`]) {
blockJSON[`message${outLineNum}`] += convertedText;
}
const extensionMessageContext = this.makeMessageContextForTarget();
const buttonText = maybeFormatMessage(buttonInfo.text, extensionMessageContext);

Check warning on line 1251 in packages/scratch-vm/src/engine/runtime.js

GitHub Actions / Detect affected packages, build and test

Pattern is not a string literal

Check warning on line 1251 in packages/scratch-vm/src/engine/runtime.js

GitHub Actions / Detect affected packages, build and test

Pattern is not a string literal
return {
info: buttonInfo,
xml: `<button text="${buttonText}" callbackKey="${buttonInfo.func}"></button>`
const defaultValue =
typeof argInfo.defaultValue === 'undefined' ? '' :
xmlEscape(maybeFormatMessage(argInfo.defaultValue, this.makeMessageContextForTarget()).toString());

Check warning on line 1322 in packages/scratch-vm/src/engine/runtime.js

GitHub Actions / Detect affected packages, build and test

Pattern is not a string literal

Check warning on line 1322 in packages/scratch-vm/src/engine/runtime.js

GitHub Actions / Detect affected packages, build and test

Pattern is not a string literal
if (argTypeInfo.check) {
// Right now the only type of 'check' we have specifies that the
const menuFunc = extensionObject[menuItemFunctionName];
const menuItems = menuFunc.call(extensionObject, editingTargetID).map(
item => {
item = maybeFormatMessage(item, extensionMessageContext);

Check warning on line 353 in packages/scratch-vm/src/extension-support/extension-manager.js

GitHub Actions / Detect affected packages, build and test

Pattern is not a string literal

Check warning on line 353 in packages/scratch-vm/src/extension-support/extension-manager.js

GitHub Actions / Detect affected packages, build and test

Pattern is not a string literal
switch (typeof item) {
case 'object':
return [
maybeFormatMessage(item.text, extensionMessageContext),

Check warning on line 357 in packages/scratch-vm/src/extension-support/extension-manager.js

GitHub Actions / Detect affected packages, build and test

Pattern is not a string literal

Check warning on line 357 in packages/scratch-vm/src/extension-support/extension-manager.js

GitHub Actions / Detect affected packages, build and test

Pattern is not a string literal
item.value
];
case 'string':
*/
const maybeFormatMessage = function (maybeMessage, args, locale) {
if (maybeMessage && maybeMessage.id && maybeMessage.default) {
return formatMessage(maybeMessage, args, locale);

Check warning on line 13 in packages/scratch-vm/src/util/maybe-format-message.js

GitHub Actions / Detect affected packages, build and test

Pattern is not a string literal

Check warning on line 13 in packages/scratch-vm/src/util/maybe-format-message.js

GitHub Actions / Detect affected packages, build and test

Pattern is not a string literal
}
return maybeMessage;
};