Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
2293ad69e1 | |||
0a150a8a09 |
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smarts3",
|
"name": "@pushrocks/smarts3",
|
||||||
"version": "1.0.7",
|
"version": "1.0.8",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@pushrocks/smarts3",
|
"name": "@pushrocks/smarts3",
|
||||||
"version": "1.0.7",
|
"version": "1.0.8",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/smartfile": "^9.0.3",
|
"@pushrocks/smartfile": "^9.0.3",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smarts3",
|
"name": "@pushrocks/smarts3",
|
||||||
"version": "1.0.7",
|
"version": "1.0.8",
|
||||||
"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",
|
||||||
|
14
ts/index.ts
14
ts/index.ts
@ -16,12 +16,6 @@ export class Smarts3 {
|
|||||||
|
|
||||||
// INSTANCE
|
// INSTANCE
|
||||||
public options: ISmarts3ContructorOptions;
|
public options: ISmarts3ContructorOptions;
|
||||||
public dataForClient = {
|
|
||||||
s3AccessKey: 'S3RVER',
|
|
||||||
s3AccessSecret: 'S3RVER',
|
|
||||||
port: 3000,
|
|
||||||
useSsl: false
|
|
||||||
}
|
|
||||||
public s3Instance: plugins.s3rver;
|
public s3Instance: plugins.s3rver;
|
||||||
|
|
||||||
constructor(optionsArg: ISmarts3ContructorOptions) {
|
constructor(optionsArg: ISmarts3ContructorOptions) {
|
||||||
@ -50,11 +44,11 @@ export class Smarts3 {
|
|||||||
|
|
||||||
public async getS3Descriptor(): Promise<plugins.smartbucket.ISmartBucketConfig> {
|
public async getS3Descriptor(): Promise<plugins.smartbucket.ISmartBucketConfig> {
|
||||||
return {
|
return {
|
||||||
accessKey: this.dataForClient.s3AccessKey,
|
accessKey: 'S3RVER',
|
||||||
accessSecret: this.dataForClient.s3AccessSecret,
|
accessSecret: 'S3RVER',
|
||||||
endpoint: 'localhost',
|
endpoint: 'localhost',
|
||||||
port: this.dataForClient.port,
|
port: this.options.port,
|
||||||
useSsl: this.dataForClient.useSsl,
|
useSsl: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user