@magicspace/core
Advanced tools
Comparing version 0.2.22 to 0.2.23
@@ -80,6 +80,9 @@ "use strict"; | ||
} | ||
else { | ||
else if (Path.relative(from, to).startsWith(`..${Path.sep}`)) { | ||
FSExtra.moveSync(from, to); | ||
return true; | ||
} | ||
else { | ||
return false; | ||
} | ||
} | ||
@@ -86,0 +89,0 @@ exports.conservativelyMove = conservativelyMove; |
@@ -10,3 +10,3 @@ "use strict"; | ||
stringify(content) { | ||
let { space } = this.options; | ||
let { space = 2 } = this.options; | ||
return JSON.stringify(content, undefined, space); | ||
@@ -13,0 +13,0 @@ } |
{ | ||
"name": "@magicspace/core", | ||
"version": "0.2.22", | ||
"version": "0.2.23", | ||
"publishConfig": { | ||
@@ -34,3 +34,3 @@ "access": "public" | ||
}, | ||
"gitHead": "c9df331211d1a13f49e69d16128bc8f0c49ffca5" | ||
"gitHead": "3bd60b5fde351640a4bfde72249bb09169f0ce8e" | ||
} |
@@ -98,5 +98,7 @@ import * as ChildProcess from 'child_process'; | ||
} | ||
} else { | ||
} else if (Path.relative(from, to).startsWith(`..${Path.sep}`)) { | ||
FSExtra.moveSync(from, to); | ||
return true; | ||
} else { | ||
return false; | ||
} | ||
@@ -103,0 +105,0 @@ } |
@@ -20,3 +20,3 @@ import {FileContext} from '../file'; | ||
protected stringify(content: TContent | undefined): string { | ||
let {space} = this.options; | ||
let {space = 2} = this.options; | ||
@@ -23,0 +23,0 @@ return JSON.stringify(content, undefined, space); |
Sorry, the diff of this file is not supported yet
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
124903
2692