hk-planner/frontend/node_modules/is-array-buffer
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
.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

is-array-buffer Version Badge

github actions coverage License Downloads

npm badge

Is this value a JS ArrayBuffer? This module works cross-realm/iframe, does not depend on instanceof or mutable properties, and despite ES6 Symbol.toStringTag.

Example

var assert = require('assert');
var isArrayBuffer = require('is-array-buffer');

assert(!isArrayBuffer(function () {}));
assert(!isArrayBuffer(null));
assert(!isArrayBuffer(function* () { yield 42; return Infinity; });
assert(!isArrayBuffer(Symbol('foo')));
assert(!isArrayBuffer(1n));
assert(!isArrayBuffer(Object(1n)));

assert(!isArrayBuffer(new Set()));
assert(!isArrayBuffer(new WeakSet()));
assert(!isArrayBuffer(new Map()));
assert(!isArrayBuffer(new WeakMap()));
assert(!isArrayBuffer(new WeakRef({})));
assert(!isArrayBuffer(new FinalizationRegistry(() => {})));
assert(!isArrayBuffer(new SharedArrayBuffer()));

assert(isArrayBuffer(new ArrayBuffer()));

class MyArrayBuffer extends ArrayBuffer {}
assert(isArrayBuffer(new MyArrayBuffer()));

Tests

Simply clone the repo, npm install, and run npm test