Merge pull request #27 from Spythere/development

1.8.6
This commit is contained in:
Spythere
2024-05-13 16:12:46 +02:00
committed by GitHub
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "pojazdownik", "name": "pojazdownik",
"version": "1.8.5", "version": "1.8.6",
"private": true, "private": true,
"type": "module", "type": "module",
"scripts": { "scripts": {
+3 -1
View File
@@ -67,7 +67,9 @@ export default defineComponent({
let vehicle: IVehicle | null = null; let vehicle: IVehicle | null = null;
let vehicleCargo: ICargo | null = null; let vehicleCargo: ICargo | null = null;
const isTractionUnit = /^(EU|EP|ET|SM|EN|2EN|SN)/.test(type); const isTractionUnit = /^([a-zA-Z\d]{0,}-\d{0,})/.test(type);
console.log(type, isTractionUnit);
if (isTractionUnit) { if (isTractionUnit) {
const [locoType, spawnProps] = type.split(','); const [locoType, spawnProps] = type.split(',');
+1 -1
View File
@@ -34,7 +34,7 @@ export default defineConfig({
maxAgeSeconds: 60 * 60 * 24, // <== 1 day maxAgeSeconds: 60 * 60 * 24, // <== 1 day
}, },
cacheableResponse: { cacheableResponse: {
statuses: [0, 200, 404], statuses: [200],
}, },
}, },
}, },