dowpro-replay-watcher-dal
Advanced tools
Comparing version 0.1.1 to 0.1.2
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
class DalConfiguration { | ||
static Setup(url, database, username, password) { | ||
this.url = url; | ||
this.database = database; | ||
this.username = username; | ||
this.password = password; | ||
static Setup(config) { | ||
this.url = config.url; | ||
this.database = config.database; | ||
this.username = config.username; | ||
this.password = config.password; | ||
} | ||
@@ -10,0 +10,0 @@ static Verify() { |
{ | ||
"name": "dowpro-replay-watcher-dal", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Data access layer for dowpro ladder", | ||
@@ -5,0 +5,0 @@ "main": "js/index.js", |
@@ -25,2 +25,3 @@ Data access layer for dowpro ladder | ||
* 0.1.0 : Oh no! Forgot authorized users store in exports. | ||
* 0.1.1 : Renaming users store to authorized users. | ||
* 0.1.1 : Renaming users store to authorized users. | ||
* 0.1.2 : Simplifying setup. |
@@ -0,1 +1,7 @@ | ||
export interface DalConfig { | ||
"url": string; | ||
"database": string; | ||
"username": string; | ||
"password": string; | ||
} | ||
export declare abstract class DalConfiguration { | ||
@@ -6,5 +12,5 @@ static url: string; | ||
static password: string; | ||
static Setup(url: string, database: string, username: string, password: string): void; | ||
static Setup(config: DalConfig): void; | ||
static Verify(): void; | ||
static SwitchDatabase(database: string, username: string, password: string): void; | ||
} |
Sorry, the diff of this file is not supported yet
33690
504
26