You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
785 B
33 lines
785 B
"use strict";
|
|
|
|
/**
|
|
* Compatibility bridge to the new typescript code.
|
|
*
|
|
*/
|
|
|
|
const lib = require("./dist");
|
|
|
|
module.exports = function() { return lib.makeOptionalRequire.apply(lib, arguments); }
|
|
|
|
module.exports.tryRequire = lib.tryRequire;
|
|
module.exports.tryResolve = lib.tryResolve;
|
|
module.exports.try = lib.tryRequire;
|
|
module.exports.resolve = lib.tryResolve;
|
|
module.exports.makeOptionalRequire = lib.makeOptionalRequire;
|
|
module.exports.optionalRequire = lib.optionalRequire;
|
|
module.exports.optionalRequireCwd = lib.optionalRequireCwd;
|
|
module.exports.optionalRequireTop = lib.optionalRequireTop;
|
|
|
|
let __defaultLog;
|
|
|
|
Object.defineProperty(module.exports, "log", {
|
|
set(func) {
|
|
__defaultLog = func;
|
|
lib.setDefaultLog(func);
|
|
},
|
|
|
|
get() {
|
|
return __defaultLog;
|
|
},
|
|
});
|