mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-20 19:16:08 +00:00
35dbcc2103
The minor and patch group of #3108 without MikroORM: 7.2.9 refuses to set the OAuth client reference from its client_id (the Postgres probe fails on OauthTokens.insertToken and OauthConsents.upsertGrant), so MikroORM stays on 7.2.8 and with it better-sqlite3 and kysely, which it pins exactly. mapbox-gl 3.33 shapes right-to-left text itself and removed setRTLTextPlugin, so the engine registers nothing any more and @mapbox/mapbox-gl-rtl-text, its Vite alias and the registration guard go. The WebAssembly module it loads instead comes from api.mapbox.com, which the CSP already allows. jsdom 31 and isomorphic-dompurify 4 move together, since the sanitizer needs jsdom 31. jsdom is also a root devDependency now: listed only in the client, npm nests it under client/ where vitest's built-in jsdom environment does not find it. dotenv 18 is loaded through `import 'dotenv/config'` only, which stays quiet. Closes #3108, closes #3109, closes #3110, closes #3112
22 lines
916 B
JavaScript
22 lines
916 B
JavaScript
import { createRequire } from 'node:module';
|
|
import path from 'node:path';
|
|
|
|
/**
|
|
* Plyr's icon sprite. The package publishes its JS and CSS entries and nothing
|
|
* else, so `plyr/dist/plyr.svg` is refused by the resolver although the file is
|
|
* right there. Resolving the entry it does publish and stepping across keeps this
|
|
* working wherever npm hoists the package.
|
|
*
|
|
* Shared by vite.config.js and vitest.config.ts: the build needs it to emit the
|
|
* asset, and the test run needs it because a component reaches the same
|
|
* specifier. The pattern is a regex so a `?url` suffix survives the rewrite. The player has to point at a copy on this origin
|
|
* (#2341): its default is the sprite on cdn.plyr.io, which the CSP refuses.
|
|
*/
|
|
export const plyrSpriteAlias = {
|
|
find: /^plyr\/dist\/plyr\.svg/,
|
|
replacement: path.join(
|
|
path.dirname(createRequire(import.meta.url).resolve('plyr')),
|
|
'plyr.svg',
|
|
),
|
|
};
|