mirror of
https://github.com/misenhower/splatoon2.ink.git
synced 2026-10-01 21:56:53 -05:00
Move getTopOfCurrentHour out of utilities.js
utilities.js is the filesystem helper module the posters still use, and the schedules updater only needed the time helper from it. With the helper in its own module the updater import graph no longer pulls in node:fs, which is what the Worker bundle needs. Also applies the remaining ESLint fixes outside src/web. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -5,7 +5,6 @@ import { MemoryBucket, BucketStorage } from '../../src/common/storage/index.js';
|
||||
import LocalizationProcessor from '../../src/app/updater/LocalizationProcessor.js';
|
||||
|
||||
const en = { region: 'NA', language: 'en' };
|
||||
const ja = { region: 'JP', language: 'ja' };
|
||||
const stages = { name: 'stages', entities: ['$..stage_a', '$..stage_b'], id: 'id', values: 'name' };
|
||||
const rules = { name: 'rules', entities: '$..rule', id: 'key', values: ['name', 'multiline_name'] };
|
||||
const gear = { name: 'gear', entities: '$..gear', id: ['kind', 'id'], values: 'name' };
|
||||
|
||||
@@ -7,7 +7,7 @@ import MerchandisesUpdater from '../../src/app/updater/updaters/MerchandisesUpda
|
||||
import FestivalsUpdater from '../../src/app/updater/updaters/FestivalsUpdater.js';
|
||||
import OriginalGearImageUpdater from '../../src/app/updater/updaters/OriginalGearImageUpdater.js';
|
||||
import { createUpdaters } from '../../src/app/updater/updateAll.js';
|
||||
import { getTopOfCurrentHour } from '../../src/common/utilities.js';
|
||||
import { getTopOfCurrentHour } from '../../src/common/time.js';
|
||||
import gearData from '../../src/common/data/gear.json' with { type: 'json' };
|
||||
import skills from '../../src/common/data/skills.json' with { type: 'json' };
|
||||
import { fakeSplatNet, buckets, json, keys, setSessionEnvironment } from './support.js';
|
||||
|
||||
Reference in New Issue
Block a user