sourcebit-source-filesystem
Advanced tools
Comparing version 0.1.6 to 0.2.0
{ | ||
"name": "sourcebit-source-filesystem", | ||
"version": "0.1.6", | ||
"version": "0.2.0", | ||
"description": "Sourcebit filesystem source plugin", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -152,8 +152,8 @@ const chokidar = require('chokidar'); | ||
__metadata: { | ||
id: `${relProjectPath}`, | ||
id: `${convertPathToPosix(relProjectPath)}`, | ||
source: SOURCE, | ||
sourceName: name, | ||
sourcePath: sourcePath, | ||
relSourcePath: relSourcePath, | ||
relProjectPath: relProjectPath | ||
sourcePath: convertPathToPosix(sourcePath), | ||
relSourcePath: convertPathToPosix(relSourcePath), | ||
relProjectPath: convertPathToPosix(relProjectPath) | ||
} | ||
@@ -169,1 +169,11 @@ }, data)); | ||
} | ||
function convertPathToPosix(p) { | ||
if (path.sep === path.posix.sep) { | ||
return p; | ||
} | ||
if (!p) { | ||
return p; | ||
} | ||
return p.split(path.sep).join(path.posix.sep); | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16853
335
1