New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

argon-logger

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

argon-logger - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

18

dist/js/argonLogger.js

@@ -5,3 +5,3 @@ /**!

* @author Sachin Singh <contactsachinsingh@gmail.com>
* @version v0.1.0
* @version v0.1.2
* @license MIT

@@ -13,3 +13,3 @@ */

(global = global || self, global.Logger = factory());
}(this, function () { 'use strict';
}(this, (function () { 'use strict';

@@ -86,3 +86,3 @@ function _typeof(obj) {

if (i % 2) {
ownKeys(source, true).forEach(function (key) {
ownKeys(Object(source), true).forEach(function (key) {
_defineProperty(target, key, source[key]);

@@ -93,3 +93,3 @@ });

} else {
ownKeys(source).forEach(function (key) {
ownKeys(Object(source)).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));

@@ -237,6 +237,6 @@ });

) {
param.key = param.key.trim();
param.value = "".concat(param.value).trim();
allowedParams.push(param);
}
param.key = param.key.trim();
param.value = "".concat(param.value).trim();
allowedParams.push(param);
}
});

@@ -498,3 +498,3 @@ var result = false;

}));
})));
//# sourceMappingURL=argonLogger.js.map

@@ -1,1 +0,8 @@

!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(e=e||self).Logger=o()}(this,(function(){"use strict";function e(o){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(o)}function o(e,o){for(var n=0;n<o.length;n++){var t=o[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function n(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function t(e,o){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);o&&(t=t.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,t)}return n}function r(e,o){return function(e){if(Array.isArray(e))return e}(e)||function(e,o){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],t=!0,r=!1,l=void 0;try{for(var i,a=e[Symbol.iterator]();!(t=(i=a.next()).done)&&(n.push(i.value),!o||n.length!==o);t=!0);}catch(e){r=!0,l=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw l}}return n}(e,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function l(e,o){return Object.prototype.hasOwnProperty.call(e,o)}function i(o,n){var t=Array.isArray(n.allowedQueryStringParameters)?n.allowedQueryStringParameters:[],i=function(e){return(e=e.substring("?"===e.charAt(0)?1:0)).split("&").map((function(e){var o=r(e.split("=").map((function(e){return decodeURIComponent(e).trim()})),2);return{key:o[0],value:o[1]}}))}(o),a=[];t.forEach((function(o){if("string"==typeof o){var n=r(o.split("="),2),t=n[0],i=n[1],c=void 0===i||i;a.push({key:t,value:c})}else o&&"object"===e(o)&&l(o,"key")&&l(o,"value")&&(o.key=o.key.trim(),o.value="".concat(o.value).trim(),a.push(o))}));var c=!1;return a.forEach((function(e){var o=!!i.filter((function(o){return e.key===o.key&&(e.value===o.value||!0===e.value)})).length;c=c||o})),c}function a(){return"function"==typeof this.config.test?this.config.test():"undefined"!=typeof console&&(e=this.location.hostname,o=this.config,(0===(n=Array.isArray(o.allowedHostnames)?o.allowedHostnames:[]).length||!!n.filter((function(o){return o.indexOf(e)>-1})).length)&&function(e,o){var n=Array.isArray(o.allowedPorts)?o.allowedPorts:[];return 0===(n=n.map((function(e){return"".concat(e).trim()}))).length||n.indexOf(e)>-1}(this.location.port,this.config)||i(this.location.search,this.config))&&!this.config.disable;var e,o,n}return function(){function e(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=Object.freeze(function(e){for(var o=1;o<arguments.length;o++){var r=null!=arguments[o]?arguments[o]:{};o%2?t(r,!0).forEach((function(o){n(e,o,r[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t(r).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))}))}return e}({allowedHostnames:["localhost","127.0.0.1","0.0.0.0"],disable:!1,allowedQueryStringParameters:["debug"],allowedPorts:[]},o)),this.location="undefined"==typeof window?{}:window.location,this.URL=this.location.href}var r,l,i;return r=e,(l=[{key:"isLoggingAllowed",value:function(){return a.apply(this)}},{key:"log",value:function(){var e;if(this.isLoggingAllowed()&&console.log)return(e=console).log.apply(e,arguments)}},{key:"warn",value:function(){var e;this.isLoggingAllowed()&&console.warn&&(e=console).warn.apply(e,arguments)}},{key:"debug",value:function(){var e;this.isLoggingAllowed()&&console.debug&&(e=console).debug.apply(e,arguments)}},{key:"error",value:function(){var e;this.isLoggingAllowed()&&console.error&&(e=console).error.apply(e,arguments)}},{key:"info",value:function(){var e;this.isLoggingAllowed()&&console.info&&(e=console).info.apply(e,arguments)}},{key:"dir",value:function(){var e;this.isLoggingAllowed()&&console.dir&&(e=console).dir.apply(e,arguments)}},{key:"dirxml",value:function(){var e;this.isLoggingAllowed()&&console.dirxml&&(e=console).dirxml.apply(e,arguments)}},{key:"table",value:function(){var e;this.isLoggingAllowed()&&console.table&&(e=console).table.apply(e,arguments)}},{key:"trace",value:function(){var e;this.isLoggingAllowed()&&console.trace&&(e=console).trace.apply(e,arguments)}},{key:"group",value:function(){var e;this.isLoggingAllowed()&&console.group&&(e=console).group.apply(e,arguments)}},{key:"groupCollapsed",value:function(){var e;this.isLoggingAllowed()&&console.groupCollapsed&&(e=console).groupCollapsed.apply(e,arguments)}},{key:"groupEnd",value:function(){var e;this.isLoggingAllowed()&&console.groupEnd&&(e=console).groupEnd.apply(e,arguments)}},{key:"clear",value:function(){var e;this.isLoggingAllowed()&&console.clear&&(e=console).clear.apply(e,arguments)}},{key:"count",value:function(){var e;this.isLoggingAllowed()&&console.count&&(e=console).count.apply(e,arguments)}},{key:"countReset",value:function(){var e;this.isLoggingAllowed()&&console.countReset&&(e=console).countReset.apply(e,arguments)}},{key:"assert",value:function(){var e;this.isLoggingAllowed()&&console.assert&&(e=console).assert.apply(e,arguments)}},{key:"profile",value:function(){var e;this.isLoggingAllowed()&&console.profile&&(e=console).profile.apply(e,arguments)}},{key:"profileEnd",value:function(){var e;this.isLoggingAllowed()&&console.profileEnd&&(e=console).profileEnd.apply(e,arguments)}},{key:"time",value:function(){var e;this.isLoggingAllowed()&&console.time&&(e=console).time.apply(e,arguments)}},{key:"timeLog",value:function(){var e;this.isLoggingAllowed()&&console.timeLog&&(e=console).timeLog.apply(e,arguments)}},{key:"timeStamp",value:function(){var e;this.isLoggingAllowed()&&console.timeStamp&&(e=console).timeStamp.apply(e,arguments)}},{key:"context",value:function(){var e;this.isLoggingAllowed()&&console.context&&(e=console).context.apply(e,arguments)}}])&&o(r.prototype,l),i&&o(r,i),e}()}));
/**!
* A simple console logging utility
* Released under MIT license
* @author Sachin Singh <contactsachinsingh@gmail.com>
* @version v0.1.2
* @license MIT
*/
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(e=e||self).Logger=o()}(this,(function(){"use strict";function e(o){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(o)}function o(e,o){for(var n=0;n<o.length;n++){var t=o[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function n(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function t(e,o){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);o&&(t=t.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,t)}return n}function r(e,o){return function(e){if(Array.isArray(e))return e}(e)||function(e,o){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],t=!0,r=!1,l=void 0;try{for(var i,a=e[Symbol.iterator]();!(t=(i=a.next()).done)&&(n.push(i.value),!o||n.length!==o);t=!0);}catch(e){r=!0,l=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw l}}return n}(e,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function l(e,o){return Object.prototype.hasOwnProperty.call(e,o)}function i(o,n){var t=Array.isArray(n.allowedQueryStringParameters)?n.allowedQueryStringParameters:[],i=function(e){return(e=e.substring("?"===e.charAt(0)?1:0)).split("&").map((function(e){var o=r(e.split("=").map((function(e){return decodeURIComponent(e).trim()})),2);return{key:o[0],value:o[1]}}))}(o),a=[];t.forEach((function(o){if("string"==typeof o){var n=r(o.split("="),2),t=n[0],i=n[1],c=void 0===i||i;a.push({key:t,value:c})}else o&&"object"===e(o)&&l(o,"key")&&l(o,"value")&&(o.key=o.key.trim(),o.value="".concat(o.value).trim(),a.push(o))}));var c=!1;return a.forEach((function(e){var o=!!i.filter((function(o){return e.key===o.key&&(e.value===o.value||!0===e.value)})).length;c=c||o})),c}function a(){return"function"==typeof this.config.test?this.config.test():"undefined"!=typeof console&&(e=this.location.hostname,o=this.config,(0===(n=Array.isArray(o.allowedHostnames)?o.allowedHostnames:[]).length||!!n.filter((function(o){return o.indexOf(e)>-1})).length)&&function(e,o){var n=Array.isArray(o.allowedPorts)?o.allowedPorts:[];return 0===(n=n.map((function(e){return"".concat(e).trim()}))).length||n.indexOf(e)>-1}(this.location.port,this.config)||i(this.location.search,this.config))&&!this.config.disable;var e,o,n}return function(){function e(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=Object.freeze(function(e){for(var o=1;o<arguments.length;o++){var r=null!=arguments[o]?arguments[o]:{};o%2?t(Object(r),!0).forEach((function(o){n(e,o,r[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t(Object(r)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))}))}return e}({allowedHostnames:["localhost","127.0.0.1","0.0.0.0"],disable:!1,allowedQueryStringParameters:["debug"],allowedPorts:[]},o)),this.location="undefined"==typeof window?{}:window.location,this.URL=this.location.href}var r,l,i;return r=e,(l=[{key:"isLoggingAllowed",value:function(){return a.apply(this)}},{key:"log",value:function(){var e;if(this.isLoggingAllowed()&&console.log)return(e=console).log.apply(e,arguments)}},{key:"warn",value:function(){var e;this.isLoggingAllowed()&&console.warn&&(e=console).warn.apply(e,arguments)}},{key:"debug",value:function(){var e;this.isLoggingAllowed()&&console.debug&&(e=console).debug.apply(e,arguments)}},{key:"error",value:function(){var e;this.isLoggingAllowed()&&console.error&&(e=console).error.apply(e,arguments)}},{key:"info",value:function(){var e;this.isLoggingAllowed()&&console.info&&(e=console).info.apply(e,arguments)}},{key:"dir",value:function(){var e;this.isLoggingAllowed()&&console.dir&&(e=console).dir.apply(e,arguments)}},{key:"dirxml",value:function(){var e;this.isLoggingAllowed()&&console.dirxml&&(e=console).dirxml.apply(e,arguments)}},{key:"table",value:function(){var e;this.isLoggingAllowed()&&console.table&&(e=console).table.apply(e,arguments)}},{key:"trace",value:function(){var e;this.isLoggingAllowed()&&console.trace&&(e=console).trace.apply(e,arguments)}},{key:"group",value:function(){var e;this.isLoggingAllowed()&&console.group&&(e=console).group.apply(e,arguments)}},{key:"groupCollapsed",value:function(){var e;this.isLoggingAllowed()&&console.groupCollapsed&&(e=console).groupCollapsed.apply(e,arguments)}},{key:"groupEnd",value:function(){var e;this.isLoggingAllowed()&&console.groupEnd&&(e=console).groupEnd.apply(e,arguments)}},{key:"clear",value:function(){var e;this.isLoggingAllowed()&&console.clear&&(e=console).clear.apply(e,arguments)}},{key:"count",value:function(){var e;this.isLoggingAllowed()&&console.count&&(e=console).count.apply(e,arguments)}},{key:"countReset",value:function(){var e;this.isLoggingAllowed()&&console.countReset&&(e=console).countReset.apply(e,arguments)}},{key:"assert",value:function(){var e;this.isLoggingAllowed()&&console.assert&&(e=console).assert.apply(e,arguments)}},{key:"profile",value:function(){var e;this.isLoggingAllowed()&&console.profile&&(e=console).profile.apply(e,arguments)}},{key:"profileEnd",value:function(){var e;this.isLoggingAllowed()&&console.profileEnd&&(e=console).profileEnd.apply(e,arguments)}},{key:"time",value:function(){var e;this.isLoggingAllowed()&&console.time&&(e=console).time.apply(e,arguments)}},{key:"timeLog",value:function(){var e;this.isLoggingAllowed()&&console.timeLog&&(e=console).timeLog.apply(e,arguments)}},{key:"timeStamp",value:function(){var e;this.isLoggingAllowed()&&console.timeStamp&&(e=console).timeStamp.apply(e,arguments)}},{key:"context",value:function(){var e;this.isLoggingAllowed()&&console.context&&(e=console).context.apply(e,arguments)}}])&&o(r.prototype,l),i&&o(r,i),e}()}));
{
"name": "argon-logger",
"version": "0.1.1",
"version": "0.1.2",
"description": "A simple console logging utility",

@@ -5,0 +5,0 @@ "main": "dist/js/argonLogger",

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