@bitdiver/logadapter-dispatcher
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -8,3 +8,3 @@ "use strict"; | ||
}); | ||
exports.getLogAdapter = getLogAdapter; | ||
exports.getLogAdapterDispatcher = getLogAdapterDispatcher; | ||
Object.defineProperty(exports, "LogAdapterDispatcher", { | ||
@@ -25,3 +25,3 @@ enumerable: true, | ||
function getLogAdapter(opts) { | ||
function getLogAdapterDispatcher(opts) { | ||
if (logAdapter === undefined) { | ||
@@ -28,0 +28,0 @@ logAdapter = new _LogAdapterDispatcher.default(opts); |
{ | ||
"name": "@bitdiver/logadapter-dispatcher", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "", | ||
@@ -38,28 +38,27 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@babel/cli": "7.2.3", | ||
"@babel/core": "7.3.4", | ||
"@babel/node": "7.2.2", | ||
"@babel/plugin-proposal-object-rest-spread": "7.3.4", | ||
"@babel/plugin-transform-runtime": "7.3.4", | ||
"@babel/polyfill": "7.2.5", | ||
"@babel/preset-env": "7.3.4", | ||
"@babel/register": "7.0.0", | ||
"@babel/cli": "7.8.4", | ||
"@babel/core": "7.9.0", | ||
"@babel/node": "7.8.7", | ||
"@babel/plugin-proposal-object-rest-spread": "7.9.0", | ||
"@babel/plugin-transform-runtime": "7.9.0", | ||
"@babel/polyfill": "7.8.7", | ||
"@babel/preset-env": "7.9.0", | ||
"@babel/register": "7.9.0", | ||
"babel-core": "7.0.0-bridge.0", | ||
"babel-eslint": "10.0.1", | ||
"babel-jest": "24.1.0", | ||
"cz-conventional-changelog": "2.1.0", | ||
"eslint": "5.14.1", | ||
"eslint-config-prettier": "4.1.0", | ||
"babel-eslint": "10.1.0", | ||
"babel-jest": "25.2.4", | ||
"cz-conventional-changelog": "3.1.0", | ||
"eslint": "6.8.0", | ||
"eslint-config-prettier": "6.10.1", | ||
"eslint-plugin-babel": "5.3.0", | ||
"jest": "24.1.0", | ||
"jest-cli": "24.1.0", | ||
"jest": "25.2.4", | ||
"jest-cli": "25.2.4", | ||
"jest-environment-node-debug": "2.0.0", | ||
"prettier": "1.16.4", | ||
"regenerator-runtime": "0.13.1", | ||
"semantic-release": "15.13.3", | ||
"uuid": "3.3.2" | ||
"prettier": "2.0.2", | ||
"regenerator-runtime": "0.13.5", | ||
"semantic-release": "17.0.4" | ||
}, | ||
"dependencies": { | ||
"@babel/runtime": "7.3.4" | ||
"@babel/runtime": "7.9.2" | ||
} | ||
} |
@@ -1,5 +0,5 @@ | ||
import { LogAdapterDispatcher, getLogAdapter } from '../lib/index' | ||
import { LogAdapterDispatcher, getLogAdapterDispatcher } from '../src/index' | ||
test('create a new LogAdapterDispatcher', async done => { | ||
const logAdapter = getLogAdapter() | ||
test('create a new LogAdapterDispatcher', async (done) => { | ||
const logAdapter = getLogAdapterDispatcher() | ||
expect(logAdapter).not.toBeNull() | ||
@@ -13,3 +13,3 @@ logAdapter.reset() | ||
*/ | ||
test('Logadapter set loglevel', async done => { | ||
test('Logadapter set loglevel', async (done) => { | ||
const logger1 = new DemoAdapter({ name: 'logger1' }) | ||
@@ -41,3 +41,3 @@ const logger2 = new DemoAdapter({ name: 'logger2' }) | ||
*/ | ||
test('Logadapter reset', async done => { | ||
test('Logadapter reset', async (done) => { | ||
const logger1 = new DemoAdapter({ name: 'logger1' }) | ||
@@ -62,3 +62,3 @@ const logger2 = new DemoAdapter({ name: 'logger2' }) | ||
*/ | ||
test('Logadapter reset', async done => { | ||
test('Logadapter reset', async (done) => { | ||
const logger1 = new DemoAdapter({ name: 'logger1' }) | ||
@@ -82,3 +82,3 @@ const logger2 = new DemoAdapter({ name: 'logger2' }) | ||
*/ | ||
test('Logadapter with error', async done => { | ||
test('Logadapter with error', async (done) => { | ||
const logger1 = new DemoAdapter({ name: 'logger1' }) | ||
@@ -85,0 +85,0 @@ const logger2 = new DemoAdapter({ name: 'logger2' }) |
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
12683
21
+ Added@babel/runtime@7.9.2(transitive)
+ Addedregenerator-runtime@0.13.11(transitive)
- Removed@babel/runtime@7.3.4(transitive)
- Removedregenerator-runtime@0.12.1(transitive)
Updated@babel/runtime@7.9.2