fix(core): Fixed function call for fastPut in the test suite to ensure proper file upload handling.

This commit is contained in:
Philipp Kunz 2024-11-06 03:11:51 +01:00
parent aac5a11a7a
commit f13a99447d
5 changed files with 2516 additions and 677 deletions

View File

@ -1,5 +1,11 @@
# Changelog # Changelog
## 2024-11-06 - 2.2.2 - fix(core)
Fixed function call for fastPut in the test suite to ensure proper file upload handling.
- Updated dependencies in package.json to newer versions.
- Corrected the function call in test suite for file upload.
## 2024-10-26 - 2.2.1 - fix(core) ## 2024-10-26 - 2.2.1 - fix(core)
Fix import and typings for improved compatibility Fix import and typings for improved compatibility

View File

@ -14,12 +14,12 @@
"buildDocs": "tsdoc" "buildDocs": "tsdoc"
}, },
"devDependencies": { "devDependencies": {
"@git.zone/tsbuild": "^2.1.63", "@git.zone/tsbuild": "^2.2.0",
"@git.zone/tsbundle": "^2.0.6", "@git.zone/tsbundle": "^2.1.0",
"@git.zone/tsrun": "^1.2.49", "@git.zone/tsrun": "^1.3.3",
"@git.zone/tstest": "^1.0.72", "@git.zone/tstest": "^1.0.72",
"@push.rocks/tapbundle": "^5.0.4", "@push.rocks/tapbundle": "^5.4.1",
"@types/node": "^18.6.2" "@types/node": "^22.9.0"
}, },
"browserslist": [ "browserslist": [
"last 1 chrome versions" "last 1 chrome versions"
@ -37,8 +37,8 @@
"readme.md" "readme.md"
], ],
"dependencies": { "dependencies": {
"@push.rocks/smartbucket": "^2.0.2", "@push.rocks/smartbucket": "^3.0.23",
"@push.rocks/smartfile": "^10.0.4", "@push.rocks/smartfile": "^11.0.21",
"@push.rocks/smartpath": "^5.0.5", "@push.rocks/smartpath": "^5.0.5",
"@tsclass/tsclass": "^4.1.2", "@tsclass/tsclass": "^4.1.2",
"@types/s3rver": "^3.7.0", "@types/s3rver": "^3.7.0",

3166
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -20,7 +20,10 @@ tap.test('should be able to access buckets', async () => {
); );
const bucket = await smartbucketInstance.createBucket('testbucket'); const bucket = await smartbucketInstance.createBucket('testbucket');
const baseDirectory = await bucket.getBaseDirectory(); const baseDirectory = await bucket.getBaseDirectory();
await baseDirectory.fastStore('subdir/hello.txt', 'hi there!'); await baseDirectory.fastPut({
path: 'subdir/hello.txt',
contents: 'hi there!'
});
}); });
tap.test('should stop the instance', async () => { tap.test('should stop the instance', async () => {

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@push.rocks/smarts3', name: '@push.rocks/smarts3',
version: '2.2.1', version: '2.2.2',
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.'
} }