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

@storybook/node-logger

Package Overview
Dependencies
Maintainers
10
Versions
1920
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/node-logger - npm Package Compare versions

Comparing version 4.0.0-rc.1 to 4.0.0-rc.2

14

dist/index.js

@@ -12,13 +12,7 @@ "use strict";

var logger = {
info: function info(message) {
return _npmlog.default.info('', message);
},
warn: function warn(message) {
return _npmlog.default.warn('', message);
},
error: function error(message) {
return _npmlog.default.error('', message);
}
const logger = {
info: message => _npmlog.default.info('', message),
warn: message => _npmlog.default.warn('', message),
error: message => _npmlog.default.error('', message)
};
exports.logger = logger;

@@ -9,11 +9,9 @@ "use strict";

jest.mock('npmlog', function () {
return {
info: jest.fn(),
warn: jest.fn(),
error: jest.fn()
};
});
describe('node-logger', function () {
beforeEach(function () {
jest.mock('npmlog', () => ({
info: jest.fn(),
warn: jest.fn(),
error: jest.fn()
}));
describe('node-logger', () => {
beforeEach(() => {
_npmlog.default.info.mockReset();

@@ -25,4 +23,4 @@

});
it('should have an info method', function () {
var message = 'information';
it('should have an info method', () => {
const message = 'information';

@@ -33,4 +31,4 @@ _.logger.info(message);

});
it('should have a warn method', function () {
var message = 'warning message';
it('should have a warn method', () => {
const message = 'warning message';

@@ -41,4 +39,4 @@ _.logger.warn(message);

});
it('should have an error method', function () {
var message = 'error message';
it('should have an error method', () => {
const message = 'error message';

@@ -45,0 +43,0 @@ _.logger.error(message);

{
"name": "@storybook/node-logger",
"version": "4.0.0-rc.1",
"version": "4.0.0-rc.2",
"description": "",

@@ -29,3 +29,3 @@ "keywords": [

},
"gitHead": "46d89b3e617c500235c68e6d33067c2838c55489"
"gitHead": "8fb0caa37edc7034a33024e9dcfa6a416857b7bf"
}
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