From 291803c31f829fe0d32bb3207bc11def95a7408c Mon Sep 17 00:00:00 2001 From: Nevena Bojovic Date: Tue, 1 Mar 2022 20:05:50 +0100 Subject: Urađena test aplikacija. Povezan front i back. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Front/node_modules/socks/build/common/util.js | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 sandbox/testAppNevena/Front/node_modules/socks/build/common/util.js (limited to 'sandbox/testAppNevena/Front/node_modules/socks/build/common/util.js') diff --git a/sandbox/testAppNevena/Front/node_modules/socks/build/common/util.js b/sandbox/testAppNevena/Front/node_modules/socks/build/common/util.js new file mode 100644 index 00000000..283314a0 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/socks/build/common/util.js @@ -0,0 +1,26 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.shuffleArray = exports.SocksClientError = void 0; +/** + * 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) { + // tslint:disable-next-line:no-increment-decrement + for (let i = array.length - 1; i > 0; i--) { + const j = Math.floor(Math.random() * (i + 1)); + [array[i], array[j]] = [array[j], array[i]]; + } +} +exports.shuffleArray = shuffleArray; +//# sourceMappingURL=util.js.map \ No newline at end of file -- cgit v1.2.3