Comparing version 0.0.0 to 0.0.1-test
@@ -6,4 +6,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LinkedList = void 0; | ||
const LinkedList_1 = __importDefault(require("./dataStructures/LinkedList")); | ||
exports.LinkedList = LinkedList_1.default; | ||
exports.SingleLinkedList = void 0; | ||
const SingleLinkedList_1 = __importDefault(require("./dataStructures/SingleLinkedList")); | ||
exports.SingleLinkedList = SingleLinkedList_1.default; |
@@ -7,56 +7,56 @@ "use strict"; | ||
} | ||
log(message) { | ||
log(data) { | ||
if (this.prefix) { | ||
console.log(`[${this.prefix}] ${message}`); | ||
console.log(`[${this.prefix}] ${data}`); | ||
} | ||
else { | ||
console.log(message); | ||
console.log(data); | ||
} | ||
} | ||
error(message) { | ||
error(data) { | ||
if (this.prefix) { | ||
console.error(`[${this.prefix}] ${message}`); | ||
console.error(`[${this.prefix}] ${data}`); | ||
} | ||
else { | ||
console.error(message); | ||
console.error(data); | ||
} | ||
} | ||
warn(message) { | ||
warn(data) { | ||
if (this.prefix) { | ||
console.warn(`[${this.prefix}] ${message}`); | ||
console.warn(`[${this.prefix}] ${data}`); | ||
} | ||
else { | ||
console.warn(message); | ||
console.warn(data); | ||
} | ||
} | ||
info(message) { | ||
info(data) { | ||
if (this.prefix) { | ||
console.info(`[${this.prefix}] ${message}`); | ||
console.info(`[${this.prefix}] ${data}`); | ||
} | ||
else { | ||
console.info(message); | ||
console.info(data); | ||
} | ||
} | ||
debug(message) { | ||
debug(data) { | ||
if (this.prefix) { | ||
console.debug(`[${this.prefix}] ${message}`); | ||
console.debug(`[${this.prefix}] ${data}`); | ||
} | ||
else { | ||
console.debug(message); | ||
console.debug(data); | ||
} | ||
} | ||
trace(message) { | ||
trace(data) { | ||
if (this.prefix) { | ||
console.trace(`[${this.prefix}] ${message}`); | ||
console.trace(`[${this.prefix}] ${data}`); | ||
} | ||
else { | ||
console.trace(message); | ||
console.trace(data); | ||
} | ||
} | ||
group(message) { | ||
group(data) { | ||
if (this.prefix) { | ||
console.group(`[${this.prefix}] ${message}`); | ||
console.group(`[${this.prefix}] ${data}`); | ||
} | ||
else { | ||
console.group(message); | ||
console.group(data); | ||
} | ||
@@ -67,8 +67,8 @@ } | ||
} | ||
verbose(message) { | ||
verbose(data) { | ||
if (this.prefix) { | ||
console.log(`[VERBOSE] [${this.prefix}] ${message}`); | ||
console.log(`[VERBOSE] [${this.prefix}] ${data}`); | ||
} | ||
else { | ||
console.log(`[VERBOSE] ${message}`); | ||
console.log(`[VERBOSE] ${data}`); | ||
} | ||
@@ -75,0 +75,0 @@ } |
{ | ||
"name": "dsacjs", | ||
"version": "0.0.0", | ||
"version": "0.0.1-test", | ||
"description": "A high-performance JavaScript and TypeScript library offering a comprehensive set of efficient data structures. Simplify your algorithm implementation and data manipulation with optimized, easy-to-use tools.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -1,2 +0,2 @@ | ||
import LinkedList from "./dataStructures/LinkedList"; | ||
export { LinkedList }; | ||
import SingleLinkedList from "./dataStructures/SingleLinkedList"; | ||
export { SingleLinkedList }; |
export default class Logger { | ||
private readonly prefix; | ||
constructor(prefix?: string); | ||
log(message: string): void; | ||
error(message: string): void; | ||
warn(message: string): void; | ||
info(message: string): void; | ||
debug(message: string): void; | ||
trace(message: string): void; | ||
group(message: string): void; | ||
log(data: any): void; | ||
error(data: any): void; | ||
warn(data: any): void; | ||
info(data: any): void; | ||
debug(data: any): void; | ||
trace(data: any): void; | ||
group(data: any): void; | ||
groupEnd(): void; | ||
verbose(message: string): void; | ||
verbose(data: any): void; | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9320
218
1