@storybook/client-logger
Advanced tools
Comparing version 4.1.0-alpha.11 to 4.1.0-alpha.12
@@ -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; |
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5727
88