Comparing version 2.0.4 to 2.0.5
@@ -9,4 +9,12 @@ 'use strict'; | ||
const logger = lib( browserLogger( ) ); | ||
const _glob = < any >global; | ||
const loggerInstance = | ||
_glob.__106_instance__ | ||
? _glob.__106_instance__ | ||
: browserLogger( ); | ||
_glob.__106_instance__ = loggerInstance; | ||
const logger = lib( loggerInstance ); | ||
export { logger } | ||
@@ -13,0 +21,0 @@ export * from './lib/index' |
@@ -8,3 +8,8 @@ 'use strict'; | ||
var index_1 = require("./lib/index"); | ||
var logger = index_1.default(logger_browser_js_1.default()); | ||
var _glob = global; | ||
var loggerInstance = _glob.__106_instance__ | ||
? _glob.__106_instance__ | ||
: logger_browser_js_1.default(); | ||
_glob.__106_instance__ = loggerInstance; | ||
var logger = index_1.default(loggerInstance); | ||
exports.logger = logger; | ||
@@ -11,0 +16,0 @@ __export(require("./lib/index")); |
@@ -5,3 +5,8 @@ 'use strict'; | ||
var extra = require("./lib/index"); | ||
var logger = index_1.default(logger_node_js_1.default()); | ||
var _glob = global; | ||
var loggerInstance = _glob.__106_instance__ | ||
? _glob.__106_instance__ | ||
: logger_node_js_1.default(); | ||
_glob.__106_instance__ = loggerInstance; | ||
var logger = index_1.default(loggerInstance); | ||
for (var _i = 0, _a = Object.keys(extra); _i < _a.length; _i++) { | ||
@@ -8,0 +13,0 @@ var key = _a[_i]; |
10
node.ts
@@ -10,3 +10,11 @@ 'use strict'; | ||
const logger = lib( nodeLogger( ) ); | ||
const _glob = < any >global; | ||
const loggerInstance = | ||
_glob.__106_instance__ | ||
? _glob.__106_instance__ | ||
: nodeLogger( ); | ||
_glob.__106_instance__ = loggerInstance; | ||
const logger = lib( loggerInstance ); | ||
for ( const key of Object.keys( extra ) ) | ||
@@ -13,0 +21,0 @@ logger[ key ] = extra[ key ]; |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"author": "Gustaf Räntilä <g.rantila@gmail.com>", | ||
@@ -8,0 +8,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
132625
2921