PHP 8.2.30
Preview: util.js Size: 638 B
//lib/node_modules/npm/node_modules/socks/build/common/util.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
 * Error wrapper for SocksClient
 */
class SocksClientError extends Error {
    constructor(message, options) {
        super(message);
        this.options = options;
    }
}
exports.SocksClientError = SocksClientError;
/**
 * Shuffles a given array.
 * @param array The array to shuffle.
 */
function shuffleArray(array) {
    for (let i = array.length - 1; i > 0; i--) {
        let j = Math.floor(Math.random() * (i + 1));
        [array[i], array[j]] = [array[j], array[i]];
    }
}
exports.shuffleArray = shuffleArray;
//# sourceMappingURL=util.js.map

Directory Contents

Dirs: 0 × Files: 8

Name Size Perms Modified Actions
6.34 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
2.16 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
3.85 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
2.67 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
1.50 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
1.57 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
638 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
648 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).