homelab/services/parts-inventory/api/node_modules/side-channel
Dan V deb6c38d7b chore: commit homelab setup — deployment, services, orchestration, skill
- Add .gitignore: exclude compiled binaries, build artifacts, and Helm
  values files containing real secrets (authentik, prometheus)
- Add all Kubernetes deployment manifests (deployment/)
- Add services source code: ha-sync, device-inventory, games-console,
  paperclip, parts-inventory
- Add Ansible orchestration: playbooks, roles, inventory, cloud-init
- Add hardware specs, execution plans, scripts, HOMELAB.md
- Add skills/homelab/SKILL.md + skills/install.sh to preserve Copilot skill
- Remove previously-tracked inventory-cli binary from git index

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-09 08:10:32 +02:00
..
.github chore: commit homelab setup — deployment, services, orchestration, skill 2026-04-09 08:10:32 +02:00
test chore: commit homelab setup — deployment, services, orchestration, skill 2026-04-09 08:10:32 +02:00
.editorconfig chore: commit homelab setup — deployment, services, orchestration, skill 2026-04-09 08:10:32 +02:00
.eslintrc chore: commit homelab setup — deployment, services, orchestration, skill 2026-04-09 08:10:32 +02:00
.nycrc chore: commit homelab setup — deployment, services, orchestration, skill 2026-04-09 08:10:32 +02:00
CHANGELOG.md chore: commit homelab setup — deployment, services, orchestration, skill 2026-04-09 08:10:32 +02:00
index.d.ts chore: commit homelab setup — deployment, services, orchestration, skill 2026-04-09 08:10:32 +02:00
index.js chore: commit homelab setup — deployment, services, orchestration, skill 2026-04-09 08:10:32 +02:00
LICENSE chore: commit homelab setup — deployment, services, orchestration, skill 2026-04-09 08:10:32 +02:00
package.json chore: commit homelab setup — deployment, services, orchestration, skill 2026-04-09 08:10:32 +02:00
README.md chore: commit homelab setup — deployment, services, orchestration, skill 2026-04-09 08:10:32 +02:00
tsconfig.json chore: commit homelab setup — deployment, services, orchestration, skill 2026-04-09 08:10:32 +02:00

side-channel Version Badge

github actions coverage License Downloads

npm badge

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

Warning: in an environment that lacks WeakMap, this implementation will leak memory until you delete the key.

Getting started

npm install --save side-channel

Usage/Examples

const assert = require('assert');
const getSideChannel = require('side-channel');

const channel = getSideChannel();

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