mirror of
https://github.com/ragestudio/relic.git
synced 2025-06-09 02:24:18 +00:00
fix fs lib
This commit is contained in:
parent
feaee17391
commit
881d018bfc
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ragestudio/relic-core",
|
||||
"version": "0.17.6",
|
||||
"version": "0.17.7",
|
||||
"license": "MIT",
|
||||
"author": "RageStudio",
|
||||
"description": "RageStudio Relic, yet another package manager.",
|
||||
|
@ -16,7 +16,7 @@ export default class SecureFileSystem {
|
||||
readFileSync(destination, options) {
|
||||
this.checkOutsideJail(destination)
|
||||
|
||||
return fs.readFileSync(finalPath, options)
|
||||
return fs.readFileSync(destination, options)
|
||||
}
|
||||
|
||||
copyFileSync(from, to) {
|
||||
@ -29,7 +29,7 @@ export default class SecureFileSystem {
|
||||
writeFileSync(destination, data, options) {
|
||||
this.checkOutsideJail(destination)
|
||||
|
||||
return fs.writeFileSync(finalPath, data, options)
|
||||
return fs.writeFileSync(destination, data, options)
|
||||
}
|
||||
|
||||
// don't need to check finalPath
|
||||
|
@ -24,7 +24,7 @@
|
||||
"@getstation/electron-google-oauth2": "^14.0.0",
|
||||
"@imjs/electron-differential-updater": "^5.1.7",
|
||||
"@loadable/component": "^5.16.3",
|
||||
"@ragestudio/relic-core": "^0.17.6",
|
||||
"@ragestudio/relic-core": "^0.17.7",
|
||||
"antd": "^5.13.2",
|
||||
"classnames": "^2.3.2",
|
||||
"electron-differential-updater": "^4.3.2",
|
||||
|
Loading…
x
Reference in New Issue
Block a user