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

anylogger-debug

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anylogger-debug - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

17

anylogger-debug.cjs.js

@@ -1,14 +0,17 @@

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var anylogger = require('anylogger');
var debug = require('debug');
var anylogger = _interopDefault(require('anylogger'));
var debug = _interopDefault(require('debug'));
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var anylogger__default = /*#__PURE__*/_interopDefaultLegacy(anylogger);
var debug__default = /*#__PURE__*/_interopDefaultLegacy(debug);
// override anylogger.ext() to make every log method use debug
anylogger.ext = function(logger) {
var method = debug(logger.name);
for (var level in anylogger.levels) {
anylogger__default['default'].ext = function(logger) {
var method = debug__default['default'](logger.name);
for (var level in anylogger__default['default'].levels) {
logger[level] = method;
}
logger.enabledFor = debug.enabled.bind(logger, logger.name);
logger.enabledFor = debug__default['default'].enabled.bind(logger, logger.name);
return logger
};
(function () {
// override anylogger.ext() to make every log method use debug

@@ -3,0 +4,0 @@ anylogger.ext = function(logger) {

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

anylogger.ext=function(e){var n=debug(e.name);for(var a in anylogger.levels)e[a]=n;return e.enabledFor=debug.enabled.bind(e,e.name),e};
anylogger.ext=function(e){var n,a=debug(e.name);for(n in anylogger.levels)e[n]=a;return e.enabledFor=debug.enabled.bind(e,e.name),e};
{
"name": "anylogger-debug",
"version": "1.0.1",
"version": "1.0.2",
"description": "Anylogger adapter for debug",
"src": "./anylogger-debug.js",
"main": "./anylogger-debug.cjs.js",
"module": "./anylogger-debug.esm.js",
"iife": "./anylogger-debug.iife.js",

@@ -13,3 +12,2 @@ "min": "./anylogger-debug.min.js",

"anylogger-debug.js",
"anylogger-debug.esm.js",
"anylogger-debug.cjs.js",

@@ -19,5 +17,5 @@ "anylogger-debug.iife.js",

"anylogger-debug.spec.js",
"test.html",
"browserified-debug-4.1.1.min.js"
"test.html"
],
"unpkg": "anylogger-debug.min.js",
"scripts": {

@@ -48,4 +46,4 @@ "build": "npm run test -s && npm run minify -s && npm run docs -s",

"dependencies": {
"anylogger": "^1.0.2",
"debug": "^4.1.1"
"anylogger": "^1.0.5",
"debug": "^4.3.1"
},

@@ -59,9 +57,9 @@ "peerDependencies": {

"cross-env": "^7.0.2",
"gzip-size": "^5.1.1",
"mocha": "^8.0.1",
"rollup": "^2.18.0",
"gzip-size": "^6.0.0",
"mocha": "^8.2.1",
"rollup": "^2.33.3",
"rollup-plugin-re": "^1.0.7",
"sinon": "^9.0.2",
"uglify-js": "^3.10.0"
"sinon": "^9.2.1",
"uglify-js": "^3.11.6"
}
}

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

# anylogger-debug <sub><sup>1.0.1</sup></sub>
# anylogger-debug <sub><sup>1.0.2</sup></sub>
### Anylogger adapter for debug

@@ -20,6 +20,6 @@

* [anylogger-debug.js](https://unpkg.com/anylogger-debug@1.0.1/anylogger-debug.js)
* [anylogger-debug.js](https://unpkg.com/anylogger-debug@1.0.2/anylogger-debug.js)
(fully commented source ~5kB)
* [anylogger-debug.min.js](https://unpkg.com/anylogger-debug@1.0.1/anylogger-debug.min.js)
(minified 135 bytes, gzipped ~[122](#gzip-size) bytes)
* [anylogger-debug.min.js](https://unpkg.com/anylogger-debug@1.0.2/anylogger-debug.min.js)
(minified 133 bytes, gzipped ~[121](#gzip-size) bytes)

@@ -31,5 +31,5 @@

```html
<script src="https://unpkg.com/anylogger@1.0.2/anylogger.min.js"></script>
<script src="https://unpkg.com/anylogger-debug@1.0.1/browserified-debug-4.1.1.min.js"></script>
<script src="https://unpkg.com/anylogger-debug@1.0.1/anylogger-debug.min.js"></script>
<script src="https://unpkg.com/anylogger@1.0.5/anylogger.min.js"></script>
<script src="https://unpkg.com/anylogger-debug@1.0.2/browserified-debug-4.1.1.min.js"></script>
<script src="https://unpkg.com/anylogger-debug@1.0.2/anylogger-debug.min.js"></script>
<script>(function(){ // IIFE

@@ -36,0 +36,0 @@ var log = anylogger('index.html')

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