diff --git a/Makefile b/Makefile index ad6ac948..2ce83d80 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ AFTER_COMMIT=`git rev-parse HEAD` GOPATH_DIR=`go env GOPATH` BIN_NAME=noverify PKG=github.com/VKCOM/noverify/src/cmd -VERSION=0.5.0 +VERSION=0.5.1 install: go install -ldflags "-X '$(PKG).BuildVersion=$(VERSION)' -X '$(PKG).BuildTime=$(NOW)' -X '$(PKG).BuildOSUname=$(OS)' -X '$(PKG).BuildCommit=$(AFTER_COMMIT)'" . diff --git a/docs/playground/main.wasm b/docs/playground/main.wasm index 84532b26..81fb5424 100755 Binary files a/docs/playground/main.wasm and b/docs/playground/main.wasm differ diff --git a/playground/www/js/playground.js b/playground/www/js/playground.js index f7eb589a..00e08fc6 100644 --- a/playground/www/js/playground.js +++ b/playground/www/js/playground.js @@ -198,7 +198,7 @@ var GolangWasm = /** @class */ (function () { }; return GolangWasm; }()); -var defaultCode = "cb = $cb;\n $analyzer = $analyzer;\n }\n \n /** \n * @see Plauground\n * @return Reports[]\n */\n public function getReports(): array {\n $callback = $this->cb;\n \n $warnings_count = 0;\n $errors_count = 0;\n $reports = array(\"\");\n foreach ($reports as $index => $report) {\n $hasReports = true;\n \n switch ($report[0]) {\n case 'w':\n $warnings_count++;\n break;\n case 'e':\n $warnings_count++;\n break;\n }\n $callback($report);\n }\n \n $last_report = $reports[count($reports)];\n \n if (DEBUG) {\n printf(\"Log: %s, time: %d, has %d\", (string)$last_report, $hasReports ?? false);\n }\n \n return [$reports, $errors_count, $warnings_count];\n }\n \n private function __set($name) {}\n private function __get($name) {}\n}\n\n/**\n * @param array{obj:?Analyzer,id:int} $analyzers\n * @param callable(string): void $cb\n */\n#[Pure]\nfunction runAnalyzers($analyzers, $cb) {\n $analyzers[\"obj\"]->analyze();\n $cb();\n}\n\nfunction main() {\n $analyzers = [\"obj\" => new Analyzer(), \"id\" => 1];\n $cb = function(string $v): void {};\n \n runAnalyzers($cb, $analyzers);\n}\n"; +var defaultCode = "cb = $cb;\n $analyzer = $analyzer;\n }\n \n /** \n * @see Plauground\n * @return Reports[]\n */\n public function getReports(): array {\n $callback = $this->cb;\n \n $warnings_count = 0;\n $errors_count = 0;\n $reports = array(\"\");\n foreach ($reports as $index => $report) {\n $hasReports = true;\n \n switch ($report[0]) {\n case 'w':\n $warnings_count++;\n break;\n case 'e':\n $warnings_count++;\n break;\n }\n $callback($report);\n }\n \n $last_report = $reports[count($reports)];\n \n if (DEBUG) {\n printf(\"Log: %s, time: %d, has %d\", (string)$last_report, $hasReports ?? false);\n }\n \n return [$reports, $errors_count, $warnings_count];\n }\n \n private function __set($name) {}\n private function __get($name) {}\n}\n\n/**\n * @param array{obj:?Analyzer,id:int} $analyzers\n * @param callable(string): void $cb\n */\nfunction runAnalyzers($analyzers, $cb) {\n $analyzers[\"obj\"]->analyze();\n $cb();\n}\n\nfunction main() {\n $analyzers = [\"obj\" => new Analyzer(), \"id\" => 1];\n $cb = function(string $v): void {};\n \n runAnalyzers($cb, $analyzers);\n}\n"; function bindOptions(configurator) { var config = configurator.getConfig(); var optionsList = document.getElementsByClassName('options-list')[0]; diff --git a/playground/www/main.wasm b/playground/www/main.wasm index 84532b26..81fb5424 100755 Binary files a/playground/www/main.wasm and b/playground/www/main.wasm differ diff --git a/src/cmd/composer-get/src/Downloader.php b/src/cmd/composer-get/src/Downloader.php index 855f6c53..e3e0ff55 100644 --- a/src/cmd/composer-get/src/Downloader.php +++ b/src/cmd/composer-get/src/Downloader.php @@ -18,6 +18,7 @@ class Downloader { "0.3.0", "0.4.0", "0.5.0", + "0.5.1", ]; /**