Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@compodoc/ngd-core

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@compodoc/ngd-core - npm Package Compare versions

Comparing version 2.0.0-alpha.3 to 2.0.0

1

dist/lang/logger.d.ts

@@ -7,2 +7,3 @@ export declare class Logger {

constructor();
setVerbose(level: boolean): void;
title(...args: any[]): void;

@@ -9,0 +10,0 @@ info(...args: any[]): void;

49

dist/lang/logger.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var gutil = require('gulp-util');
var c = gutil.colors;
var c = require('ansi-colors');
var pkg = require('../../package.json');
var fancyLog = require('fancy-log');
var LEVEL;

@@ -14,9 +14,12 @@ (function (LEVEL) {

})(LEVEL || (LEVEL = {}));
var Logger = (function () {
var Logger = /** @class */ (function () {
function Logger() {
this.name = pkg.name;
this.version = pkg.version;
this.logger = gutil.log;
this.silent = true;
this.logger = fancyLog;
this.silent = false;
}
Logger.prototype.setVerbose = function (level) {
this.silent = level;
};
Logger.prototype.title = function () {

@@ -27,5 +30,5 @@ var args = [];

}
if (!this.silent)
return;
this.logger(c.cyan.apply(c, args));
if (this.silent == false) {
this.logger(c.cyan.apply(c, args));
}
};

@@ -37,5 +40,5 @@ Logger.prototype.info = function () {

}
if (!this.silent)
return;
this.logger(this.format.apply(this, [LEVEL.INFO].concat(args)));
if (this.silent == false) {
this.logger(this.format.apply(this, [LEVEL.INFO].concat(args)));
}
};

@@ -47,5 +50,5 @@ Logger.prototype.warn = function () {

}
if (!this.silent)
return;
this.logger(this.format.apply(this, [LEVEL.WARN].concat(args)));
if (this.silent == false) {
this.logger(this.format.apply(this, [LEVEL.WARN].concat(args)));
}
};

@@ -57,5 +60,5 @@ Logger.prototype.error = function () {

}
if (!this.silent)
return;
this.logger(this.format.apply(this, [LEVEL.FATAL].concat(args)));
if (this.silent == false) {
this.logger(this.format.apply(this, [LEVEL.FATAL].concat(args)));
}
};

@@ -67,5 +70,5 @@ Logger.prototype.fatal = function () {

}
if (!this.silent)
return;
this.error.apply(this, args);
if (this.silent == false) {
this.error.apply(this, args);
}
};

@@ -77,5 +80,5 @@ Logger.prototype.debug = function () {

}
if (!this.silent)
return;
this.logger(this.format.apply(this, [LEVEL.DEBUG].concat(args)));
if (this.silent == false) {
this.logger(this.format.apply(this, [LEVEL.DEBUG].concat(args)));
}
};

@@ -82,0 +85,0 @@ Logger.prototype.trace = function (error, file) {

{
"name": "@compodoc/ngd-core",
"version": "2.0.0-alpha.3",
"version": "2.0.0",
"description": "A core library for @compodoc/ngd",

@@ -30,3 +30,4 @@ "main": "dist/index.js",

"dependencies": {
"gulp-util": "^3.0.8",
"ansi-colors": "^1.0.1",
"fancy-log": "^1.3.2",
"typescript": "^2.4.2"

@@ -33,0 +34,0 @@ },

@@ -1,4 +0,4 @@

let gutil = require('gulp-util');
let c = gutil.colors;
let c = require('ansi-colors');
let pkg = require('../../package.json');
const fancyLog = require('fancy-log');

@@ -22,44 +22,54 @@ enum LEVEL {

this.version = pkg.version;
this.logger = gutil.log;
this.silent = true;
}
this.logger = fancyLog;
this.silent = false;
}
setVerbose(level: boolean) {
this.silent = level;
}
title(...args) {
if(!this.silent) return;
this.logger(
c.cyan(...args)
);
if(this.silent == false) {
this.logger(
c.cyan(...args)
);
}
}
info(...args) {
if(!this.silent) return;
this.logger(
this.format(LEVEL.INFO, ...args)
);
if(this.silent == false) {
this.logger(
this.format(LEVEL.INFO, ...args)
);
}
}
warn(...args) {
if(!this.silent) return;
this.logger(
this.format(LEVEL.WARN, ...args)
);
if(this.silent == false) {
this.logger(
this.format(LEVEL.WARN, ...args)
);
}
}
error(...args) {
if(!this.silent) return;
this.logger(
this.format(LEVEL.FATAL, ...args)
);
if(this.silent == false) {
this.logger(
this.format(LEVEL.FATAL, ...args)
);
}
}
fatal(...args) {
if(!this.silent) return;
this.error(...args);
}
if(this.silent == false) {
this.error(...args);
}
}
debug(...args) {
if(!this.silent) return;
this.logger(
this.format(LEVEL.DEBUG, ...args)
);
if(this.silent == false) {
this.logger(
this.format(LEVEL.DEBUG, ...args)
);
}
}

@@ -66,0 +76,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc