@stackbit/cms-core
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -173,1 +173,2 @@ /** | ||
export function isRelevantReactData(data: any): any; | ||
export function convertToPosixFilePath(filePath: any): any; |
@@ -61,3 +61,4 @@ "use strict"; | ||
replaceInRange, | ||
isRelevantReactData | ||
isRelevantReactData, | ||
convertToPosixFilePath | ||
}; | ||
@@ -929,2 +930,15 @@ const INDENT = _.repeat(' ', 4); | ||
} | ||
function convertToPosixFilePath(filePath) { | ||
if (path.sep === path.posix.sep) { | ||
return filePath; | ||
} | ||
if (!filePath) { | ||
return filePath; | ||
} | ||
// convert 'c:\foo\bar' to '/c/foo/bar' | ||
return filePath | ||
.replace(/^(\w):/, '/$1') | ||
.split(path.sep) | ||
.join(path.posix.sep); | ||
} | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@stackbit/cms-core", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "stackbit-dev", | ||
@@ -42,3 +42,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "74659689c4b8c14751b9b364393fba1863e5b571" | ||
"gitHead": "1dbb4af4333d2250548fe97eb03867e3cbd27785" | ||
} |
@@ -61,3 +61,4 @@ const path = require('path'); | ||
replaceInRange, | ||
isRelevantReactData | ||
isRelevantReactData, | ||
convertToPosixFilePath | ||
}; | ||
@@ -999,1 +1000,15 @@ | ||
} | ||
function convertToPosixFilePath(filePath) { | ||
if (path.sep === path.posix.sep) { | ||
return filePath; | ||
} | ||
if (!filePath) { | ||
return filePath; | ||
} | ||
// convert 'c:\foo\bar' to '/c/foo/bar' | ||
return filePath | ||
.replace(/^(\w):/, '/$1') | ||
.split(path.sep) | ||
.join(path.posix.sep); | ||
} |
Sorry, the diff of this file is not supported yet
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
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
166147
3326