Skip to content

Commit ca79c2a

Browse files
authored
Add file hashes for iframe_editor.css (#156)
1 parent 030bd55 commit ca79c2a

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

src/Model/VersionRange.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@
33

44
namespace Gared\EtherScan\Model;
55

6-
class VersionRange
6+
use InvalidArgumentException;
7+
8+
readonly class VersionRange
79
{
810
public function __construct(
9-
private readonly ?string $minVersion,
10-
private readonly ?string $maxVersion,
11+
private ?string $minVersion,
12+
private ?string $maxVersion,
1113
) {
14+
if ($minVersion !== null && $maxVersion !== null && version_compare($minVersion, $maxVersion, '>')) {
15+
throw new InvalidArgumentException('minVersion must be less than or equal to maxVersion');
16+
}
1217
}
1318

1419
public function getMinVersion(): ?string
@@ -25,4 +30,4 @@ public function __toString(): string
2530
{
2631
return 'min: ' . $this->minVersion . ', max: ' . $this->maxVersion;
2732
}
28-
}
33+
}

src/Service/FileHashLookupService.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ class FileHashLookupService
8282
'53c72fe8218c95773dcfce173dacb3f6' => ['2.5.2', '2.6.1'],
8383
'38cff1ae26208862112021f063b361a4' => ['2.7.0', null],
8484
],
85+
'static/css/iframe_editor.css' => [
86+
'61118ff9a0beeea3203f60aa8888166f' => ['1.8.14', '2.1.0'],
87+
'a24f0ca1e53c175e1bf091f74df37e2b' => ['2.2.2', '2.5.0'],
88+
'eb6c3b471926190b8059f49202465b5c' => ['2.5.2', '2.6.1'],
89+
'09d9db766fe56a55dcfe891a7cc5248a' => ['2.7.0', null],
90+
],
8591
'static/skins/colibris/index.js' => [
8692
'eb3857ee08d0c2217649dcb61b1c8e73' => ['2.1.1', '2.2.7'],
8793
'3c8e220b7dc756c1550a5e7148ecd5c5' => ['2.3.0', '2.3.2'],

0 commit comments

Comments
 (0)