9023ed3ef9
humanizer 2.2.0 -> 2.9.1 (blader/humanizer, MIT): adds a Voice Calibration section and a passive-voice pattern, reworks negative parallelisms and em dashes. Version moved to metadata.version upstream. impeccable 3.6.0 -> 4.0.4 (pbakaus/impeccable, Apache-2.0): the repo tags the skill and the npm CLI separately, so 3.6.0 was a real release and npm's 3.5.0 was never the comparison. Adds native-platform reference briefs. Each now carries an UPSTREAM file; bin/check-vendored.sh reports drift.
18 lines
699 B
JavaScript
18 lines
699 B
JavaScript
/**
|
|
* The one place that builds the `/live.js` URL the browser loads.
|
|
*
|
|
* Every injection path needs it (the generic script tag, the Nuxt client
|
|
* plugin, the SvelteKit root component, the TanStack mount component), and a
|
|
* separate module keeps that shared leaf free of import cycles: the framework
|
|
* entries import it, and nothing here imports a framework entry.
|
|
*/
|
|
|
|
/**
|
|
* When a token is supplied it rides as a `?token=...` query param so the
|
|
* server's token-gated /live.js handler authorizes the fetch.
|
|
*/
|
|
export function buildLiveScriptSrc(port, token) {
|
|
const base = 'http://localhost:' + port + '/live.js';
|
|
return token ? base + '?token=' + encodeURIComponent(token) : base;
|
|
}
|