457 lines
13 KiB
JavaScript
457 lines
13 KiB
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.Http2 = exports.Timers = exports.Util = exports.Path = exports.Fs = exports.Net = exports.Dns = exports.Child_process = exports.Os = exports.Zlib = exports.http2 = exports.async_hooks = exports.timers = exports.v8 = exports.constants = exports.domain = exports.tty = exports.assert = exports.util = exports.stream = exports.crypto = exports.tls = exports.string_decoder = exports.path = exports.fs = exports.dgram = exports.net = exports.dns = exports.url = exports.child_process = exports.vm = exports.readline = exports.repl = exports.punycode = exports.https = exports.os = exports.zlib = exports.cluster = exports.http = exports.events = exports.querystring = exports.buffer = undefined;
|
|
|
|
var _buffer = require("buffer");
|
|
|
|
var buffer_1 = _interopRequireWildcard(_buffer);
|
|
|
|
var _querystring = require("querystring");
|
|
|
|
var querystring_1 = _interopRequireWildcard(_querystring);
|
|
|
|
var _events = require("events");
|
|
|
|
var events_1 = _interopRequireWildcard(_events);
|
|
|
|
var _http = require("http");
|
|
|
|
var http_1 = _interopRequireWildcard(_http);
|
|
|
|
var _cluster = require("cluster");
|
|
|
|
var cluster_1 = _interopRequireWildcard(_cluster);
|
|
|
|
var _zlib = require("zlib");
|
|
|
|
var zlib_1 = _interopRequireWildcard(_zlib);
|
|
|
|
var _os = require("os");
|
|
|
|
var os_1 = _interopRequireWildcard(_os);
|
|
|
|
var _https = require("https");
|
|
|
|
var https_1 = _interopRequireWildcard(_https);
|
|
|
|
var _punycode = require("punycode");
|
|
|
|
var punycode_1 = _interopRequireWildcard(_punycode);
|
|
|
|
var _repl = require("repl");
|
|
|
|
var repl_1 = _interopRequireWildcard(_repl);
|
|
|
|
var _readline = require("readline");
|
|
|
|
var readline_1 = _interopRequireWildcard(_readline);
|
|
|
|
var _vm = require("vm");
|
|
|
|
var vm_1 = _interopRequireWildcard(_vm);
|
|
|
|
var _child_process = require("child_process");
|
|
|
|
var child_process_1 = _interopRequireWildcard(_child_process);
|
|
|
|
var _url = require("url");
|
|
|
|
var url_1 = _interopRequireWildcard(_url);
|
|
|
|
var _dns = require("dns");
|
|
|
|
var dns_1 = _interopRequireWildcard(_dns);
|
|
|
|
var _net = require("net");
|
|
|
|
var net_1 = _interopRequireWildcard(_net);
|
|
|
|
var _dgram = require("dgram");
|
|
|
|
var dgram_1 = _interopRequireWildcard(_dgram);
|
|
|
|
var _fs = require("fs");
|
|
|
|
var fs_1 = _interopRequireWildcard(_fs);
|
|
|
|
var _path = require("path");
|
|
|
|
var path_1 = _interopRequireWildcard(_path);
|
|
|
|
var _string_decoder = require("string_decoder");
|
|
|
|
var string_decoder_1 = _interopRequireWildcard(_string_decoder);
|
|
|
|
var _tls = require("tls");
|
|
|
|
var tls_1 = _interopRequireWildcard(_tls);
|
|
|
|
var _crypto = require("crypto");
|
|
|
|
var crypto_1 = _interopRequireWildcard(_crypto);
|
|
|
|
var _stream = require("stream");
|
|
|
|
var stream_1 = _interopRequireWildcard(_stream);
|
|
|
|
var _util = require("util");
|
|
|
|
var util_1 = _interopRequireWildcard(_util);
|
|
|
|
var _assert = require("assert");
|
|
|
|
var assert_1 = _interopRequireWildcard(_assert);
|
|
|
|
var _tty = require("tty");
|
|
|
|
var tty_1 = _interopRequireWildcard(_tty);
|
|
|
|
var _domain = require("domain");
|
|
|
|
var domain_1 = _interopRequireWildcard(_domain);
|
|
|
|
var _constants = require("constants");
|
|
|
|
var constants_4 = _interopRequireWildcard(_constants);
|
|
|
|
var _v = require("v8");
|
|
|
|
var v8_1 = _interopRequireWildcard(_v);
|
|
|
|
var _timers = require("timers");
|
|
|
|
var timers_1 = _interopRequireWildcard(_timers);
|
|
|
|
var _async_hooks = require("async_hooks");
|
|
|
|
var async_hooks_1 = _interopRequireWildcard(_async_hooks);
|
|
|
|
var _http2 = require("http2");
|
|
|
|
var http2_1 = _interopRequireWildcard(_http2);
|
|
|
|
var _Util = require("../fable-core/Util");
|
|
|
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
|
|
|
|
const buffer = exports.buffer = buffer_1;
|
|
const querystring = exports.querystring = querystring_1;
|
|
const events = exports.events = events_1;
|
|
const http = exports.http = http_1;
|
|
const cluster = exports.cluster = cluster_1;
|
|
const zlib = exports.zlib = zlib_1;
|
|
const os = exports.os = os_1;
|
|
const https = exports.https = https_1;
|
|
const punycode = exports.punycode = punycode_1;
|
|
const repl = exports.repl = repl_1;
|
|
const readline = exports.readline = readline_1;
|
|
const vm = exports.vm = vm_1;
|
|
const child_process = exports.child_process = child_process_1;
|
|
const url = exports.url = url_1;
|
|
const dns = exports.dns = dns_1;
|
|
const net = exports.net = net_1;
|
|
const dgram = exports.dgram = dgram_1;
|
|
const fs = exports.fs = fs_1;
|
|
const path = exports.path = path_1;
|
|
const string_decoder = exports.string_decoder = string_decoder_1;
|
|
const tls = exports.tls = tls_1;
|
|
const crypto = exports.crypto = crypto_1;
|
|
const stream = exports.stream = stream_1;
|
|
const util = exports.util = util_1;
|
|
const assert = exports.assert = assert_1;
|
|
const tty = exports.tty = tty_1;
|
|
const domain = exports.domain = domain_1;
|
|
const constants = exports.constants = constants_4;
|
|
const v8 = exports.v8 = v8_1;
|
|
const timers = exports.timers = timers_1;
|
|
const async_hooks = exports.async_hooks = async_hooks_1;
|
|
const http2 = exports.http2 = http2_1;
|
|
|
|
const Zlib = exports.Zlib = function (__exports) {
|
|
const constants_1 = __exports.constants = _zlib.constants;
|
|
return __exports;
|
|
}({});
|
|
|
|
const Os = exports.Os = function (__exports) {
|
|
const NetworkInterfaceInfoModule = __exports.NetworkInterfaceInfoModule = function (__exports) {
|
|
const ofNetworkInterfaceInfoIPv4 = __exports.ofNetworkInterfaceInfoIPv4 = function (v) {
|
|
return v;
|
|
};
|
|
|
|
const isNetworkInterfaceInfoIPv4 = __exports.isNetworkInterfaceInfoIPv4 = function (v) {
|
|
if ((0, _Util.hasInterface)(v, "Node.Os.NetworkInterfaceInfoIPv4")) {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
};
|
|
|
|
const asNetworkInterfaceInfoIPv4 = __exports.asNetworkInterfaceInfoIPv4 = function (v) {
|
|
if ((0, _Util.hasInterface)(v, "Node.Os.NetworkInterfaceInfoIPv4")) {
|
|
return v;
|
|
} else {
|
|
return null;
|
|
}
|
|
};
|
|
|
|
const ofNetworkInterfaceInfoIPv6 = __exports.ofNetworkInterfaceInfoIPv6 = function (v) {
|
|
return v;
|
|
};
|
|
|
|
const isNetworkInterfaceInfoIPv6 = __exports.isNetworkInterfaceInfoIPv6 = function (v) {
|
|
if ((0, _Util.hasInterface)(v, "Node.Os.NetworkInterfaceInfoIPv6")) {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
};
|
|
|
|
const asNetworkInterfaceInfoIPv6 = __exports.asNetworkInterfaceInfoIPv6 = function (v) {
|
|
if ((0, _Util.hasInterface)(v, "Node.Os.NetworkInterfaceInfoIPv6")) {
|
|
return v;
|
|
} else {
|
|
return null;
|
|
}
|
|
};
|
|
|
|
return __exports;
|
|
}({});
|
|
|
|
return __exports;
|
|
}({});
|
|
|
|
const Child_process = exports.Child_process = function (__exports) {
|
|
const exec = __exports.exec = _child_process.exec;
|
|
const execFile = __exports.execFile = _child_process.execFile;
|
|
return __exports;
|
|
}({});
|
|
|
|
const Dns = exports.Dns = function (__exports) {
|
|
const lookup = __exports.lookup = _dns.lookup;
|
|
const resolve = __exports.resolve = _dns.resolve;
|
|
const resolve4 = __exports.resolve4 = _dns.resolve4;
|
|
const resolve6 = __exports.resolve6 = _dns.resolve6;
|
|
return __exports;
|
|
}({});
|
|
|
|
const Net = exports.Net = function (__exports) {
|
|
const SocketConnectOptsModule = __exports.SocketConnectOptsModule = function (__exports) {
|
|
const ofTcpSocketConnectOpts = __exports.ofTcpSocketConnectOpts = function (v) {
|
|
return v;
|
|
};
|
|
|
|
const isTcpSocketConnectOpts = __exports.isTcpSocketConnectOpts = function (v) {
|
|
if ((0, _Util.hasInterface)(v, "Node.Net.TcpSocketConnectOpts")) {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
};
|
|
|
|
const asTcpSocketConnectOpts = __exports.asTcpSocketConnectOpts = function (v) {
|
|
if ((0, _Util.hasInterface)(v, "Node.Net.TcpSocketConnectOpts")) {
|
|
return v;
|
|
} else {
|
|
return null;
|
|
}
|
|
};
|
|
|
|
const ofIpcSocketConnectOpts = __exports.ofIpcSocketConnectOpts = function (v) {
|
|
return v;
|
|
};
|
|
|
|
const isIpcSocketConnectOpts = __exports.isIpcSocketConnectOpts = function (v) {
|
|
if ((0, _Util.hasInterface)(v, "Node.Net.IpcSocketConnectOpts")) {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
};
|
|
|
|
const asIpcSocketConnectOpts = __exports.asIpcSocketConnectOpts = function (v) {
|
|
if ((0, _Util.hasInterface)(v, "Node.Net.IpcSocketConnectOpts")) {
|
|
return v;
|
|
} else {
|
|
return null;
|
|
}
|
|
};
|
|
|
|
return __exports;
|
|
}({});
|
|
|
|
const NetConnectOptsModule = __exports.NetConnectOptsModule = function (__exports) {
|
|
const ofTcpNetConnectOpts = __exports.ofTcpNetConnectOpts = function (v) {
|
|
return v;
|
|
};
|
|
|
|
const isTcpNetConnectOpts = __exports.isTcpNetConnectOpts = function (v) {
|
|
if ((0, _Util.hasInterface)(v, "Node.Net.TcpNetConnectOpts")) {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
};
|
|
|
|
const asTcpNetConnectOpts = __exports.asTcpNetConnectOpts = function (v) {
|
|
if ((0, _Util.hasInterface)(v, "Node.Net.TcpNetConnectOpts")) {
|
|
return v;
|
|
} else {
|
|
return null;
|
|
}
|
|
};
|
|
|
|
const ofIpcNetConnectOpts = __exports.ofIpcNetConnectOpts = function (v) {
|
|
return v;
|
|
};
|
|
|
|
const isIpcNetConnectOpts = __exports.isIpcNetConnectOpts = function (v) {
|
|
if ((0, _Util.hasInterface)(v, "Node.Net.IpcNetConnectOpts")) {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
};
|
|
|
|
const asIpcNetConnectOpts = __exports.asIpcNetConnectOpts = function (v) {
|
|
if ((0, _Util.hasInterface)(v, "Node.Net.IpcNetConnectOpts")) {
|
|
return v;
|
|
} else {
|
|
return null;
|
|
}
|
|
};
|
|
|
|
return __exports;
|
|
}({});
|
|
|
|
return __exports;
|
|
}({});
|
|
|
|
const Fs = exports.Fs = function (__exports) {
|
|
const rename = __exports.rename = _fs.rename;
|
|
const truncate = __exports.truncate = _fs.truncate;
|
|
const ftruncate = __exports.ftruncate = _fs.ftruncate;
|
|
const chown = __exports.chown = _fs.chown;
|
|
const fchown = __exports.fchown = _fs.fchown;
|
|
const lchown = __exports.lchown = _fs.lchown;
|
|
const chmod = __exports.chmod = _fs.chmod;
|
|
const fchmod = __exports.fchmod = _fs.fchmod;
|
|
const lchmod = __exports.lchmod = _fs.lchmod;
|
|
const stat = __exports.stat = _fs.stat;
|
|
const fstat = __exports.fstat = _fs.fstat;
|
|
const lstat = __exports.lstat = _fs.lstat;
|
|
const link = __exports.link = _fs.link;
|
|
const symlink = __exports.symlink = _fs.symlink;
|
|
const readlink = __exports.readlink = _fs.readlink;
|
|
const realpath = __exports.realpath = _fs.realpath;
|
|
const unlink = __exports.unlink = _fs.unlink;
|
|
const rmdir = __exports.rmdir = _fs.rmdir;
|
|
const mkdir = __exports.mkdir = _fs.mkdir;
|
|
const mkdtemp = __exports.mkdtemp = _fs.mkdtemp;
|
|
const readdir = __exports.readdir = _fs.readdir;
|
|
const close = __exports.close = _fs.close;
|
|
const open = __exports.open = _fs.open;
|
|
const utimes = __exports.utimes = _fs.utimes;
|
|
const futimes = __exports.futimes = _fs.futimes;
|
|
const fsync = __exports.fsync = _fs.fsync;
|
|
const write = __exports.write = _fs.write;
|
|
const read = __exports.read = _fs.read;
|
|
const readFile = __exports.readFile = _fs.readFile;
|
|
const writeFile = __exports.writeFile = _fs.writeFile;
|
|
const appendFile = __exports.appendFile = _fs.appendFile;
|
|
const exists = __exports.exists = _fs.exists;
|
|
const constants_2 = __exports.constants = _fs.constants;
|
|
const access = __exports.access = _fs.access;
|
|
const fdatasync = __exports.fdatasync = _fs.fdatasync;
|
|
const copyFile = __exports.copyFile = _fs.copyFile;
|
|
|
|
const PathLikeModule = __exports.PathLikeModule = function (__exports) {
|
|
const ofString = __exports.ofString = function (v) {
|
|
return v;
|
|
};
|
|
|
|
const isString = __exports.isString = function (v) {
|
|
if (typeof v === "string") {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
};
|
|
|
|
const asString = __exports.asString = function (v) {
|
|
if (typeof v === "string") {
|
|
return v;
|
|
} else {
|
|
return null;
|
|
}
|
|
};
|
|
|
|
const ofBuffer = __exports.ofBuffer = function (v) {
|
|
return v;
|
|
};
|
|
|
|
const isBuffer = __exports.isBuffer = function (v) {
|
|
if ((0, _Util.hasInterface)(v, "Node.Buffer")) {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
};
|
|
|
|
const asBuffer = __exports.asBuffer = function (v) {
|
|
if ((0, _Util.hasInterface)(v, "Node.Buffer")) {
|
|
return v;
|
|
} else {
|
|
return null;
|
|
}
|
|
};
|
|
|
|
const ofURL = __exports.ofURL = function (v) {
|
|
return v;
|
|
};
|
|
|
|
const isURL = __exports.isURL = function (v) {
|
|
if ((0, _Util.hasInterface)(v, "Node.Url.URL")) {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
};
|
|
|
|
const asURL = __exports.asURL = function (v) {
|
|
if ((0, _Util.hasInterface)(v, "Node.Url.URL")) {
|
|
return v;
|
|
} else {
|
|
return null;
|
|
}
|
|
};
|
|
|
|
return __exports;
|
|
}({});
|
|
|
|
return __exports;
|
|
}({});
|
|
|
|
const Path = exports.Path = function (__exports) {
|
|
const posix = __exports.posix = _path.posix;
|
|
const win32 = __exports.win32 = _path.win32;
|
|
return __exports;
|
|
}({});
|
|
|
|
const Util = exports.Util = function (__exports) {
|
|
const promisify = __exports.promisify = _util.promisify;
|
|
return __exports;
|
|
}({});
|
|
|
|
const Timers = exports.Timers = function (__exports) {
|
|
const setTimeout = __exports.setTimeout = _timers.setTimeout;
|
|
const setImmediate = __exports.setImmediate = _timers.setImmediate;
|
|
return __exports;
|
|
}({});
|
|
|
|
const Http2 = exports.Http2 = function (__exports) {
|
|
const constants_3 = __exports.constants = _http2.constants;
|
|
return __exports;
|
|
}({}); |