fix(core): Fix import and typings for improved compatibility
This commit is contained in:
		| @@ -1,5 +1,11 @@ | |||||||
| # Changelog | # 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) | ## 2024-10-26 - 2.2.0 - feat(ci) | ||||||
| Migrate CI/CD workflow from GitLab CI to Gitea CI | Migrate CI/CD workflow from GitLab CI to Gitea CI | ||||||
|  |  | ||||||
|   | |||||||
| @@ -40,6 +40,7 @@ | |||||||
|     "@push.rocks/smartbucket": "^2.0.2", |     "@push.rocks/smartbucket": "^2.0.2", | ||||||
|     "@push.rocks/smartfile": "^10.0.4", |     "@push.rocks/smartfile": "^10.0.4", | ||||||
|     "@push.rocks/smartpath": "^5.0.5", |     "@push.rocks/smartpath": "^5.0.5", | ||||||
|  |     "@tsclass/tsclass": "^4.1.2", | ||||||
|     "@types/s3rver": "^3.7.0", |     "@types/s3rver": "^3.7.0", | ||||||
|     "s3rver": "^3.7.1" |     "s3rver": "^3.7.1" | ||||||
|   }, |   }, | ||||||
|   | |||||||
							
								
								
									
										3
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							| @@ -14,6 +14,9 @@ dependencies: | |||||||
|   '@push.rocks/smartpath': |   '@push.rocks/smartpath': | ||||||
|     specifier: ^5.0.5 |     specifier: ^5.0.5 | ||||||
|     version: 5.0.18 |     version: 5.0.18 | ||||||
|  |   '@tsclass/tsclass': | ||||||
|  |     specifier: ^4.1.2 | ||||||
|  |     version: 4.1.2 | ||||||
|   '@types/s3rver': |   '@types/s3rver': | ||||||
|     specifier: ^3.7.0 |     specifier: ^3.7.0 | ||||||
|     version: 3.7.4 |     version: 3.7.4 | ||||||
|   | |||||||
| @@ -3,6 +3,6 @@ | |||||||
|  */ |  */ | ||||||
| export const commitinfo = { | export const commitinfo = { | ||||||
|   name: '@push.rocks/smarts3', |   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.' |   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.' | ||||||
| } | } | ||||||
|   | |||||||
| @@ -42,7 +42,7 @@ export class Smarts3 { | |||||||
|     console.log('s3 server is running'); |     console.log('s3 server is running'); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   public async getS3Descriptor(): Promise<plugins.smartbucket.ISmartBucketConfig> { |   public async getS3Descriptor(): Promise<plugins.tsclass.storage.IS3Descriptor> { | ||||||
|     return { |     return { | ||||||
|       accessKey: 'S3RVER', |       accessKey: 'S3RVER', | ||||||
|       accessSecret: 'S3RVER', |       accessSecret: 'S3RVER', | ||||||
|   | |||||||
| @@ -3,13 +3,19 @@ import * as path from 'path'; | |||||||
|  |  | ||||||
| export { path }; | export { path }; | ||||||
|  |  | ||||||
| // pushrocks scope | // @push.rocks scope | ||||||
| import * as smartbucket from '@push.rocks/smartbucket'; | import * as smartbucket from '@push.rocks/smartbucket'; | ||||||
| import * as smartfile from '@push.rocks/smartfile'; | import * as smartfile from '@push.rocks/smartfile'; | ||||||
| import * as smartpath from '@push.rocks/smartpath'; | import * as smartpath from '@push.rocks/smartpath'; | ||||||
|  |  | ||||||
| export { smartbucket, smartfile, smartpath }; | export { smartbucket, smartfile, smartpath }; | ||||||
|  |  | ||||||
|  | // @tsclass scope | ||||||
|  | import * as tsclass from '@tsclass/tsclass'; | ||||||
|  |  | ||||||
|  | export { tsclass }; | ||||||
|  |  | ||||||
|  |  | ||||||
| // thirdparty scope | // thirdparty scope | ||||||
| import s3rver from 's3rver'; | import s3rver from 's3rver'; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user