(filePath, programFilepath)
| 14375 | } |
| 14376 | } |
| 14377 | static resolvePath(filePath, programFilepath) { |
| 14378 | // For use in Node.js only |
| 14379 | if (!filePath.startsWith(".")) return filePath |
| 14380 | const path = require("path") |
| 14381 | const folder = this.getPathWithoutFileName(programFilepath) |
| 14382 | return path.resolve(folder + "/" + filePath) |
| 14383 | } |
| 14384 | static resolveProperty(obj, path, separator = ".") { |
| 14385 | const properties = Array.isArray(path) ? path : path.split(separator) |
| 14386 | return properties.reduce((prev, curr) => prev && prev[curr], obj) |
nothing calls this directly
no test coverage detected