fix(core): Fix import and typings for improved compatibility

This commit is contained in:
Philipp Kunz 2024-10-26 14:17:38 +02:00
parent 6aef7da9c4
commit 36a1054b45
6 changed files with 19 additions and 3 deletions

View File

@ -1,5 +1,11 @@
# Changelog
## 2024-10-26 - 2.2.1 - fix(core)
Fix import and typings for improved compatibility
- Corrected the type signature for `getS3Descriptor` to return `IS3Descriptor`.
- Fixed import structure and updated dependencies for consistent namespace usage across plugins.
## 2024-10-26 - 2.2.0 - feat(ci)
Migrate CI/CD workflow from GitLab CI to Gitea CI

View File

@ -40,6 +40,7 @@
"@push.rocks/smartbucket": "^2.0.2",
"@push.rocks/smartfile": "^10.0.4",
"@push.rocks/smartpath": "^5.0.5",
"@tsclass/tsclass": "^4.1.2",
"@types/s3rver": "^3.7.0",
"s3rver": "^3.7.1"
},

3
pnpm-lock.yaml generated
View File

@ -14,6 +14,9 @@ dependencies:
'@push.rocks/smartpath':
specifier: ^5.0.5
version: 5.0.18
'@tsclass/tsclass':
specifier: ^4.1.2
version: 4.1.2
'@types/s3rver':
specifier: ^3.7.0
version: 3.7.4

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smarts3',
version: '2.2.0',
version: '2.2.1',
description: 'A Node.js TypeScript package to create a local S3 endpoint for simulating AWS S3 operations using mapped local directories for development and testing purposes.'
}

View File

@ -42,7 +42,7 @@ export class Smarts3 {
console.log('s3 server is running');
}
public async getS3Descriptor(): Promise<plugins.smartbucket.ISmartBucketConfig> {
public async getS3Descriptor(): Promise<plugins.tsclass.storage.IS3Descriptor> {
return {
accessKey: 'S3RVER',
accessSecret: 'S3RVER',

View File

@ -3,13 +3,19 @@ import * as path from 'path';
export { path };
// pushrocks scope
// @push.rocks scope
import * as smartbucket from '@push.rocks/smartbucket';
import * as smartfile from '@push.rocks/smartfile';
import * as smartpath from '@push.rocks/smartpath';
export { smartbucket, smartfile, smartpath };
// @tsclass scope
import * as tsclass from '@tsclass/tsclass';
export { tsclass };
// thirdparty scope
import s3rver from 's3rver';