fix fs lib

This commit is contained in:
SrGooglo 2024-06-17 02:42:53 +02:00
parent feaee17391
commit 881d018bfc
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@ragestudio/relic-core", "name": "@ragestudio/relic-core",
"version": "0.17.6", "version": "0.17.7",
"license": "MIT", "license": "MIT",
"author": "RageStudio", "author": "RageStudio",
"description": "RageStudio Relic, yet another package manager.", "description": "RageStudio Relic, yet another package manager.",

View File

@ -16,7 +16,7 @@ export default class SecureFileSystem {
readFileSync(destination, options) { readFileSync(destination, options) {
this.checkOutsideJail(destination) this.checkOutsideJail(destination)
return fs.readFileSync(finalPath, options) return fs.readFileSync(destination, options)
} }
copyFileSync(from, to) { copyFileSync(from, to) {
@ -29,7 +29,7 @@ export default class SecureFileSystem {
writeFileSync(destination, data, options) { writeFileSync(destination, data, options) {
this.checkOutsideJail(destination) this.checkOutsideJail(destination)
return fs.writeFileSync(finalPath, data, options) return fs.writeFileSync(destination, data, options)
} }
// don't need to check finalPath // don't need to check finalPath

View File

@ -24,7 +24,7 @@
"@getstation/electron-google-oauth2": "^14.0.0", "@getstation/electron-google-oauth2": "^14.0.0",
"@imjs/electron-differential-updater": "^5.1.7", "@imjs/electron-differential-updater": "^5.1.7",
"@loadable/component": "^5.16.3", "@loadable/component": "^5.16.3",
"@ragestudio/relic-core": "^0.17.6", "@ragestudio/relic-core": "^0.17.7",
"antd": "^5.13.2", "antd": "^5.13.2",
"classnames": "^2.3.2", "classnames": "^2.3.2",
"electron-differential-updater": "^4.3.2", "electron-differential-updater": "^4.3.2",