(filenameOrURL)
| 129 | } |
| 130 | |
| 131 | function getRelativePath(filenameOrURL) { |
| 132 | const dir = StringPrototypeSlice(Path.join(Path.resolve(), 'x'), 0, -1); |
| 133 | |
| 134 | const filename = StringPrototypeStartsWith(filenameOrURL, 'file://') ? |
| 135 | fileURLToPath(filenameOrURL) : filenameOrURL; |
| 136 | |
| 137 | // Change path to relative, if possible |
| 138 | if (StringPrototypeStartsWith(filename, dir)) { |
| 139 | return StringPrototypeSlice(filename, dir.length); |
| 140 | } |
| 141 | return filename; |
| 142 | } |
| 143 | |
| 144 | // Adds spaces and prefix to number |
| 145 | // maxN is a maximum number we should have space for |
no test coverage detected
searching dependent graphs…