Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 52bad357fe | |||
| 3ffc38dac5 |
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smarts3",
|
"name": "@pushrocks/smarts3",
|
||||||
"version": "1.0.3",
|
"version": "1.0.4",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@pushrocks/smarts3",
|
"name": "@pushrocks/smarts3",
|
||||||
"version": "1.0.3",
|
"version": "1.0.4",
|
||||||
"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.3",
|
"version": "1.0.4",
|
||||||
"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",
|
||||||
|
|||||||
10
ts/index.ts
10
ts/index.ts
@@ -8,10 +8,20 @@ export interface ISmarts3ContructorOptions {
|
|||||||
|
|
||||||
export class Smarts3 {
|
export class Smarts3 {
|
||||||
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) {
|
||||||
this.options = optionsArg;
|
this.options = optionsArg;
|
||||||
|
this.options = {
|
||||||
|
...this.options,
|
||||||
|
...optionsArg
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async start() {
|
public async start() {
|
||||||
|
|||||||
Reference in New Issue
Block a user