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 0.4.0 to 0.5.0

33

anylogger-debug.spec.js

@@ -53,10 +53,3 @@ var expect = require('chai').expect

it('calls anylogger.create when a new logger named "test" is created', function(){
sandbox.spy(anylogger, 'create')
expect(anylogger.create.callCount).to.equal(0)
anylogger('test')
expect(anylogger.create.callCount).to.equal(1)
})
it('Calls anylogger.new when a new logger named "test" is created', function(){
it('calls anylogger.new when a new logger named "test" is created', function(){
sandbox.spy(anylogger, 'new')

@@ -68,3 +61,3 @@ expect(anylogger.new.callCount).to.equal(0)

it('Calls anylogger.ext when a new logger named "test" is created', function(){
it('calls anylogger.ext when a new logger named "test" is created', function(){
sandbox.spy(anylogger, 'ext')

@@ -76,12 +69,12 @@ expect(anylogger.ext.callCount).to.equal(0)

it('does not call anylogger.create on subsequent calls with the same name', function(){
sandbox.spy(anylogger, 'create')
expect(anylogger.create.callCount).to.equal(0)
it('does not call anylogger.new on subsequent calls with the same name', function(){
sandbox.spy(anylogger, 'new')
expect(anylogger.new.callCount).to.equal(0)
anylogger('test')
expect(anylogger.create.callCount).to.equal(1)
expect(anylogger.new.callCount).to.equal(1)
anylogger('test')
expect(anylogger.create.callCount).to.equal(1)
expect(anylogger.new.callCount).to.equal(1)
})
it('calls anylogger.create when a new logger named "toString" is created', function(){
it('calls anylogger.new when a new logger named "toString" is created', function(){
sandbox.spy(anylogger, 'new')

@@ -93,9 +86,9 @@ expect(anylogger.new.callCount).to.equal(0)

it('does not call anylogger.create on subsequent calls with "toString" as argument', function(){
sandbox.spy(anylogger, 'create')
expect(anylogger.create.callCount).to.equal(0)
it('does not call anylogger.new on subsequent calls with "toString" as argument', function(){
sandbox.spy(anylogger, 'new')
expect(anylogger.new.callCount).to.equal(0)
anylogger('toString')
expect(anylogger.create.callCount).to.equal(1)
expect(anylogger.new.callCount).to.equal(1)
anylogger('toString')
expect(anylogger.create.callCount).to.equal(1)
expect(anylogger.new.callCount).to.equal(1)
})

@@ -102,0 +95,0 @@

{
"name": "anylogger-debug",
"version": "0.4.0",
"version": "0.5.0",
"description": "Anylogger adapter for debug",

@@ -27,7 +27,7 @@ "main": "anylogger-debug.js",

"dependencies": {
"anylogger": "^0.11.0",
"anylogger": "^0.14.0",
"debug": "^4.1.1"
},
"peerDependencies": {
"anylogger": "^0.11.0",
"anylogger": "^0.14.0",
"debug": "^4.1.1"

@@ -34,0 +34,0 @@ },

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