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

@storybook/client-logger

Package Overview
Dependencies
Maintainers
9
Versions
1939
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/client-logger - npm Package Compare versions

Comparing version 4.1.0-alpha.11 to 4.1.0-alpha.12

13

dist/index.js

@@ -0,4 +1,12 @@

"use strict";
require("core-js/modules/es6.object.define-property");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.logger = void 0;
var _global = global,
console = _global.console;
export var logger = {
var logger = {
info: function info(message) {

@@ -13,2 +21,3 @@ return console.log(message);

}
};
};
exports.logger = logger;

34

dist/index.test.js

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

import "core-js/modules/es6.array.for-each";
import "core-js/modules/es6.array.filter";
import "core-js/modules/web.dom.iterable";
import "core-js/modules/es6.array.iterator";
import "core-js/modules/es6.object.keys";
import "core-js/modules/es6.object.define-property";
"use strict";
require("core-js/modules/es6.array.for-each");
require("core-js/modules/es6.array.filter");
require("core-js/modules/web.dom.iterable");
require("core-js/modules/es6.array.iterator");
require("core-js/modules/es6.object.keys");
require("core-js/modules/es6.object.define-property");
var _ = require(".");
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

@@ -12,3 +21,2 @@

import { logger } from '.';
describe('client-logger', function () {

@@ -27,3 +35,5 @@ var initialConsole = _objectSpread({}, global.console);

var message = 'information';
logger.info(message);
_.logger.info(message);
expect(global.console.log).toHaveBeenCalledWith(message);

@@ -33,3 +43,5 @@ });

var message = 'warning message';
logger.warn(message);
_.logger.warn(message);
expect(global.console.warn).toHaveBeenCalledWith(message);

@@ -39,5 +51,7 @@ });

var message = 'error message';
logger.error(message);
_.logger.error(message);
expect(global.console.error).toHaveBeenCalledWith(message);
});
});
{
"name": "@storybook/client-logger",
"version": "4.1.0-alpha.11",
"version": "4.1.0-alpha.12",
"description": "",

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

},
"gitHead": "1e9e66bd9d89584aa39470e20e49d176962ef082"
"gitHead": "4ed93b4baf960fb7d614d55dec7981854cc844ac"
}
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