Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
138c38ee30 | |||
a1e449cf94 |
@ -1,5 +1,10 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2024-11-24 - 3.3.1 - fix(File)
|
||||||
|
Fixed issue with file restore metadata operations.
|
||||||
|
|
||||||
|
- Corrected the order of operations in the file restore function to ensure custom metadata is appropriately deleted after moving the file.
|
||||||
|
|
||||||
## 2024-11-24 - 3.3.0 - feat(core)
|
## 2024-11-24 - 3.3.0 - feat(core)
|
||||||
Enhanced directory handling and file restoration from trash
|
Enhanced directory handling and file restoration from trash
|
||||||
|
|
||||||
|
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@push.rocks/smartbucket",
|
"name": "@push.rocks/smartbucket",
|
||||||
"version": "3.3.0",
|
"version": "3.3.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@push.rocks/smartbucket",
|
"name": "@push.rocks/smartbucket",
|
||||||
"version": "3.3.0",
|
"version": "3.3.1",
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@push.rocks/smartpath": "^5.0.18",
|
"@push.rocks/smartpath": "^5.0.18",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@push.rocks/smartbucket",
|
"name": "@push.rocks/smartbucket",
|
||||||
"version": "3.3.0",
|
"version": "3.3.1",
|
||||||
"description": "A TypeScript library offering simple and cloud-agnostic object storage with advanced features like bucket creation, file and directory management, and data streaming.",
|
"description": "A TypeScript library offering simple and cloud-agnostic object storage with advanced features like bucket creation, file and directory management, and data streaming.",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
"typings": "dist_ts/index.d.ts",
|
"typings": "dist_ts/index.d.ts",
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/smartbucket',
|
name: '@push.rocks/smartbucket',
|
||||||
version: '3.3.0',
|
version: '3.3.1',
|
||||||
description: 'A TypeScript library offering simple and cloud-agnostic object storage with advanced features like bucket creation, file and directory management, and data streaming.'
|
description: 'A TypeScript library offering simple and cloud-agnostic object storage with advanced features like bucket creation, file and directory management, and data streaming.'
|
||||||
}
|
}
|
||||||
|
@ -145,12 +145,16 @@ export class File {
|
|||||||
overwrite: false,
|
overwrite: false,
|
||||||
...optionsArg,
|
...optionsArg,
|
||||||
};
|
};
|
||||||
const moveToPath = optionsArg.toPath || (await (await this.getMetaData()).getCustomMetaData({
|
const metadata = await this.getMetaData();
|
||||||
|
const moveToPath = optionsArg.toPath || (await metadata.getCustomMetaData({
|
||||||
key: 'recycle'
|
key: 'recycle'
|
||||||
})).originalPath;
|
})).originalPath;
|
||||||
|
await metadata.deleteCustomMetaData({
|
||||||
|
key: 'recycle'
|
||||||
|
})
|
||||||
await this.move({
|
await this.move({
|
||||||
path: moveToPath,
|
path: moveToPath,
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user