pathResolver.js 436 B

123456789101112131415
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var path_1 = require("path");
  4. var PathResolver = (function () {
  5. function PathResolver() {
  6. }
  7. PathResolver.prototype.resolve = function (path, relative) {
  8. if (typeof path !== 'string') {
  9. return null;
  10. }
  11. return path_1.join(relative, path);
  12. };
  13. return PathResolver;
  14. }());
  15. exports.PathResolver = PathResolver;