Comparing version 1.3.0 to 1.3.1
# clogy changelog | ||
## 1.3.1 | ||
- Added typescript declaration file | ||
- Added yarn.lock file | ||
## 1.3.0 | ||
@@ -4,0 +9,0 @@ |
@@ -1,2 +0,2 @@ | ||
/*! clogy - v1.3.0 * https://github.com/pgmanutd/clogy * (c) 2017 pgmanutd * licensed MIT */ | ||
/*! clogy - v1.3.1 * https://github.com/pgmanutd/clogy * (c) 2017 pgmanutd * licensed MIT */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object') |
@@ -1,3 +0,3 @@ | ||
/*! clogy - v1.3.0 * https://github.com/pgmanutd/clogy * (c) 2017 pgmanutd * licensed MIT */ | ||
/*! clogy - v1.3.1 * https://github.com/pgmanutd/clogy * (c) 2017 pgmanutd * licensed MIT */ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.clogy=t():e.clogy=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(7)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.LOGGING_METHODS=t.LOGGING_LEVELS=t.LOGGING_DEFAULT_OPTIONS=void 0;var r=n(4),i=o(r),u=n(5),l=o(u),s=n(6),f=o(s);t.LOGGING_DEFAULT_OPTIONS=i.default,t.LOGGING_LEVELS=l.default,t.LOGGING_METHODS=f.default},function(e,t,n){"use strict";function o(){return"undefined"!=typeof console}function r(e){return!!(e&&e>=s.LOGGING_LEVELS.range.min&&e<=s.LOGGING_LEVELS.range.max)}function i(e){return e===s.LOGGING_LEVELS.types.none}function u(e,t){return s.LOGGING_LEVELS.types[t]>=e}function l(){var e=new Date,t=e.toDateString(),n=e.toTimeString().match(/^([0-9]{2}:[0-9]{2}:[0-9]{2})/),o=n&&n.length?n[0]:"",r=("00"+e.getMilliseconds()).slice(-3);return t+" "+o+"."+r}t.__esModule=!0;var s=n(1);t.default={isConsoleDefined:o,isLogLevelValid:r,isNoneLogLevel:i,isLoggingAllowed:u,getDateTime:l}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.singleton=t.logging=t.common=void 0;var r=n(2),i=o(r),u=n(10),l=o(u),s=n(11),f=o(s);t.common=i.default,t.logging=l.default,t.singleton=f.default},function(e,t){"use strict";t.__esModule=!0,t.default=Object.freeze({showDateTime:!1,prefix:""})},function(e,t){"use strict";t.__esModule=!0,t.default=Object.freeze({get types(){return{log:1,trace:2,debug:3,info:4,warn:5,error:6,none:7}},get range(){return{min:this.types.log,max:this.types.none}}})},function(e,t){"use strict";t.__esModule=!0,t.default=["log","trace","debug","info","warn","error"]},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(8),i=o(r),u=new i.default;t.default=u,e.exports=u},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var l=n(3),s=n(9),f=o(s),c=function(e){function t(){return r(this,t),i(this,e.apply(this,arguments))}return u(t,e),t.prototype.noConflict=function(){return"undefined"!=typeof window&&window.clogy&&delete window.clogy,this},t.prototype.decorator=function(e){if("function"!=typeof e)throw new TypeError("Decorator should be a function");e(l.singleton.getInstance(this))},t}(f.default);t.default=c},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(1),l=n(3),s=function(){function e(){o(this,e),this._options={showDateTime:null,prefix:null},this._level=null,this._setDefaults()}return e.prototype._setDefaults=function(){this.setOptions(u.LOGGING_DEFAULT_OPTIONS),this.setLevel(this.LEVELS.info)},e.prototype.getOptions=function(){return this._options},e.prototype.setOptions=function(e){this._options=r({},this.getOptions(),e)},e.prototype.getLevel=function(){return this._level},e.prototype.setLevel=function(e){this._level="string"==typeof e?this.LEVELS[e.toLowerCase()]:e},e.prototype.stringifyAllowedLoggers=function(){var e=this,t="✔",n="✖";return u.LOGGING_METHODS.map(function(o,r){return r+1+": "+o+" "+(l.common.isLoggingAllowed(e.getLevel(),o)?t:n)}).join("\n")},e.prototype.enableAllLevels=function(){this.setLevel(this.LEVELS.log)},e.prototype.disableAllLevels=function(){this.setLevel(this.LEVELS.none)},i(e,[{key:"LEVELS",get:function(){return u.LOGGING_LEVELS.types}}]),e}(),f=s.prototype;u.LOGGING_METHODS.forEach(function(e){f[e]=function(){for(var t={currentLogLevel:this.getLevel(),loggingType:e,options:this.getOptions()},n=arguments.length,o=Array(n),r=0;r<n;r++)o[r]=arguments[r];l.logging.logToConsole(t,o)}}),t.default=s},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){var t=[];return e.showDateTime&&t.push(f.default.getDateTime()+": "),e.prefix&&t.push(e.prefix),t}function i(e,t){var n=console[e]||console[c];n&&Function.prototype.bind.call(n,console).apply(console,t)}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.currentLogLevel,n=e.loggingType,o=e.options,u=void 0===o?l.LOGGING_DEFAULT_OPTIONS:o,s=arguments[1];if(f.default.isConsoleDefined()){if(!f.default.isLogLevelValid(t))throw new RangeError("Invalid LogLevel set, Please set a valid LogLevel");!f.default.isNoneLogLevel(t)&&f.default.isLoggingAllowed(t,n)&&i(n,[].concat(r(u),s))}}t.__esModule=!0;var l=n(1),s=n(2),f=o(s),c="log";t.default={logToConsole:u}},function(e,t){"use strict";function n(e){var t=Object.getPrototypeOf;return t(t(e))}function o(e){return r||(r=n(e)),r}t.__esModule=!0;var r=void 0;t.default={getInstance:o}}])}); | ||
//# sourceMappingURL=clogy.min.js.map |
{ | ||
"name": "clogy", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "A logging library for browsers and nodejs environment", | ||
@@ -19,2 +19,3 @@ "homepage": "https://github.com/pgmanutd/clogy", | ||
"main": "lib/clogy.js", | ||
"types": "./index.d.ts", | ||
"engines": { | ||
@@ -28,2 +29,3 @@ "node": ">= 0.6.0" | ||
"CONTRIBUTING.md", | ||
"index.d.ts", | ||
"lib/" | ||
@@ -87,3 +89,3 @@ ], | ||
"eslint-plugin-lodash-fp": "^2.1.3", | ||
"express": "^4.14.0", | ||
"express": "^4.14.1", | ||
"flow-bin": "^0.38.0", | ||
@@ -93,3 +95,3 @@ "gulp": "^3.9.1", | ||
"gulp-eslint": "^3.0.1", | ||
"gulp-forever-monitor": "0.0.3", | ||
"gulp-forever-monitor": "1.0.0", | ||
"gulp-help": "^1.6.1", | ||
@@ -100,3 +102,3 @@ "gulp-load-plugins": "^1.4.0", | ||
"gulp-util": "^3.0.8", | ||
"html-webpack-plugin": "^2.26.0", | ||
"html-webpack-plugin": "^2.28.0", | ||
"karma": "^1.4.0", | ||
@@ -103,0 +105,0 @@ "karma-babel-preprocessor": "^6.0.1", |
@@ -47,15 +47,15 @@ # clogy [![npm](https://img.shields.io/npm/v/clogy.svg)](https://www.npmjs.com/package/clogy) [![Build Status](https://travis-ci.org/pgmanutd/clogy.svg?branch=master)](https://travis-ci.org/pgmanutd/clogy) [![Coverage Status](https://coveralls.io/repos/github/pgmanutd/clogy/badge.svg?branch=master)](https://coveralls.io/github/pgmanutd/clogy?branch=master) | ||
**rawgit**: ```//rawgit.com/pgmanutd/clogy/1.3.0/lib/clogy.js``` | ||
**rawgit**: ```//rawgit.com/pgmanutd/clogy/1.3.1/lib/clogy.js``` | ||
or | ||
**unpkg**: ```//unpkg.com/clogy@1.3.0/lib/clogy.js``` | ||
**unpkg**: ```//unpkg.com/clogy@1.3.1/lib/clogy.js``` | ||
* ```Production```: | ||
**rawgit**: ```//cdn.rawgit.com/pgmanutd/clogy/1.3.0/lib/clogy.min.js``` | ||
**rawgit**: ```//cdn.rawgit.com/pgmanutd/clogy/1.3.1/lib/clogy.min.js``` | ||
or | ||
**unpkg**: ```//unpkg.com/clogy@1.3.0/lib/clogy.min.js``` | ||
**unpkg**: ```//unpkg.com/clogy@1.3.1/lib/clogy.min.js``` | ||
@@ -62,0 +62,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
120950
10
619