bf-lib-browser
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -7,2 +7,3 @@ import { Api, Auth, ConnectionType, LiveEvent, LiveSync, LiveSyncConfig, Module, NexusConfig } from 'bf-lib'; | ||
livesync: LiveSyncConfig; | ||
logging: boolean; | ||
}; | ||
@@ -9,0 +10,0 @@ export interface BfLibBrowser { |
26
index.js
@@ -18,4 +18,28 @@ "use strict"; | ||
validateSettings(settings); | ||
const logging = { | ||
logger: settings.logging | ||
? { | ||
debug: msg => { | ||
console.debug(msg); | ||
}, | ||
info: msg => { | ||
console.info(msg); | ||
}, | ||
warn: msg => { | ||
console.warn(msg); | ||
}, | ||
error: msg => { | ||
console.error(msg); | ||
}, | ||
} | ||
: { | ||
debug: _ => { }, | ||
info: _ => { }, | ||
warn: _ => { }, | ||
error: _ => { }, | ||
}, | ||
mask: [], | ||
}; | ||
const client = { type: bf_lib_1.ClientType.BROWSER }; | ||
const lib = yield bf_lib_1.default(Object.assign(Object.assign({}, settings), { client, auth: Auth_1.default() })); | ||
const lib = yield bf_lib_1.default(Object.assign(Object.assign({}, settings), { client, logging, auth: Auth_1.default() })); | ||
return Object.freeze({ | ||
@@ -22,0 +46,0 @@ get api() { |
{ | ||
"name": "bf-lib-browser", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"private": false, | ||
@@ -69,19 +69,18 @@ "description": "the standard library browser based clients using block-5 services", | ||
"dependencies": { | ||
"bf-lib": "^1.2.3", | ||
"bf-types": "^2.5.66" | ||
"bf-lib": "^1.4.0" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^8.2.0", | ||
"@commitlint/config-conventional": "^8.2.0", | ||
"@types/jest": "^24.0.18", | ||
"@types/node": "^12.7.9", | ||
"@commitlint/cli": "^8.3.4", | ||
"@commitlint/config-conventional": "^8.3.4", | ||
"@types/jest": "^24.0.25", | ||
"@types/node": "^13.1.4", | ||
"commitizen": "^4.0.3", | ||
"husky": "^3.0.8", | ||
"husky": "^4.0.1", | ||
"jest": "^24.9.0", | ||
"prettier": "^1.18.2", | ||
"ts-jest": "^24.1.0", | ||
"tslint": "^5.20.0", | ||
"prettier": "^1.19.1", | ||
"ts-jest": "^24.3.0", | ||
"tslint": "^5.20.1", | ||
"tslint-config-prettier": "^1.18.0", | ||
"typescript": "^3.6.3" | ||
"typescript": "^3.7.4" | ||
} | ||
} |
13913
1
264
- Removedbf-types@^2.5.66
- Removedbf-types@2.8.51(transitive)
- Removeduuid@7.0.2(transitive)
Updatedbf-lib@^1.4.0