Replace CDN React/ReactDOM/Babel with local libs; remove Babel and inline scripts Build Tailwind locally, add safelist; switch to assets/tailwind.css Self-host Font Awesome and Inter (CSS + woff2); remove external font CDNs Implement strict CSP (no unsafe-inline/eval; scripts/styles/fonts from self) Extract inline handlers; move PWA scripts to external files Add local QR code generation (qrcode lib) and remove api.qrserver.com Improve SessionTypeSelector visual selection (highlighted background and ring) Keep PWA working with service worker and offline assets Refs: CSP hardening, offline-first, no external dependencies
15 lines
403 B
JavaScript
15 lines
403 B
JavaScript
'use strict'
|
|
|
|
// an async function fails early in Node.js versions prior to 8.
|
|
async function requiresNode8OrGreater () {}
|
|
requiresNode8OrGreater()
|
|
|
|
const { Yargs, rebase } = require('./build/lib/yargs')
|
|
const Parser = require('yargs-parser')
|
|
|
|
exports = module.exports = Yargs
|
|
exports.rebase = rebase
|
|
|
|
// allow consumers to directly use the version of yargs-parser used by yargs
|
|
exports.Parser = Parser
|