Socket
Socket
Sign inDemoInstall

@pnp/logging

Package Overview
Dependencies
Maintainers
7
Versions
1046
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnp/logging - npm Package Compare versions

Comparing version 1.2.7 to 1.2.8-0

9

dist/logging.es5.js
/**
* @license
* v1.2.7
* v1.2.8-0
* MIT (https://github.com/pnp/pnpjs/blob/master/LICENSE)

@@ -188,3 +188,8 @@ * Copyright (c) 2018 Microsoft

if (entry.data !== undefined) {
msg.push(" Data: " + JSON.stringify(entry.data));
try {
msg.push(" Data: " + JSON.stringify(entry.data));
}
catch (e) {
msg.push(" Data: Error in stringify of supplied data " + e);
}
}

@@ -191,0 +196,0 @@ return msg.join("");

/**
* @license
* v1.2.7
* v1.2.8-0
* MIT (https://github.com/pnp/pnpjs/blob/master/LICENSE)

@@ -178,3 +178,8 @@ * Copyright (c) 2018 Microsoft

if (entry.data !== undefined) {
msg.push(" Data: " + JSON.stringify(entry.data));
try {
msg.push(" Data: " + JSON.stringify(entry.data));
}
catch (e) {
msg.push(" Data: Error in stringify of supplied data " + e);
}
}

@@ -181,0 +186,0 @@ return msg.join("");

/**
* @license
* v1.2.7
* v1.2.8-0
* MIT (https://github.com/pnp/pnpjs/blob/master/LICENSE)

@@ -10,3 +10,3 @@ * Copyright (c) 2018 Microsoft

*/
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["pnp.logging"]=n():e["pnp.logging"]=n()}(window,function(){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=0)}([function(e,n,t){"use strict";t.r(n);var r,o=function(){function e(){}return Object.defineProperty(e,"activeLogLevel",{get:function(){return e.instance.activeLogLevel},set:function(n){e.instance.activeLogLevel=n},enumerable:!0,configurable:!0}),Object.defineProperty(e,"instance",{get:function(){return void 0!==e._instance&&null!==e._instance||(e._instance=new i),e._instance},enumerable:!0,configurable:!0}),e.subscribe=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];n.map(function(n){return e.instance.subscribe(n)})},e.clearSubscribers=function(){return e.instance.clearSubscribers()},Object.defineProperty(e,"count",{get:function(){return e.instance.count},enumerable:!0,configurable:!0}),e.write=function(n,t){void 0===t&&(t=1),e.instance.log({level:t,message:n})},e.writeJSON=function(e,n){void 0===n&&(n=1),this.write(JSON.stringify(e),n)},e.log=function(n){e.instance.log(n)},e.error=function(n){e.instance.log({data:n,level:3,message:n.message})},e}(),i=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(e){void 0!==e&&this.activeLogLevel<=e.level&&this.subscribers.map(function(n){return n.log(e)})},e}();!function(e){e[e.Verbose=0]="Verbose",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error",e[e.Off=99]="Off"}(r||(r={}));var u=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}(),c=function(){function e(e){this.method=e}return e.prototype.log=function(e){this.method(e)},e}();t.d(n,"Logger",function(){return o}),t.d(n,"LogLevel",function(){return r}),t.d(n,"ConsoleListener",function(){return u}),t.d(n,"FunctionListener",function(){return c})}])});
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["pnp.logging"]=n():e["pnp.logging"]=n()}(window,function(){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=0)}([function(e,n,t){"use strict";t.r(n);var r,o=function(){function e(){}return Object.defineProperty(e,"activeLogLevel",{get:function(){return e.instance.activeLogLevel},set:function(n){e.instance.activeLogLevel=n},enumerable:!0,configurable:!0}),Object.defineProperty(e,"instance",{get:function(){return void 0!==e._instance&&null!==e._instance||(e._instance=new i),e._instance},enumerable:!0,configurable:!0}),e.subscribe=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];n.map(function(n){return e.instance.subscribe(n)})},e.clearSubscribers=function(){return e.instance.clearSubscribers()},Object.defineProperty(e,"count",{get:function(){return e.instance.count},enumerable:!0,configurable:!0}),e.write=function(n,t){void 0===t&&(t=1),e.instance.log({level:t,message:n})},e.writeJSON=function(e,n){void 0===n&&(n=1),this.write(JSON.stringify(e),n)},e.log=function(n){e.instance.log(n)},e.error=function(n){e.instance.log({data:n,level:3,message:n.message})},e}(),i=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(e){void 0!==e&&this.activeLogLevel<=e.level&&this.subscribers.map(function(n){return n.log(e)})},e}();!function(e){e[e.Verbose=0]="Verbose",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error",e[e.Off=99]="Off"}(r||(r={}));var u=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=[];if(n.push("Message: "+e.message),void 0!==e.data)try{n.push(" Data: "+JSON.stringify(e.data))}catch(e){n.push(" Data: Error in stringify of supplied data "+e)}return n.join("")},e}(),c=function(){function e(e){this.method=e}return e.prototype.log=function(e){this.method(e)},e}();t.d(n,"Logger",function(){return o}),t.d(n,"LogLevel",function(){return r}),t.d(n,"ConsoleListener",function(){return u}),t.d(n,"FunctionListener",function(){return c})}])});
//# sourceMappingURL=logging.es5.umd.bundle.min.js.map
/**
* @license
* v1.2.7
* v1.2.8-0
* MIT (https://github.com/pnp/pnpjs/blob/master/LICENSE)

@@ -193,3 +193,8 @@ * Copyright (c) 2018 Microsoft

if (entry.data !== undefined) {
msg.push(" Data: " + JSON.stringify(entry.data));
try {
msg.push(" Data: " + JSON.stringify(entry.data));
}
catch (e) {
msg.push(" Data: Error in stringify of supplied data " + e);
}
}

@@ -196,0 +201,0 @@ return msg.join("");

/**
* @license
* v1.2.7
* v1.2.8-0
* MIT (https://github.com/pnp/pnpjs/blob/master/LICENSE)

@@ -10,3 +10,3 @@ * Copyright (c) 2018 Microsoft

*/
!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),this.write(JSON.stringify(e),n)},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})});
!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 r),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),this.write(JSON.stringify(e),n)},t.log=function(e){t.instance.log(e)},t.error=function(e){t.instance.log({data:e,level:3,message:e.message})},t}(),r=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 o=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=[];if(n.push("Message: "+e.message),void 0!==e.data)try{n.push(" Data: "+JSON.stringify(e.data))}catch(e){n.push(" Data: Error in stringify of supplied data "+e)}return 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=o,e.FunctionListener=i,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=logging.es5.umd.min.js.map
/**
* @license
* v1.2.7
* v1.2.8-0
* MIT (https://github.com/pnp/pnpjs/blob/master/LICENSE)

@@ -157,3 +157,8 @@ * Copyright (c) 2018 Microsoft

if (entry.data !== undefined) {
msg.push(" Data: " + JSON.stringify(entry.data));
try {
msg.push(" Data: " + JSON.stringify(entry.data));
}
catch (e) {
msg.push(` Data: Error in stringify of supplied data ${e}`);
}
}

@@ -160,0 +165,0 @@ return msg.join("");

{
"name": "@pnp/logging",
"version": "1.2.7",
"version": "1.2.8-0",
"description": "pnp - light-weight, subscribable logging framework",

@@ -5,0 +5,0 @@ "main": "./dist/logging.es5.umd.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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