UNPKG

@worker-tools/middleware

Version:

A suite of standalone HTTP server middlewares for Worker Runtimes.

38 lines 930 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AppendOnlyList = void 0; const _arr = new WeakMap(); class AppendOnlyList { constructor() { _arr.set(this, []); } get length() { return _arr.get(this).length; } toString() { return _arr.get(this).toString(); } toLocaleString() { return _arr.get(this).toLocaleString(); } push(...items) { return _arr.get(this).push(...items); } entries() { return _arr.get(this).entries(); } keys() { return _arr.get(this).keys(); } values() { return _arr.get(this).values(); } [Symbol.iterator]() { return _arr.get(this)[Symbol.iterator](); } [Symbol.unscopables]() { throw new Error('Method not implemented.'); } } exports.AppendOnlyList = AppendOnlyList; //# sourceMappingURL=append-only-list.js.map