initial
This commit is contained in:
11
dist/index.d.ts
vendored
Normal file
11
dist/index.d.ts
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
export declare class SmartDebug {
|
||||
private debugEnabled;
|
||||
/**
|
||||
* enables debugging output
|
||||
*/
|
||||
enableDebugging(): void;
|
||||
/**
|
||||
* logs a message based on the contraints of the SmartDebug instance
|
||||
*/
|
||||
log(logObject: any): void;
|
||||
}
|
23
dist/index.js
vendored
Normal file
23
dist/index.js
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
class SmartDebug {
|
||||
constructor() {
|
||||
this.debugEnabled = false;
|
||||
}
|
||||
/**
|
||||
* enables debugging output
|
||||
*/
|
||||
enableDebugging() {
|
||||
this.debugEnabled = true;
|
||||
}
|
||||
/**
|
||||
* logs a message based on the contraints of the SmartDebug instance
|
||||
*/
|
||||
log(logObject) {
|
||||
if (this.debugEnabled) {
|
||||
console.log(logObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
exports.SmartDebug = SmartDebug;
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUVBO0lBQUE7UUFDVSxpQkFBWSxHQUFZLEtBQUssQ0FBQTtJQWtCdkMsQ0FBQztJQWhCQzs7T0FFRztJQUNILGVBQWU7UUFDYixJQUFJLENBQUMsWUFBWSxHQUFHLElBQUksQ0FBQTtJQUMxQixDQUFDO0lBRUQ7O09BRUc7SUFDSCxHQUFHLENBQUUsU0FBYztRQUNqQixFQUFFLENBQUMsQ0FBQyxJQUFJLENBQUMsWUFBWSxDQUFDLENBQUMsQ0FBQztZQUN0QixPQUFPLENBQUMsR0FBRyxDQUFDLFNBQVMsQ0FBQyxDQUFBO1FBQ3hCLENBQUM7SUFDSCxDQUFDO0NBRUY7QUFuQkQsZ0NBbUJDIn0=
|
1
dist/smartdebug.plugins.d.ts
vendored
Normal file
1
dist/smartdebug.plugins.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
import 'typings-global';
|
4
dist/smartdebug.plugins.js
vendored
Normal file
4
dist/smartdebug.plugins.js
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
require("typings-global");
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRkZWJ1Zy5wbHVnaW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRkZWJ1Zy5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMEJBQXVCIn0=
|
Reference in New Issue
Block a user