mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Usage of path.join in getOutputSourceMapPath
This commit is contained in:
Vendored
+17
-17
File diff suppressed because one or more lines are too long
Vendored
+1
-18383
File diff suppressed because one or more lines are too long
Vendored
+1
-17702
File diff suppressed because one or more lines are too long
@@ -80,9 +80,12 @@ export class ObfuscatedCodeWriter {
|
||||
*/
|
||||
public getOutputSourceMapPath (outputCodePath: string, sourceMapFileName: string = ''): string {
|
||||
if (sourceMapFileName) {
|
||||
outputCodePath = `${outputCodePath.substring(
|
||||
0, outputCodePath.lastIndexOf('/')
|
||||
)}/${sourceMapFileName}`;
|
||||
const sourceMapPath: string = outputCodePath.substring(
|
||||
0,
|
||||
outputCodePath.lastIndexOf(path.sep)
|
||||
);
|
||||
|
||||
outputCodePath = path.join(sourceMapPath, sourceMapFileName);
|
||||
}
|
||||
|
||||
if (!/\.js\.map$/.test(outputCodePath)) {
|
||||
|
||||
Reference in New Issue
Block a user