diff --git a/site/composer.json b/site/composer.json index 1b15cfe0c..29aa63b1d 100644 --- a/site/composer.json +++ b/site/composer.json @@ -38,7 +38,7 @@ "spaze/mysql-session-handler": "^2.3", "spaze/nonce-generator": "^4.0", "spaze/phpinfo": "^1.0", - "spaze/sri-macros": "^2.0", + "spaze/sri-macros": "^2.2.2", "spaze/svg-icons-latte": "^1.0", "symfony/cache": "^7.0", "texy/texy": "^3.1.7", diff --git a/site/composer.lock b/site/composer.lock index 875416adf..0ca4314c5 100644 --- a/site/composer.lock +++ b/site/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "11d418a98f7cf120863f7eb64594e5cf", + "content-hash": "15098962bbec98ed24eb0c942bcf2a9b", "packages": [ { "name": "contributte/translation", @@ -2118,16 +2118,16 @@ }, { "name": "spaze/sri-macros", - "version": "v2.2.1", + "version": "v2.2.2", "source": { "type": "git", "url": "https://github.com/spaze/sri-macros.git", - "reference": "efad2b58af5699fa7e6e11e7ef34662f4d9d1f7c" + "reference": "b94f713ed4c2f1817f6f07f1ac6f7c3774c376d6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spaze/sri-macros/zipball/efad2b58af5699fa7e6e11e7ef34662f4d9d1f7c", - "reference": "efad2b58af5699fa7e6e11e7ef34662f4d9d1f7c", + "url": "https://api.github.com/repos/spaze/sri-macros/zipball/b94f713ed4c2f1817f6f07f1ac6f7c3774c376d6", + "reference": "b94f713ed4c2f1817f6f07f1ac6f7c3774c376d6", "shasum": "" }, "require": { @@ -2167,9 +2167,9 @@ "description": "Subresource Integrity macros for Latte template engine", "support": { "issues": "https://github.com/spaze/sri-macros/issues", - "source": "https://github.com/spaze/sri-macros/tree/v2.2.1" + "source": "https://github.com/spaze/sri-macros/tree/v2.2.2" }, - "time": "2023-09-20T01:00:06+00:00" + "time": "2024-01-13T19:39:38+00:00" }, { "name": "spaze/svg-icons-latte", diff --git a/site/vendor/composer/installed.json b/site/vendor/composer/installed.json index 42123f356..f0345c31d 100644 --- a/site/vendor/composer/installed.json +++ b/site/vendor/composer/installed.json @@ -3764,17 +3764,17 @@ }, { "name": "spaze/sri-macros", - "version": "v2.2.1", - "version_normalized": "2.2.1.0", + "version": "v2.2.2", + "version_normalized": "2.2.2.0", "source": { "type": "git", "url": "https://github.com/spaze/sri-macros.git", - "reference": "efad2b58af5699fa7e6e11e7ef34662f4d9d1f7c" + "reference": "b94f713ed4c2f1817f6f07f1ac6f7c3774c376d6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spaze/sri-macros/zipball/efad2b58af5699fa7e6e11e7ef34662f4d9d1f7c", - "reference": "efad2b58af5699fa7e6e11e7ef34662f4d9d1f7c", + "url": "https://api.github.com/repos/spaze/sri-macros/zipball/b94f713ed4c2f1817f6f07f1ac6f7c3774c376d6", + "reference": "b94f713ed4c2f1817f6f07f1ac6f7c3774c376d6", "shasum": "" }, "require": { @@ -3794,7 +3794,7 @@ "spaze/csp-config": "Sends Content Security Policy header with nonces, if enabled", "spaze/nonce-generator": "Allows to add nonce attribute to script tags automatically" }, - "time": "2023-09-20T01:00:06+00:00", + "time": "2024-01-13T19:39:38+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -3816,7 +3816,7 @@ "description": "Subresource Integrity macros for Latte template engine", "support": { "issues": "https://github.com/spaze/sri-macros/issues", - "source": "https://github.com/spaze/sri-macros/tree/v2.2.1" + "source": "https://github.com/spaze/sri-macros/tree/v2.2.2" }, "install-path": "../spaze/sri-macros" }, diff --git a/site/vendor/composer/installed.php b/site/vendor/composer/installed.php index b7bceb301..4b90b356a 100644 --- a/site/vendor/composer/installed.php +++ b/site/vendor/composer/installed.php @@ -1,9 +1,9 @@ array( 'name' => 'spaze/michalspacek.cz', - 'pretty_version' => 'dev-main', - 'version' => 'dev-main', - 'reference' => '987a8941d1b068cef474b47f4bb962e18b5b947b', + 'pretty_version' => '1.0.0+no-version-set', + 'version' => '1.0.0.0', + 'reference' => NULL, 'type' => 'project', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -451,9 +451,9 @@ 'dev_requirement' => false, ), 'spaze/michalspacek.cz' => array( - 'pretty_version' => 'dev-main', - 'version' => 'dev-main', - 'reference' => '987a8941d1b068cef474b47f4bb962e18b5b947b', + 'pretty_version' => '1.0.0+no-version-set', + 'version' => '1.0.0.0', + 'reference' => NULL, 'type' => 'project', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -505,9 +505,9 @@ 'dev_requirement' => true, ), 'spaze/sri-macros' => array( - 'pretty_version' => 'v2.2.1', - 'version' => '2.2.1.0', - 'reference' => 'efad2b58af5699fa7e6e11e7ef34662f4d9d1f7c', + 'pretty_version' => 'v2.2.2', + 'version' => '2.2.2.0', + 'reference' => 'b94f713ed4c2f1817f6f07f1ac6f7c3774c376d6', 'type' => 'library', 'install_path' => __DIR__ . '/../spaze/sri-macros', 'aliases' => array(), diff --git a/site/vendor/spaze/sri-macros/src/Config.php b/site/vendor/spaze/sri-macros/src/Config.php index 8827cc66f..3012653ee 100644 --- a/site/vendor/spaze/sri-macros/src/Config.php +++ b/site/vendor/spaze/sri-macros/src/Config.php @@ -62,6 +62,18 @@ public function setLocalPrefix(stdClass $prefix): void } + public function setLocalBuildPrefix(string $prefix): void + { + $this->localPrefix['build'] = $prefix; + } + + + public function getLocalPathBuildPrefix(): string + { + return sprintf('%s/%s', rtrim($this->localPrefix['path'], '/'), trim($this->localPrefix['build'], '/')); + } + + public function setLocalMode(LocalMode|string $localMode): void { $this->localMode = is_string($localMode) ? LocalMode::from($localMode) : $localMode;