Compare commits

..

2 Commits

Author SHA1 Message Date
070eb559b9 1.0.9 2021-12-20 18:29:19 +01:00
d07e30d7fb fix(core): update 2021-12-20 18:29:18 +01:00
3 changed files with 4 additions and 10 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "@pushrocks/smarts3", "name": "@pushrocks/smarts3",
"version": "1.0.8", "version": "1.0.9",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@pushrocks/smarts3", "name": "@pushrocks/smarts3",
"version": "1.0.8", "version": "1.0.9",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@pushrocks/smartfile": "^9.0.3", "@pushrocks/smartfile": "^9.0.3",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smarts3", "name": "@pushrocks/smarts3",
"version": "1.0.8", "version": "1.0.9",
"private": false, "private": false,
"description": "create an s3 endpoint that maps to a local directory", "description": "create an s3 endpoint that maps to a local directory",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",

View File

@@ -15,13 +15,7 @@ tap.test('should create a smarts3 instance and run it', async toolsArg => {
}); });
tap.test('should be able to access buckets', async () => { tap.test('should be able to access buckets', async () => {
const smartbucketInstance = new plugins.smartbucket.SmartBucket({ const smartbucketInstance = new plugins.smartbucket.SmartBucket(await testSmarts3Instance.getS3Descriptor());
endpoint: 'localhost',
port: 3000,
useSsl: false,
accessKey: 'S3RVER',
accessSecret: 'S3RVER'
});
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.fastStore('subdir/hello.txt', 'hi there!');