Initial commit: Torrent search and download application
This commit is contained in:
commit
e38be704ff
4313 changed files with 791544 additions and 0 deletions
22
node_modules/pac-resolver/dist/util.js
generated
vendored
Normal file
22
node_modules/pac-resolver/dist/util.js
generated
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isGMT = exports.dnsLookup = void 0;
|
||||
const dns_1 = require("dns");
|
||||
function dnsLookup(host, opts) {
|
||||
return new Promise((resolve, reject) => {
|
||||
(0, dns_1.lookup)(host, opts, (err, res) => {
|
||||
if (err) {
|
||||
reject(err);
|
||||
}
|
||||
else {
|
||||
resolve(res);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
exports.dnsLookup = dnsLookup;
|
||||
function isGMT(v) {
|
||||
return v === 'GMT';
|
||||
}
|
||||
exports.isGMT = isGMT;
|
||||
//# sourceMappingURL=util.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue