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

@liff/logger

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liff/logger - npm Package Compare versions

Comparing version 2.21.1 to 2.21.2

2

lib/index.cjs.js

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,o=require("tslib");exports.LogLevel=void 0,(e=exports.LogLevel||(exports.LogLevel={}))[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR";var t=function(){function e(e){void 0===e&&(e=exports.LogLevel.INFO),this.logLevel=e,this._debug=console.debug,this._info=console.info,this._warn=console.warn,this._error=console.error}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<=exports.LogLevel.DEBUG&&(e.unshift("[DEBUG]"),this._debug.apply(this,o.__spread(e)))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<=exports.LogLevel.INFO&&(e.unshift("[INFO]"),this._info.apply(this,o.__spread(e)))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<=exports.LogLevel.WARN&&(e.unshift("[WARN]"),this._warn.apply(this,o.__spread(e)))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<=exports.LogLevel.ERROR&&(e.unshift("[ERROR]"),this._error.apply(this,o.__spread(e)))},e}(),r=new t(Number("3"));exports.Logger=t,exports.logger=r;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,r=require("tslib");exports.LogLevel=void 0,(e=exports.LogLevel||(exports.LogLevel={}))[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR";var o=function(){function e(e){void 0===e&&(e=exports.LogLevel.INFO),this.logLevel=e,this._debug=console.debug,this._info=console.info,this._warn=console.warn,this._error=console.error}return e.prototype.debug=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];this.logLevel<=exports.LogLevel.DEBUG&&(e.unshift("[DEBUG]"),this._debug.apply(this,r.__spreadArray([],r.__read(e),!1)))},e.prototype.info=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];this.logLevel<=exports.LogLevel.INFO&&(e.unshift("[INFO]"),this._info.apply(this,r.__spreadArray([],r.__read(e),!1)))},e.prototype.warn=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];this.logLevel<=exports.LogLevel.WARN&&(e.unshift("[WARN]"),this._warn.apply(this,r.__spreadArray([],r.__read(e),!1)))},e.prototype.error=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];this.logLevel<=exports.LogLevel.ERROR&&(e.unshift("[ERROR]"),this._error.apply(this,r.__spreadArray([],r.__read(e),!1)))},e}(),t=new o(Number("3"));exports.Logger=o,exports.logger=t;

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

import{__spread as o}from"tslib";var t;!function(o){o[o.DEBUG=1]="DEBUG",o[o.INFO=2]="INFO",o[o.WARN=3]="WARN",o[o.ERROR=4]="ERROR"}(t||(t={}));var n=function(){function n(o){void 0===o&&(o=t.INFO),this.logLevel=o,this._debug=console.debug,this._info=console.info,this._warn=console.warn,this._error=console.error}return n.prototype.debug=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.logLevel<=t.DEBUG&&(n.unshift("[DEBUG]"),this._debug.apply(this,o(n)))},n.prototype.info=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.logLevel<=t.INFO&&(n.unshift("[INFO]"),this._info.apply(this,o(n)))},n.prototype.warn=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.logLevel<=t.WARN&&(n.unshift("[WARN]"),this._warn.apply(this,o(n)))},n.prototype.error=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.logLevel<=t.ERROR&&(n.unshift("[ERROR]"),this._error.apply(this,o(n)))},n}(),r=new n(Number("3"));export{t as LogLevel,n as Logger,r as logger};
import{__spreadArray as o,__read as t}from"tslib";var n;!function(o){o[o.DEBUG=1]="DEBUG",o[o.INFO=2]="INFO",o[o.WARN=3]="WARN",o[o.ERROR=4]="ERROR"}(n||(n={}));var r=function(){function r(o){void 0===o&&(o=n.INFO),this.logLevel=o,this._debug=console.debug,this._info=console.info,this._warn=console.warn,this._error=console.error}return r.prototype.debug=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this.logLevel<=n.DEBUG&&(r.unshift("[DEBUG]"),this._debug.apply(this,o([],t(r),!1)))},r.prototype.info=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this.logLevel<=n.INFO&&(r.unshift("[INFO]"),this._info.apply(this,o([],t(r),!1)))},r.prototype.warn=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this.logLevel<=n.WARN&&(r.unshift("[WARN]"),this._warn.apply(this,o([],t(r),!1)))},r.prototype.error=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this.logLevel<=n.ERROR&&(r.unshift("[ERROR]"),this._error.apply(this,o([],t(r),!1)))},r}(),i=new r(Number("3"));export{n as LogLevel,r as Logger,i as logger};
{
"name": "@liff/logger",
"version": "2.21.1",
"version": "2.21.2",
"description": "@liff/logger",

@@ -24,5 +24,5 @@ "license": "SEE LICENSE IN README.md",

"build:npm": "rollup -c rollup.config.js",
"build:watch": "yarn build:npm -w --watch.include './src/**'",
"dev-server": "yarn build:watch",
"dev-server:https": "yarn build:watch",
"build:watch": "npm run build:npm -- --watch",
"dev-server": "npm run build:watch",
"dev-server:https": "npm run build:watch",
"build:prerelease": "rollup -c rollup.config.prerelease.js",

@@ -34,3 +34,3 @@ "clean": "rm -rf ./lib ./tsconfig.tsbuildinfo"

},
"gitHead": "9af2e0816a5cd5547b99e8cadba3ee274b270a9a"
"gitHead": "b43eee22bc2c90b85e9919820c557cc15fb9712c"
}
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