mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-27 17:50:06 +00:00
build: Updating dependencies
composer: * mediawiki/mediawiki-phan-config: 0.10.6 → 0.11.0 * php-parallel-lint/php-parallel-lint: 1.3.0 → 1.3.1 npm: * stylelint-config-wikimedia: 0.10.3 → 0.11.1 Change-Id: I82e56565364f0502b0e70fe7414057ae876c0b98
This commit is contained in:
parent
1a24ade06c
commit
5c63190944
|
@ -2,10 +2,10 @@
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"mediawiki/lua-sandbox": "3.0.1",
|
"mediawiki/lua-sandbox": "3.0.1",
|
||||||
"mediawiki/mediawiki-codesniffer": "37.0.0",
|
"mediawiki/mediawiki-codesniffer": "37.0.0",
|
||||||
"mediawiki/mediawiki-phan-config": "0.10.6",
|
"mediawiki/mediawiki-phan-config": "0.11.0",
|
||||||
"mediawiki/minus-x": "1.1.1",
|
"mediawiki/minus-x": "1.1.1",
|
||||||
"php-parallel-lint/php-console-highlighter": "0.5.0",
|
"php-parallel-lint/php-console-highlighter": "0.5.0",
|
||||||
"php-parallel-lint/php-parallel-lint": "1.3.0"
|
"php-parallel-lint/php-parallel-lint": "1.3.1"
|
||||||
},
|
},
|
||||||
"repositories": [
|
"repositories": [
|
||||||
{
|
{
|
||||||
|
|
|
@ -175,6 +175,7 @@ abstract class ScribuntoEngineBase {
|
||||||
$this->modules[$finalKey] = $this->newModule( $text, $finalKey );
|
$this->modules[$finalKey] = $this->newModule( $text, $finalKey );
|
||||||
}
|
}
|
||||||
// Almost certainly $key === $finalKey, but just in case...
|
// Almost certainly $key === $finalKey, but just in case...
|
||||||
|
// @phan-suppress-next-line PhanTypeMismatchProperty
|
||||||
$this->modules[$key] = $this->modules[$finalKey];
|
$this->modules[$key] = $this->modules[$finalKey];
|
||||||
}
|
}
|
||||||
return $this->modules[$key];
|
return $this->modules[$key];
|
||||||
|
|
|
@ -78,6 +78,7 @@ abstract class Scribunto_LuaEngine extends ScribuntoEngineBase {
|
||||||
|
|
||||||
unset( $options['factory'] );
|
unset( $options['factory'] );
|
||||||
|
|
||||||
|
// @phan-suppress-next-line PhanTypeMismatchReturnSuperType
|
||||||
return Scribunto::newEngine( $options + $wgScribuntoEngineConf[$engine] );
|
return Scribunto::newEngine( $options + $wgScribuntoEngineConf[$engine] );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -394,6 +394,7 @@ class Scribunto_LuaStandaloneInterpreter extends Scribunto_LuaInterpreter {
|
||||||
* Converts the encoded Lua error to an appropriate exception and throws it.
|
* Converts the encoded Lua error to an appropriate exception and throws it.
|
||||||
*
|
*
|
||||||
* @param array $message
|
* @param array $message
|
||||||
|
* @return never
|
||||||
*/
|
*/
|
||||||
protected function handleError( $message ) {
|
protected function handleError( $message ) {
|
||||||
$opts = [];
|
$opts = [];
|
||||||
|
@ -427,7 +428,7 @@ class Scribunto_LuaStandaloneInterpreter extends Scribunto_LuaInterpreter {
|
||||||
break;
|
break;
|
||||||
case 'error':
|
case 'error':
|
||||||
$this->handleError( $msgFromLua );
|
$this->handleError( $msgFromLua );
|
||||||
return [];
|
// handleError prevents continuation
|
||||||
default:
|
default:
|
||||||
$this->logger->error( __METHOD__ . ": invalid response op \"{$msgFromLua['op']}\"" );
|
$this->logger->error( __METHOD__ . ": invalid response op \"{$msgFromLua['op']}\"" );
|
||||||
throw $this->engine->newException( 'scribunto-luastandalone-decode-error' );
|
throw $this->engine->newException( 'scribunto-luastandalone-decode-error' );
|
||||||
|
|
1284
package-lock.json
generated
1284
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -9,6 +9,6 @@
|
||||||
"grunt-banana-checker": "0.9.0",
|
"grunt-banana-checker": "0.9.0",
|
||||||
"grunt-eslint": "23.0.0",
|
"grunt-eslint": "23.0.0",
|
||||||
"grunt-stylelint": "0.16.0",
|
"grunt-stylelint": "0.16.0",
|
||||||
"stylelint-config-wikimedia": "0.10.3"
|
"stylelint-config-wikimedia": "0.11.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue