hk-planner/frontend/node_modules/side-channel-weakmap
jtricerolph 18e24efbeb Add sync error logging, extend error flash, fix unload saves
- Log workforce sync errors to backend stdout so they appear in docker logs
- Extend error flash from 5s to 15s so errors are readable
- Replace sendBeacon (POST-only) with keepalive fetch (PUT) on unload —
  sendBeacon was hitting 404s on all three unload saves

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-22 14:19:38 +00:00
..
.github Add sync error logging, extend error flash, fix unload saves 2026-07-22 14:19:38 +00:00
test Add sync error logging, extend error flash, fix unload saves 2026-07-22 14:19:38 +00:00
.editorconfig Add sync error logging, extend error flash, fix unload saves 2026-07-22 14:19:38 +00:00
.eslintrc Add sync error logging, extend error flash, fix unload saves 2026-07-22 14:19:38 +00:00
.nycrc Add sync error logging, extend error flash, fix unload saves 2026-07-22 14:19:38 +00:00
CHANGELOG.md Add sync error logging, extend error flash, fix unload saves 2026-07-22 14:19:38 +00:00
index.d.ts Add sync error logging, extend error flash, fix unload saves 2026-07-22 14:19:38 +00:00
index.js Add sync error logging, extend error flash, fix unload saves 2026-07-22 14:19:38 +00:00
LICENSE Add sync error logging, extend error flash, fix unload saves 2026-07-22 14:19:38 +00:00
package.json Add sync error logging, extend error flash, fix unload saves 2026-07-22 14:19:38 +00:00
README.md Add sync error logging, extend error flash, fix unload saves 2026-07-22 14:19:38 +00:00
tsconfig.json Add sync error logging, extend error flash, fix unload saves 2026-07-22 14:19:38 +00:00

side-channel-weakmap Version Badge

github actions coverage License Downloads

npm badge

Store information about any JS value in a side channel. Uses WeakMap if available.

Warning: this implementation will leak memory until you delete the key. Use side-channel for the best available strategy.

Getting started

npm install --save side-channel-weakmap

Usage/Examples

const assert = require('assert');
const getSideChannelList = require('side-channel-weakmap');

const channel = getSideChannelList();

const key = {};
assert.equal(channel.has(key), false);
assert.throws(() => channel.assert(key), TypeError);

channel.set(key, 42);

channel.assert(key); // does not throw
assert.equal(channel.has(key), true);
assert.equal(channel.get(key), 42);

channel.delete(key);
assert.equal(channel.has(key), false);
assert.throws(() => channel.assert(key), TypeError);

Tests

Clone the repo, npm install, and run npm test