@joystick.js/cli-canary 0.0.0-canary.645 → 0.0.0-canary.646
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"os";const e=(r="")=>t.platform()==="win32"?r.replace(
|
|
1
|
+
import t from"os";const e=(r="")=>t.platform()==="win32"?r.replace(/\//g,"\\"):r;var a=e;export{a as default};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import os from 'os';
|
|
|
2
2
|
|
|
3
3
|
const get_platform_safe_path = (path = '') => {
|
|
4
4
|
// NOTE: This is why serial killers exist.
|
|
5
|
-
return os.platform() === "win32" ? path.replace(
|
|
5
|
+
return os.platform() === "win32" ? path.replace(/\//g, '\\') : path;
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
export default get_platform_safe_path;
|