File Explorer

/var/runtime/node_modules/@aws-sdk/util-dns/dist-cjs/util

This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.

HostAddressEntryCollection.js1012 B · 34 lines
"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.HostAddressEntryCollection = void 0;class HostAddressEntryCollection {    data = [];    get length() {        return this.data.length;    }    cycle(collection) {        if (this.data.length === 0) {            throw new Error("Cannot cycle an empty collection");        }        const entry = this.data.shift();        (collection || this).append(entry);        return entry;    }    append(entry) {        this.data.push(entry);    }    remove(entry) {        if (this.length === 0) {            throw new Error("Cannot remove from an empty collection");        }        const index = this.data.findIndex((e) => e.address === entry.address);        const removedEntry = this.data[index];        this.data.splice(index, 1);        return removedEntry;    }    [Symbol.iterator]() {        return this.data[Symbol.iterator]();    }}exports.HostAddressEntryCollection = HostAddressEntryCollection;