File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 * Provides access to localized strings for all components.
66 */
77
8- import { LocalizedString , ReadOnlyProperty } from "scenerystack" ;
8+ import { LocalizedString , type ReadOnlyProperty } from "scenerystack" ;
99import strings_en from "./strings_en.json" ;
1010import strings_fr from "./strings_fr.json" ;
1111
Original file line number Diff line number Diff line change 11import { defineConfig } from "vite" ;
22import { VitePWA } from "vite-plugin-pwa" ;
3- import fs from "fs" ;
4- import path from "path" ;
3+ import fs from "node: fs" ;
4+ import path from "node: path" ;
55
66/**
77 * Vite plugin that serves ./videos/ as /videos/ with proper Range-request
@@ -36,8 +36,8 @@ function serveVideos() {
3636 if ( rangeHeader ) {
3737 const match = rangeHeader . match ( / b y t e s = ( \d + ) - ( \d * ) / ) ;
3838 if ( match ) {
39- const start = parseInt ( match [ 1 ] ) ;
40- const end = match [ 2 ] ? parseInt ( match [ 2 ] ) : total - 1 ;
39+ const start = parseInt ( match [ 1 ] , 10 ) ;
40+ const end = match [ 2 ] ? parseInt ( match [ 2 ] , 10 ) : total - 1 ;
4141 res . writeHead ( 206 , {
4242 ...headers ,
4343 "Content-Range" : `bytes ${ start } -${ end } /${ total } ` ,
You can’t perform that action at this time.
0 commit comments