@pnp/logging
Advanced tools
Comparing version 1.1.0 to 1.1.1
/** | ||
@license | ||
* @pnp/logging v1.1.0 - pnp - light-weight, subscribable logging framework | ||
* @pnp/logging v1.1.1 - pnp - light-weight, subscribable logging framework | ||
* MIT (https://github.com/pnp/pnpjs/blob/master/LICENSE) | ||
@@ -5,0 +5,0 @@ * Copyright (c) 2018 Microsoft |
/** | ||
@license | ||
* @pnp/logging v1.1.0 - pnp - light-weight, subscribable logging framework | ||
* @pnp/logging v1.1.1 - pnp - light-weight, subscribable logging framework | ||
* MIT (https://github.com/pnp/pnpjs/blob/master/LICENSE) | ||
@@ -5,0 +5,0 @@ * Copyright (c) 2018 Microsoft |
/** | ||
@license | ||
* @pnp/logging v1.1.0 - pnp - light-weight, subscribable logging framework | ||
* @pnp/logging v1.1.1 - pnp - light-weight, subscribable logging framework | ||
* MIT (https://github.com/pnp/pnpjs/blob/master/LICENSE) | ||
@@ -5,0 +5,0 @@ * Copyright (c) 2018 Microsoft |
/** | ||
@license | ||
* @pnp/logging v1.1.0 - pnp - light-weight, subscribable logging framework | ||
* @pnp/logging v1.1.1 - pnp - light-weight, subscribable logging framework | ||
* MIT (https://github.com/pnp/pnpjs/blob/master/LICENSE) | ||
@@ -5,0 +5,0 @@ * Copyright (c) 2018 Microsoft |
@@ -1,10 +0,1 @@ | ||
/** | ||
@license | ||
* @pnp/logging v1.1.0 - pnp - light-weight, subscribable logging framework | ||
* MIT (https://github.com/pnp/pnpjs/blob/master/LICENSE) | ||
* Copyright (c) 2018 Microsoft | ||
* docs: https://pnp.github.io/pnpjs/ | ||
* source: https:github.com/pnp/pnpjs | ||
* bugs: https://github.com/pnp/pnpjs/issues | ||
*/ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e.pnp=e.pnp||{},e.pnp.logging={}))}(this,function(e){"use strict";var n,t=function(){function t(){}return Object.defineProperty(t,"activeLogLevel",{get:function(){return t.instance.activeLogLevel},set:function(e){t.instance.activeLogLevel=e},enumerable:!0,configurable:!0}),Object.defineProperty(t,"instance",{get:function(){return null==t._instance&&(t._instance=new o),t._instance},enumerable:!0,configurable:!0}),t.subscribe=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];e.map(function(e){return t.instance.subscribe(e)})},t.clearSubscribers=function(){return t.instance.clearSubscribers()},Object.defineProperty(t,"count",{get:function(){return t.instance.count},enumerable:!0,configurable:!0}),t.write=function(e,n){void 0===n&&(n=1),t.instance.log({level:n,message:e})},t.writeJSON=function(e,n){void 0===n&&(n=1),t.instance.log({level:n,message:JSON.stringify(e)})},t.log=function(e){t.instance.log(e)},t.error=function(e){t.instance.log({data:e,level:3,message:e.message})},t}(),o=function(){function e(e,n){void 0===e&&(e=2),void 0===n&&(n=[]),this.activeLogLevel=e,this.subscribers=n}return e.prototype.subscribe=function(e){this.subscribers.push(e)},e.prototype.clearSubscribers=function(){var e=this.subscribers.slice(0);return this.subscribers.length=0,e},Object.defineProperty(e.prototype,"count",{get:function(){return this.subscribers.length},enumerable:!0,configurable:!0}),e.prototype.write=function(e,n){void 0===n&&(n=1),this.log({level:n,message:e})},e.prototype.log=function(n){void 0!==n&&this.activeLogLevel<=n.level&&this.subscribers.map(function(e){return e.log(n)})},e}();(n=e.LogLevel||(e.LogLevel={}))[n.Verbose=0]="Verbose",n[n.Info=1]="Info",n[n.Warning=2]="Warning",n[n.Error=3]="Error",n[n.Off=99]="Off";var r=function(){function e(){}return e.prototype.log=function(e){var n=this.format(e);switch(e.level){case 0:case 1:console.log(n);break;case 2:console.warn(n);break;case 3:console.error(n)}},e.prototype.format=function(e){var n=[];return n.push("Message: "+e.message),void 0!==e.data&&n.push(" Data: "+JSON.stringify(e.data)),n.join("")},e}(),i=function(){function e(e){this.method=e}return e.prototype.log=function(e){this.method(e)},e}();e.Logger=t,e.ConsoleListener=r,e.FunctionListener=i,Object.defineProperty(e,"__esModule",{value:!0})}); |
/** | ||
@license | ||
* @pnp/logging v1.1.0 - pnp - light-weight, subscribable logging framework | ||
* @pnp/logging v1.1.1 - pnp - light-weight, subscribable logging framework | ||
* MIT (https://github.com/pnp/pnpjs/blob/master/LICENSE) | ||
@@ -5,0 +5,0 @@ * Copyright (c) 2018 Microsoft |
{ | ||
"name": "@pnp/logging", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "pnp - light-weight, subscribable logging framework", | ||
@@ -5,0 +5,0 @@ "main": "./dist/logging.es5.umd.js", |
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
125083
1124